@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800&display=swap');

html, body {
    width: 100%;
    overflow-x: hidden; /* prevent horizontal scrolling on mobile */
}

/* Prevent oversized media from causing overflow */
img, svg, picture, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure major grid containers do not exceed viewport on mobile */
.container, .hero, .hero-grid, .about-grid, .family-grid, .gallery-grid, .trustee-grid, .counter-grid {
    box-sizing: border-box;
}

/* Hide large decorative shapes on small screens and make non-interactive */
.shape1, .shape2, .circle-top, .circle-bottom {
    pointer-events: none;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Noto Sans Devanagari',sans-serif;
    background:#f7f2ea;
    overflow-x:hidden;
}

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

/* HEADER */

.header{
    background: #fff;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    margin-bottom: 0;
}

.nav-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo{
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.logo img{
    width: 170px;
    height: auto;
    display: block;
}
.logo h2{
    color:#8d3030;
}

.logo span{
    font-size:12px;
}

.navbar{
    display:flex;
    align-items:center;
    gap:40px;
}

.nav-links{
    display:flex;
    list-style:none;
    gap:30px;
}

.nav-links a{
    text-decoration:none;
    color:#133b80;
    font-weight:600;
}

.nav-links a:hover{
    color:#8d3030;
}

.nav-btns{
    display:flex;
    gap:12px;
}

.btn-fill{
    background:#8d3030;
    color:white;
    padding:14px 28px;
    border-radius:50px;
    text-decoration:none;
    transition:.4s;
}

.btn-fill:hover{
    transform:translateY(-5px);
}

.btn-outline{
    border:2px solid #8d3030;
    color:#8d3030;
    padding:14px 28px;
    border-radius:50px;
    text-decoration:none;
    transition:.4s;
}

.btn-outline:hover{
    background:#8d3030;
    color:white;
}

.menu-btn{
    display:none;
    font-size:25px;
    color:#8d3030;
}

/* HERO */

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    position:relative;
    margin-top: 0;
    padding-top: 40px;
}

.hero-grid{
    display:grid;
    grid-template-columns:minmax(320px, 46%) minmax(420px, 54%);
    gap:80px;
    align-items:center;
}

.hero-image{
    max-width:760px;
    justify-self:end;
}

.tag{
    background:#efe4d2;
    padding:10px 20px;
    border-radius:30px;
    color:#8d3030;
    display:inline-block;
}

.hero h1{
    font-size:70px;
    color:#133b80;
    margin:20px 0;
    line-height:1.15;
}

.hero h1 span{
    color:#8d3030;
}

.hero p{
    font-size:22px;
    color:#666;
    margin-bottom:35px;
}

.hero-buttons{
    display:flex;
    gap:15px;
}

.hero-image img{
    width:100%;
    animation:float 4s ease infinite;
}

@keyframes float{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-20px);
    }

    100%{
        transform:translateY(0);
    }

}

.shape{
    position:absolute;
    border-radius:50%;
}

.shape1{
    width:250px;
    height:250px;
    background:#8d30301a;
    top:100px;
    right:-80px;
}

.shape2{
    width:180px;
    height:180px;
    background:#133b8015;
    bottom:50px;
    left:-70px;
}

/* MOBILE */

@media(max-width:991px){

.nav-container{
    flex-wrap:wrap;
    height:auto;
    padding:16px 0;
}

.logo img{
    width:130px;
}

.hero-grid{
    display:flex;
    flex-direction:column;
    gap:30px;
    text-align:center;
}

.hero{
    min-height:auto;
    height:auto;
    padding:20px 0;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    position:relative;
    margin-top:0;
}

.hero h1{
    font-size:34px;
    line-height:1.3;
}

.navbar{
    position:fixed;
    top:90px;
    left:-100%;
    width:100%;
    background:white;
    flex-direction:column;
    padding:30px 24px;
    transition:.4s;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    z-index:999;
}

.navbar.active{
    left:0;
}

.nav-links{
    flex-direction:column;
    text-align:center;
    gap:18px;
    margin-bottom:20px;
}

.nav-links a{
    display:block;
    padding:10px 0;
}

.nav-btns{
    flex-direction:column;
    width:100%;
    gap:12px;
}

.nav-btns .btn-fill,
.nav-btns .btn-outline{
    width:100%;
    padding:14px 0;
    text-align:center;
}

.menu-btn{
    display:block;
    z-index:1100;
}

}

