/* ================= RESET ================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', sans-serif;
}

body{
    background:#f5f7fa;
    line-height:1.6;
}

/* ================= HEADER ================= */
.main-header{
    background:#0a3d62;
    color:#fff;
    position:sticky;
    top:0;
    z-index:9999;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

/* CONTAINER */
.header-flex{
    width:95%;
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
}

/* ================= LOGO ================= */
.logo{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo img{
    width:55px;
    height:55px;
    border-radius:6px;
}

.logo h2{
    font-size:18px;
    color:#fff;
}

.logo p{
    font-size:12px;
    color:#ddd;
}

/* ================= NAV ================= */
.nav ul{
    display:flex;
    list-style:none;
    gap:20px;
}

/* LINKS */
.nav ul li a{
    text-decoration:none;
    color:#fff;
    font-weight:500;
    font-size:14px;
    position:relative;
}

/* HOVER LINE */
.nav ul li a::after{
    content:'';
    position:absolute;
    width:0;
    height:2px;
    background:#feca57;
    left:0;
    bottom:-5px;
    transition:0.3s;
}

.nav ul li a:hover::after{
    width:100%;
}

/* ================= MOBILE MENU BUTTON ================= */
.menu-toggle{
    display:none;
    font-size:28px;
    cursor:pointer;
    color:#fff;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){

    /* SHOW MENU BUTTON */
    .menu-toggle{
        display:block;
    }

    /* NAV DROPDOWN */
    .nav{
        position:absolute;
        top:70px;
        right:0;
        width:100%;
        background:#0a3d62;
        display:none;
        flex-direction:column;
        padding:20px 0;
        box-shadow:0 10px 20px rgba(0,0,0,0.2);
    }

    /* ACTIVE MENU */
    .nav.active{
        display:flex;
    }

    /* LIST */
    .nav ul{
        flex-direction:column;
        align-items:center;
        gap:15px;
    }

    .nav ul li{
        width:100%;
        text-align:center;
    }

    .nav ul li a{
        display:block;
        padding:10px 0;
        font-size:16px;
    }

    /* REMOVE HOVER LINE ON MOBILE */
    .nav ul li a::after{
        display:none;
    }
}

/* ================= SMALL MOBILE ================= */
@media(max-width:500px){

    .logo h2{
        font-size:14px;
    }

    .logo p{
        font-size:10px;
    }

    .logo img{
        width:45px;
        height:45px;
    }
}

/* ================= HERO SLIDER ================= */
.hero-slider{
    position:relative;
    overflow:hidden;
    height: 420px;   /* 🔥 VERY IMPORTANT */
}

/* IMPORTANT FIX */
.callbacks_container{
    position:relative;
    width:100%;
    height:100%;
}

/* SLIDER */
.rslides{
    width:100%;
    margin:0;
    padding:0;
    list-style:none;
    position:relative;
}
.rslides{
    height: 100%;
}

.rslides li{
    height: 100%;
}
.hero-slider img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.callbacks_nav,
.callbacks_tabs{
    position: absolute;
    z-index: 9999;
}

.rslides li{
    width:100%;
    position:relative;
}

/* IMAGE */
.hero-slider img{
    width:100%;
    height:420px;
    object-fit:cover;
    display:block;
}

/* TEXT OVERLAY */
.overlay-text{
    position:absolute;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    background:rgba(0,0,0,0.6);
    backdrop-filter:blur(5px);
    color:#fff;
    padding:12px 20px;
    border-radius:5px;
    font-size:16px;
    text-align:center;
    z-index:5;
}

/* ================= DOTS ================= */
.callbacks_tabs{
    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:9999;
}

.callbacks_tabs li{
    list-style:none;
}

.callbacks_tabs li a{
    width:12px;
    height:12px;
    background:#fff;
    border-radius:50%;
    display:block;
    text-indent:-9999px;
    opacity:0.6;
    transition:0.3s;
}

.callbacks_tabs li a:hover{
    opacity:1;
}

.callbacks_tabs .callbacks_here a{
    background:#feca57;
    opacity:1;
}

/* ================= PREV / NEXT ================= */
.callbacks_nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:45px;
    height:45px;
    border-radius:50%;
    background:rgba(0,0,0,0.5);
    z-index:9999;
    text-indent:-9999px;
    display:block !important;
    cursor:pointer;
}

/* LEFT */
.callbacks_nav.prev{
    left:15px;
}

/* RIGHT */
.callbacks_nav.next{
    right:15px;
}

/* ARROWS */
.callbacks_nav.prev::after{
    content:"❮";
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    color:#fff;
    font-size:22px;
}

.callbacks_nav.next::after{
    content:"❯";
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    color:#fff;
    font-size:22px;
}

/* HOVER */
.callbacks_nav:hover{
    background:#feca57;
}

.callbacks_nav:hover::after{
    color:#000;
}

/* REMOVE TEXT */
.callbacks_nav,
.callbacks_tabs a{
    font-size:0 !important;
}

/* ================= MAIN ================= */
.container{
    width:90%;
    margin:auto;
    padding:40px 0;
}

/* CARDS */
.card-section{
    background:#fff;
    padding:25px;
    margin-bottom:30px;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.3s;
}

.card-section:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.card-section h2{
    color:#0a3d62;
    margin-bottom:15px;
    position:relative;
}

.card-section h2::after{
    content:'';
    width:50px;
    height:3px;
    background:#feca57;
    display:block;
    margin-top:8px;
}

/* LIGHT BG */
.card-section.light{
    background:#eef3f7;
}

/* GRID */
.grid{
    display:flex;
    gap:20px;
}

.card{
    flex:1;
    background:#fff;
    padding:20px;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.3s;
}

.card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.card h3{
    color:#0a3d62;
    margin-bottom:10px;
}

/* ================= FOOTER ================= */
/* ================= FOOTER ================= */
.footer{
    background:#0a3d62;
    color:#fff;
    padding:50px 0 20px;
}

/* CONTAINER */
.footer-container{
    width:90%;
    max-width:1100px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    gap:40px;
    flex-wrap:wrap;
}

/* COLUMN */
.footer-col{
    flex:1;
    min-width:250px;
}

/* HEADING */
.footer-col h3{
    margin-bottom:15px;
    font-size:20px;
    color:#feca57;
    font-weight:600;
}

/* TEXT */
.footer-col p{
    font-size:14px;
    margin-bottom:8px;
    color:#ddd;
    line-height:1.6;
}

/* ================= LOGO SECTION ================= */
.footer-brand{
    max-width:320px;
}

.footer-logo-box{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:12px;
}

.footer-logo-box img{
    width:60px;
    height:60px;
    border-radius:8px;
    object-fit:cover;
}

/* DESCRIPTION */
.footer-desc{
    font-size:14px;
    color:#ccc;
    margin-top:10px;
}

/* ================= LINKS ================= */
.footer-col ul{
    list-style:none;
    padding:0;
}

.footer-col ul li{
    margin-bottom:8px;
}

.footer-col ul li a{
    text-decoration:none;
    color:#ddd;
    font-size:14px;
    transition:0.3s;
}

.footer-col ul li a:hover{
    color:#feca57;
    padding-left:5px;
}

/* ================= FOOTER BOTTOM ================= */
.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.2);
    margin-top:30px;
    padding-top:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    width:90%;
    margin-left:auto;
    margin-right:auto;
}

