/* ======BELIEVE====== */
/*+++++++++++++++++++++++++++ INDEX ++++++++++++++++++++++++*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scrollbar-width:none; /* Firefox */
}

*::-webkit-scrollbar{
    width:0;
    height:0;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    overflow-x:hidden;
    font-family:"Poppins", sans-serif;
    background:#f5f5f5;
    
}

/* ======================== CONTAINER ======================== */
.container{
    padding:40px 80px;
    position:relative;
 background:
    radial-gradient(circle at 70% 40%, #f67423 0%, transparent 40%),
    linear-gradient(135deg,#f5d2be 100%, #e7a877 100%);
}

/* ======================== NAVBAR ======================== */.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 40px;
}

/* Logo */
.logo{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo-title{
    color:#3D3D3D;
    font-size:30px;
    font-weight:700;
    margin:0;
}

/* Center Menu */
.nav-links{
    display: flex;
    align-items: center;
    gap: 8px;
    height:55px;
    padding: 8px 10px;

    background: transparent;

    /* border: 3px solid #f67423; */
    border-radius: 50px;

    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.15),
        0 4px 12px rgba(0,0,0,.2);
}

/* Main Links */
.nav-links a{
    text-decoration: none;
    color: #3D3D3D;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 40px;
    transition: all .3s ease;
}

/* Active/Hover Effect */
.nav-links > a:hover,
.dropdown:hover > a{
    background: #dd7e43;


    color: #fff;

    box-shadow:
        inset 0 1px 3px rgba(255,255,255,.35),
        0 0 15px #2a4564;
}
/* Active/Hover Effect */
.nav-links > a:hover,
.nav-links > a.active,
.dropdown:hover > a,
.dropdown.active > a{
    background: #dd7e43;
    color: #fff;
    box-shadow:
        inset 0 1px 3px rgba(255,255,255,.35),
        0 0 15px #2a4564;
}
/* Dropdown Container */
.dropdown{
    position: relative;
}

/* Dropdown Menu */
.dropdown-menu{
    position: absolute;
    top: 120%;
    left: 0;

    min-width: 280px;

    background: #ffffff;
    border-radius: 15px;

    box-shadow:
        0 15px 35px rgba(0,0,0,.15);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition: all .35s ease;
    z-index: 1000;
}

/* Dropdown Links */
.dropdown-menu a{
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 18px;
    color: #3D3D3D;

    border-bottom: 1px solid #edf2f7;

    transition: .3s;
}

.dropdown-menu a:last-child{
    border-bottom: none;
}

/* Dropdown Hover */
.dropdown-menu a:hover{
    background: #eef8ff;
    color: #2a4564;
    padding-left: 25px;
}

/* Show Dropdown */
.dropdown:hover .dropdown-menu{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow Animation */
.arrow{
    color: #2a4564;
    transition: .3s;
}

.dropdown-menu a:hover .arrow{
    transform: translateX(5px);
}
/* Mobile */
@media (max-width: 992px){
    .nav-links{
        display:none;
    }
    
}

/* ======================== RIGHT NAV ======================== */
.nav-right{
    display:flex;
    align-items:center;
    gap:20px;
}

/* ======================== BUTTON ======================== */
.button{
    padding:10px 28px;
    border-radius:30px;
    border:2px solid #2a4564;
    background:transparent;
    cursor:pointer;
    color:#2a4564;
    font-size:15px;
    font-weight:600;
    transition:0.3s;
    margin-right: -10px;
}

.button:hover{
    background: #dd7e43;
    color:#fff;
    border-color: #dd7e43;
}

/* ======================== TOGGLE BUTTON ======================== */
.sidebar-toggle{
    position:fixed;
    right:1.5rem;
    top: 62px;
    right: 50px;
    width:44px;
    height:44px;
    background:transparent;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:1100;
    transition:0.25s;
    background-color:#D7C3B9;
}
.sidebar-toggle:hover{
    background:rgba(0,0,0,0.05);
}

/* Hamburger */
.toggle-icon{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.toggle-icon span{
    width:26px;
    height:2px;
    background:#333;
    margin:5px 0;
    border-radius:4px;
    transition:0.25s;
}

/* Toggle animation */
.sidebar-toggle.active span:nth-child(1){
    transform:rotate(45deg) translate(5px,5px);
}
.sidebar-toggle.active span:nth-child(2){
    opacity:0;
}
.sidebar-toggle.active span:nth-child(3){
    transform:rotate(-45deg) translate(5px,-5px);
}

/* ======================== SIDEBAR ======================== */
.sidebar{
    position:fixed;
    top:0;
    right:-100%;
    width:280px;
    height:100vh;
    background:#F7F4EE;
    box-shadow:-2px 0 12px rgba(0,0,0,0.1);
    z-index:1050;
    transition:0.35s;
    padding:2rem 1.5rem;
    display:flex;
    flex-direction:column;
}

.sidebar.open{
    right:0;
}

/* Sidebar scroll */
.nav-menu-side{
    flex:1;
    overflow-y:auto;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
}

/* Hide sidebar scrollbar */
.nav-menu-side::-webkit-scrollbar{
    display:none;
}

/* ======================== SIDEBAR LOGO ======================== */
.sidebar-logo{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:2rem;
    padding-bottom:1rem;
    border-bottom:1px solid rgba(255,255,255,0.2);
}

.logo-circle-side{
    width:45px;
    height:45px;
    background:#f0f0f0;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}

.sidebar-logo h3{
    color: #C8A45D;
    font-weight:600;
    font-size:1.5rem;
}

/* ======================== MENU ======================== */

.nav-menu-side{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.dropdown{
    display:flex;
    flex-direction:column;
}

.menu-link{
    display:flex;
    align-items:center;
    gap:14px;
    padding:15px 18px;
    border-radius:18px;
    text-decoration:none;
    color:#3D3D3D;
    font-size:17px;
    font-weight:500;
    transition:.3s ease;
}

.menu-link:hover{
    background:#F3E7D8;
}

.menu-icon{
    color:#C8A45D;
    font-size:18px;
    width:22px;
}

.menu-link > .arrow{
    margin-left:auto;
    color:#C8A45D;
    font-size:11px;
    transition:.3s ease;
}

/* Active menu like image */

.dropdown.active > .menu-link{
    background:linear-gradient(135deg,#EA914D,#DD7E43);
    color:#fff;
    box-shadow:0 8px 20px rgba(221,126,67,.25);
}

.dropdown.active > .menu-link .menu-icon,
.dropdown.active > .menu-link > .arrow{
    color:#fff;
}

.dropdown.active > .menu-link > .arrow{
    transform:rotate(90deg);
}

/* ================= SUBMENU ================= */

.submenu{
    max-height:0;
    overflow:hidden;
    margin-left:28px;
    padding-left:18px;
    border-left:2px solid #E6D8C3;
    transition:max-height .4s ease;
}

.dropdown.active .submenu{
    max-height:1500px;
    padding-top:10px;
    padding-bottom:10px;
}

.submenu a{
    display:flex;
    align-items:flex-start;
    gap:8px;
    padding:7px 0;
    color:#555;
    font-size:14px;
    line-height:1.5;
    text-decoration:none;
    transition:.3s ease;
}

.submenu a:hover{
    color:#DD7E43;
    transform:translateX(4px);
}

.submenu a .arrow{
    flex-shrink:0;
    color:#DD7E43;
    font-size:8px;
    margin-top:7px;
    transform:none !important;
}
/* ======================== ABOUT SECTION ======================== */
.about-section-believe {
    border-radius: 25px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 70px;
    margin-left: 48px;
    margin-right: 35px;
    margin-top: 60px;

    /* Important for sticky image */
    position: relative;
}

/* ================================
   LEFT IMAGE CONTAINER
================================ */

.about-image1 {
    flex: 0 0 38%;
    text-align: center;

    /* STICKY SCROLL EFFECT */
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* IMAGE */

.about-image1 img {
    width: 100%;
    max-width: 450px;
    height: 580px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    display: block;
    margin: 20px auto 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ================================
   IMAGE INFO
================================ */

.about-info {
    margin-top: 12px;
    text-align: center;
    margin-left: 70px;
}

.about-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e76514;
    line-height: 1.4;
    margin-bottom: 5px;
    font-family: "Poppins", sans-serif;
}

.about-info p {
    font-size: 12px;
    color: #111;
    font-family: "Poppins", sans-serif;
}

/* ================================
   RIGHT CONTENT
================================ */

.about-content-believe {
    flex: 1;
    min-width: 0;
    padding-top: 10px;
}

.about-content-believe h2 {
    font-size: 38px;
    line-height: 1.2;
    color: #2a4564;
    margin-bottom: 40px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.about-content-believe h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: #e76514;
    border-radius: 2px;
}

/* ================================
   PARAGRAPH STYLE
================================ */

.about-content-believe p {
    font-size: 13px;
    line-height: 1.9;
    color: #111;
    margin-bottom: 22px;
    text-align: justify;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

/* ================================
   TABLET
================================ */

@media (max-width: 992px) {

    .about-section-believe {
        margin-left: 30px;
        margin-right: 30px;
        gap: 35px;
    }

    .about-image1 {
        flex: 0 0 40%;
        top: 80px;
    }

    .about-image1 img {
        height: 500px;
    }

    .about-info {
        margin-left: 0;
    }

    .about-content-believe h2 {
        font-size: 32px;
    }
   
}

/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {

    .about-section-believe {
        flex-direction: column;
        margin-left: 20px;
        margin-right: 20px;
        gap: 25px;
    }

    /* Disable sticky on mobile */
    .about-image1 {
        position: relative;
        top: auto;
        width: 100%;
        flex: none;
    }

    .about-image1 img {
        width: 100%;
        max-width: 100%;
        height: 450px;
        margin-top: 0;
    }

    .about-info {
        margin-left: ;
    }
    
    .about-content-believe {
        width: 100%;
        padding-top: 0;
    }

    .about-content-believe h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .about-content-believe p {
        font-size: 13px;
        line-height: 1.8;
    }
    
}


 
/* ======CATOLICATE======= */


/* ======================== ABOUT SECTION ======================== */
.about-section-catholicate{
    border-radius:25px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:70px;
    margin-right: 30px;
    margin-top: 60px;
}

/* LEFT IMAGE */
.about-image2{
    text-align:center;
}

.about-image2 img{
    width:100%;
    max-width:450px;
    height:650px;
    object-fit:cover;
    border-radius:6px;
    display:block;
    margin-top:20px;
    margin-left: 70px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* IMAGE INFO */
.about-info-catholicate{
    margin-top:12px;
    text-align:center;
    margin-left: 70px;
}

.about-info-catholicate h3{
    font-size:18px;
    font-weight:700;
    color:#e76514;
    line-height:1.4;
    margin-bottom:5px;     
    font-family:"Poppins", sans-serif;
}

.about-info-catholicate p{
    font-size:12px;
    color:#111;
    font-family:"Poppins", sans-serif;
    line-height: 1.9;
}

/* RIGHT CONTENT */
.about-content-catholicate{
    flex:1;
    padding-top:10px;
}

.about-content-catholicate h2{ 
    font-size:38px;
    line-height:1.2;
    color:#2a4564;
    margin-bottom:40px;
    font-family:"Poppins", sans-serif;
    font-weight:700;
    position: relative;
    padding-bottom: 15px;
}
.about-content-catholicate h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: #e76514;
    border-radius: 2px;
}
/* PARAGRAPH STYLE */
.about-content-catholicate p{
    font-size:13px;
    line-height:1.9;
    color:#111;
    margin-bottom:22px;
    text-align:justify;
    font-family:"Poppins", sans-serif;
    font-weight:400;
}

/* ======================== PHOTO GALLERY SECTION ======================== */
.gallery-section {
    margin-top: 60px;
    padding: 40px 0px;
    border-top: 1px solid rgba(42, 69, 100, 0.15);
    width: 100%;
}

.gallery-heading {
    font-size: 32px;
    color: #2a4564;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
}

.gallery-heading::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #df5b08;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Card Container */
.gallery-card {
    position: relative;
    height: 360px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(42, 69, 100, 0.2);
}

.gallery-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

/* Overlay gradient text panel */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(42, 69, 100, 0.95) 0%, rgba(42, 69, 100, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Typography inside overlay grid panels */
.gallery-overlay h4 {
    color: #df5b08;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay p {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 0.05s;
}

.gallery-card:hover .gallery-overlay h4,
.gallery-card:hover .gallery-overlay p {
    transform: translateY(0);
}

/* =========================================
   CATHOLICATE SECTION - MOBILE RESPONSIVE
========================================= */

@media screen and (max-width: 768px) {

    .about-section-catholicate {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 25px;
        margin-top: 30px;
        margin-right: 0;
        margin-left: 0;
        padding: 0 18px;
        border-radius: 15px;
    }

    /* LEFT IMAGE */

    .about-image2 {
        width: 100%;
        text-align: center;
    }

    .about-image2 img {
        width: 100%;
        max-width: 350px;
        height: auto;
        max-height: 480px;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border-radius: 6px;
        display: block;
        margin: 0 2px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    /* IMAGE CAPTION */

    .about-info-catholicate {
        width: 100%;
        margin-top: 12px;
        margin-left: 0;
        text-align: center;
    }

    .about-info-catholicate h3 {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 5px;
    }

    .about-info-catholicate p {
        font-size: 12px;
        line-height: 1.8;
        text-align: center;
    }

    /* RIGHT CONTENT */

    .about-content-catholicate {
        width: 100%;
        flex: none;
        padding-top: 0;
    }

    .about-content-catholicate h2 {
        font-size: 27px;
        line-height: 1.3;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }

    .about-content-catholicate h2::after {
        width: 60px;
        height: 3px;
    }

    .about-content-catholicate p {
        font-size: 13px;
        line-height: 1.8;
        margin-bottom: 18px;
        text-align: left;
        text-align: justify;
    }
}

/* =========================================
   PHOTO GALLERY - TABLET
========================================= */

@media screen and (max-width: 768px) {

    .gallery-section {
        margin-top: 35px;
        padding: 30px 18px;
        width: 100%;
        box-sizing: border-box;
    }

    .gallery-heading {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 30px;
    }

    .gallery-heading::after {
        width: 55px;
        height: 3px;
        bottom: -9px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        width: 100%;
    }

    .gallery-card {
        height: 280px;
        min-width: 0;
        border-radius: 12px;
    }

    .gallery-overlay {
        padding: 16px;
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(42, 69, 100, 0.95) 0%,
            rgba(42, 69, 100, 0.45) 55%,
            transparent 100%
        );
    }

    .gallery-overlay h4 {
        font-size: 16px;
        margin-bottom: 5px;
        transform: translateY(0);
    }

    .gallery-overlay p {
        font-size: 12px;
        line-height: 1.5;
        transform: translateY(0);
    }
}

/* =========================================
   SMALL MOBILE SCREENS
========================================= */

@media screen and (max-width: 480px) {

    .about-section-catholicate {
        padding: 0 15px;
        gap: 20px;
        margin-top: 25px;
    }

    .about-image2 img {
        max-width: 100%;
        max-height: 420px;
    }

    .about-content-catholicate h2 {
        font-size: 24px;
        margin-bottom: 22px;
    }

    .about-content-catholicate p {
        font-size: 12px;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    /* Gallery */

    .gallery-section {
        margin-top: 25px;
        padding: 25px 15px;
    }

    .gallery-heading {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-card {
        height: 320px;
        border-radius: 12px;
    }

    .gallery-overlay {
        padding: 18px;
    }

    .gallery-overlay h4 {
        font-size: 17px;
    }

    .gallery-overlay p {
        font-size: 12px;
        line-height: 1.5;
    }
}




/* ==========HISTORY============= */

.about-section-history{
    border-radius:25px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:70px;
    margin-left: 72px;
    margin-right: 32px;
    margin-top: 60px;
}

/* STICKY LEFT COLUMN PORTRAIT */
.about-image3{
    flex: 0 0 380px;
    position: sticky;
    top: 40px; 
    background: #ffffff;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(42, 69, 100, 0.05);
}

.about-image3 img{
    width: 100%;
    height: 440px;
    object-fit:cover;
    border-radius:16px;
    display:block;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* RIGHT TIMELINE DENSE CONTENT WRAPPER */

/* RIGHT CONTENT */
.about-content-history{
    flex:1;
    padding-top:10px;
}

.about-content-history h2{ 
    font-size:38px;
    line-height:1.2;
    color:#2a4564;
    margin-bottom:40px;
    font-family:"Poppins", sans-serif;
    font-weight:700;
    position: relative;
    padding-bottom: 15px;
}
.about-content-history h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: #e76514;
    border-radius: 2px;
}



/* EDITORIAL PARAGRAPH BLOCKS WITH TIMELINE EMBED */.history-block {
    position: relative;
    padding-left: 32px;
    margin-bottom: 35px;
    /* Default inactive color */
    --line-color: rgba(231, 101, 20, 0.2); 
    border-left: 2px solid var(--line-color);
    transition: border-left 0.3s ease;
}

.history-block::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--line-color);
    transition: all 0.3s ease;
}

.history-block p{
     font-size:13px;
    line-height:1.9;
    color:#111;
    margin-bottom:22px;
    text-align:justify;
    font-family:"Poppins", sans-serif;
    font-weight:400;
   
}

/* ======================== RESPONSIVE ======================== */

@media(max-width:1200px){
    .container {
        padding: 40px 40px;
    }
    .about-image3 {
        flex: 0 0 320px;
    }
    .about-content-history {
        padding: 35px;
    }
}
@media(max-width:992px){
    .container{
        padding:30px 16px;
    }
    .navbar {
        margin-bottom: 40px;
        /* Drops down padding slightly so layout handles fixed tracking safely */
        padding-right: 0; 
    }
    .sidebar-toggle{
        top: 28px;
        right: 16px;
    }
    .nav-right {
        gap: 12px;
        /* Pushes the button to the left, leaving clear structural room for the toggle */
        margin-right: 55px; 
    }
    .logo-title {
        font-size: 26px;
    }

    .logo img {
        width: 52px;
        height: 44px;
    }

    .about-section-history{
        flex-direction:column;
        gap:40px;
        margin-left:0;
        margin-right:0;
    }

    .about-image3{
        width:100%;
        position: relative;
        top: 0;
        flex: none;
        padding: 16px;
    }

    .about-image3 img{
        height:auto;
        max-height: 500px;
    }

    .about-content-history h2{
        font-size:32px;
    }
}

/* Extra breakpoint for compact mobile screens */
@media(max-width: 420px) {
    .logo-title {
        display: none; /* Hides the text emblem on tiny devices to prevent overlaps */
    }
    
    .nav-right {
        gap: 8px;
    }
    
    .navbar .button {
        padding: 6px 14px;
        font-size: 13px;
    }
}



/* =======MALANKARA=======*/
/* ======================== ABOUT SECTION ======================== */
.about-section-malankara{
    margin-top:60px;
    border-radius:25px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:70px;
    margin-right: 30px;
}

/* LEFT IMAGE */

.about-image4{
    
    text-align: center;
    position: sticky;
    top: 30px;
    align-self: flex-start;
}

.about-image4 img{
    width: 100%;
    max-width: 450px;
    height: 650px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-top: 20px;
    margin-left: 70px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-info-catholicate{
    margin-top: 12px;
    text-align: center;
    margin-left: 70px;
}

.about-info-catholicate h3{
    font-size: 18px;
    font-weight: 700;
    color: #e76514;
    line-height: 1.4;
    margin-bottom: 5px;
    font-family: "Poppins", sans-serif;
}

.about-info-catholicate p{
    font-size: 15px;
    color:#2a4564;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
}
/* IMAGE INFO */
.about-info{
    margin-top:12px;
    text-align:center;
    margin-left: 70px;
}

.about-info h3{
    font-size:18px;
    font-weight:700;
    color:#e76514;
    line-height:1.4;
    margin-bottom:5px;    
    font-family:"Poppins", sans-serif;
}

.about-info p{
    font-size:12px;
    color:#111;
    font-family:"Poppins", sans-serif;
}

/* RIGHT CONTENT */
.about-content-malankara{
    flex:1;
    padding-top:10px;
}

.about-content-malankara h2{ 
    font-size:38px;
    line-height:1.2;
    color:#2a4564;
    margin-bottom:40px;
    font-family:"Poppins", sans-serif;
    font-weight:700;
    position: relative;
    padding-bottom: 15px;
}
.about-content-malankara h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: #e76514;
    border-radius: 2px;
}
/* PARAGRAPH STYLE */
.about-content-malankara p{
    font-size:13px;
    line-height:1.9;
    color:#111;
    margin-bottom:22px;
    text-align:justify;
    font-family:"Poppins", sans-serif;
    font-weight:400;
}


/* =========================================
   MOBILE RESPONSIVE - ABOUT MALANKARA
========================================= */

@media screen and (max-width: 768px) {

    .about-section-malankara {
        margin-top: 30px;
        margin-right: 0;
        margin-left: 0;
        padding: 0 18px;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 25px;
    }

    /* LEFT IMAGE */

    .about-image4 {
        position: relative;
        top: auto;
        align-self: center;
        width: 100%;
        text-align: center;
    }

    .about-image4 img {
        width: 100%;
        max-width: 350px;
        height: auto;
        max-height: 480px;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border-radius: 6px;
        display: block;
        margin: 0 auto;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    /* IMAGE CAPTION */

    .about-info-catholicate,
    .about-info {
        margin-top: 12px;
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .about-info-catholicate h3,
    .about-info h3 {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 5px;
    }

    .about-info-catholicate p,
    .about-info p {
         font-size: 15px;
    color:#2a4564;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    }

    /* RIGHT CONTENT */

    .about-content-malankara {
        width: 100%;
        flex: none;
        padding-top: 0;
    }

    .about-content-malankara h2 {
        font-size: 27px;
        line-height: 1.3;
        margin-bottom: 25px;
        padding-bottom: 12px;
        text-align: center;
    }

    .about-content-malankara h2::after {
        width: 60px;
        height: 3px;
        margin-left: 120px;
    }

    /* PARAGRAPHS */

    .about-content-malankara p {
        font-size: 13px;
        line-height: 1.8;
        margin-bottom: 18px;
        text-align: justify;
        font-weight: 400;
    }
}

/* =========================================
   SMALL MOBILE SCREENS
========================================= */

@media screen and (max-width: 480px) {

    .about-section-malankara {
        margin-top: 20px;
        padding: 0 15px;
        gap: 20px;
    }

    .about-image4 img {
        max-width: 100%;
        max-height: 420px;
    }

    .about-content-malankara h2 {
        font-size: 24px;
        margin-bottom: 22px;
    }

    .about-content-malankara p {
        font-size: 12px;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    .about-info-catholicate h3,
    .about-info h3 {
        font-size: 15px;
    }
}

/* ======================== PHOTO GALLERY SECTION ======================== */
.gallery-section {
    margin-top: 60px;
    padding: 40px 0px;
    border-top: 1px solid rgba(42, 69, 100, 0.15);
    width: 100%;
}

.gallery-heading {
    font-size: 32px;
    color: #2a4564;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
}

.gallery-heading::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #df5b08;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Card Container */
.gallery-card {
    position: relative;
    height: 360px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(42, 69, 100, 0.2);
}

.gallery-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

/* Overlay gradient text panel */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(42, 69, 100, 0.95) 0%, rgba(42, 69, 100, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Typography inside overlay grid panels */
.gallery-overlay h4 {
    color: #df5b08;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay p {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 0.05s;
}

.gallery-card:hover .gallery-overlay h4,
.gallery-card:hover .gallery-overlay p {
    transform: translateY(0);
}

/* ===== FOOTER ===== */



/* ====SYNOD DETAIL PAGE====*/


/* ======================== PREMIUM STICKY BIOGRAPHY CONTAINER ======================== */
.profile-card-container {
    background: #ffffff;
    border-radius: 32px;
    padding: 50px 60px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
    box-shadow: 0 20px 50px rgba(42, 69, 100, 0.06);
    max-width: 1800px;        
    margin-left: 72px;
    margin-right: 32px;
    position: relative;
    width: auto;
    margin-top: 60px;
}

/* Left Profile Frame Wrapper - STICKY ENGINE */
.profile-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 40px;               
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-image-frame {
    width: 100%;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
}

.profile-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.profile-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.profile-card-container:hover .profile-image-frame img {
    transform: scale(1.03);
}

/* Right Text Editorial Frame Content */
.profile-info-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-info-frame h1 {
    font-size: 34px;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.profile-info-frame .sub-title {
    font-size: 16px;
    font-weight: 600;
    color: #df5b08;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Editorial Content Block Enhancements */
.biography-content {
    margin-bottom: 30px;
}

/* Drop Cap styling for first biography letter */
.biography-content p:first-of-type::first-letter {
    font-size: 55px;
    font-weight: 700;
    color: #1e3a5f;
    float: left;
    line-height: 42px;
    padding-right: 12px;
    padding-top: 4px;
    font-family: inherit;
}

.biography-content p {
    font-size: 14.5px;
    color: #3a4756;
    line-height: 1.9;
    margin-bottom: 24px;
    text-align: justify;
}

/* Stylized Section Header Inside Long Text */
.bio-section-divider {
    font-size: 15px;
    font-weight: 700;
    color: #2a4564;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 35px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bio-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #e2e8f0, transparent);
}

/* Bottom Metadata Box Layout */
.profile-meta-table {
    background: #f8fafc;
    border-radius: 20px;
    padding: 26px 30px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #f1f5f9;
}

.meta-row {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.6;
}

.meta-label {
    flex: 0 0 140px;
    font-weight: 700;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-value {
    flex: 1;
    color: #475569;
}



/* =========================================
   BOOKS HEADING
========================================= */

.books-heading {
    font-size: 17px;
    font-weight: 600;
    color: #1e3a5f;
    line-height: 1.7;
    margin: 35px 0 25px;
    padding-left: 18px;
    border-left: 4px solid #df5b08;
}


/* =========================================
   CONTACT INFORMATION CARD
========================================= */

.contact-info-card {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 30px;
    margin-top: 10px;
}


/* Full width name */

.contact-person {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 17px;
    font-weight: 700;
    color: #1e3a5f;
}

.contact-person i {
    width: 38px;
    height: 38px;
    background: #1e3a5f;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}


/* Contact rows */

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}

.contact-item > i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #df5b08;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item span,
.contact-item a {
    color: #475569;
    text-decoration: none;
    word-break: break-word;
}

.contact-item a:hover {
    color: #df5b08;
}


/* Facebook */

.social-facebook i {
    color: #1877f2;
}

.social-facebook:hover {
    transform: translateY(-2px);
}


/* Instagram */

.social-instagram i {
    color: #df5b08;
}

.contact-item {
    transition: 0.3s ease;
}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .contact-info-card {
        grid-template-columns: 1fr;
        padding: 22px 20px;
        gap: 20px;
    }

    .contact-person {
        font-size: 15px;
    }

    .books-heading {
        font-size: 15px;
        margin-top: 30px;
    }
}
/* ======================== RESPONSIVE VIEWPORTS ======================== */

@media(max-width:1150px){
    .profile-card-container {
        width: auto;
        margin-left: 32px;
        margin-right: 32px;
        padding: 40px;
    }
}

@media(max-width:1024px){
    /* Formats structural framework to stack vertically instead of running horizontally */
    .profile-card-container {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }
    .profile-sidebar-sticky {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 400px;
        align-items: center;
    }
    .profile-image-frame {
        height: 480px;
    }
    .profile-info-frame h1 {
        font-size: 28px;
    }
}

@media(max-width:992px){
    .container{
        padding:30px 16px;
    }
    .navbar {
        margin-bottom: 40px;
        /* Drops down padding slightly so layout handles fixed tracking safely */
        padding-right: 0; 
    }
    .sidebar-toggle{
        top: 28px;
        right: 16px;
    }
    .nav-right {
        gap: 12px;
        /* Pushes the button to the left, leaving clear structural room for the toggle */
        margin-right: 55px; 
    }
    .logo-title {
        font-size: 24px;
    }
    .logo img {
        width: 50px;
        height: 42px;
    }
    .navbar .button {
        padding: 8px 18px;
        font-size: 14px;
    }
    .profile-card-container {
        margin-left: 0;
        margin-right: 0;
    }
}

@media(max-width:576px){
    .profile-card-container {
        padding: 24px 16px;
        border-radius: 24px;
    }
    .profile-sidebar-sticky {
        max-width: 100%;
    }
    .profile-image-frame {
        height: 380px;
        border-radius: 16px;
    }
    /* Converts table metadata tracks to space-conscious stacked elements */
    .meta-row {
        flex-direction: column;
        gap: 4px;
    }
    .meta-label {
        flex: 0 0 auto;
    }
    .profile-info-frame h1 {
        font-size: 24px;
    }
    .profile-info-frame .sub-title {
        margin-bottom: 20px;
    }
    .biography-content p {
        text-align: left;
        font-size: 14px;
    }
    /* Shrinks drop cap so it stays inside mobile text blocks without overflowing bounds */
    .biography-content p:first-of-type::first-letter {
        font-size: 42px;
        line-height: 34px;
        padding-right: 8px;
    }
}

/* Micro Phone Interface Optimization */
@media screen and (max-width: 400px) {
    .logo-title {
        display: none; /* Intelligently hides title string on ultra-small screens to protect navigation layout integrity */
    }
}

/* FOOTER SECTION BLOCKS */


/* ====SYNOD==== */

/* ======================== 2x2 GRID DIRECTORY LAYOUT ======================== */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px 0;
    margin-left: 72px;
    margin-right: 32px;
    margin-top: 60px;
}

.directory-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(42, 69, 100, 0.1);
}

/* Left Side: Image Profile Frame */
.card-image-wrapper {
    width: 160px;
    height: 210px;
    flex: 0 0 160px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image-wrapper img {
    width: 160px;
    height: 210px;
    object-fit: cover;
    object-position: center;
    /* display: block; */
}
/* Right Side: Text & CTA Wrap */
.card-details-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 210px; 
    justify-content: space-between;
}

.card-text-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-text-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #e76514;
    margin-bottom: 12px;
    line-height: 1.2;
}

.card-text-content p {
    font-size: 13px;
    color: #555555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

/* View Details Pill Button Style */
.view-details-btn {
    align-self: flex-start;
    padding: 8px 24px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e3a5f;
    background: transparent;
    border: 2px solid #1e3a5f;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
}

.view-details-btn:hover {
    background: #1e3a5f;
    color: #ffffff;
}

/* ======================== RESPONSIVE VIEWPORTS ======================== */
@media(max-width:1200px){
    .directory-grid {
        margin-left: 32px;
        margin-right: 32px;
        gap: 20px;
    }
    .card-image-wrapper {
        flex: 0 0 140px;
        height: 190px;
    }
    .card-details-wrapper {
        height: 190px;
    }
    .card-text-content h2 {
        font-size: 19px;
    }
}

@media(max-width:992px){
    .container{
        padding:30px 16px;
    }
    .navbar {
        margin-bottom: 40px;
        /* Drops down padding slightly so layout handles fixed tracking safely */
        padding-right: 0; 
    }
    .sidebar-toggle{
        margin-top: 26px;
        right: 16px;
    }
    .nav-right {
        gap: 12px;
        /* Pushes the button to the left, leaving clear structural room for the toggle */
        margin-right: 55px; 
    }
    .logo-title {
        font-size: 24px;
    }
    .logo img {
        width: 50px;
        height: 42px;
    }
    .navbar .button {
        padding: 8px 18px;
        font-size: 14px;
    }
    .directory-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-left: 0;
        margin-right: 0;
    }
}

@media(max-width:768px) {
    .directory-card {
        padding: 20px;
        gap: 20px;
    }
    .card-image-wrapper {
        flex: 0 0 130px;
        height: 180px;
    }
    .card-details-wrapper {
        height: 180px;
    }
    .card-text-content p {
        -webkit-line-clamp: 3;
    }
    /* ===== FOOTER LAYER ===== */
    .footer {
        padding: 50px 20px 0;
    }
    .footer-content {
        grid-template-columns: 1fr; 
        gap: 35px;
        padding-bottom: 35px;
    }
    .footer-col h3,
    .footer-contact h3 {
        margin-bottom: 20px;
    }
    .footer-text {
        margin-top: 15px;
    }
}

@media(max-width:480px){
    .directory-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
        margin-top:25px;
    }
    .card-image-wrapper {
        flex: 0 0 220px;
        width: 100%;
        max-width: 260px;
        height: 260px;
        border-radius: 14px;
    }
    .card-details-wrapper {
        width: 100%;
        height: auto;
        gap: 16px;
        align-items: center;
    }
    .card-text-content h2 {
        font-size: 20px;
    }
    .card-text-content p {
        text-align: center;
        -webkit-line-clamp: 4;
    }
    .view-details-btn {
        align-self: center;
        width: 100%;
        max-width: 200px;
    }
}

/* Safe Scaling for Compact Screens & Mobile Layouts */
@media screen and (max-width: 500px) {
    .navbar {
        gap: 10px;
    }
    .sidebar-toggle {
        top: 24px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    .logo-title {
        font-size: 18px;
    }
    .nav-right {
        gap: 10px; 
        margin-right: 48px; /* Shifts your CTA clean away from fixed elements */
    }
    .navbar .button {
        padding: 6px 14px;
        font-size: 13px;
    }
}

@media screen and (max-width: 400px) {
    .logo-title {
        display: none; 
    }
}

/* ===== FOOTER STYLE BLOCKS ===== */



/* =====THRONE====== */


/* ======================== ABOUT SECTION ======================== */
.about-section-throne {
    margin-top: 60px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-left: 72px;
    margin-right: 32px;
    position: relative;
}

/* LEFT IMAGE */
.about-image5 {
    width: 450px;
    height: 550px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;

    /* IMPORTANT */
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.about-image5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* RIGHT CONTENT */
.about-content-throne {
    flex: 1;
    min-width: 0;
    padding-top: 10px;
}

.about-content-throne h2 {
    font-size: 38px;
    line-height: 1.2;
    color: #2a4564;
    margin-bottom: 40px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.about-content-throne h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: #e76514;
    border-radius: 2px;
}

/* PARAGRAPHS */
.about-content-throne p {
    font-size: 13px;
    line-height: 1.9;
    color: #111;
    margin-bottom: 22px;
    text-align: justify;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

/* TABLET */
@media (max-width: 992px) {
    .about-section-throne {
        margin-left: 30px;
        margin-right: 30px;
        gap: 30px;
    }

    .about-image5 {
        width: 38%;
        height: 480px;
        top: 80px;
    }

    .about-content-throne h2 {
        font-size: 32px;
    }
    .about-content-throne p{
        text-align: justify;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .about-section-throne {
        flex-direction: column;
        margin-left: 20px;
        margin-right: 20px;
        gap: 25px;
    }

    .about-image5 {
        position: relative;
        top: auto;
        width: 100%;
        height: 450px;
    }

    .about-content-throne {
        width: 100%;
    }

    .about-content-throne h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }
}

/* ===== FOOTER ===== */



/* ======================== PHOTO GALLERY SECTION ======================== */
.gallery-section {
    margin-top: 60px;
    padding: 40px 0px;
    border-top: 1px solid rgba(42, 69, 100, 0.15);
    width: 100%;
}

.gallery-heading {
    font-size: 32px;
    color: #2a4564;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
}

.gallery-heading::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #df5b08;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Card Container */
.gallery-card {
    position: relative;
    height: 360px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(42, 69, 100, 0.2);
}

.gallery-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

/* Overlay gradient text panel */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(42, 69, 100, 0.95) 0%, rgba(42, 69, 100, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/* Typography inside overlay grid panels */
.gallery-overlay h4 {
    color: #df5b08;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay p {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 0.05s;
}

.gallery-card:hover .gallery-overlay h4,
.gallery-card:hover .gallery-overlay p {
    transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer{
  background:   #0b305c;        
  color:#fff;
  padding:80px 8% 0;
  position:relative;
  overflow:hidden;
}

.footer-content{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:50px;
  padding-bottom:50px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}

.footer-col h3,
.footer-contact h3{
  font-size:22px;
  font-weight:700;
  margin-bottom:30px;
  position:relative;
}

.footer-col h3::after,
.footer-contact h3::after{
  content:"";
  width:50px;
  height:3px;
  background:#fff;
  position:absolute;
  left:0;
  bottom:-8px;
  border-radius:10px;
}

.footer-about{
  max-width:320px;
}
 /* =========================================================
   FOOTER LOGO ROW
========================================================= */
.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    background: transparent;
}


.footer-logo-row img {
    width: 110px;
    height: 110px;

    object-fit: contain;
    flex-shrink: 0;

    border-radius: 50%;
    background: #ffffff;

    padding: 2px;
    box-sizing: border-box;
}


.footer-church-name {
    margin: 0;
    padding: 0;

    flex: 1;

    color: #ffffff;
    background: transparent;

    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;

    border-radius: 0;
}

.footer-text{
  color:#cbd5e1;
  font-size:15px;
  line-height:1.9;
  margin-top: 35px;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
}

.footer-links li{
  margin-bottom:14px;
}

.footer-links a{
  text-decoration:none;
  color:#cbd5e1;
  font-size:15px;
  transition:0.3s ease;
  position:relative;
}

.footer-links a:hover{
  color:#e76514;
  padding-left:8px;
}

.footer-contact{
  display:flex;
  flex-direction:column;
}

.contact-info{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.contact-info p{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin:0;
  color:#cbd5e1;
  font-size:15px;
  line-height:1.7;
}

.contact-info i{
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  transition:0.3s ease;
  font-size:15px;
}

.contact-info p:hover i{
  background:#e76514;
  color:#0f172a;
  transform:translateY(-3px);
}

.footer-social{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  margin-top:30px;
}

.footer-social a{
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
  transition:0.3s ease;
  font-size:16px;
}

.footer-social a:hover{
  background:#e76514;
  color:#000;
  transform:translateY(-4px);
}

.bottom-bar{
  text-align:center;
  padding:22px ;
}

.bottom-bar p{
  margin:0;
  color:#94a3b8;
  font-size:14px;
  line-height:1.1;
}

.bottom-bar a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
}

.bottom-bar a:hover{
  color:#00d4ff;
}

/* ======================== UNIFIED RESPONSIVE MEDIA ======================= */


@media(max-width:992px){
    .container{
        padding:30px 16px;
    }
    .navbar {
        margin-bottom: 40px;
        /* Drops down padding slightly so layout handles fixed tracking safely */
        padding-right: 0; 
    }
    .sidebar-toggle{
        top: 28px;
        right: 16px;
    }
    .nav-right {
        gap: 12px;
        /* Pushes the button to the left, leaving clear structural room for the toggle */
        margin-right: 55px; 
    }

    .logo-title {
        font-size: 24px;
    }

    .logo img {
        width: 52px;
        height: 44px;
    }

    .about-section-bathery{
        flex-direction:column;
        gap:40px;
        padding:20px 0;
        margin-right: 0;
    }

    .about-image6{
        width:100%;
        flex: none;
    }

    .about-image6 img{
        height:auto;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-top: 0;
    }
    
    .about-info {
        margin-left: 0;
    }

    .about-content-bathery h2{
        font-size:34px;
        text-align:center;
        margin-bottom: 25px;
    }

    .about-content-bathery p{
        font-size:14px;
    }
    
    .gallery-section {
        margin-top: 40px;
        padding: 20px 0;
    }
    
    .gallery-heading {
        font-size: 28px;
    }
    
    .gallery-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media(max-width:768px){
   .footer{
     padding:60px 6% 0;
   }

   .footer-content{
     gap:40px;
     grid-template-columns: 1fr;
   }

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {

    .footer-logo-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .footer-logo-row img {
        width: 90px;
        height: 90px;
    }

    .footer-church-name {
        font-size: 14px;
        line-height: 1.5;
        max-width: 180px;
    }

}

   .footer-col h3,
   .footer-contact h3{
     font-size:20px;
     margin-bottom: 20px;
   }

   .footer-text,
   .footer-links a,
   .contact-info p{
     font-size:14px;
   }

   .footer-social{
     margin-top:20px;
   }

   .sidebar {
       width: 100%;
       max-width: 300px;
   }
}

@media screen and (max-width: 440px) {
    .logo-title {
        display: none; 
    }
    
    .nav-right {
        gap: 10px; /* Snugs the spacing tightly on compact mobile viewports */
    }
    
    .navbar .button {
        padding: 6px 14px;
        font-size: 13px;
    }
}

   /* .diocese-glance {
    width: 1200px;
    margin-left: 88px;
    margin-top: 70px;
    border-radius:10px; 
    overflow: hidden;  
}
    .diocese-glance h3 {
    background: #C8A45D;
    background: linear-gradient(135deg, #C8A45D 0%, #b28e46 100%);
    color: #ffffff;
    margin: 0;
    padding: 22px 30px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}
.glance-grid {
    display: block;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.glance-item {
    display: grid;
    grid-template-columns: 35% 65%;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.glance-item:last-child {
    border-bottom: none;
}

.glance-item .label {
    grid-row: 1 / span 20; 
    background: #f8fafc;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    border-right: 1px solid #e2e8f0;
}

.glance-item .value {
    grid-column: 2; 
    padding: 12px 20px;
    color: #444;
}

.glance-item .value:first-of-type {
    padding-top: 16px;
}

.glance-item .value:last-of-type {
    padding-bottom: 16px;
}


.glance-item .value:not(:first-of-type) {
    border-top: 1px dashed #f1f3f5; 
}

@media (max-width: 768px) {
    .glance-item {
        display: block;
    }
    .glance-item .label {
        border-right: none;
        width: 100%;
        padding-bottom: 8px;
    }
    .glance-item .value {
        width: 100%;
        padding: 6px 20px;
    }
    .glance-item .value:last-of-type {
        padding-bottom: 16px;
    }
} */

.glance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 30px;
    margin-top: 20px;
}

.glance-item {
    display: flex;
    flex-direction: column;
}

.glance-item .label {
    color: #2a4564;/* Dark red/maroon for headings */
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.glance-item .value {
    color: #333;
    font-size:13px;
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .glance-grid {
        grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .glance-grid {
        grid-template-columns: 1fr; /* Stacked on mobile */
    }
}
/* ==================COMMITTE=============== */

/* =========================
    PROFILE SECTION
========================= */

.profile-section{
    padding:80px 20px;
    margin-top: 10px;
    text-align:center;
    position:relative;
    overflow:hidden;
}

.profile-section::before{
    content:"";
    position:absolute;
    top:-200px;
    right:-100px;
    width:500px;
    height:500px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(231,101,20,0.06) 0%, rgba(231,101,20,0) 70%);
    pointer-events:none;
}

.profile-section::after{
    content:"";
    position:absolute;
    bottom:-200px;
    left:-100px;
    width:450px;
    height:450px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(42,69,100,0.05) 0%, rgba(42,69,100,0) 70%);
    pointer-events:none;
}

.section-title{
    font-size:32px;
    font-weight:600;
    color:#2a4564;
    position:relative;
    display:inline-block;
    margin-bottom:50px;
}

.section-title::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-15px;
    width:70px;
    height:4px;
    background:#e76514;
    transform:translateX(-50%);
    border-radius:20px;
}



.profile-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
    max-width:1200px;
    margin:auto;
    position:relative;
    z-index:2;
}

@media(max-width:992px){
    .profile-container{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .profile-container{
        grid-template-columns:1fr;
    }

    .section-title{
        font-size:32px;
    }
}

/* Card */

.profile-card{
    background:rgba(255,255,255,0.95);
    border-radius:30px;
    padding:35px 25px;
    box-shadow:
        0 20px 35px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.04);
    transition:all .35s ease;
    position:relative;
}

.profile-card:hover{
    transform:translateY(-10px);
    box-shadow:
        0 30px 50px rgba(0,0,0,0.15),
        0 0 0 1px rgba(231,101,20,0.12);
}


.profile-img{
    width:180px;
    height:230px;
    object-fit:cover;
    border-radius:15px;
    padding:6px;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
    transition:.4s ease;
}

.profile-card:hover .profile-img{
    transform:scale(1.05);
}


.profile-name{
    margin:20px 0 10px;
    font-size:20px;
    font-weight:700;
    color:#2a4564;
    line-height:1.3;
}

.profile-position{
    display:inline-block;
    background:rgba(231,101,20,.1);
    color:#e76514;
    padding:8px 18px;
    border-radius:50px;
    font-size:13px;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:15px;
}



.profile-family{

    border-top:1px solid rgba(0,0,0,.08);
    padding-top:15px;
    margin-top:10px;
    font-size:15px;
    color:#777;
    font-style:italic;
    line-height:1.6;
}

/* =================COUNCIL================= */


.profile-section-council{
    padding:80px 20px;
    text-align:center;
    margin-top: 10px;
}

.profile-section-council h2{
    font-size:32px;
    font-weight:600;
    color:#2a4564;
    position:relative;
    display:inline-block;   
}

.profile-section-council h2::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-15px;
    width:70px;
    height:4px;
    background:#e76514;
    transform:translateX(-50%);
    border-radius:20px;
}

/* ==========================
   CARD GRID
========================== */

.profile-container-council{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    max-width:1200px;
    margin:40px auto;
    padding:0 20px;
}

/* ==========================
   CARD DESIGN
========================== */

.profile-card-council{
    background:#fff;
    border-radius:25px;
    padding:40px 20px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
    transition:.3s ease;
    border:1px solid rgba(0,0,0,.05);
}

.profile-card-council:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.10);
}

/* ==========================
   IMAGE
========================== */

/* ==========================
   PROFILE IMAGE
========================== */

.profile-card-council .profile-img {
    width: 190px;
    height: 190px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center top;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 auto 20px;
    display: block;
}
/* ==========================
   TYPOGRAPHY
========================== */

.profile-name{
    margin:10px 0;
    font-size:1.25rem;
    font-weight:700;
    color:#2a4564;
    line-height:1.4;
}

.profile-position{
    display:inline-block;
    background:rgba(255,123,41,.1);
    color:#ff7b29;
    padding:6px 16px;
    border-radius:30px;
    font-size:.85rem;
    font-weight:600;
    text-transform:uppercase;
    margin-bottom:12px;
}

.profile-family{
    font-style:italic;
    color:#777;
    font-size:.9rem;
    line-height:1.6;
}

/* ==========================
   TABLET
========================== */

@media (max-width:992px){

    .profile-container-council{
        grid-template-columns:repeat(2,1fr);
        gap:25px;
    }

}

/* ==========================
   MOBILE
========================== */

@media (max-width:768px){

    .profile-section-council{
        padding:60px 15px;
    }

    .profile-section-council h2{
        font-size:28px;
        margin-bottom:35px;
    }

    .profile-container-council{
        grid-template-columns:1fr;
        gap:25px;
        padding:0;
    }

    .profile-card-council{
        padding:30px 20px;
        border-radius:20px;
    }

    .profile-card-council .profile-img{
        width:150px;
        height:150px;
    }

    .profile-name{
        font-size:1.15rem;
    }

    .profile-position{
        font-size:.8rem;
        padding:6px 14px;
    }

    .profile-family{
        font-size:.9rem;
    }

}
/*=============== DIOCESE HISTORY============== *//* ==========================
   ABOUT SECTION
========================== */

.about-section{
    padding:60px;
    background:#ffffff;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
    margin-left:70px;
    margin-right:30px;
    margin-top: 60px;
}

.about-image7{
    width:100%;
    margin-bottom:50px;
    text-align:center;
}

.about-image7 img{
    width:100%;
    height: 500px;
    object-fit:fill;
    border-radius:15px;
}

.about-info{
    margin-top:20px;
    padding-bottom:10px;
    display:inline-block;
}

.about-info h3{
    font-size:32px;
    font-weight:600;
    color:#2a4564;
    position:relative;
    display:inline-block;
    margin-bottom:50px;
    margin-left: -70px;
}

.about-info h3::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-15px;
    width:70px;
    height:4px;
    background:#e76514;
    transform:translateX(-50%);
    border-radius:20px;
}

.about-info p{
    font-size:13px;
    line-height:1.7;
    color:#111;
    margin-bottom:22px;
    text-align:justify;
    font-family:"Poppins",sans-serif;
    font-weight:400;
}
.about-content {
    margin-top: -40px;
}
.about-content h2{
    font-size:36px;
    color:#1e293b;
    margin-bottom:40px;
    text-align:center;
}

/* ==========================
   INTRO BOX
========================== */

.intro-box{
    background:#f8fafc;
    border-left:4px solid #e76514;
    padding:30px;
    margin-bottom:40px;
    border-radius:0 10px 10px 0;
}

.intro-box p{
    font-size:13px;
    line-height:1.7;
    color:#111;
    margin-bottom:0;
    text-align:justify;
    font-family:"Poppins",sans-serif;
    font-weight:400;
}

/* ==========================
   HISTORY SECTION
========================== */

.history-card{
    border:none;
    box-shadow:none;
    border-bottom:1px solid #e2e8f0;
    margin-bottom:30px;
    padding-bottom:30px;
    border-radius:0;
}

.history-card:hover{
    transform:none;
}

.history-card h3{
    color:#2a4564;
    font-size:20px;
    margin-bottom:10px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.history-card p{
    font-size:13px;
    line-height:1.9;
    color:#334155;
    text-align:justify;
}

/* ==========================
   LARGE TABLET
========================== */

@media(max-width:1200px){

    .container{
        padding:40px;
    }

    .about-section{
        margin-left:20px;
        margin-right:20px;
        padding:40px;
    }

}

/* ==========================
   TABLET
========================== */

@media(max-width:992px){

    .container{
        padding:30px 16px;
    }

    .about-section{
        margin-left:0;
        margin-right:0;
        padding:35px 25px;
    }

    .about-content h2{
        font-size:32px;
    }

    .about-info h3{
        font-size:30px;
        
    }

}

/* ==========================
   MOBILE
========================== */

@media(max-width:768px){

    .about-section{
        padding:25px 15px;
        margin-left:0;
        margin-right:0;
        border-radius:15px;
    }

    .about-image7{
        margin-bottom:25px;
    }

    .about-image7 img{
        width:100%;
        height:auto;
        max-height:none;
        border-radius:12px;
    }

    .about-info{
        width:100%;
        display:block;
        text-align:center;
    }

    .about-info h3{
        font-size:28px;
        margin-bottom:30px;
        margin-left:20px;
    }

    .about-info p{
        font-size:15px;
        line-height:1.8;
        text-align:justify;
    }

    .about-content h2{
        font-size:28px;
        margin-bottom:25px;
    }

    .intro-box{
        padding:20px;
        margin-bottom:25px;
    }

    .intro-box p{
        font-size:15px;
        line-height:1.8;
        text-align:left;
    }

    .history-card{
        margin-bottom:20px;
        padding-bottom:20px;
    }

    .history-card h3{
        font-size:18px;
        line-height:1.4;
        text-align:center;
    }

    .history-card p{
        font-size:15px;
        line-height:1.8;
        text-align:justify;
    }
}

/* ==========================
   SMALL MOBILE
========================== */

@media(max-width:480px){

    .about-section{
        padding:20px 12px;
    }

    .about-info h3{
        font-size:24px;
    }

    .about-content h2{
        font-size:24px;
    }

    .history-card h3{
        font-size:16px;
    }

    .about-info p,
    .intro-box p,
    .history-card p{
        font-size:14px;
    }
}
/* =========================
   ABOUT
========================= */


/* METROPOLITANCE */

/* =====================================================
   METROPOLITAN CONTAINER
===================================================== */

.metropolitan-container {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 20px;
    box-sizing: border-box;
}


/* =====================================================
   EACH METROPOLITAN ENTRY
===================================================== */

.metropolitan-entry {
    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: flex-start;

    gap: 50px;

    margin: 0 0 80px 0;
    padding: 0;

    box-sizing: border-box;
}


/* =====================================================
   IMAGE CONTAINER
===================================================== */
.meta-portrait {
    width: 400px;
    max-width: 400px;
    height: 600px;
    flex: 0 0 400px;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.meta-portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
}


/* =====================================================
   INFORMATION
===================================================== */

.meta-info {
    width: auto;

    flex: 1;

    margin: 0;
    padding: 0 0 30px 0;

    border: none;

    border-bottom: 1px solid #e2e8f0;

    box-shadow: none;

    border-radius: 0;

    box-sizing: border-box;
}


/* =====================================================
   NAME
===================================================== */

.meta-info h2 {
    margin: 0 0 10px;

    font-size: 32px;

    line-height: 1.35;

    color: #2a4564;

    font-weight: 700;
}


/* =====================================================
   DESIGNATION
===================================================== */

.meta-info h4 {
    margin: 0 0 25px;

    font-size: 15px;

    line-height: 1.5;

    color: #e76514;

    text-transform: uppercase;

    letter-spacing: 2px;
}


/* =====================================================
   DESCRIPTION
===================================================== */

.meta-info p {
    width: 100%;

    margin: 0 0 18px;

    font-size: 13px;

    line-height: 1.9;

    color: black;

    text-align: justify;

    overflow-wrap: break-word;
}


/* =====================================================
   MOBILE VIEW
===================================================== */

@media (max-width: 768px) {

    .metropolitan-container {
        width: 100%;
        max-width: 100%;

        margin: 20px auto 100px;

        padding: 0 12px;

        box-sizing: border-box;
    }


    /* EACH ENTRY */

    .metropolitan-entry {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 18px;

        margin: 0 0 45px 0;

        padding: 0;

        box-sizing: border-box;
    }


    /* IMAGE CONTAINER */

    .meta-portrait {
        width: 100%;
        max-width: 350px;

        height: auto;

        flex: none;

        margin: 0 auto;
        padding: 0;

        overflow: hidden;

        border-radius: 8px;

        box-sizing: border-box;
    }


    /* IMAGE */

    .meta-portrait img {
        width: 100%;
        height: auto;

        display: block;

        margin: 0;
        padding: 0;

        object-fit: contain;
        object-position: center center;

        border-radius: 8px;
    }


    /* INFORMATION */

    .meta-info {
        width: 100%;
        max-width: 350px;

        margin: 0 auto;

        padding: 0 5px 25px;

        box-sizing: border-box;

        flex: none;

        border: none;

        border-bottom: 1px solid #e2e8f0;

        box-shadow: none;

        border-radius: 0;
    }


    /* NAME */

    .meta-info h2 {
        margin: 0 0 8px;

        font-size: 23px;

        line-height: 1.35;

        color: #2a4564;

        text-align: center;

        font-weight: 700;
    }


    /* DESIGNATION */

    .meta-info h4 {
        margin: 0 0 18px;

        font-size: 12px;

        line-height: 1.5;

        color: #e76514;

        text-align: center;

        text-transform: uppercase;

        letter-spacing: 1.3px;
    }


    /* DESCRIPTION */

    .meta-info p {
        width: 100%;

        margin: 0;

        font-size: 14px;

        line-height: 1.8;

        color: black;

        text-align: left;

        overflow-wrap: break-word;
    }

}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 480px) {

    .metropolitan-container {
        width: 100%;

        margin: 15px auto 110px;

        padding: 0 10px;
    }


    .metropolitan-entry {
        width: 100%;

        gap: 16px;

        margin: 0 0 40px 0;
    }


    /* IMAGE */

    .meta-portrait {
        width: 100%;

        max-width: 100%;

        height: auto;

        margin: 0;
        padding: 0;

        overflow: hidden;

        border-radius: 8px;
    }


    .meta-portrait img {
        width: 100%;

        height: auto;

        margin: 0;
        padding: 0;

        display: block;

        object-fit: contain;

        object-position: center center;

        border-radius: 8px;
    }


    /* INFORMATION */

    .meta-info {
        width: 100%;

        max-width: 100%;

        padding: 0 5px 22px;
    }


    .meta-info h2 {
        font-size: 21px;

        line-height: 1.35;
    }


    .meta-info h4 {
        font-size: 11px;

        letter-spacing: 1px;

        margin-bottom: 15px;
    }


    .meta-info p {
        font-size: 13.5px;

        line-height: 1.8;

        text-align: justify;
    }

}


/*================= PRIEST DIRECTORY================= */
    .priest-dir-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.priest-dir-card {
    width: 100%;
    max-width: 680px;
    height: 320px;          /* Fixed card height */
    background: #fff;
    border-radius: 12px;
    border-top: 8px solid #e76514;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    display: flex;
    padding: 20px;
    gap: 20px;
    transition: .3s;
    overflow: hidden;
    margin: 0 auto;
}

.priest-dir-card:hover {
    transform: translateY(-5px);
}

.priest-dir-img-box {
    width: 220px;
    height: 270px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.priest-dir-img-box img {
    width: 100%;
    height: 100%;
   
    object-position: center;
}

.priest-dir-info-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.priest-dir-info-box p {
    font-size: 13px;
}

.priest-dir-name {
    font-size: 1.25rem;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    color: #2a4564;
    font-weight: 700;
    display: inline-block;
    width: 100%;
    border-bottom: 1px solid #2a4564;
}

/* Added a small margin to individual text items for better readability */
.priest-dir-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    line-height: 1.5;
    color: #636e72;
}

.priest-dir-text i {
    width: 20px;
    min-width: 20px;
    text-align: center;
    margin-top: 3px;
    color: #2a4564;
}

.priest-dir-text span {
    flex: 1;
}

.priest-dir-label {
    font-size: 0.7rem;
    color: #e76514;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.priest-dir-text {
    font-size: 0.95rem;
    color: #636e72;
    margin: 2px 0 0 0;
}

.priest-dir-text i {
    margin-right: 10px;
    width: 20px;
    font-size: 16px;
}

/* Church */
.church-icon {
    color: #2a4564;
}

/* Address */
.location-icon {
    color: #2a4564;
}

/* Phone */
.phone-icon {
    color: #2a4564;
}

/* ========================================
   PRIEST ROLE BADGE - REDUCED WIDTH
======================================== */
.priest-dir-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e76514, #ff9f43);
    color: #fff;
    padding: 4px 12px;          /* Reduced padding from 6px 14px to 4px 12px */
    border-radius: 20px;
    font-size: 0.75rem;         /* Reduced from 0.85rem */
    font-weight: 600;
    margin-bottom: 12px;        /* Reduced from 15px */
    box-shadow: 0 3px 10px rgba(231, 101, 20, 0.25);
    max-width: fit-content;     /* Makes badge only as wide as content */
}

.priest-dir-role i {
    font-size: 0.7rem;          /* Reduced from 0.8rem */
}

/* ========================================
   PROFILE BUTTON - FIXED POSITION AT BOTTOM
======================================== */
.priest-dir-profile-btn {
    display: inline-block;
    background: #2a4564;
    color: #fff;
    padding: 8px 22px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
    transition: background 0.3s;
}

.priest-dir-profile-btn:hover {
    background: #c2540d;
}

.priest-section {
    margin-bottom: 60px;
    margin-top: 60px;
}




/* ================= EMPTY PRIEST STATE ================= */

.priest-empty-state {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    grid-column: 1 / -1;
}

.priest-empty-card {
    width: 100%;
    max-width: 620px;
    padding: 45px 30px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(42, 69, 100, 0.12);
    border-radius: 22px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.07),
        0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Decorative top line */
.priest-empty-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #2a4564,
        #c2540d,
        #2a4564
    );
}

/* Decorative circle */
.priest-empty-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(42, 69, 100, 0.035);
    top: -70px;
    right: -60px;
}

.priest-empty-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 69, 100, 0.08);
    color: #2a4564;
    font-size: 34px;
    border: 1px solid rgba(42, 69, 100, 0.12);
}

.priest-empty-icon i {
    font-size: 34px;
}

.priest-empty-title {
    margin: 0 0 10px;
    font-family: "Rubik", sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #2a4564;
}

.priest-empty-text {
    margin: 0 auto;
    max-width: 470px;
    font-family: "Georgia", serif;
    font-size: 15px;
    line-height: 1.7;
    color: #777;
}

/* Small decorative divider */
.priest-empty-divider {
    width: 55px;
    height: 3px;
    margin: 18px auto;
    border-radius: 10px;
    background: #c2540d;
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .priest-empty-state {
        min-height: 240px;
        padding: 20px 12px;
    }

    .priest-empty-card {
        padding: 38px 20px;
        border-radius: 18px;
    }

    .priest-empty-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 18px;
    }

    .priest-empty-icon i {
        font-size: 28px;
    }

    .priest-empty-title {
        font-size: 21px;
    }

    .priest-empty-text {
        font-size: 14px;
        line-height: 1.6;
    }
}


/* ========================================
   SECTION TITLES - CENTERED
======================================== */
.section-title-priest {
    font-size: 32px;
    font-weight: 600;
    color: #2a4564;
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
    text-align: center;
    width: 100%;
}

.section-title-priest::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 70px;
    height: 4px;
    background: #e76514;
    transform: translateX(-50%);
    border-radius: 20px;
}

.section-title-retired {
    font-size: 32px;
    font-weight: 600;
    color: #2a4564;
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
    text-align: center;
    width: 100%;
}

.section-title-retired::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 70px;
    height: 4px;
    background: #e76514;
    transform: translateX(-50%);
    border-radius: 20px;
}

.section-title-students {
    font-size: 32px;
    font-weight: 600;
    color: #2a4564;
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
    text-align: center;
    width: 100%;
}

.section-title-students::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 70px;
    height: 4px;
    background: #e76514;
    transform: translateX(-50%);
    border-radius: 20px;
}