@media(max-width:576px){

.hero h1{
    font-size:36px;
}

.hero-buttons{
    flex-direction:column;
}

}/* ==========================
ABOUT
========================== */

.about{
    padding:120px 0;
    background:#faf7f2;
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
}

.about-image img{
    width:100%;
    border-radius:20px;
}

.section-tag{
    display:inline-block;
    padding:10px 20px;
    background:#efe4d2;
    color:#8d3030;
    border-radius:30px;
    margin-bottom:20px;
}

.about-content h2{
    font-size:55px;
    color:#133b80;
    margin-bottom:25px;
}

.about-content p{
    color:#666;
    line-height:1.9;
}

.mission-vision{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin:40px 0;
}

.info-card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    transition:.4s;
}

.info-card:hover{
    transform:translateY(-10px);
}

.icon{
    font-size:40px;
    margin-bottom:15px;
}

.info-card h3{
    color:#8d3030;
    margin-bottom:10px;
}

/* ==========================
COUNTER
========================== */

.counter-section{
    padding:90px 0;
    background:#ffffff;
}

.counter-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.counter-card{
    background:white;
    padding:40px 25px;
    border-radius:25px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    border-top:5px solid #8d3030;
    transition:.4s;
}

.counter-card:hover{
    transform:translateY(-10px);
}

.counter-icon{
    font-size:45px;
    margin-bottom:15px;
}

.counter-card h2{
    color:#8d3030;
    font-size:48px;
    margin-bottom:10px;
}

.counter-card p{
    color:#444;
    font-weight:600;
}

/* MOBILE */

@media(max-width:991px){

.about-grid{
    grid-template-columns:1fr;
}

.about-content h2{
    font-size:40px;
}

.counter-grid{
    grid-template-columns:repeat(2,1fr);
}

.mission-vision{
    grid-template-columns:1fr;
}

}

@media(max-width:576px){

.counter-grid{
    grid-template-columns:1fr;
}

.about-content h2{
    font-size:32px;
}

}/* ==========================
FAMILY TREE
========================== */

.family-tree{
    padding:120px 0;
    background:#f7f2ea;
}

.family-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
}

.family-content h2{
    font-size:60px;
    color:#133b80;
    margin:20px 0;
}

.family-content p{
    line-height:1.9;
    color:#666;
    margin-bottom:30px;
}

.family-features{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-bottom:30px;
}

.family-item{
    display:flex;
    align-items:center;
    gap:20px;
    background:white;
    padding:25px;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
    transition:.4s;
}

.family-item:hover{
    transform:translateX(10px);
}

.family-item span{
    font-size:35px;
}

.family-image img{
    width:100%;
    animation:treeFloat 5s ease-in-out infinite;
}

@keyframes treeFloat{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-20px);
    }

    100%{
        transform:translateY(0);
    }

}

/* ==========================
TRUSTEE
========================== */

.trustee-section{
    padding:120px 0;
    background:white;
}

.section-title{
    text-align:center;
    margin-bottom:70px;
}

.section-title h2{
    font-size:60px;
    color:#133b80;
    margin:20px 0;
}

.section-title p{
    color:#666;
}

.section-title .btn-fill{
    margin-top: 25px;
    display: inline-block;
    padding: 14px 34px;
}

.trustee-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.trustee-card{
    background:white;
    border-radius:25px;
    overflow:hidden;
    text-align:center;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
    transition:.4s;
}

.trustee-card:hover{
    transform:translateY(-15px);
}

.trustee-card img{
    width:100%;
    height:300px;
    object-fit:cover;
}

.trustee-card h3{
    margin-top:20px;
    color:#133b80;
}

.trustee-card span{
    display:block;
    color:#8d3030;
    margin:10px 0 20px;
}

.social-icons{
    display:flex;
    justify-content:center;
    gap:15px;
    padding-bottom:25px;
}