/* TEXT */
.footer-bottom p{
    font-size:13px;
    color:#ccc;
}

/* ADMIN BUTTON */
.admin-btn{
    background:#feca57;
    color:#000;
    padding:7px 16px;
    border-radius:6px;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    transition:0.3s;
}

.admin-btn:hover{
    background:#ff9f43;
}

/* ================= HOVER EFFECT ================= */
.footer-logo-box img:hover{
    transform:scale(1.05);
    transition:0.3s;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){

    .footer-container{
        flex-direction:column;
        text-align:center;
        gap:25px;
    }

    .footer-logo-box{
        justify-content:center;
    }

    .footer-brand{
        max-width:100%;
    }

    .footer-bottom{
        flex-direction:column;
        gap:10px;
        text-align:center;
    }
}



/* ================= RESPONSIVE ================= */
@media(max-width:768px){

    .nav{
        position:absolute;
        top:120px;
        right:0;
        background:#0a3d62;
        width:220px;
        display:none;
        flex-direction:column;
    }

    .nav.active{
        display:flex;
    }

    .nav ul{
        flex-direction:column;
        padding:20px;
    }

    .menu-toggle{
        display:block;
    }

    .hero-slider img{
        height:250px;
    }

    .grid{
        flex-direction:column;
    }
}

