
/* ===== MENU FIX (MINIMUM) ===== */

.menu ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
}

.menu li{
    position:relative;
}

.menu a{
    display:block;
    padding:12px 15px;
    color:#fff;
    text-decoration:none;
}

/* dropdown */
.menu ul ul{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    min-width:180px;
}

.menu ul ul a{
    color:#000;
}

/* show on hover */
.menu li:hover > ul{
    display:block;
}

.menu-btn{
    background:#123f77;
    color:#fff;
    border:none;
    padding:12px 26px;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
}
.menu-btn-icon{
    font-size:22px;
    line-height:1;
}
/* ===== PANEL MENU (FINAL CLEAN) ===== */

.panel-menu{
    display:none;
    position:fixed;      
    top:70px;             
    right:10px;
    width:90%;            
    max-width:260px;
    background:#0d3a6b;
    padding:12px;
    z-index:10000;
    
}

.panel-menu.show{
    display:block;
}

.panel-list,
.submenu-panel{
    list-style:none;
    margin:0;
    padding:0;
}

/* ===== MENU ITEMS ===== */
.panel-list > li,
.submenu-panel > li{
    position:relative;
    margin-bottom:4px;
}

.panel-list a,
.submenu-panel a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;

    background:#0a3260;
    color:#ffffff;
    text-decoration:none;

    padding:9px 12px;
    border-radius:6px;

    font-weight:600;
    font-size:13px;
}

/* ===== LEFT ALIGN FIX ===== */
.item-left{
    display:flex;
    align-items:center;
    gap:12px;
    justify-content:flex-start;
    flex:1;
}

/* ===== ICON SIMPLE WHITE ===== */
.item-icon{
    width:18px;
    text-align:center;
    font-size:14px;
    color:#ffffff;
}

/* ===== ARROW ===== */
.item-arrow{
    font-size:18px;
    color:#ffffff;
}

/* ===== HOVER ===== */
.panel-list a:hover,
.submenu-panel a:hover{
    background:#1a5697;
}

/* ===== SUBMENU (AUTO HOVER OPEN) ===== */
.submenu-panel{
    display:none;
    position:absolute;
    top:0;
    right:100%;
    width:220px;
    background:#0d3a6b;
    padding:12px;
    
}

/* ðŸ”¥ IMPORTANT CHANGE: HOVER BASED */
.has-submenu:hover > .submenu-panel{
    display:block;
}

/* second level */
.submenu-panel .submenu-panel{
    right:100%;
    top:0;
}
/* ===== HERO OFFSET ===== */

/* ===== MOBILE ===== */
@media (max-width:768px){
    .header{
        padding:10px 15px;
    }

    .logo img{
        height:45px;
    }

    .menu-btn{
        padding:10px 16px;
        font-size:16px;
    }

    .panel-menu{
        right:10px;
        width:240px;
    }

    .submenu-panel{
        width:200px;
    }

    .hero{
        margin-top:110px;
    }
}
/* ================================= */
/* ðŸ”¥ MOBILE MENU BEHAVIOR FIX */
/* ================================= */

@media (max-width:768px){

    /* submenu should NOT open side */
    .submenu-panel{
        position:relative !important;
        right:auto !important;
        top:auto !important;
        width:100% !important;
        padding-left:10px;
    }

    /* hide by default */
    .submenu-panel{
        display:none;
    }

    /* open on click */
    .has-submenu.open > .submenu-panel{
        display:block;
    }

    /* arrow rotate (optional nice UX) */
    .has-submenu.open > a .item-arrow{
        transform:rotate(90deg);
    }

}

/* ===== HEADER ===== */
.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;
    background:#ffffff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 40px;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
}


.logo img{
    height:60px;
    max-width:100%;
    object-fit:contain;
}

.menu{
    background:#123b6d;
    color:#fff;
    padding:10px 20px;
    font-weight:bold;
}

