/* ======================================
   GLOBAL
====================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    min-height:100%;
    font-family:Arial, Helvetica, sans-serif;
    background:#f8f8f8;
    color:#333;
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

img,
iframe,
video{
    max-width:100%;
}

main{
    min-height:70vh;
}

/* ======================================
   NAVBAR
====================================== */

/* ======================================
   NAVBAR
====================================== */

.main-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;
    background:linear-gradient(90deg,#000428,#004e92);
    box-shadow:0 8px 25px rgba(0,0,0,0.35);
}

.navbar{
    min-height:78px;
    height:78px;
    padding-top:6px;
    padding-bottom:6px;
}

.navbar > .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:100%;
}

.navbar-brand{
    display:flex;
    align-items:center;
    gap:22px;
    color:#fff !important;
    text-decoration:none;
    flex:1;
    min-width:0;
    height:100%;
    padding-right:10px;
    overflow:visible;
}

.brand-logo{
    /*
     * Keep the layout dimensions small so that
     * the navbar height does not increase.
     */
    width:65px;
    height:65px;

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

    background:transparent !important;
    border:none !important;
    border-radius:0 !important;
    padding:0 !important;
    box-shadow:none !important;

    display:block;
    flex-shrink:0;

    /*
     * Visually enlarge the logo without affecting
     * the navbar's calculated height.
     */
    transform:scale(1.55);
    transform-origin:center center;

    position:relative;
    z-index:2;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.brand-logo:hover{
    transform:scale(1.65);
    filter:
        brightness(1.08)
        contrast(1.08)
        saturate(1.12);
}

.brand-name{
    color:#fff;
    font-weight:700;
    font-size:1rem;
    line-height:1.3;
    white-space:normal;
    word-break:break-word;
    overflow-wrap:break-word;
    position:relative;
    z-index:3;
}

.navbar-toggler{
    border:none !important;
    box-shadow:none !important;
    padding:6px 10px;
    margin-left:10px;
    flex-shrink:0;
}

.navbar-toggler:focus{
    box-shadow:none !important;
}

.navbar-toggler-icon{
    filter:brightness(0) invert(1);
}

.navbar-collapse{
    transition:0.3s;
}

.nav-link{
    color:#fff !important;
    margin:0 6px;
    padding:8px 14px !important;
    border-radius:30px;
    transition:0.3s;
    font-weight:600;
    display:inline-block;
}

.nav-link:hover{
    background:rgba(255,255,255,0.12);
    color:#ffc107 !important;
}

.navbar .dropdown-menu{
    border:0;
    border-radius:16px;
    padding:10px;
    box-shadow:0 12px 35px rgba(0,0,0,0.18);
}

.navbar .dropdown-item{
    border-radius:12px;
    padding:10px 18px;
    font-weight:600;
}

.navbar .dropdown-item:hover{
    background:#004e92;
    color:#fff;
}

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

@media(max-width:991px){

    .navbar{
        min-height:74px;
        height:auto;
        padding-top:6px;
        padding-bottom:6px;
    }

    .navbar-brand{
        width:calc(100% - 60px);
        min-height:62px;
        align-items:center;
        gap:18px;
    }

    .brand-logo{
        width:50px;
        height:50px;
        transform:scale(1.45);
    }

    .brand-logo:hover{
        transform:scale(1.52);
    }

    .brand-name{
        font-size:0.82rem;
        line-height:1.25;
    }

    .navbar-collapse{
        background:rgba(0,0,0,0.96);
        padding:18px;
        border-radius:18px;
        margin-top:8px;
    }

    .nav-link{
        display:block;
        width:100%;
        margin:6px 0;
        padding:10px 14px !important;
    }
}

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

@media(max-width:576px){

    .navbar{
        min-height:68px;
        height:auto;
        padding-top:4px;
        padding-bottom:4px;
    }

    .navbar-brand{
        gap:14px;
        width:calc(100% - 48px);
        min-height:58px;
        padding-right:6px;
    }

    .brand-logo{
        width:44px;
        height:44px;
        transform:scale(1.35);
    }

    .brand-logo:hover{
        transform:scale(1.42);
    }

    .brand-name{
        font-size:0.68rem;
        line-height:1.18;
        letter-spacing:0.2px;
    }

    .navbar-toggler{
        padding:4px 6px;
        margin-left:4px;
    }

    .navbar-collapse{
        margin-top:8px;
        padding:14px;
    }
}

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

@media(max-width:400px){

    .navbar-brand{
        gap:12px;
    }

    .brand-logo{
        width:40px;
        height:40px;
        transform:scale(1.28);
    }

    .brand-logo:hover{
        transform:scale(1.34);
    }

    .brand-name{
        font-size:0.60rem;
        line-height:1.12;
    }
}

/* ======================================
   HERO
====================================== */

.hero-section{
    position:relative;
    width:100%;
    height:100vh;
    overflow:hidden;
    background:#111;
}

.hero-background{
    position:absolute;
    inset:0;
    z-index:1;
}

#bgCarousel,
#bgCarousel .carousel-inner,
#bgCarousel .carousel-item{
    width:100%;
    height:100vh;
}

