/* ==========================================
   GANITHA GURA LMS V1.0
   Components
========================================== */

/* Primary Button */

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:12px 24px;

    border:none;

    border-radius:var(--radius-md);

    background:var(--button-color,var(--primary));

    color:var(--white);

    font-size:var(--font-md);

    font-weight:600;

    cursor:pointer;

    transition:var(--transition);

}

.btn:hover{

    background:var(--primary-dark);

    transform:translateY(-2px);

    box-shadow:var(--shadow-md);

}

/* Secondary Button */

.btn-secondary{

    background:var(--secondary);

    color:var(--black);

}

.btn-secondary:hover{

    opacity:.9;

}
/* ========================================
   Navigation Bar
======================================== */

.navbar{
    width:100%;
    background:linear-gradient(90deg,#08255D,#0B3D91);
    padding:18px 0;
    box-shadow:0 6px 18px rgba(0,0,0,.18);
}
.navbar.scrolled{

    background:#08142f;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

    transition:.3s;

}
.flex-between{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo h2{
    color:#FFD54A;
    font-size:28px;
    font-weight:700;
}

.logo span{
    color:rgba(255,255,255,.85);
    font-size:13px;
}
.nav-menu{ 
    display: flex
    list-style:none;
    gap:35px;
    align-items:center;
    margin:0;
    padding:0;

}
.nav-menu a{
    text-decoration:none;
    color:white;
    font-weight:500;
    transition:.3s;
}

.nav-menu a:hover{
    color:#FFD54A;
}
/* ==========================================
   Hero
========================================== */

.hero h1{
    font-size:52px;
    font-weight:700;
    margin-bottom:20px;
    color:var(--primary-dark);
}

.hero p{
    font-size:20px;
    line-height:1.8;
    max-width:600px;
    margin-bottom:35px;
    color:#555;
}
.hero-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;
}

.hero-text{
    flex:1;
}

.hero-image{
    flex:1;
    text-align:right;
}

.hero-image img{
    max-width:100%;
    width:500px;
}
/* ==========================
   FEATURES SECTION
========================== */

.features{
    padding:80px 0;
    background:#f8f9fc;
}

.section-title{
    text-align:center;
    font-size:36px;
    margin-bottom:50px;
    color:#1d2b53;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.feature-card{
    background:#ffffff;
    padding:30px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 10px 20px rgba(0,0,0,.08);
}

.feature-card h3{
    margin-bottom:15px;
}

.feature-card p{
    color:#666;
}
.hero-image{
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img{
    width: 420px;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}
/* ===============================
   Latest Lessons
================================ */

.latest-lessons{
    padding:80px 0;
    background:#f8f9fc;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    font-size:36px;
    color:var(--primary-dark);
    margin-bottom:10px;
}

.section-title p{
    color:#666;
}

.lesson-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.lesson-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    text-align:center;
    padding-bottom:25px;
}

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

.lesson-card h3{
    margin:20px 0 10px;
}

.lesson-card p{
    margin-bottom:20px;
    color:#666;
}
/* ===========================
   About Teacher
=========================== */

.about-teacher{
    padding:80px 0;
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.about-image img{
    width:100%;
    max-width:450px;
    border-radius:20px;
    display:block;
    margin:auto;
}

.about-content h2{
    font-size:38px;
    margin-bottom:20px;
}

.about-content h3{
    margin-bottom:10px;
    color:#0F3D91;
}

.about-content p{
    color:#666;
    line-height:1.8;
    margin-bottom:20px;
}
/* ===========================
   Statistics
=========================== */

.stats{
    padding:80px 0;
    background:#0F3D91;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    text-align:center;
}

.stat-box{
    color:#fff;
}

.stat-box h2{
    font-size:48px;
    margin-bottom:10px;
    color:#FFD54A;
}

.stat-box p{
    font-size:18px;
    color:rgba(255,255,255,.9);
}
.stat-number::after{
    content:"+";
}
/* ==========================
   TESTIMONIALS
========================== */

.testimonials{
    padding:100px 0;
    background:#f8f9fc;
}

.testimonial-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.testimonial-card{
    background:#fff;
    padding:35px 30px;
    border-radius:18px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
}

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

.testimonial-card p{
    color:#666;
    line-height:1.8;
    margin-bottom:20px;
}

.testimonial-card h4{
    color:#FFD54A;
    font-size:24px;
    margin-bottom:10px;
}

.testimonial-card span{
    color:#777;
    font-weight:600;
}
/* ==========================
   FOOTER
========================== */

.footer{
    background:#0B1D3A;
    color:#fff;
    padding:70px 0 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}

.footer h3,
.footer h4{
    color:#FFD54A;
    margin-bottom:20px;
}

.footer p,
.footer li{
    color:rgba(255,255,255,.8);
    margin-bottom:12px;
}

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

.footer a{
    color:rgba(255,255,255,.8);
    text-decoration:none;
    transition:.3s;
}

.footer a:hover{
    color:#FFD54A;
}

.copyright{
    margin-top:40px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.15);
    text-align:center;
    color:rgba(255,255,255,.7);
    font-size:14px;
}
/* ==========================
   PRELOADER
========================== */

#preloader{
    position:fixed;
    inset:0;
    background:#ffffff;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.loader{
    width:60px;
    height:60px;
    border:6px solid #e5e5e5;
    border-top:6px solid #0F3D91;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* ==========================
   BACK TO TOP
========================== */

#backToTop{
    position:fixed;
    right:25px;
    bottom:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#0F3D91;
    color:#fff;
    font-size:22px;
    cursor:pointer;
    display:none;
    box-shadow:0 8px 20px rgba(0,0,0,.2);
    transition:.3s;
}