.priest-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 75px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #555555;
    background: #e5e5e5;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .priest-dir-grid {
        gap: 20px;
        padding: 30px;
    }
    
    .priest-dir-card {
        height: 300px;
    }
    
    .priest-dir-img-box {
        width: 180px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .priest-dir-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .priest-dir-card {
        height: 280px;
        padding: 16px;
        gap: 16px;
    }
    
    .priest-dir-img-box {
        width: 140px;
        height:150px;
    }
    
    .priest-dir-name {
        font-size: 1rem;
        margin: 0 0 10px 0;
    }
    
    .priest-dir-role {
        font-size: 0.65rem;
        padding: 3px 10px;
        margin-bottom: 8px;
    }
    
    .priest-dir-text {
        font-size: 0.75rem;
        gap: 8px;
        margin-bottom: 4px;
    }
    
    .priest-dir-text i {
        font-size: 12px;
        width: 16px;
        min-width: 16px;
    }
    
    .priest-dir-profile-btn {
        font-size: 0.7rem;
        padding: 6px 16px;
    }
    
    .section-title-priest,
    .section-title-retired,
    .section-title-students {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .priest-dir-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
    }
    
    .priest-dir-card {
        height: auto;
        min-height: 260px;
        flex-direction: column;
        padding: 16px;
        gap: 14px;
        max-width: 100%;
    }
    
    .priest-dir-img-box {
        width: 100%;
        height: 300px;
    }
    
    .priest-dir-info-box {
        height: auto;
    }
    
    .priest-dir-name {
        font-size: 1.1rem;
        margin: 0 0 8px 0;
    }
    
    .priest-dir-role {
        font-size: 0.7rem;
        padding: 3px 10px;
        margin-bottom: 8px;
    }
    
    .priest-dir-text {
        font-size: 0.85rem;
        gap: 10px;
        margin-bottom: 4px;
    }
    
    .priest-dir-text i {
        font-size: 14px;
        width: 18px;
        min-width: 18px;
    }
    
    .priest-dir-profile-btn {
        font-size: 0.75rem;
        padding: 8px 20px;
        margin-top: 10px;
    }
    
    .section-title-priest,
    .section-title-retired,
    .section-title-students {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .section-title-priest::after,
    .section-title-retired::after,
    .section-title-students::after {
        width: 50px;
        bottom: -10px;
    }
}

/*+++++++++++++++++++++++++ PARISH++++++++++++++++++++++ */

 :root {
            --primary: #2a4564;
            --primary-light: #3a5a7a;
            --primary-dark: #1a2a3a;
            --accent: #dd7e43;
            --accent-hover: #c96a30;
            --accent-light: #fef3ee;
            --bg-main: #f4f7fb;
            --bg-white: #ffffff;
            --text-dark: #1a2a3a;
            --text-muted: #6b7a8a;
            --text-light: #9aaab8;
            --border-color: #e8edf4;
            --shadow-sm: 0 2px 8px rgba(42, 69, 100, 0.06);
            --shadow-md: 0 4px 20px rgba(42, 69, 100, 0.08);
            --shadow-lg: 0 8px 40px rgba(42, 69, 100, 0.12);
            --shadow-hover: 0 12px 48px rgba(42, 69, 100, 0.15);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 20px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

       

     

        /* ========================================
           CHURCH SECTION
        ======================================== */
        .church-section {
            max-width: 1200px;
            margin: 100px auto 60px;
            padding: 0 24px;
        }

        .church-section-header {
            text-align: center;
            margin-bottom: 48px;
        }

        .church-section-title {
            font-size: 42px;
            font-weight: 800;
            color: var(--text-dark);
            letter-spacing: -0.02em;
            display: inline-flex;
            align-items: center;
            gap: 14px;
            position: relative;
        }

        .church-section-title i {
            color: var(--accent);
            font-size: 38px;
        }

        .church-section-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--accent), var(--primary));
            border-radius: 2px;
        }

        .church-section-subtitle {
            font-size: 16px;
            color: var(--text-muted);
            margin-top: 16px;
        }

        /* ========================================
           CHURCH LIST GRID
        ======================================== */
        .church-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 30px;
            align-items: stretch;
        }

        /* ========================================
           CHURCH CARD
        ======================================== */
        .church-card {
            background: var(--bg-white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            position: relative;
            height: 100%;
            min-height: 420px;
        }

        .church-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
            border-color: var(--accent);
        }

        /* ===== IMAGE ===== */
        .church-image-box {
            width: 100%;
            height: 220px;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
            background: var(--bg-main);
        }

        .church-image-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transition: var(--transition);
            display: block;
        }

        .church-card:hover .church-image-box img {
            transform: scale(1.05);
        }

        /* ===== FALLBACK IMAGE ===== */
        .church-image-box .fallback-image {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            position: relative;
        }

        .church-image-box .fallback-image i {
            opacity: 0.4;
            font-size: 72px;
        }

        .church-image-box .fallback-image .fallback-text {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 14px;
            font-weight: 600;
            opacity: 0.8;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-align: center;
            width: 90%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* ===== IMAGE OVERLAY ===== */
        .church-image-box .image-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 40px 20px 14px;
            background: linear-gradient(transparent, rgba(26, 42, 58, 0.7));
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }

        .church-image-box .image-overlay .church-badge {
            background: var(--accent);
            color: white;
            padding: 5px 16px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            backdrop-filter: blur(4px);
            background: rgba(221, 126, 67, 0.92);
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        }

        .church-image-box .image-overlay .church-badge i {
            font-size: 12px;
            margin-right: 5px;
        }

        /* ===== INFO BOX ===== */
        .church-info-box {
            padding: 20px 22px 22px;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        /* ===== CONTENT AREA ===== */
        .church-content-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .header-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
        }

        .church-name {
            font-size: 19px;
            font-weight: 700;
            color: var(--text-dark);
            margin: 0;
            line-height: 1.2;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            max-height: 46px;
        }

        .church-name a {
            color: var(--text-dark);
            text-decoration: none;
            transition: var(--transition);
        }

        .church-name a:hover {
            color: var(--accent);
        }

        /* ===== LOCATION ===== */
        .location-text {
            font-size: 13px;
            color: var(--text-muted);
            margin: 0;
            display: flex;
            align-items: flex-start;
            gap: 6px;
            min-height: 20px;
        }

        .location-text i {
            color: var(--accent);
            flex-shrink: 0;
            margin-top: 2px;
            font-size: 13px;
        }

        .location-text .location-address {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-word;
            max-height: 38px;
            line-height: 1.4;
        }

        /* ===== VICAR ===== */
        .vicar-text {
            font-size: 13px;
            color: var(--accent);
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .vicar-text i {
            font-size: 13px;
            flex-shrink: 0;
        }

        .vicar-text .no-vicar {
            color: var(--text-light);
            font-weight: 400;
            font-style: italic;
        }

        /* ===== DETAILS ROW ===== */
        .church-details-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            border-top: 1px solid var(--border-color);
            padding-top: 10px;
            margin-top: 4px;
            gap: 4px;
        }

        .detail-item {
            text-align: center;
            overflow: hidden;
        }

        .detail-item span {
            display: block;
            font-size: 9px;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .detail-item strong {
            display: block;
            font-size: 13px;
            color: var(--text-dark);
            font-weight: 600;
            margin-top: 2px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* ===== BUTTON ROW ===== */
        .btn-row {
            display: flex;
            gap: 8px;
            margin-top: 10px;
            padding-top: 8px;
            border-top: 1px solid var(--border-color);
        }

        .btn-main {
            background: var(--primary);
            color: white;
            padding: 10px 20px;
            border-radius: var(--radius-sm);
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            flex-grow: 1;
            text-align: center;
            transition: var(--transition);
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 42px;
        }

        .btn-main:hover {
            background: var(--primary-light);
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(42, 69, 100, 0.25);
            color: white;
        }

        .btn-main i {
            font-size: 13px;
            transition: var(--transition);
        }

        .btn-main:hover i {
            transform: translateX(4px);
        }

        /* ========================================
           EMPTY STATE
        ======================================== */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            grid-column: 1 / -1;
        }

        .empty-state i {
            font-size: 64px;
            color: var(--text-light);
            margin-bottom: 16px;
        }

        .empty-state h4 {
            font-size: 22px;
            color: var(--text-dark);
            font-weight: 700;
        }

        .empty-state p {
            color: var(--text-muted);
            font-size: 16px;
        }

        /* ========================================
           RESPONSIVE
        ======================================== */
        @media (max-width: 992px) {
            .church-section {
                margin: 80px auto 40px;
                padding: 0 20px;
            }

            .church-section-title {
                font-size: 34px;
            }

            .church-list {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 24px;
            }

            .church-image-box {
                height: 200px;
            }
        }

        @media (max-width: 768px) {
            .church-section {
                margin: 70px auto 30px;
                padding: 0 16px;
            }

            .church-section-title {
                font-size: 28px;
            }

            .church-section-title i {
                font-size: 28px;
            }

            .church-list {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .church-image-box {
                height: 200px;
            }

            .church-info-box {
                padding: 16px 18px 18px;
            }

            .church-name {
                font-size: 17px;
                max-height: 40px;
            }

            .church-details-row {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 480px) {
            .church-section-title {
                font-size: 22px;
            }

            .church-section-title i {
                font-size: 22px;
            }

            .church-image-box {
                height: 180px;
            }

            .church-info-box {
                padding: 14px 14px 16px;
                gap: 4px;
            }

            .church-name {
                font-size: 15px;
                max-height: 36px;
            }

            .church-details-row {
                grid-template-columns: repeat(3, 1fr);
                padding-top: 8px;
            }

            .detail-item strong {
                font-size: 12px;
            }

            .detail-item span {
                font-size: 8px;
            }

            .btn-row {
                flex-direction: column;
                gap: 6px;
            }

            .btn-main {
                font-size: 12px;
                padding: 8px 14px;
                min-height: 38px;
            }

            .location-text {
                font-size: 12px;
            }

            .vicar-text {
                font-size: 12px;
            }

            .church-image-box .image-overlay .church-badge {
                font-size: 10px;
                padding: 3px 12px;
            }
        }

/* BASKIYOMO ASSOCIATION =====BALIKA===========*/


/* ================ BALIKA BALA SANGAM ============ */
.sangam-section {
    padding: 60px 20px;
    background: #f5f7fa;
    margin: 0; 
    margin-top: 60px;
    border-radius: 20px;
}

.sangam-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* LEFT CONTENT */
.text-side {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}
.text-side li {
    color: #2a4564;
}

/* RIGHT SIDE & CARDS */
.photo-side {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.leader-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.leader-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.role-badge {
    display: inline-block;
    font-size: 0.75rem;
    background: #eef2f7;
    color: #2a4564;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 5px;
}

.leader-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

/* ========================== DISTRICT OFFICE BEARERS ========================== */
.district-section {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 20px;
}

/* FIX: Removed fixed 1000px widths and margins that break mobile views */
.district-table-wrapper {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    margin-top: 40px;
    width: 100%;
}

.district-table {
    width: 100%;
    border-collapse: collapse;
}

.district-table thead { 
    background: #2a4564; 
    color: #fff; 
}

.district-table th, .district-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* ========================== MOBILE RESPONSIVENESS ========================== *//* ==========================================================================
   FINAL FIX FOR OFFICE BEARERS CARD CUT-OFF
   ========================================================================== */

@media screen and (max-width: 900px) {
    /* Clear the desktop wrapper boundaries constraint */
    body div.container,
    body .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        
    }

    /* Target the section cleanly with corrected syntax separation */
    body .sangam-section,
    section.sangam-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 60px !important;
        padding: 20px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Collapse columns completely so cards scale down to fit screen size */
    body .sangam-container {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body .photo-side {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* Force individual cards to size dynamically inside the viewport borders */
    body .leader-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important; /* Forces items side-by-side */
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    body .leader-info {
        flex: 1 !important; /* Allows text contents to fluidly wrap downwards */
        min-width: 0 !important; 
    }
}
/* ================SRUSHUSHAKA================== */


.sangam-section{
padding:90px 20px;
background:#f5f7fa;
margin-left: 75px;
margin-right: 35px;
}

.sangam-container{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:2fr 1fr;
gap:60px;
align-items:start;
}

/* LEFT CONTENT */

.text-side{
background:#fff;
padding:45px;
border-radius:20px;
box-shadow:0 10px 35px rgba(0,0,0,0.08);
position:relative;
}

.text-side::before{

position:absolute;
top:20px;
right:30px;
font-size:60px;
opacity:.08;
color:#2a4564; 
}

.text-side h2{
color:#2a4564; 
font-size:2.7rem;
margin-bottom:30px;
position:relative;
}

.text-side h2::after{
content:"";
width:90px;
height:4px;
background:#e76514;
display:block;
margin-top:12px;
}

.text-side p{
color:#555;
font-size:13px;
line-height:2;
text-align:justify;
margin-bottom:20px;

}

/* RIGHT SIDE */

.photo-side{
position:sticky;
top:100px;
}

.photo-side::before{
content:"Office Bearers";
display:block;
font-size:24px;
font-weight:700;
color:#2a4564; 
margin-bottom:25px;
border-bottom:3px solid #e76514;
padding-bottom:10px;
}

.leader-card{
background:#fff;
border-radius:18px;
padding:18px;
margin-bottom:25px;
display:flex;
align-items:center;
gap:15px;
box-shadow:0 8px 25px rgba(0,0,0,0.08);
transition:.3s;

}

.leader-card:hover{
transform:translateY(-5px);
}

.leader-img {
    width: 90px;
    height: 90px;
    border-radius: 0;
    object-fit: contain;
    
}
.leader-info{
flex:1;
}

.role-badge{
display:inline-block;
background:#2a4564; 
color:#fff;
font-size:11px;
padding:5px 12px;
border-radius:20px;
letter-spacing:1px;
margin-bottom:8px;
}

.leader-info h3{
margin:5px 0;
color:#2a4564; 
font-size:13px;
}

.leader-info p{
margin:0;
color:#777;
font-size:13px;
}

/* MOBILE */

@media(max-width:900px){


.sangam-container{
    grid-template-columns:1fr;
}

.photo-side{
    position:static;
}

.text-side{
    padding:30px;
}

.text-side h2{
    font-size:2rem;
}
}

.text-side dl{
    margin-top: 20px;
}

.text-side dt{
    font-size: 18px;
    font-weight: 600;
    color: #2a4564;
    margin-bottom: 20px;
}

.text-side dd{
    margin: 0 0 15px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.text-side dd::before{
    content: "•";
    position: absolute;
    left: 8px;
    top: 0;
    color: #e76514;
    font-size: 18px;
    font-weight: bold;
}

/* ==========================
   DISTRICT OFFICE BEARERS
========================== */

.district-section{
    max-width:1200px;
    margin:70px auto;
    padding:0 20px;
}


.district-table-wrapper{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(0,0,0,0.08);
}

.district-table{
    width:100%;
    border-collapse:collapse;
}

.district-table thead{
    background:#2a4564;
    color:#fff;
}

.district-table th{
    padding:18px;
    text-align:left;
    font-weight:600;
    font-size:15px;
}

.district-table td{
    padding:16px 18px;
    border-bottom:1px solid #eee;
    font-size: 13px;
}

.district-table tbody tr:hover{
    background:#f9fbfd;
}

.district-name{
    font-weight:700;
    color:#2a4564;
}

.designation{
    font-weight:600;
    color:#e76514;
}

.phone-link{
    color:#2a4564;
    text-decoration:none;
}

.phone-link:hover{
    color:#e76514;
}
/* ==========================================================================
   FORCE 100% MOBILE TABLE COMPRESSION - NO HORIZONTAL SCROLLING
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* 1. Reset all container elements to ensure a flawless mobile window fit */
    html body .sangam-section,
    html body .district-section,
    html body .sangam-container,
    html body div.container,
    section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        /* padding: 0 6px !important; Muted internal walls to keep table wide */
        box-sizing: border-box !important;
        display: block !important;
    }

    /* 2. Bind the table container wrapper securely to the screen window edges */
    html body .district-table-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important; /* SECURELY BLOCKS SCROLLING */
        background: #ffffff !important;
        border-radius: 12px !important;
        border: 1px solid #eef2f5 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
        margin: 15px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3. Force the table element matrix to fill exactly 100% of the screen */
    html body table.district-table,
    html body .district-table-wrapper table {
        display: table !important; /* Strictly preserves your rowspan layout geometry */
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important; /* CRITICAL: Forces cell dimensions to obey columns below */
        border-collapse: collapse !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body table.district-table thead { display: table-header-group !important; }
    html body table.district-table tbody { display: table-row-group !important; }
    html body table.district-table tr { display: table-row !important; }

    /* 4. Force text strings downward using the Text Wrapping Engine */
    html body table.district-table th,
    html body table.district-table td,
    html body .district-table td {
        display: table-cell !important;
        padding: 10px 4px !important; /* Extremely tight padding layout to save cell width */
        font-size: 11px !important;   /* Downscaled typography completely stops right-edge clipping */
        vertical-align: middle !important;
        box-sizing: border-box !important;
        
        /* The Downward Text Wrapping Rules */
        white-space: normal !important;     /* Allows long titles/names to wrap onto a second line */
        word-break: break-word !important;   /* Gracefully breaks lengthy words */
        overflow-wrap: break-word !important;
    }

    /* 5. Direct percentage allocations for all 4 layout columns */
    html body table.district-table th:nth-child(1), html body table.district-table td:nth-child(1) { width: 22% !important; text-align: left !important; } /* District */
    html body table.district-table th:nth-child



/* SUVISHESHAKA SANGAM */

.sangam-section{
padding:90px 20px;
background:#f5f7fa;
margin-left: 75px;
margin-right: 35px;
}

.sangam-container{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:2fr 1fr;
gap:60px;
align-items:start;
}

/* LEFT CONTENT */

.text-side{
background:#fff;
padding:45px;
border-radius:20px;
box-shadow:0 10px 35px rgba(0,0,0,0.08);
position:relative;
}

.text-side::before{

position:absolute;
top:20px;
right:30px;
font-size:60px;
opacity:.08;
color:#2a4564; 
}

.text-side h2{
color:#2a4564; 
font-size:32px;
margin-bottom:30px;
position:relative;
}

.text-side h2::after{
content:"";
width:90px;
height:4px;
background:#e76514;
display:block;
margin-top:12px;
}

.text-side p{
color:#555;
font-size:13px;
line-height:2;
text-align:justify;
margin-bottom:20px;

}

/* RIGHT SIDE */

.photo-side{
position:sticky;
top:100px;
}

.photo-side::before{
content:"Office Bearers";
display:block;
font-size:24px;
font-weight:700;
color:#2a4564; 
margin-bottom:25px;
border-bottom:3px solid #e76514;
padding-bottom:10px;
}

.leader-card{
background:#fff;
border-radius:18px;
padding:18px;
margin-bottom:25px;
display:flex;
align-items:center;
gap:15px;
box-shadow:0 8px 25px rgba(0,0,0,0.08);
transition:.3s;
width:400px;

}

.leader-card:hover{
transform:translateY(-5px);

}
.leader-card img {

  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 0%;
  border: 0px solid #e76514;
}
.leader-info{
flex:1;
}

.role-badge{
display:inline-block;
background:#2a4564; 
color:#fff;
font-size:11px;
padding:5px 12px;
border-radius:20px;
letter-spacing:1px;
margin-bottom:8px;
}

.leader-info h3{
margin:5px 0;
color:#2a4564; 
font-size:13px;
}

.leader-info p{
margin:0;
color:#777;
font-size:13px;
}

/* MOBILE */

@media(max-width:900px){


.sangam-container{
    grid-template-columns:1fr;
}

.photo-side{
    position:static;
}

.text-side{
    padding:30px;
}

.text-side h2{
    font-size:2rem;
}
}



/* ==========================
   DISTRICT OFFICE BEARERS
========================== */

.district-section{
    max-width:1200px;
    margin:70px auto;
    padding:0 20px;
}

.district-table-wrapper{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(0,0,0,0.08);
}

.district-table{
    width:100%;
    border-collapse:collapse;
}

.district-table thead{
    background:#2a4564;
    color:#fff;
}

.district-table th{
    padding:18px;
    text-align:left;
    font-weight:600;
    font-size:15px;
}

.district-table td{
    padding:16px 18px;
    border-bottom:1px solid #eee;
    font-size: 13px;
}

.district-table tbody tr:hover{
    background:#f9fbfd;
}

.district-name{
    font-weight:700;
    color:#2a4564;
}

.designation{
    font-weight:600;
    color:#e76514;
}

.phone-link{
    color:#2a4564;
    text-decoration:none;
}

.phone-link:hover{
    color:#e76514;
}

@media(max-width:768px){

    .district-heading h2{
        font-size:1.8rem;
    }

    .district-table{
        min-width:700px;
    }
}