/****Principaly message *******/
/* PAGE WRAPPER */
.content-wrapper{
    width:90%;
    max-width:1100px;
    margin:auto;
    padding:50px 0;
}

/* TITLE */
.page-title{
    text-align:center;
    font-size:38px;          /* bigger */
    font-weight:700;
    margin-bottom:35px;
    color:#0a3d62;
    letter-spacing:1px;
}

/* BOX */
.principal-box{
    display:flex;
    gap:40px;
    align-items:flex-start;
    background:#fff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 8px 25px rgba(0,0,0,0.1);
}

/* IMAGE */
.principal-img{
    width:260px;             /* bigger image */
    border-radius:12px;
}

/* TEXT */
.principal-text{
    flex:1;
    font-size:18px;          /* bigger text */
    line-height:1.9;         /* better spacing */
    color:#333;
}

/* FIRST LINE (Dear Student...) */
.principal-text p strong{
    font-size:20px;
    color:#0a3d62;
}

/* SIGNATURE */
.signature{
    margin-top:25px;
    font-size:18px;
    font-weight:600;
    color:#000;
}

/* MOBILE */
@media(max-width:768px){

    .principal-box{
        flex-direction:column;
        text-align:center;
        padding:25px;
    }

    .principal-img{
        width:180px;
        margin:auto;
    }

    .principal-text{
        font-size:16px;   /* still readable */
        text-align:justify;
    }

    .page-title{
        font-size:26px;
    }
}

/**LIBRAY SECTION****/
/* ================= LIBRARY SECTION ================= */
.library-section{
    width:95%;
    max-width:1200px;
    margin:auto;
    padding:60px 0;
}

/* TITLE */
.page-title{
    text-align:center;
    font-size:42px;
    font-weight:700;
    margin-bottom:50px;
    color:#0a3d62;
    letter-spacing:1px;
}

/* ================= CARD ================= */
.library-card{
    display:flex;
    gap:30px;
    background:#ffffff;
    margin-bottom:35px;
    padding:25px;
    border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    transition:0.3s ease;
    align-items:center;
}

/* HOVER EFFECT */
.library-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 40px rgba(0,0,0,0.12);
}

/* IMAGE */
.library-card img{
    width:260px;
    height:220px;
    object-fit:cover;
    border-radius:12px;
}

/* CONTENT */
.library-content{
    flex:1;
}

/* HEADING */
.library-content h3{
    color:#0a3d62;
    font-size:22px;
    margin-bottom:15px;
    position:relative;
}

/* UNDERLINE */
.library-content h3::after{
    content:'';
    width:50px;
    height:3px;
    background:#feca57;
    display:block;
    margin-top:6px;
}

/* LIST */
.library-content ul{
    padding-left:20px;
}

.library-content li{
    margin-bottom:8px;
    font-size:17px;
    color:#333;
    line-height:1.6;
}