/* ===== ANNOUNCEMENT ===== */
.announcement{
    position:fixed;          /* ðŸ”¥ freeze */
    top:80px;                /* header ke niche */
    left:0;
    width:100%;
    z-index:9998;

    background:#bdbdbd;
    padding:8px 0;
    overflow:hidden;
    white-space:nowrap;
}

/* TEXT MOVE */
.marquee{
    display:inline-block;
    animation: scrollText 18s linear infinite;
}

.marquee a{
    color:#0c3b6b;
    font-weight:bold;
    text-decoration:underline;
}

@keyframes scrollText{
    from{ transform: translateX(100%); }
    to{ transform: translateX(-100%); }
}

/* ===== HERO ===== */


.hero img{
    display:block;
    width:100%;
    height:auto;
    max-width:100%;
}

/* ===== ABOUT ===== */
.about-section{
    max-width:1100px;      
    margin:0 auto;         
    padding:60px 20px;      

    background:#f5f5f5;
    line-height:1.9;
    font-size:18px;
    color:#000;

    text-align:justify;
}

.about-section p{
    margin-bottom:25px;
}
/* ===== TIMELINE SECTION ===== */
.timeline-section{
    background:#f3f3f5;
    padding:70px 60px 50px;
    position:relative;
}

.timeline-outer{
    max-width:980px;
    margin:0 auto;
    position:relative;
}

/* arrows */
.timeline-arrow{
    position:absolute;
    top:22px;
    width:32px;
    height:32px;
    border:2px solid #0b6f74;
    background:#f3f3f5;
    color:#0b6f74;
    font-size:24px;
    line-height:24px;
    cursor:pointer;
    z-index:5;
}
.timeline-arrow.left{
    left:-8px;
}
.timeline-arrow.right{
    right:-8px;
}

/* scroll area */
.timeline-scroll{
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    white-space:nowrap;
    padding-top:0;
    scrollbar-width:none;
}
.timeline-scroll::-webkit-scrollbar{
    display:none;
}

/* force wider content so scroll definitely works */
.timeline-track{
    display:inline-flex;
    align-items:flex-start;
    gap:18px;
    min-width:max-content;
    padding:0 40px 0 40px;
    position:relative;
}

/* top line */
.timeline-track::before{
    content:"";
    position:absolute;
    top:37px;
    left:48px;
    right:48px;
    height:2px;
    background:#18aab7;
    z-index:0;
}

/* item */
.timeline-item{
    width:210px;
    flex:0 0 210px;
    position:relative;
    padding-top:42px;
}

/* square node */
.timeline-node{
    width:18px;
    height:18px;
    position:absolute;
    top:28px;
    left:50%;
    transform:translateX(-50%);
    z-index:2;
}
.timeline-node.green{
    background:#2db34a;
}
.timeline-node.orange{
    background:#c97a2c;
}

/* little arrow under title */
.timeline-pointer{
    width:0;
    height:0;
    border-left:12px solid transparent;
    border-right:12px solid transparent;
    margin:0 auto;
}
.timeline-pointer.green{
    border-bottom:12px solid #2db34a;
}
.timeline-pointer.orange{
    border-bottom:12px solid #c97a2c;
}

/* card */
.story-card{
    background:#ffffff;
    width:100%;
    display:block;
    box-shadow:none;
}

/* title strip */
.story-title{
    color:#ffffff;
    font-family: Arial, sans-serif;
    font-size:16px;
    padding:10px 14px;
    line-height:1.15;
    white-space:normal;
}
.story-title.green{
    background:#2db34a;
}
.story-title.orange{
    background:#c97a2c;
}

/* image */
.story-card img{
    width:100%;
    height:120px;
    object-fit:cover;
    display:block;
    margin:10px 0 0 0;
    padding:0 8px;
}

/* text */
.story-content{
    padding:8px 14px 12px;
    font-family: Arial, sans-serif;
    font-size:14px;
    line-height:1.45;
    color:#5a5a5a;
    white-space:normal;
    min-height:102px;
}