.social-icons a{
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#f5f5f5;
    color:#133b80;
    text-decoration:none;
    transition:.3s;
}

.social-icons a:hover{
    background:#8d3030;
    color:white;
}

/* MOBILE */

@media(max-width:991px){

.family-grid{
    grid-template-columns:1fr;
}

.trustee-grid{
    grid-template-columns:repeat(2,1fr);
}

.family-content h2,
.section-title h2{
    font-size:42px;
}

}

@media(max-width:576px){

.trustee-grid{
    grid-template-columns:1fr;
}

.family-content h2,
.section-title h2{
    font-size:34px;
}

.family-item{
    padding:20px;
}

}/* ==========================
KULSWAMI
========================== */

.kulswami{
    padding:120px 0;
    background:#f8f5ef;
}

.kulswami-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
}

.kulswami-image img{
    width:100%;
    border-radius:25px;
}

.kulswami-content h2{
    font-size:55px;
    color:#133b80;
    margin:20px 0;
}

.kulswami-content p{
    color:#666;
    line-height:1.9;
    margin-bottom:30px;
}

.kulswami-points{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin-bottom:35px;
}

.point{
    background:white;
    padding:18px;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
}

/* ==========================
GALLERY
========================== */

.gallery-section{
    padding:120px 0;
    background:#f8f6f3;
}

.gallery-section .container{
    max-width:1300px;
    margin:auto;
}

.gallery-title{
    text-align:center;
    font-size:68px;
    color:#143c80;
    margin:20px 0;
    font-weight:800;
}

.gallery-desc{
    text-align:center;
    color:#666;
    max-width:700px;
    margin:auto auto 70px;
}

.gallery-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:25px;
}

.gallery-grid img{

    width:100%;
    height:220px;

    object-fit:cover;

    border-radius:18px;

    transition:.4s;

    cursor:pointer;
}

.gallery-grid img:hover{

    transform:translateY(-8px);
}

.gallery-btn-wrap{

    text-align:center;
    margin-top:50px;
}

.gallery-btn{

    display:inline-block;

    padding:16px 38px;

    background:#8d3030;

    color:white;

    border-radius:50px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;
}

.gallery-btn:hover{

    transform:translateY(-5px);
}

@media(max-width:991px){

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .gallery-title{
        font-size:48px;
    }

}

@media(max-width:576px){

    .gallery-grid{
        grid-template-columns:1fr;
    }

    .gallery-title{
        font-size:34px;
    }

}

/* MOBILE */

@media(max-width:991px){

.kulswami-grid{
    grid-template-columns:1fr;
}

.kulswami-content h2{
    font-size:42px;
}

}

@media(max-width:576px){

.kulswami-content h2{
    font-size:32px;
}

.kulswami-points{
    grid-template-columns:1fr;
}

.gallery-item img{
    height:250px;
}

}/* ==========================
DONATION
========================== */

.donation-section{
    position:relative;
    padding:140px 20px;
    text-align:center;
    overflow:hidden;

    background:linear-gradient(
    135deg,
    #8f2f2f,
    #9e3636
    );
}

.donation-section .container{
    max-width:900px;
    margin:auto;
    position:relative;
    z-index:2;
}

.donation-tag{
    display:inline-block;

    padding:12px 24px;

    border-radius:40px;

    background:rgba(255,255,255,.12);

    color:white;

    font-weight:600;

    margin-bottom:25px;

    backdrop-filter:blur(10px);
}

.donation-section h2{

    font-size:64px;
    line-height:1.2;
    color:white;
    font-weight:800;
    margin-bottom:25px;
}

.donation-section p{

    font-size:20px;
    line-height:1.8;
    color:#f3eaea;
    max-width:850px;
    margin:auto;
}

.donation-btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    margin-top:40px;

    width:170px;
    height:60px;

    border-radius:50px;

    background:white;

    color:#8f2f2f;

    font-weight:700;

    text-decoration:none;

    transition:.4s;
}

.donation-btn:hover{

    transform:translateY(-8px);
}

.circle{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,.08);
}

.left-circle{

    width:300px;
    height:300px;

    left:-120px;
    top:-50px;
}