.hero-slide-img{
    width:100%;
    height:100vh;
    object-fit:cover;
    object-position:center;
    transform:scale(1.03);
    filter:brightness(1.08) contrast(1.05) saturate(1.1);
}

.hero-overlay{
    position:absolute;
    inset:0;
    z-index:2;
    background:linear-gradient(
        to bottom,
        rgba(0,0,0,0.32),
        rgba(0,0,0,0.18),
        rgba(0,0,0,0.38)
    );
}

.hero-content{
    position:relative;
    z-index:5;
    width:100%;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:flex-end;
    padding-bottom:40px;
    text-align:center;
    color:#fff;
}

.hero-glass-card{
    position:absolute;
    bottom:50px;
    left:50%;
    transform:translateX(-50%);
    width:90%;
    max-width:1100px;
    padding:35px 45px;
    border-radius:24px;
    background:linear-gradient(
        90deg,
        rgba(0,0,0,0.72),
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.62)
    );
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(10px);
    box-shadow:0 15px 45px rgba(0,0,0,0.35);
    text-align:center;
}

.hero-tagline{
    display:inline-block;
    margin-bottom:18px !important;
    padding:10px 18px;
    border-radius:40px;
    background:rgba(255,193,7,0.16);
    color:#ffd86b !important;
    font-weight:700;
    letter-spacing:1px;
    font-size:0.95rem !important;
}

.hero-content h1{
    font-size:clamp(2.2rem,5vw,4.5rem);
    font-weight:800;
    color:#fff;
    margin-bottom:18px;
    text-shadow:0 4px 15px rgba(0,0,0,0.55);
}

.hero-content p{
    max-width:760px;
    margin:auto;
    color:#fff;
    font-size:1.1rem;
    line-height:1.8;
    opacity:0.95;
}

.hero-btn{
    min-width:160px;
    border-radius:40px !important;
    padding:12px 24px !important;
    font-weight:700 !important;
    transition:0.3s;
}

.hero-btn:hover{
    transform:translateY(-4px) scale(1.03);
}

/* ======================================
   SEVA SECTION
====================================== */

#pooja{
    position:relative;
    padding:90px 0;
    background:linear-gradient(to right,#ffecd2,#fcb69f);
}

.section-heading p{
    text-align:center;
    color:#8e0000;
    font-weight:700;
    letter-spacing:1px;
    margin-bottom:6px;
}

.section-title{
    font-size:2.4rem;
    font-weight:800;
    text-align:center;
    color:#b71c1c;
    margin-bottom:50px;
}

.seva-card-3d{
    border:none;
    border-radius:20px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 15px 35px rgba(0,0,0,0.12);
    transition:0.35s;
}

.seva-card-3d:hover{
    transform:translateY(-12px);
}

.card-img-top{
    width:100%;
    height:220px;
    object-fit:cover;
}