/* ================= BACKGROUND STRIP ================= */
.library-section{
    background:linear-gradient(to bottom,#f8fbff,#eef5ff);
    border-radius:20px;
    padding:50px 20px;
}

/* ================= MOBILE ================= */
@media(max-width:768px){

    .library-card{
        flex-direction:column;
        text-align:center;
        padding:20px;
    }

    .library-card img{
        width:100%;
        max-width:300px;
        height:auto;
        margin:auto;
    }

    .library-content{
        text-align:left;
    }

    .page-title{
        font-size:28px;
    }

    .library-content li{
        font-size:15px;
    }
}

/****STAFF CSS*********/
/* ================= STAFF SECTION ================= */
.staff-section{
    width:95%;
    max-width:1100px;
    margin:auto;
    padding:50px 0;
}

/* TITLE */
.page-title{
    text-align:center;
    font-size:38px;
    color:#0a3d62;
    margin-bottom:30px;
}

/* SUB TITLE */
.sub-title{
    text-align:center;
    margin:30px 0 20px;
    color:#333;
}

/* PDF BUTTON */
.pdf-box{
    text-align:center;
    margin-bottom:30px;
}

.pdf-box a{
    background:#0a3d62;
    color:#fff;
    padding:12px 20px;
    text-decoration:none;
    border-radius:8px;
    font-size:16px;
    display:inline-block;
    transition:0.3s;
}

.pdf-box a:hover{
    background:#feca57;
    color:#000;
}

/* IMAGE BOX */
.staff-img-box{
    margin-bottom:25px;
    text-align:center;
}

/* IMAGE */
.staff-img-box img{
    width:100%;
    max-width:800px;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
}

/* ================= MOBILE ================= */
@media(max-width:768px){

    .page-title{
        font-size:28px;
    }

    .staff-img-box img{
        max-width:100%;
    }
}

/* =============Documents CSS ============= */
/* ================= DOCUMENT SECTION ================= */
.doc-section{
    width:95%;
    max-width:1100px;
    margin:auto;
    padding:50px 0;
}

/* TITLE */
.page-title{
    text-align:center;
    font-size:38px;
    margin-bottom:40px;
    color:#0a3d62;
}

/* GRID */
.doc-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

/* CARD */
.doc-card{
    display:block;
    background:#fff;
    padding:20px;
    border-radius:10px;
    text-decoration:none;
    color:#0a3d62;
    font-size:18px;
    font-weight:600;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
    text-align:center;
}

/* HOVER */
.doc-card:hover{
    background:#0a3d62;
    color:#fff;
    transform:translateY(-5px);
}

/* MOBILE */
@media(max-width:768px){

    .page-title{
        font-size:26px;
    }

    .doc-card{
        font-size:16px;
    }
}

/**Students Section CSS ********/
/* ================= STUDENT SECTION ================= */
.student-section{
    width:95%;
    max-width:1000px;
    margin:auto;
    padding:50px 0;
}

/* TITLE */
.page-title{
    text-align:center;
    font-size:36px;
    margin-bottom:40px;
    color:#0a3d62;
}

/* GRID */
.student-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

/* CARD */
.student-card{
    display:block;
    background:#fff;
    padding:20px;
    border-radius:10px;
    text-decoration:none;
    color:#0a3d62;
    font-size:18px;
    font-weight:600;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
    text-align:center;
}

/* HOVER */
.student-card:hover{
    background:#0a3d62;
    color:#fff;
    transform:translateY(-5px);
}

/* MOBILE */
@media(max-width:768px){

    .page-title{
        font-size:26px;
    }

    .student-card{
        font-size:16px;
    }
}

/**========CONTACT HTML ============= */
/* ================= CONTACT SECTION ================= */
.contact-section{
    width:95%;
    max-width:800px;
    margin:auto;
    padding:60px 0;
}

/* TITLE */
.page-title{
    text-align:center;
    font-size:36px;
    margin-bottom:40px;
    color:#0a3d62;
}

/* BOX */
.contact-box{
    background:#fff;
    padding:30px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,0.1);
}

