@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&family=Manjari:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&family=Meera+Inimai&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.top-head {
    background-color: #f4eee0; 
    padding: 20px 0;
    border-bottom: 3px solid #d4af37;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    justify-content: flex-start;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

/* This is your Base Style */
.side-img {
    height: 150px; /* Changed this to 150px for a better look, change to 300 if you want it huge */
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.header-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 42px; /* Set desktop size here */
    color: #c41e3a;
    letter-spacing: 1px;
    margin-bottom: 2px;
    white-space: nowrap;
}

.sub-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px; /* Set desktop size here */
    color: #002147;
    font-weight: 600;
    letter-spacing: 3px;
}

/* MOBILE SETTINGS (Small Screens) */
@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 0.8fr 3fr 0.8fr;
        gap: 5px;
    }
    .side-img {
        height: 55px; /* Tiny for phones */
    }
    .main-title {
        font-size: 15px;
        letter-spacing: 0;
    }
    .sub-title {
        font-size: 9px;
        letter-spacing: 1px;
    }
}

/* TABLET SETTINGS */
@media (min-width: 769px) and (max-width: 1023px) {
    .side-img {
        height: 100px;
    }
    .main-title {
        font-size: 28px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.top-head {
    background-color: #f4eee0; 
    padding: 20px 0;
    border-bottom: 3px solid #d4af37;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    justify-content: flex-start;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

/* This is your Base Style */
.side-img {
    height: 150px; /* Changed this to 150px for a better look, change to 300 if you want it huge */
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.header-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 42px; /* Set desktop size here */
    color: #c41e3a;
    letter-spacing: 1px;
    margin-bottom: 2px;
    white-space: nowrap;
}

.sub-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px; /* Set desktop size here */
    color: #002147;
    font-weight: 600;
    letter-spacing: 3px;
}

/* MOBILE SETTINGS (Small Screens) */
@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 0.8fr 3fr 0.8fr;
        gap: 5px;
    }
    .side-img {
        height: 55px; /* Tiny for phones */
    }
    .main-title {
        font-size: 15px;
        letter-spacing: 0;
    }
    .sub-title {
        font-size: 9px;
        letter-spacing: 1px;
    }
}

/* TABLET SETTINGS */
@media (min-width: 769px) and (max-width: 1023px) {
    .side-img {
        height: 100px;
    }
    .main-title {
        font-size: 28px;
    }
}

/* --- NAVIGATION BAR --- */
.main-nav {
    background-color: #002147;
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 10px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #f4eee0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

/* --- THE "MODEL" DROPDOWN (DESKTOP) --- */
.dropdown { position: relative; }

.dropdown-content {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #f4eee0; 
    min-width: 250px;
    top: 100%; /* Sits exactly at the bottom of the blue nav bar */
    left: 0;
    list-style: none;
    padding: 0;
    transition: all 0.4s ease-in-out;
    transform: translateY(15px); /* This creates the "slowly down" effect */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    pointer-events: none;
    border-top: 3px solid #d4af37; /* Pro detail from image_c08336.png */
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        visibility: visible;
        opacity: 1;
        transform: translateY(0); /* Slides up to the bar */
        pointer-events: auto;
    }
}


/* --- MOBILE HAMBURGER (BREATHING SPACE) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px; /* Increased gap for breath space */
    z-index: 1001; 
}

.bar {
    width: 28px; /* Slightly wider for better look */
    height: 1px;
    background-color: #f4eee0;
    transition: 0.3s;
}

 
/* Desktop Separator Lines */
.dropdown-content li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); 
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content li a {
    padding: 12px 25px; /* Indent space on the left */
    display: block;
    font-size: 14px;
    color: #002147; 
    text-transform: capitalize;
    text-align: left;
    font-weight: 500;
    transition: 0.3s;
}

.dropdown-content li a:hover {
    background-color: #e9e2d0; /* Subtle hover color like image_c08336.png */
    color: #002147;
    padding-left: 30px; /* Slight move-right animation on hover */
}

/* --- MOBILE RESPONSIVE (Arranged for Pro View) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        gap: 3px; /* Professional breathing space between bars */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #002147;
        position: absolute;
        top: 100%; /* FIXED: This kills the white bar gap for good */
        left: 0;
        text-align: right;
        padding: 5px 0;
        border-top: 0px solid rgba(255,255,255,0.1); /* Subtle divider from top head */
    }

    .nav-links.active { display: flex; }

    /* Main List Item Spacing */
    .nav-links li {
        width: 100%;
        border-bottom: 2px solid rgba(255,255,255,0.05);
    }

    .nav-links li a {
        padding: 2px 25px; /* Comfortable tap target for fingers */
        display: block;
        color: #f4eee0;
        transition: 0.5s ease;
    }

    /* MOBILE DROPDOWN (Fresh Reset Style) */
    .dropdown-content {
        position: static;
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        width: 100%;
        background-color: #001a38; /* Darker navy for contrast */
        border-right: 4px solid #d4af37; /* The Gold side-indicator */
        border-top: none; /* Removed desktop gold border */
        padding: 0px;
        transition: all 0.4s ease-in-out;
    }


    /* Remove lines between sub-items for a "Fresh" look */
    .dropdown-content li { border-bottom: none; }

    .dropdown-content li a {
        color: #cccccc;
        text-align: right;
        padding: 6px 45px; /* Indented from right */
        font-size: 13px;
        text-transform: capitalize;
        transition: 0.3s ease; /* Smooth color change */
    }
}