.card-body{
    padding:22px;
}

.card-title{
    font-weight:700;
}

.card-text{
    line-height:1.7;
    color:#555;
}

.seva-price{
    color:#8e0000;
    font-size:1.25rem;
    font-weight:800;
}

/* ======================================
   GURU MESSAGE
====================================== */

.guru-message-section{
    padding:100px 0;
    background:linear-gradient(135deg,#fff7f0,#ffffff,#f6fbff);
}

.guru-image{
    width:100%;
    max-width:420px;
    border-radius:30px;
    object-fit:cover;
    box-shadow:0 20px 60px rgba(0,0,0,0.18);
}

.guru-message-box{
    background:#fff;
    padding:45px;
    border-radius:28px;
    box-shadow:0 15px 50px rgba(0,0,0,0.08);
    position:relative;
    overflow:hidden;
}

.guru-message-box::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:8px;
    height:100%;
    background:linear-gradient(to bottom,#004e92,#b71c1c,#ffc107);
}

.guru-tag{
    display:inline-block;
    background:rgba(0,78,146,0.08);
    color:#004e92;
    padding:8px 18px;
    border-radius:30px;
    font-weight:700;
    margin-bottom:18px;
}

.guru-message-box h2{
    font-size:2.5rem;
    font-weight:800;
    color:#111;
    margin-bottom:22px;
}

.guru-message-text{
    font-size:1.15rem;
    line-height:2;
    color:#444;
}

.guru-sign{
    margin-top:28px;
    font-size:1.1rem;
    font-weight:700;
    color:#8e0000;
}

/* ======================================
   ABOUT PAGE
====================================== */

.about-hero-section{
    padding:150px 0 90px;
    background:
        linear-gradient(rgba(0,0,0,0.55),rgba(0,0,0,0.45)),
        url('../images/bg2.jpg');
    background-size:cover;
    background-position:center;
    color:#fff;
    text-align:center;
}

.about-kicker{
    display:inline-block;
    padding:8px 20px;
    border-radius:30px;
    background:rgba(255,193,7,0.18);
    color:#ffd86b;
    font-weight:700;
    letter-spacing:1px;
}

.about-hero-section h1{
    font-size:clamp(2.4rem,5vw,4.2rem);
    font-weight:800;
    margin:18px 0;
}

.about-hero-section p{
    max-width:780px;
    margin:auto;
    font-size:1.15rem;
    line-height:1.8;
}

.about-history-section{
    padding:80px 0;
    background:#fff7f0;
}

.about-intro-card,
.lineage-card{
    background:#fff;
    padding:45px;
    border-radius:28px;
    box-shadow:0 15px 45px rgba(0,0,0,0.08);
    margin-bottom:50px;
}

.about-intro-card h2,
.lineage-card h2{
    color:#b71c1c;
    font-weight:800;
    margin-bottom:18px;
}

.about-intro-card p,
.lineage-card p{
    font-size:1.08rem;
    line-height:1.9;
    color:#444;
}

.timeline-wrapper{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:25px;
    margin-bottom:50px;
}

.timeline-card:nth-child(1),
.timeline-card:nth-child(2){
    grid-column:span 3;
}

.timeline-card:nth-child(3),
.timeline-card:nth-child(4),
.timeline-card:nth-child(5){
    grid-column:span 2;
}

.timeline-card{
    background:#fff;
    padding:30px;
    border-radius:24px;
    box-shadow:0 12px 35px rgba(0,0,0,0.08);
    border-top:5px solid #004e92;
}

.timeline-card span{
    font-size:2rem;
    display:block;
    margin-bottom:12px;
}

.timeline-card h3{
    color:#111;
    font-size:1.25rem;
    font-weight:800;
    margin-bottom:14px;
}

.timeline-card p{
    color:#555;
    line-height:1.8;
}

.about-closing{
    text-align:center;
    max-width:900px;
    margin:auto;
    font-size:1.3rem;
    line-height:1.9;
    font-weight:700;
    color:#004e92;
    background:#fff;
    padding:35px;
    border-radius:24px;
    box-shadow:0 12px 35px rgba(0,0,0,0.08);
}

/* ======================================
   GURU FLOWCHART
====================================== */

.guru-flowchart{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    margin:35px 0;
}

.guru-flow-item{
    width:100%;
    display:flex;
    justify-content:center;
}

.guru-node{
    min-width:320px;
    max-width:500px;
    padding:22px 28px;
    border-radius:20px;
    background:linear-gradient(135deg,#ffffff,#f8fbff);
    border-left:6px solid #004e92;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    text-align:center;
    font-size:1.1rem;
    font-weight:700;
    color:#222;
}

.guru-node span{
    display:block;
    margin-top:8px;
    color:#8e0000;
    font-size:0.95rem;
    font-weight:700;
}

.guru-arrow{
    font-size:2rem;
    color:#004e92;
    font-weight:bold;
}

.active-guru .guru-node{
    background:linear-gradient(135deg,#004e92,#0066cc);
    color:#fff;
    border-left:6px solid #ffc107;
}

.active-guru .guru-node span{
    color:#ffd86b;
}

/* ======================================
   BINDAGI VIDEO
====================================== */

.bindagi-video-section{
    position:relative;
    padding:110px 0;
    background:linear-gradient(135deg,#08111f,#0f172a,#16243b);
    overflow:hidden;
}

.bindagi-video-content{
    color:#fff;
    padding-right:30px;
}

.bindagi-tag{
    display:inline-block;
    padding:10px 20px;
    border-radius:40px;
    background:rgba(255,193,7,0.14);
    color:#ffd86b;
    font-weight:700;
    letter-spacing:1px;
    margin-bottom:24px;
}

.bindagi-video-content h2{
    font-size:3rem;
    font-weight:800;
    line-height:1.2;
    margin-bottom:28px;
    color:#fff;
}

.bindagi-video-content p{
    font-size:1.08rem;
    line-height:1.95;
    color:#d7dce5;
    margin-bottom:18px;
}

.bindagi-video-content strong{
    color:#ffd86b;
}

.bindagi-highlight{
    color:#fff !important;
    font-size:1.12rem !important;
    font-weight:700;
}

.video-frame-wrapper{
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 25px 60px rgba(0,0,0,0.45);
    background:#000;
}

.video-frame-wrapper iframe{
    width:100%;
    height:460px;
    border:none;
    display:block;
}

/* ======================================
   PUBLIC GALLERY / MEDIA / EVENTS
====================================== */

.gallery-page,
.events-page{
    padding:110px 0 90px;
    background:linear-gradient(180deg,#f8fbff,#eef3f8);
}

.gallery-title{
    font-size:3rem;
    font-weight:800;
    color:#0f172a;
    margin-bottom:15px;
}

.gallery-subtitle{
    color:#64748b;
    font-size:1.1rem;
    max-width:700px;
    margin:auto;
    line-height:1.8;
}

.gallery-card{
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,0.08);
    transition:0.35s;
    height:100%;
    display:flex;
    flex-direction:column;
}

.gallery-card:hover{
    transform:translateY(-8px);
}

.gallery-card img{
    width:100%;
    height:320px;
    object-fit:cover;
    display:block;
}

.gallery-card-body{
    padding:20px;
}

.gallery-card-body h5{
    font-weight:800;
    color:#0f172a;
    margin-bottom:10px;
}

.gallery-card-body p{
    color:#64748b;
    line-height:1.7;
    margin-bottom:0;
}

.media-section-title{
    font-size:2rem;
    font-weight:800;
    color:#0f172a;
    margin:20px 0 30px;
    padding-left:18px;
    position:relative;
}

.media-section-title::before{
    content:"";
    position:absolute;
    left:0;
    top:5px;
    width:6px;
    height:40px;
    border-radius:20px;
    background:linear-gradient(180deg,#004e92,#00c6ff);
}

.public-media-preview,
.event-public-image{
    width:100%;
    height:300px;
    background:#f8fafc;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px;
}

.public-media-preview img,
.public-media-preview video,
.event-public-image img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:12px;
}

.event-public-card{
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,0.08);
    height:100%;
}

.event-public-body{
    padding:24px;
}

.event-public-body h3{
    font-size:1.5rem;
    font-weight:800;
    color:#0f172a;
    margin-bottom:18px;
}

.event-meta{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:18px;
    color:#475569;
    font-weight:600;
}

.event-short-desc,
.event-full-desc{
    color:#64748b;
    line-height:1.8;
}

/* ======================================
   PUBLIC SEVA / BOOKING / DONATION
====================================== */

.public-seva-page,
.book-seva-page{
    padding:170px 0 90px;
    background:linear-gradient(180deg,#fff7f0,#eef3f8);
}

.public-seva-panel,
.book-seva-panel{
    background:#fff;
    border-radius:28px;
    padding:30px;
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

.seva-public-table thead th{
    background:#f8fafc;
    color:#0f172a;
    font-weight:800;
    border:none;
    padding:18px;
}

.seva-public-table tbody td{
    vertical-align:middle;
    padding:18px;
    border-color:#eef2f7;
}

.public-seva-thumb-wrap{
    width:70px;
    height:70px;
    border-radius:18px;
    background:#f1f5f9;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.public-seva-thumb{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.public-seva-name{
    font-weight:800;
    color:#0f172a;
}

.public-seva-price,
.book-seva-price{
    color:#b71c1c;
    font-weight:800;
}

.book-seva-image{
    width:100%;
    height:320px;
    background:#f1f5f9;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    margin-bottom:24px;
}

.book-seva-image img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.book-seva-left h2{
    font-size:2rem;
    font-weight:800;
    color:#0f172a;
}

.book-seva-short{
    color:#64748b;
    line-height:1.9;
}

.booking-total-box{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#f8fafc;
    border-radius:20px;
    padding:20px 24px;
    margin-top:12px;
}

.booking-total-box strong{
    color:#b71c1c;
    font-size:1.3rem;
}

.bank-details-box{
    background:#fff7ed;
    border:1px solid #fed7aa;
    border-radius:20px;
    padding:20px;
}

.bank-details-box h5{
    font-weight:800;
    color:#b71c1c;
    margin-bottom:12px;
}

.bank-details-box p{
    margin-bottom:6px;
    color:#334155;
}

/* ======================================
   RECEIPT LETTERHEAD A4
====================================== */

.receipt-letter-page{
    padding:130px 0 40px;
    background:#f3f4f6;
}

.letter-receipt{
    position:relative;
    background:#fff;
    width:210mm;
    min-height:297mm;
    margin:auto;
    border:1px solid #ddd;
    box-shadow:0 10px 30px rgba(0,0,0,0.10);
    overflow:hidden;
}

.letter-head{
    background:#f8d8bd;
    display:grid;
    grid-template-columns:95px 1fr 95px;
    align-items:center;
    min-height:120px;
    padding:8px 14px;
    border-bottom:1px solid #e8b996;
}

.letter-logo{
    width:85px;
    height:85px;
    object-fit:contain;
}

.letter-guru{
    width:82px;
    height:98px;
    object-fit:cover;
    border-radius:50%;
    border:2px solid #b96b4a;
    justify-self:end;
}

.letter-title{
    text-align:center;
    padding:0 8px;
}

.letter-title h1{
    color:#b71c1c;
    font-size:1.25rem;
    font-weight:900;
    margin:0 0 3px;
    line-height:1.15;
}

.letter-title h2{
    color:#b71c1c;
    font-size:0.95rem;
    font-weight:800;
    margin:0 0 5px;
    line-height:1.15;
}

.letter-title p{
    margin:0;
    color:#4a2a1e;
    font-size:0.70rem;
    line-height:1.3;
    font-weight:600;
}

.receipt-content{
    position:relative;
    z-index:2;
    padding:22px 28px 70px;
}

.receipt-content h3{
    text-align:center;
    font-size:1.35rem;
    font-weight:900;
    color:#0f172a;
    margin-bottom:18px;
    text-transform:uppercase;
}

.receipt-meta{
    display:flex;
    justify-content:space-between;
    gap:10px;
    background:#fff7ed;
    padding:10px 14px;
    border-radius:10px;
    margin-bottom:18px;
    font-size:0.82rem;
    font-weight:600;
}

.letter-table{
    width:100%;
    border-collapse:collapse;
    margin-top:10px;
}

.letter-table th,
.letter-table td{
    border:1px solid #e5e7eb;
    padding:9px 12px;
    font-size:0.88rem;
    vertical-align:top;
}

.letter-table th{
    width:30%;
    background:#f8fafc;
    color:#111827;
}

.receipt-amount{
    color:#b71c1c;
    font-size:1rem !important;
    font-weight:900;
}

.letter-note{
    margin-top:14px;
    padding:10px 14px;
    border-radius:10px;
    background:#fff8e1;
    color:#5f4300;
    font-size:0.82rem;
}

.letter-note.success{
    background:#e8f5e9;
    color:#1b5e20;
}

.signature-row{
    display:flex;
    justify-content:space-between;
    margin-top:40px;
    padding-top:10px;
}

.signature-row div{
    width:180px;
    text-align:center;
    border-top:1px solid #111;
    padding-top:6px;
    font-size:0.85rem;
}

.letter-footer{
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    background:#f8d8bd;
    padding:8px 12px;
    text-align:center;
    color:#5b2b1b;
    font-weight:700;
    font-size:0.72rem;
}

.letter-watermark{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%) rotate(-28deg);
    font-size:3rem;
    font-weight:900;
    color:rgba(183,28,28,0.06);
    white-space:nowrap;
    z-index:1;
}

.receipt-actions{
    text-align:center;
    margin:25px 0 40px;
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
}

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

.footer-section{
    background:linear-gradient(to right,#000428,#004e92);
    color:#fff;
    padding:40px 0;
}

.footer-section h5{
    font-size:1.8rem;
    margin-bottom:12px;
}

.footer-section p{
    color:#ddd;
}

.social-icons{
    display:flex;
    justify-content:center;
    gap:16px;
}

.social-icons a{
    color:#fff;
}

.social-icons a:hover{
    color:#ffc107;
}

/* ======================================
   PRINT
====================================== */

@media print{

    @page{
        size:A4;
        margin:0;
    }

    html,
    body{
        width:210mm;
        height:297mm;
        background:#fff !important;
        -webkit-print-color-adjust:exact;
        print-color-adjust:exact;
    }

    header,
    footer,
    .main-header,
    .footer-section,
    .no-print,
    .receipt-actions{
        display:none !important;
    }

    .receipt-letter-page{
        padding:0 !important;
        margin:0 !important;
        background:#fff !important;
    }

    .container{
        width:100% !important;
        max-width:100% !important;
        padding:0 !important;
        margin:0 !important;
    }

    .letter-receipt{
        width:210mm;
        height:297mm;
        min-height:297mm;
        margin:0;
        border:none;
        box-shadow:none;
        overflow:hidden;
        page-break-after:avoid;
    }

    .receipt-content{
        padding:18px 24px 55px;
    }
}

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

@media(max-width:991px){

    .navbar-collapse{
        background:rgba(0,0,0,0.94);
        padding:16px;
        border-radius:18px;
        margin-top:12px;
    }

    .gallery-page,
    .events-page,
    .public-seva-page,
    .book-seva-page,
    .receipt-letter-page{
        padding-top:125px !important;
    }

    .hero-section,
    .hero-content,
    .hero-slide-img,
    #bgCarousel,
    #bgCarousel .carousel-inner,
    #bgCarousel .carousel-item{
        height:82vh;
    }

    .hero-glass-card{
        width:94%;
        padding:24px 18px;
        bottom:25px;
    }

    .book-seva-panel,
    .guru-message-box,
    .about-intro-card,
    .lineage-card{
        padding:24px 18px;
    }

    .letter-receipt{
        width:100%;
        min-height:auto;
    }

    .video-frame-wrapper iframe{
        height:300px;
    }

    .bindagi-video-content{
        padding-right:0;
        margin-bottom:30px;
    }
}

@media(max-width:576px){

    .brand-name{
        font-size:0.95rem;
    }

    .brand-logo{
        width:40px;
        height:40px;
    }

    .hero-content h1{
        font-size:1.7rem;
    }

    .hero-content p{
        font-size:0.9rem;
        line-height:1.6;
    }

    .hero-btn{
        width:100%;
        margin-bottom:8px;
    }

    .gallery-title,
    .section-title{
        font-size:1.9rem;
    }

    .gallery-subtitle{
        font-size:0.95rem;
    }

    .gallery-card img{
        height:220px;
        object-fit:contain;
        background:#f8fafc;
    }

    .timeline-wrapper{
        grid-template-columns:1fr;
    }

    .timeline-card:nth-child(1),
    .timeline-card:nth-child(2),
    .timeline-card:nth-child(3),
    .timeline-card:nth-child(4),
    .timeline-card:nth-child(5){
        grid-column:span 1;
    }

    .public-seva-panel{
        padding:12px;
        overflow-x:auto;
    }

    .seva-public-table{
        min-width:760px;
    }

    .book-seva-panel{
        border-radius:22px;
        padding:22px 16px;
    }

    .booking-total-box{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }

    .letter-head{
        grid-template-columns:55px 1fr 55px;
        padding:6px;
    }

    .letter-logo{
        width:48px;
        height:48px;
    }

    .letter-guru{
        width:48px;
        height:58px;
    }

    .letter-title{
        padding:0 4px;
    }

    .letter-title h1{
        font-size:0.72rem;
        line-height:1.1;
    }

    .letter-title h2{
        font-size:0.58rem;
    }

    .letter-title p{
        font-size:0.45rem;
        line-height:1.2;
    }

    .receipt-content{
        padding:18px 12px 70px;
    }

    .receipt-meta{
        flex-direction:column;
    }

    .letter-table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }

    .receipt-actions{
        flex-direction:column;
    }

    .receipt-actions .btn{
        width:100%;
    }

    .signature-row{
        gap:20px;
    }

    .signature-row div{
        width:135px;
        font-size:0.75rem;
    }

    .letter-footer{
        font-size:0.55rem;
        padding:6px;
    }
}

.devotee-registration-section {
    padding-top: 130px !important;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .devotee-registration-section {
        padding-top: 110px !important;
    }
}

/* Prevent the Google Translate banner from covering the header */
html,
body {
    top: 0 !important;
}

iframe.goog-te-banner-frame,
iframe.skiptranslate,
body > .skiptranslate {
    display: none !important;
}

/* Keep Google's actual control available but outside the layout */
#google_translate_element {
    position: fixed;
    left: -9999px;
    bottom: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.main-header {
    position: relative;
    z-index: 1050;
}

/* Allow the long translated temple name to wrap correctly */
.navbar-brand {
    min-width: 0;
    flex-shrink: 1;
}

.brand-name {
    max-width: 340px;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.25;
}

.language-select {
    width: 115px;
    min-height: 40px;
    padding: 7px 32px 7px 12px;
    color: #3b291c;
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.language-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

@media (min-width: 1200px) {
    .custom-navbar .nav-link {
        padding-right: 0.45rem !important;
        padding-left: 0.45rem !important;
        font-size: 0.93rem;
    }
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        padding-top: 14px;
        padding-bottom: 12px;
    }

    .brand-name {
        max-width: min(65vw, 430px);
    }

    .language-select {
        width: 150px;
    }
}

@media (max-width: 575.98px) {
    .brand-logo {
        max-width: 52px;
        height: auto;
    }

    .brand-name {
        max-width: calc(100vw - 145px);
        font-size: 0.82rem;
    }
}