/* button */
.story-btn{
    margin:0 14px 14px;
    border:1px solid #8d8d8d;
    background:#ffffff;
    color:#666;
    font-size:12px;
    padding:6px 9px;
    cursor:pointer;
}

/* responsive */
@media (max-width: 768px){
    .header{
        padding:10px 15px;
    }
    .logo img{
        height:42px;
    }
    .menu{
        padding:8px 12px;
        font-size:14px;
    }
    .about-section{
        padding:35px 20px;
        font-size:16px;
    }
    .timeline-section{
        padding:40px 10px;
    }
    .timeline-outer{
        max-width:100%;
    }
}


/* ===== RESET ===== */
*{
    box-sizing:border-box;
}
body{
    margin:0;
    font-family: Georgia, "Times New Roman", serif;
    background:#f3f3f5;
    overflow-x:hidden;   /* ðŸ”¥ FIX */
}


/* ===== ETHOS SECTION ===== */
.ethos-section{
    background:#f5f5f5;
    padding:70px 0;
}

/* TEXT CONTAINER */
.ethos-container{
    max-width:1100px;
    margin:0 auto;
    padding:0 20px;
}

.ethos-container h2{
    text-align:center;
    font-size:30px;
    margin-bottom:25px;
}

.ethos-container p{
    font-size:16px;
    line-height:1.8;
    text-align:left;
    margin-bottom:18px;
}

/* ðŸ”¥ CAROUSEL WRAPPER (THIS WAS MISSING) */
.ethos-wrapper{
    max-width:1100px;
    margin:40px auto 0;   /* spacing from text */
    padding:0 20px;
}

/* CAROUSEL */
.carousel-container{
    overflow:hidden;
    cursor:grab;
}

.carousel-track{
    display:flex;
    transition: transform 0.6s ease-in-out;
}

.carousel-track img{
    width:100%;
    flex:0 0 100%;
    height:380px;
    object-fit:cover;
}
/* ===== PRINCIPAL SECTION ===== */
.principal-section{
    background:#f3f3f5;
    padding:80px 0;
}

/* container */
.principal-container{
    max-width:1100px;
    margin:0 auto;
    background:#ffffff;
    display:flex;
    align-items:center;
}

/* LEFT TEXT */
.principal-text{
    width:50%;
    padding:50px;
}

.principal-text h3{
    font-size:26px;
    font-weight:500;
    margin-bottom:15px;
}

.principal-text h4{
    font-size:16px;
    margin-bottom:20px;
    color:#444;
}

.principal-text p{
    font-size:15px;
    line-height:1.8;
    color:#333;
}

/* RIGHT IMAGE */
.principal-image{
    width:50%;
}

.principal-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}
/* ===== ADMISSION SECTION ===== */
.admission-section{
    background:#f3f3f5;
    padding:40px 0;
}

/* container */
.admission-container{
    max-width:1100px;
    margin:0 auto;
    display:flex;
    gap:20px;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
}

/* inputs */
.admission-container input{
    padding:12px 20px;
    border-radius:30px;  /* ðŸ”¥ pill shape */
    border:1px solid #ccc;
    outline:none;
    width:180px;
    font-size:14px;
    background:#fff;
}

/* button */
.download-btn{
    background:#0c2f57;
    color:#fff;
    padding:12px 25px;
    border-radius:30px;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
}
/* ===== FOOTER ===== */
/* ===== FOOTER TOP ===== */
.footer{
    background:#062c4a;   /* ðŸ”¥ lighter blue */
    color:#cfe3f5;
    padding:60px 0 50px;
}

.footer-container{
    max-width:1100px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    gap:40px;
    align-items:flex-start;
}

/* columns */
.footer-col{
    width:22%;
}

.footer-col h3{
    color:#ffffff;
    font-size:20px;
    margin-bottom:20px;
    font-weight:500;
}

.footer-col p{
    margin:10px 0;
    font-size:14px;
    line-height:1.6;
    color:#9fc0db;
}