#backToTop:hover{
    background:#08255D;
    transform:translateY(-3px);
}

html{
    scroll-behavior:smooth;
}
/* ============================
   Authentication
============================ */

.auth-section{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(135deg,#08255D,#0B3D91);
    padding:40px 20px;
}

.auth-card{
    width:100%;
    max-width:430px;
    background:#fff;
    border-radius:20px;
    padding:40px;
    box-shadow:0 20px 50px rgba(0,0,0,.2);
}

.auth-card h2{
    text-align:center;
    color:#08255D;
    margin-bottom:25px;
}

.auth-card input{
    width:100%;
    padding:14px;
    margin-bottom:18px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:15px;
}

.auth-card button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:10px;
    background:#08255D;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

.auth-card button:hover{
    background:#0B3D91;
}

.auth-links{
    margin-top:20px;
    text-align:center;
}

.auth-links a{
    color:#0B3D91;
    text-decoration:none;
}

.auth-links a:hover{
    text-decoration:underline;
}
select{

    width:100%;

    padding:14px;

    margin:10px 0;

    border:1px solid #ddd;

    border-radius:10px;

    font-size:15px;

}

.checkbox{

    display:flex;

    align-items:center;

    gap:10px;

    margin:15px 0;

    font-size:14px;

}

.checkbox input{

    width:auto;

}

/* Public account access */
.access-section{
    padding:80px 0;
    background:var(--white);
}

.access-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}

.access-card{
    background:var(--surface);
    padding:30px;
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    box-shadow:var(--shadow-sm);
}

.access-card h3{
    color:var(--primary-dark);
    font-size:var(--font-lg);
    margin-bottom:10px;
}

.access-card p{
    color:var(--text-light);
    min-height:78px;
    margin-bottom:20px;
}

.access-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.access-actions .btn{
    flex:1 1 170px;
}