.right-circle{

    width:260px;
    height:260px;

    right:-100px;
    bottom:-70px;
}

@media(max-width:991px){

    .donation-section h2{
        font-size:46px;
    }

}

@media(max-width:576px){

    .donation-section{
        padding:90px 20px;
    }

    .donation-section h2{
        font-size:34px;
    }

    .donation-section p{
        font-size:16px;
    }

}

/* ==========================
NEWS
========================== */

.news-section{
    padding:120px 0;
}

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.news-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.4s;
}

.news-card:hover{
    transform:translateY(-10px);
}

.news-card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.news-content{
    padding:25px;
}

.news-content span{
    color:#8d3030;
}

.news-content h3{
    margin:15px 0;
}


/* ==========================
FOOTER
========================== */

.footer{
    background:#763131;
    color:#fff;
    padding:70px 0 0;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr 1fr;
    gap:50px;
}

.footer h3,
.footer h4{
    color:#fff;
    margin-bottom:20px;
    font-size:28px;
}

.footer p{
    color:#e0e0e0;
    line-height:1.8;
    font-size:15px;
}

.footer ul{
    list-style:none;
    padding:0;
}

.footer ul li{
    margin-bottom:12px;
}

.footer ul li a{
    color:#e0e0e0;
    text-decoration:none;
    transition:.3s;
}

.footer ul li a:hover{
    color:#f5c97a;
}

.footer-social{
    display:flex;
    gap:15px;
    margin-top:10px;
}

.footer-social a{
    width:45px;
    height:45px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    transition:.3s;
}

.footer-social a:hover{
    background:#966430;
    transform:translateY(-5px);
}

.copyright{
    margin-top:50px;
    border-top:1px solid rgba(255,255,255,.1);
    text-align:center;
    padding:22px;
    color:#d5d5d5;
    font-size:14px;
}

/* ==========================
TOP BUTTON
========================== */

#topBtn{
    position:fixed;
    right:25px;
    bottom:25px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#966430;
    color:white;
    font-size:22px;
    cursor:pointer;
    display:none;
    z-index:999;
}

/* ==========================
LOADER
========================== */

#loader{
    position:fixed;
    inset:0;
    background:white;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.spinner{
    width:70px;
    height:70px;
    border:6px solid #eee;
    border-top:6px solid #763131;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

/* ==========================
PROGRESS BAR
========================== */

#progressBar{
    position:fixed;
    top:0;
    left:0;
    width:0%;
    height:5px;
    background:#8d3030;
    z-index:99999;
}

/* MOBILE */

@media(max-width:991px){

.news-grid{
    grid-template-columns:1fr;
}


.donation-box{
    flex-direction:column;
    text-align:center;
}

.contact-cta h2{
    font-size:40px;
}

}

@media(max-width:576px){


.contact-cta h2{
    font-size:30px;
}

.donation-box h2{
    font-size:32px;
}

}

@media(max-width:768px){

    .logo img{
        width: 130px;
    }

.footer-grid{
    grid-template-columns:1fr;
    text-align:center;
}

.footer-social{
    justify-content:center;
}

}/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px){

    .nav-container{
        padding: 12px 20px;
    }

    .logo img{
        width: 120px;
    }

    .menu-btn{
        display: block;
        font-size: 28px;
        color: #8b2d2d;
        cursor: pointer;
    }

    .navbar{
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background: #fff;
        transition: 0.4s;
        padding: 25px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }

    .navbar.active{
        left: 0;
    }

    .nav-links{
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .nav-btns{
        margin-top: 25px;
        flex-direction: column;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        gap: 15px;
    }

    .btn-fill,
    .btn-outline{
        width: 100%;
        text-align: center;
    }

    /* HERO */

    .hero{
        min-height: auto;
        padding: 50px 20px;
    }

    .hero-container{
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-content{
        width: 100%;
    }

    .hero-content h1{
        font-size: 2.3rem;
        line-height: 1.2;
    }

    .hero-content p{
        font-size: 16px;
    }

    .hero-buttons{
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image{
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img{
        width: 280px;
        max-width: 90%;
        height: auto;
    }

    /* background circles */

    .circle-top,
    .circle-bottom{
        display: none;
    }
}