/* video */
.footer-video iframe{
    width:260px;
    height:160px;
    border:none;
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom{
    background:#021f36;   /* ðŸ”¥ darker blue */
    text-align:center;
    padding:40px 0;
}

.footer-bottom img{
    width:90px;
    margin-bottom:15px;
    opacity:0.9;
}

.footer-bottom p{
    font-size:13px;
    color:#7fa6c5;
}
.footer-col p a{
    color:#9fc0db;          /* same as paragraph */
    text-decoration:none;   /* remove underline */
}

/* visited link fix */
.footer-col p a:visited{
    color:#9fc0db;
}

/* hover effect */
.footer-col p a:hover{
    color:#ffffff;
}

/* ===== WHATSAPP ===== */
.whatsapp{
    position:fixed;
    bottom:20px;
    left:15px;
    background:#25D366;
    color:#fff;
    padding:8px 14px;
    border-radius:20px;
    font-size:13px;
    text-decoration:none;
}

/* ===== SCROLL TOP ===== */
.scroll-top{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#a30d1d;
    color:#fff;
    border:none;
    padding:10px 14px;
    font-size:16px;
    cursor:pointer;
}
/* ===================================================== */
/* ðŸ”¥ RESPONSIVE FIX (ONLY ADD â€” DON'T REMOVE OLD CSS) */
/* ===================================================== */

/* ===== TABLET ===== */
@media (max-width:1024px){

    .about-section{
        padding:40px 40px;
    }

    .principal-text{
        padding:30px;
    }

    .footer-container{
        flex-wrap:wrap;
    }

    .footer-col{
        width:45%;
    }

}

/* ===== MOBILE ===== */
@media (max-width:768px){

    /* HEADER */
    .header{
        padding:10px 15px;
    }
    .hero{
    margin-top:110px;
}
    .logo img{
        height:45px;
    }

    .menu{
        padding:8px 12px;
        font-size:13px;
    }

    /* ANNOUNCEMENT */
    .announcement{
        top:65px;
        font-size:13px;
    }


    /* ABOUT */
    .about-section{
        padding:25px 15px;
        font-size:15px;
    }

    /* ===== TIMELINE FIX ===== */
    .timeline-section{
        padding:40px 10px;
    }

    .timeline-scroll{
        padding:0 10px;
    }

    .timeline-item{
        width:170px;          /* smaller cards */
        flex:0 0 170px;
    }

    .story-card img{
        height:100px;
    }

    .story-content{
        font-size:12px;
        min-height:auto;
    }

    /* ===== PRINCIPAL STACK ===== */
    .principal-container{
        flex-direction:column;
    }

    .principal-text,
    .principal-image{
        width:100%;
    }

    .principal-text{
        padding:20px;
    }

    /* ===== ADMISSION ===== */
    .admission-container{
        flex-direction:column;
        align-items:center;
    }

    .admission-container input{
        width:90%;
    }

    .download-btn{
        width:90%;
        text-align:center;
    }

    /* ===== FOOTER ===== */
    .footer-container{
        flex-direction:column;
        text-align:center;
    }

    .footer-col{
        width:100%;
    }

    .footer-video iframe{
        width:100%;
        height:200px;
    }

}

/* ===== SMALL MOBILE ===== */
@media (max-width:480px){

    .timeline-item{
        width:150px;
        flex:0 0 150px;
    }

    .story-title{
        font-size:13px;
    }

    .story-content{
        font-size:11px;
    }
     
}
/* ===== FINAL HERO (CLEAN) ===== */

.hero{
    margin-top:120px;
    width:100%;
}

.hero img{
    width:100%;
    height:auto;
    display:block;
}
@media (max-width:768px){
    .hero{
        margin-top:110px;
    }
}

@media (max-width:480px){
    .hero{
        margin-top:95px;
    }
}

/* ============================= */
/* 🔥 TIMELINE FINAL FIX */
/* ============================= */

/* ===== ITEM ===== */
.timeline-item{
    width:210px;
    flex:0 0 210px;
    position:relative;
    padding-top:50px; /* default */
}

/* ===== DATE ===== */
.timeline-date{
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    
    font-size:13px;
    font-weight:600;
    color:#2db34a;
    white-space:nowrap;
}

/* ===== IF NO DATE ===== */
.timeline-item.no-date{
    padding-top:42px;
}

/* ===== NODE ===== */
.timeline-node{
    width:18px;
    height:18px;
    position:absolute;
    top:28px;
    left:50%;
    transform:translateX(-50%);
    z-index:2;
}

/* ===== LINE ALIGN (ALREADY OK BUT ENSURE) ===== */
.timeline-track::before{
    content:"";
    position:absolute;
    top:37px;
    left:48px;
    right:48px;
    height:2px;
    background:#18aab7;
    z-index:0;
}

/* ===== POINTER ===== */
.timeline-pointer{
    width:0;
    height:0;
    border-left:12px solid transparent;
    border-right:12px solid transparent;
    margin:0 auto;
}

/* ============================= */
/* 📱 MOBILE FIX */
/* ============================= */

@media (max-width:768px){

    .timeline-item{
        width:170px;
        flex:0 0 170px;
        padding-top:45px;
    }

    .timeline-date{
        font-size:11px;
        top:-2px;
    }

    .timeline-item.no-date{
        padding-top:38px;
    }

}

/* ============================= */
/* 📱 SMALL MOBILE */
/* ============================= */

@media (max-width:480px){

    .timeline-item{
        width:150px;
        flex:0 0 150px;
        padding-top:42px;
    }

    .timeline-date{
        font-size:10px;
    }

}


/* ===== Time-line CARD HEIGHT ALIGN FIX ===== */

/* IMPORTANT: parent track ko stretch karo */
.timeline-track{
    display:flex;
    align-items:stretch;   /* 🔥 sab same height */
}

/* item full height lega */
.timeline-item{
    display:flex;
    flex-direction:column;
}

/* card full height */
.story-card{
    display:flex;
    flex-direction:column;
    height:100%;
}

/* title fixed height */
.story-title{
    min-height:50px;
    display:flex;
    align-items:center;
}

/* content stretch */
.story-content{
    flex-grow:1;   /* 🔥 main fix */
    min-height:110px;
}

/* button always bottom */
.story-btn{
    margin-top:auto;
}


/* Modal */

/* ============================= */
/* 🔥 MODAL PROFESSIONAL DESIGN */
/* ============================= */

/* dialog position */
.modal-dialog{
    max-width:900px;
    margin:auto;
    margin-top: clamp(120px, 15vh, 180px);

}

/* modal box */
.modal-content{
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 12px 35px rgba(0,0,0,0.25);
    animation: modalFade 0.3s ease;
    position:relative;
}

/* animation */
@keyframes modalFade{
    from{
        transform:translateY(20px);
        opacity:0;
    }
    to{
        transform:translateY(0);
        opacity:1;
    }
}

/* ============================= */
/* 🔥 BEAUTIFUL CLOSE BUTTON */
/* ============================= */

.custom-close{
    position:absolute;
    top:25px;
    right:15px;

    width:38px;
    height:38px;

    border-radius:50%;
    background:rgba(255,255,255,0.9);
    border:none;

    font-size:22px;
    line-height:38px;
    text-align:center;

    color:#333;
    box-shadow:0 4px 12px rgba(0,0,0,0.2);

    z-index:20;
    cursor:pointer;
    transition:all 0.25s ease;
}

/* hover */
.custom-close:hover{
    background:#0b6f74;
    color:#fff;
    transform:scale(1.1);
}

/* ============================= */
/* HEADER */
/* ============================= */

.modal-header{
    padding:18px 22px 5px;
}

/* ============================= */
/* BODY */
/* ============================= */

.modal-body{
    max-height:80vh;
    overflow-y:auto;
    overflow-x:hidden;
    padding:20px;
}

/* ============================= */
/* IMAGE FIX */
/* ============================= */

.story-image{
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:12px;
    margin-top:10px;   /* 🔥 spacing from close button */
}

/* desktop */
@media(min-width:768px){
    .story-image{
        height:320px;
    }
}

/* ============================= */
/* TEXT */
/* ============================= */

.story-text{
    margin-top:18px;
    font-size:14px;
    line-height:1.7;
    color:#333;
}

.story-like{
    margin:12px 0;
    font-size:13px;
    color:#777;
}

/* ============================= */
/* NAV */
/* ============================= */

.story-nav{
    display:flex;
    justify-content:space-between;
    border-top:1px solid #eee;
    padding-top:14px;
    margin-top:18px;
}

.story-nav a{
    text-decoration:none;
    color:#333;
    font-size:13px;
    transition:0.2s;
}

.story-nav a:hover{
    color:#0b6f74;
}

/* ========================================= */
/* 🔥 MOBILE ONLY FIX (DO NOT TOUCH DESKTOP) */
/* ========================================= */

@media (max-width:768px){

    /* ===== HERO FIX ===== */
    .hero{
        height:320px;          /* 🔥 bigger hero */
        overflow:hidden;
    }

    .hero img{
        width:100%;
        height:100%;
        object-fit:cover;      /* 🔥 no stretch, proper crop */
        display:block;
    }


    /* ===== CAROUSEL FIX ===== */
    .carousel-track img{
        width:100%;
        height:auto !important;   /* 🔥 FIX BLACK STRIP */
        object-fit:cover;
        display:block;
    }
     /* CENTER ALIGN TEXT */
    .ethos-container h2{
        text-align:center !important;
        font-size:22px;
        line-height:1.4;
    }

    .ethos-container p{
        text-align:center !important;
        font-size:14px;
        line-height:1.6;
        margin-bottom:15px;
    }

     /* ===== REMOVE EXTRA GAP BELOW CAROUSEL ===== */
    .ethos-wrapper{
         margin:20px auto 0 !important;
        padding:0 !important;
    }

    .carousel-container{
        overflow:hidden;
        margin:0 !important;
        padding:0 !important;
    }

    .carousel-track{
        margin-bottom:0 !important;
    }

      /* next section ko upar lao */
    .principal-section{
        margin-top:-20px;   /* 🔥 tight spacing */
    }


}


/* ===== EXTRA SMALL MOBILE ===== */
@media (max-width:480px){

    .hero{
        height:260px;          /* 🔥 still big but balanced */
    }

    .carousel-track img{
        height:200px;
    }

}

/* ============================= */
/* 📱 FINAL MOBILE FIX (REAL) */
/* ============================= */

@media(max-width:768px){

    /* 🔥 FIX HEADER OVERLAP */
    .modal{
        padding-top:110px !important; /* header + announcement height */
    }

    /* dialog */
    .modal-dialog{
        margin:0;
        max-width:100%;
        height:auto;
    }

    /* modal box */
    .modal-content{
        height:auto;
        min-height:calc(100vh - 110px); /* 🔥 main fix */
        border-radius:12px 12px 0 0;
    }

    /* body */
    .modal-body{
        max-height:none;
        overflow-y:auto;
        padding:12px;
    }

    /* image */
    .story-image{
        width:100%;
        height:170px;
        object-fit:cover;
        border-radius:10px;
    }

    /* text */
    .story-text{
        font-size:13px;
        line-height:1.6;
        margin-top:10px;
    }

    .story-like{
        margin:6px 0;
    }

    .story-nav{
        margin-top:10px;
    }

    /* close button */
  .custom-close{
    position:absolute;
    top:10px;        /* 🔥 always top */
    right:10px;

    width:32px;
    height:32px;
    font-size:18px;
    line-height:32px;

    background:#fff;
    border-radius:50%;
    z-index:20;
}

}
/* ================================= */
/* 🔥 PRINCIPAL TEXT JUSTIFY (MOBILE ONLY) */
/* ================================= */
@media (max-width:768px){

    .principal-text p{
        text-align:justify !important;
        text-justify:inter-word;
    }

}