.grade-hub-card{grid-column:1/-1}
.grade-hub-card>p{min-height:0}
.grade-access-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.grade-selection-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;padding:15px;border:1px solid #dbeafe;border-radius:16px;color:#1e3a8a;background:linear-gradient(145deg,#fff,#eff6ff);box-shadow:0 7px 18px rgba(37,99,235,.08);text-decoration:none;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.grade-selection-card:hover{transform:translateY(-3px);border-color:#60a5fa;box-shadow:0 14px 28px rgba(37,99,235,.15)}
.grade-selection-card:focus-visible{outline:3px solid rgba(245,158,11,.55);outline-offset:3px}
.grade-selection-card>span:not(.grade-selection-icon){min-width:0}
.grade-selection-card strong,.grade-selection-card small{display:block}
.grade-selection-card strong{font-size:1rem;color:#0f172a}
.grade-selection-card small{margin-top:3px;color:#64748b;font-size:.76rem}
.grade-selection-card>i{color:#2563eb}
.grade-selection-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;color:#fff;background:linear-gradient(135deg,#2563eb,#06b6d4);box-shadow:0 8px 16px rgba(37,99,235,.2)}
.theme-grade-card-image{display:block;width:52px;height:52px;border-radius:15px;object-fit:cover;box-shadow:0 8px 18px rgba(37,99,235,.18)}
@media(max-width:800px){.grade-access-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.grade-access-grid{grid-template-columns:1fr}.grade-selection-card{padding:13px}}

/* Learning opportunities */
.learning-opportunities{position:relative;overflow:hidden;padding:clamp(64px,8vw,96px) 0;background:linear-gradient(145deg,#eff6ff 0,#fff 48%,#ecfdf5 100%)}
.learning-opportunities::before,.learning-opportunities::after{content:"";position:absolute;border-radius:50%;pointer-events:none;filter:blur(2px)}
.learning-opportunities::before{width:280px;height:280px;left:-140px;top:50px;background:rgba(37,99,235,.09)}
.learning-opportunities::after{width:220px;height:220px;right:-100px;bottom:40px;background:rgba(22,163,74,.09)}
.learning-opportunities .container{position:relative;z-index:1}
.learning-title{max-width:900px;margin-inline:auto}
.learning-title h2{display:flex;align-items:center;justify-content:center;gap:12px;color:#0f172a;font-size:clamp(1.65rem,4vw,2.6rem);line-height:1.25}
.learning-title h2 i{color:#2563eb}
.learning-message-card{display:flex;align-items:flex-start;gap:20px;max-width:1040px;margin:0 auto 28px;padding:clamp(22px,4vw,32px);border:1px solid rgba(147,197,253,.75);border-radius:22px;background:rgba(255,255,255,.9);box-shadow:0 18px 45px rgba(37,99,235,.10);backdrop-filter:blur(14px)}
.learning-message-card p{margin:0;color:#334155;font-size:clamp(.98rem,1.8vw,1.1rem);line-height:1.9}
.learning-message-icon,.learning-action-icon{display:grid;place-items:center;flex:0 0 auto;color:#fff;background:linear-gradient(135deg,#2563eb,#06b6d4);box-shadow:0 10px 24px rgba(37,99,235,.22)}
.learning-message-icon{width:58px;height:58px;border-radius:18px;font-size:1.4rem}
.learning-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.learning-action-card{display:flex;flex-direction:column;gap:16px;min-width:0;padding:26px;border:1px solid #dbe4ef;border-radius:20px;background:rgba(255,255,255,.92);box-shadow:0 10px 30px rgba(15,23,42,.08);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.learning-action-card:hover{transform:translateY(-4px);border-color:#93c5fd;box-shadow:0 18px 42px rgba(37,99,235,.14)}
.learning-action-icon{width:54px;height:54px;border-radius:16px;font-size:1.25rem}
.online-learning-card .learning-action-icon{background:linear-gradient(135deg,#16a34a,#06b6d4)}
.hall-learning-card .learning-action-icon{background:linear-gradient(135deg,#f59e0b,#7c3aed)}
.learning-action-card h3{margin:0 0 7px;color:#0f172a;font-size:1.15rem;line-height:1.45}
.learning-action-card p{margin:0;color:#64748b;line-height:1.7}
.learning-action-card label{margin-top:auto;color:#334155;font-size:.85rem;font-weight:700}
.learning-action-card select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a}
.learning-action-card>.btn{width:100%}
.learning-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto}
.learning-card-actions .btn{width:100%;padding-inline:10px}
@media(max-width:900px){.learning-action-grid{grid-template-columns:1fr 1fr}.hall-learning-card{grid-column:1/-1}}
@media(max-width:620px){.learning-title h2{align-items:flex-start}.learning-message-card{align-items:center;flex-direction:column}.learning-message-icon{width:50px;height:50px}.learning-action-grid{grid-template-columns:1fr}.hall-learning-card{grid-column:auto}.learning-action-card{padding:22px}.learning-card-actions{grid-template-columns:1fr}}

/* CMS-driven homepage content */
.scrolling-notice{background:var(--secondary);color:var(--black);font-weight:600;padding:10px;text-align:center}
.cms-logo{max-height:52px;max-width:220px;object-fit:contain}
.cms-slide{background-position:center;background-size:cover;color:var(--white);min-height:300px;display:grid;place-items:center;text-align:center;padding:40px}.cms-slide h2{font-size:clamp(28px,5vw,48px)}.cms-slide p{font-size:18px;margin:12px 0 22px}.gallery-section{padding:50px 0;background:var(--background)}.homepage-gallery{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.homepage-gallery figure{background:var(--surface);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);margin:0;overflow:hidden}.homepage-gallery img{height:180px;object-fit:cover;width:100%}.homepage-gallery figcaption{padding:10px}.cms-social a{color:var(--secondary);font-weight:600}

/* Compact homepage header */
.navbar.navbar-compact{
    padding:3px 0;
}

.navbar.navbar-compact .container{
    width:calc(100% - 32px);
    max-width:1080px;
    min-height:54px;
    gap:20px;
}

.navbar.navbar-compact .logo{
    flex:0 1 180px;
}

.navbar.navbar-compact .cms-logo{
    max-width:180px;
    max-height:40px !important;
}

.navbar.navbar-compact .nav-menu{
    flex:0 1 auto;
    gap:22px;
}

.navbar.navbar-compact .nav-menu a{
    font-size:1.05rem;
    font-weight:700;
}

.navbar.navbar-compact .btn{
    min-height:36px;
    padding:6px 12px;
    font-size:.98rem;
}

@media(max-width:620px){
    .navbar.navbar-compact{padding:2px 0}
    .navbar.navbar-compact .container{width:calc(100% - 24px);min-height:50px;gap:12px}
    .navbar.navbar-compact .logo{flex:0 1 150px}
    .navbar.navbar-compact .cms-logo{max-width:150px;max-height:36px !important}
    .navbar.navbar-compact .btn{min-height:34px;padding:5px 10px;font-size:.9rem}
}

/* Homepage hero image */
.hero.hero-themed-background{
    position:relative;
    isolation:isolate;
    background:
        radial-gradient(circle at 12% 18%,rgba(37,99,235,.2),transparent 32%),
        radial-gradient(circle at 88% 78%,rgba(22,163,74,.2),transparent 30%),
        linear-gradient(135deg,#e0f2fe 0%,#f5f3ff 48%,#dcfce7 100%) !important;
}

.hero.hero-themed-background::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:linear-gradient(115deg,rgba(255,255,255,.5),transparent 55%);
}

.hero-feature-image{
    flex:1;
    width:min(100%,610px);
}

.hero .hero-feature-image img{
    display:block;
    width:100%;
    max-width:none;
    max-height:none;
    aspect-ratio:5 / 6;
    object-fit:cover;
    object-position:center;
    border:6px solid rgba(255,255,255,.9);
    border-radius:28px;
    box-shadow:0 26px 60px rgba(15,23,42,.2);
}

.hero .hero-feature-image::before{
    content:none !important;
    display:none !important;
}

@media(max-width:640px){
    .hero-feature-image{width:min(100%,440px);margin-inline:auto}
}

.about-grid-text-only{
    grid-template-columns:minmax(0,1fr);
}

.about-grid-text-only .about-content{
    width:min(900px,100%);
    margin-inline:auto;
    text-align:center;
}