/* GOLD HOVER EFFECT FOR SUB-MENU ITEMS */
    .dropdown-content li a:hover 
    .dropdown-content li a:active{
        color: #d4af37;
        background-color: transparent;
    }

/* --- FIXED HAMBURGER TO X ANIMATION --- */
.bar { 
    width: 28px; 
    height: 3px; 
    background-color: #f4eee0; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother curve */
}

/* Perfect X alignment */
#mobile-menu.is-active .bar:nth-child(2) { 
    opacity: 0; 
}
#mobile-menu.is-active .bar:nth-child(1) { 
    transform: translateY(9px) rotate(45deg); 
}
#mobile-menu.is-active .bar:nth-child(3) { 
    transform: translateY(-9px) rotate(-45deg); 
}

/* --- REPAIR: ADD THIS TO THE VERY BOTTOM OF THE FILE --- */
.dropdown-content.open {
    max-height: 500px !important; 
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    padding: 5px 0 !important;
}
























































/* =========================================
   MAIN FOOTER STYLES
   ========================================= */
.main-footer {
    background-color: #002147; /* Signature Deep Blue */
    color: #ffffff;
    padding: 80px 20px 30px; /* Increased top padding for a grand feel */
    font-family: 'Poppins', sans-serif;
    border-top: 5px solid #D4AF37; /* Slightly thicker Gold Top Border */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr; 
    gap: 50px;
}

/* --- Column 1: Brand & Socials --- */
.footer-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: #D4AF37;
    font-size: 1.6rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-desc {
    line-height: 1.8;
    color: #cbd5e0;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Social Media Icons Styling */
.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background-color: #D4AF37;
    color: #002147;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    border-color: #D4AF37;
}

/* --- Column 2: Links --- */
.footer-col h4 {
    color: #D4AF37;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    letter-spacing: 1px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background: #D4AF37;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.footer-links a:hover { 
    color: #D4AF37; 
    padding-left: 8px; 
}

/* --- Column 3: Contact Info --- */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #cbd5e0;
}

.gold-icon {
    color: #D4AF37;
    font-size: 1.1rem;
    margin-top: 3px;
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- Bottom Bar --- */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #a0aec0;
    margin: 5px 0;
}

.dev-credit { 
    font-style: italic; 
    opacity: 0.6;}

    /* --- Mobile Optimization (Fixed for S23 Ultra) --- */