/* HEADING */
.contact-box h2{
    color:#0a3d62;
    margin-bottom:10px;
}

/* ADDRESS */
.contact-box p{
    font-size:16px;
    margin-bottom:10px;
    color:#333;
}

/* DETAILS */
.contact-details{
    margin-top:20px;
}

.contact-details p{
    font-size:18px;
    margin-bottom:10px;
}

/* LINKS */
.contact-details a{
    color:#0a3d62;
    text-decoration:none;
    font-weight:600;
}

.contact-details a:hover{
    color:#feca57;
}

/* MOBILE */
@media(max-width:768px){

    .page-title{
        font-size:26px;
    }

    .contact-box{
        padding:20px;
    }

    .contact-details p{
        font-size:16px;
    }
}

/***========LATEST NEWS ========*****/
/* ================= FILE SECTION ================= */
.file-section{
    width:95%;
    max-width:1100px;
    margin:auto;
    padding:50px 0;
}

/* TITLE */
.page-title{
    text-align:center;
    font-size:36px;
    margin-bottom:40px;
    color:#0a3d62;
}

/* GRID */
.file-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

/* CARD */
.file-card{
    background:#fff;
    padding:20px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
}

.file-card:hover{
    transform:translateY(-5px);
}

/* TITLE */
.file-card h3{
    font-size:16px;
    margin-bottom:15px;
    color:#0a3d62;
}

/* IMAGE */
.file-card img{
    width:100%;
    border-radius:10px;
}

/* PDF ICON */
.file-icon{
    font-size:18px;
    margin-bottom:10px;
}

/* BUTTON */
.view-btn{
    display:inline-block;
    padding:8px 15px;
    background:#0a3d62;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    transition:0.3s;
}

.view-btn:hover{
    background:#feca57;
    color:#000;
}

/* MOBILE */
@media(max-width:768px){
    .page-title{
        font-size:26px;
    }
}

/* ================= LOGIN SECTION ================= */
.login-section{
    width:95%;
    max-width:400px;
    margin:auto;
    padding:80px 0;
    text-align:center;
}

/* TITLE */
.page-title{
    font-size:32px;
    margin-bottom:30px;
    color:#0a3d62;
}

/* LOGIN BOX */
.login-box{
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

/* INPUT */
.login-box input{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:14px;
}

/* BUTTON */
.login-box button{
    width:100%;
    padding:12px;
    background:#0a3d62;
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

.login-box button:hover{
    background:#feca57;
    color:#000;
}

/* MOBILE */
@media(max-width:768px){
    .page-title{
        font-size:24px;
    }
}
/* ================= UPLOAD SECTION ================= */
.upload-section{
    width:95%;
    max-width:900px;
    margin:auto;
    padding:50px 0;
}

/* TITLE */
.page-title{
    text-align:center;
    font-size:34px;
    color:#0a3d62;
    margin-bottom:30px;
}

/* BOX */
.upload-box{
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    text-align:center;
}

/* INPUT */
.upload-box input{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:6px;
}

/* BUTTON */
.upload-box button{
    padding:10px 20px;
    margin:5px;
    background:#0a3d62;
    color:#fff;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

.upload-box button:hover{
    background:#feca57;
    color:#000;
}

/* LOGOUT */
.logout-btn{
    background:#dc3545 !important;
}

/* FILE LIST */
.file-container{
    margin-top:30px;
}

/* FILE CARD */
.file-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#fff;
    padding:15px;
    margin-bottom:10px;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

/* INFO */
.file-info p{
    font-size:13px;
    color:#555;
}

/* DELETE BUTTON */
.file-card button{
    background:red;
    color:#fff;
    border:none;
    padding:6px 12px;
    border-radius:5px;
    cursor:pointer;
}

/* MOBILE */
@media(max-width:768px){
    .file-card{
        flex-direction:column;
        gap:10px;
        text-align:center;
    }
}