@media (max-width: 768px) {
    .main-footer {
        background: linear-gradient(180deg, #002147 0%, #00152e 100%);
        padding: 50px 15px 30px; /* Slightly less side padding */
        overflow-x: hidden;      /* Prevents any horizontal scrolling */
    }

    .footer-container {
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 40px;
        width: 100%;             /* Ensures container stays in bounds */
    }

    .footer-col {
        width: 100%;
        padding: 0 10px;         /* Padding inside each column */
        box-sizing: border-box;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        justify-content: center;
    }

    /* THE CONTACT FIX */
    .contact-item {
        flex-direction: column;  /* Icon on top */
        align-items: center;     /* Everything centered */
        gap: 5px;
        margin-bottom: 25px;
        width: 100%;
    }

    .contact-item p {
        font-size: 0.9rem;
        word-wrap: break-word;   /* This stops the email from going outside */
        overflow-wrap: break-word;
        max-width: 280px;        /* Keeps the text block narrow enough */
        margin: 0 auto;
    }

    .gold-icon {
        margin-top: 0;
        margin-bottom: 5px;
    }

    .footer-links a:hover {
        padding-left: 0; 
    }
}




















/* --- VATICAN PORTAL (VP) MASTER STYLES --- */
.vp-main-wrapper { background: #ffffff; color: #002147; overflow-x: hidden; font-family: 'Poppins', sans-serif; }

/* 1. TOP BAR */
.vp-top-bar { 
    background: #fdf5e6; 
    padding: 8px 0; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    padding-left: 50px; 
}
.vp-bar-flex { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.vp-current-date { font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; }
.vp-pulse { height: 8px; width: 8px; background: #c41e3a; border-radius: 50%; display: inline-block; margin-right: 5px; animation: vp-blink 2s infinite; }

/* ROUND SOCIAL ICONS */
.vp-social-links { display: flex; align-items: center; gap: 10px; padding-right: 20px; }
.vp-follow-label { font-size: 0.7rem; font-weight: 800; color: #9c7e1d; margin-right: 5px; letter-spacing: 1px; }
.vp-social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1.5px solid #002147;
    border-radius: 50%;
    color: #002147;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.vp-social-links a:hover {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* 2. HERO SLIDER */
.vp-hero-slider { position: relative; height: 500px; background: #000; overflow: hidden; }
.vp-slider-container { position: relative; height: 100%; width: 100%; }
.vp-slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; display: none; align-items: center; }
.vp-slide.active { opacity: 1; z-index: 2; display: flex; }
.vp-slide-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.vp-slide-content { position: absolute; left: 10%; max-width: 600px; z-index: 3; color: #fff; }
.vp-slide-content h1 { font-family: 'Cinzel', serif; font-size: 2.8rem; line-height: 1.1; margin: 15px 0; }
.vp-tag-gold { background: #D4AF37; color: #002147; padding: 5px 15px; font-weight: 800; font-size: 0.7rem; text-transform: uppercase; }
.vp-btn-read { display: inline-block; padding: 12px 30px; border: 2px solid #D4AF37; color: #D4AF37; text-decoration: none; font-weight: 700; margin-top: 20px; transition: 0.3s; }
.vp-btn-read:hover { background: #D4AF37; color: #002147; }

/* SLIDER CONTROLS (ARROWS) */
.vp-prev, .vp-next { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(0,0,0,0.3); color: white; border: none; 
    width: 45px; height: 45px; border-radius: 50%; cursor: pointer; 
    z-index: 10; transition: 0.3s; display: flex; align-items: center; justify-content: center;
}
.vp-prev { left: 20px; }
.vp-next { right: 20px; }
.vp-prev:hover, .vp-next:hover { background: #D4AF37; }

/* 3. UNIFORM COMPACT GRID */
.vp-main-grid { display: grid; grid-template-columns: 2.5fr 1fr; gap: 20px; padding: 30px; max-width: 1200px; margin: 0 auto; }
.vp-section-header { font-family: 'Cinzel', serif; font-size: 1.4rem; border-bottom: 2px solid #D4AF37; padding-bottom: 5px; margin-bottom: 20px; padding-top: 30px; }
.vp-masonry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-top: 30px; padding-bottom: 30px;}

/* UNIFORM CARDS */

.vp-news-card { background: #fff; border: 1px solid #eee; transition: 0.3s; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.vp-news-card:hover { border-color: #D4AF37; transform: translateY(-3px); }
.vp-card-img-box { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; } 
.vp-card-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.vp-news-card:hover img { transform: scale(1.1); }

.vp-card-body { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.vp-cat { color: #D4AF37; font-weight: 800; font-size: 0.6rem; margin-bottom: 5px; }
.vp-card-body h3 { font-family: 'Cinzel', serif; font-size: 0.95rem; margin: 5px 0; line-height: 1.2; height: 2.4em; overflow: hidden; }
.vp-card-body p { font-size: 0.75rem; color: #666; line-height: 1.4; margin-bottom: 8px; height: 2.8em; overflow: hidden; }
.vp-read-more { text-decoration: none; color: #002147; font-weight: 800; font-size: 0.65rem; margin-top: auto; text-transform: uppercase; }

/* 4. SIDEBAR CONDENSED */
.vp-sidebar {padding-top: 50px;}
.vp-sidebar-box { background: #f9f9f9; padding: 15px; border-radius: 4px; border-left: 3px solid #D4AF37; }
.vp-side-title { font-family: 'Cinzel', serif; font-size: 0.9rem; color: #002147; }
.vp-res-list { list-style: none; padding: 0; }
.vp-res-list li { padding: 8px 0; border-bottom: 1px solid #eee; }
.vp-res-list a { text-decoration: none; color: #002147; font-size: 0.75rem; display: flex; justify-content: space-between; font-weight: 600; }
.vp-res-list a:hover { color: #D4AF37; }

/* ANIMATIONS */
@keyframes vp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* 5. RESPONSIVE */
@media (max-width: 768px) {
    .vp-main-grid { grid-template-columns: 1fr; }
    .vp-masonry-grid { grid-template-columns: 1fr; }
    .vp-hero-slider { height: 400px; }
    .vp-slide-content { left: 5%; right: 5%; bottom: 40px; text-align: center; }
    .vp-slide-content h1 { font-size: 1.8rem !important; }
    .vp-prev, .vp-next { display: none; }
    .vp-top-bar { 
        padding-left: 0 !important; /* Removes that 50px offset on mobile */
        padding: 10px 0;
    }

    .vp-bar-flex {
        flex-direction: column; /* Stacks Date on top of Social Icons */
        gap: 10px; /* Adds space between them */
        text-align: center;
    }

    .vp-social-links {
        padding-right: 0 !important; /* Centers icons on mobile */
        justify-content: center;
    }

    .vp-current-date {
        font-size: 0.75rem;
    }
}

