html{
    scroll-behavior:smooth;
}
body{
    margin:0;
    font-family:Bahnschrift, 'Segoe UI', sans-serif;
    background:#f4f7fc;
}

nav{
    background:#061b4d;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 60px;
}

.logo-section img{
    width:220px;
}

.menu a{
    color:white;
    text-decoration:none;
    margin:0 20px;
    font-size:18px;
}

.menu a:hover{
    color:#4de1ff;
}

.trial-btn button{
    background:#1677ff;
    color:white;
    border:none;
    padding:15px 30px;
    border-radius:15px;
    font-size:18px;
    cursor:pointer;
}

.hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:80px;
}

.hero-left{
    width:50%;
}

.badge{
    display:inline-block;
    background:#dce9ff;
    color:#0f3b94;
    padding:12px 25px;
    border-radius:30px;
    margin-bottom:20px;
    font-weight:bold;
}

.hero-left h1{
    font-size:70px;
    color:#001f7a;
    margin:0;
}

.hero-left p{
    font-size:24px;
    color:#333;
    max-width:700px;
}

.hero-buttons button{
    margin-right:15px;
    margin-top:20px;
    padding:18px 35px;
    border-radius:15px;
    border:none;
    font-size:18px;
    cursor:pointer;
}

.hero-buttons button:first-child{
    background:#1677ff;
    color:white;
}

.hero-buttons button:last-child{
    background:white;
    border:2px solid #1677ff;
    color:#1677ff;
}

.hero-right img{
    margin-top: -200px;
    animation: floatLogo 3s ease-in-out infinite;
    width:550px;
    filter: drop-shadow(0 0 50px rgba(0,119,255,0.8));
}
@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}
#why-choose-us{
    min-height:100vh;
    padding:100px 50px;
    background:#f4f7fc;
    text-align:center;
}

#why-choose-us h1{
    font-size:50px;
    color:#061b4d;
    margin-bottom:15px;
}

.subtitle{
    font-size:22px;
    color:#555;
    margin-bottom:60px;
}

.surround-container{
    position:relative;
    width:100%;
    max-width:1200px;
    height:900px;
    margin:0 auto;
}

.center-image{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

.center-image img{
    width:450px;
    border-radius:25px;
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

.card{
    width:260px;
    background:white;
    padding:25px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.top-card{
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
}

.left-card{
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
}

.right-card{
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
}

.bottom-card{
    position:absolute;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
}

.card h3{
    color:#061b4d;
    margin-bottom:10px;
}

.card p{
    color:#555;
    line-height:1.6;
}
#about-us{
    min-height:100vh;
    padding:100px 80px;
    background:white;
    text-align:center;
}

#about-us h1{
    font-size:50px;
    color:#061b4d;
    margin-bottom:40px;
}

.about-container{
    max-width:1000px;
    margin:auto;
}

.about-text{
    font-size:22px;
    line-height:1.8;
    color:#555;
    margin-bottom:60px;
}

.vision-boxes{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.vision-card{
    width:280px;
    background:#f4f7fc;
    padding:25px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.vision-card h3{
    color:#061b4d;
    margin-bottom:15px;
}

.vision-card p{
    color:#555;
    line-height:1.6;
}
#why-choose-us{
    scroll-margin-top:120px;
}

#about-us{
    scroll-margin-top:120px;
}
#about-us h2{
    margin-top:80px;
    margin-bottom:40px;
    font-size:42px;
    color:#061b4d;
}

.founders-section{
    margin-top:40px;
    text-align:center;
}

.founders-section img{
    width:850px;
    max-width:100%;
    border-radius:25px;
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

.team-info{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin-top:40px;
}

.team-card{
    width:350px;
    background:#f4f7fc;
    padding:25px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.team-card h3{
    color:#061b4d;
    margin-bottom:5px;
}

.team-card h4{
    color:#1677ff;
    margin-bottom:15px;
}

.team-card p{
    color:#555;
    line-height:1.7;
}
.menu a[href="#login"]{
    background:#1677ff;
    color:white;
    padding:12px 25px;
    border-radius:12px;
    font-weight:bold;
}

.menu a[href="#login"]:hover{
    background:#0f5dd8;
    color:white;
}
.lessons-page{
    padding:80px;
    text-align:center;
}

.lessons-page h1{
    font-size:60px;
    color:#061b4d;
    margin-bottom:50px;
}

.lessons-grid{
    display:flex;
    gap:30px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding:20px;
}

.lessons-grid::-webkit-scrollbar{
    height:10px;
}

.lessons-grid::-webkit-scrollbar-thumb{
    background:#1677ff;
    border-radius:20px;
}

.lesson-card{
    min-width:190px;
    background:white;
    border-radius:25px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    transition:0.3s;
}

.lesson-card:hover{
    transform:translateY(-10px);
}

.featured{
    border:4px solid #1677ff;
}

.lesson-icon{
    width:80px;
    height:80px;
    margin:0 auto 20px auto;
    border-radius:50%;
    background:#1677ff;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:35px;
}

.maths-icon{
    background:#1677ff;
}

.science-icon{
    background:#061b4d;
}

.price{
    font-size:40px;
    font-weight:bold;
    color:#061b4d;
    margin:20px 0;
}

.lesson-card button{
    background:#1677ff;
    color:white;
    border:none;
    padding:15px 25px;
    border-radius:12px;
    cursor:pointer;
}
.lessons-page{
    padding:80px;
    text-align:center;
}

.lessons-page h1{
    font-size:60px;
    color:#061b4d;
    margin-bottom:50px;
}

.lessons-grid{
    display:flex;
    gap:30px;
    overflow-x:auto;
    padding:20px;
}

.lesson-card{
    min-width:190px;
    background:white;
    padding:30px;
    border-radius:25px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.lesson-icon{
    width:80px;
    height:80px;
    margin:0 auto 20px auto;
    border-radius:50%;
    background:#1677ff;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:35px;
}

.lesson-card h2{
    color:#061b4d;
}

.lesson-card h3{
    font-size:40px;
    color:#1677ff;
}

.lesson-card button{
    background:#1677ff;
    color:white;
    border:none;
    padding:15px 25px;
    border-radius:12px;
    cursor:pointer;
}

.lesson-card button{
    background:#1677ff;
    color:white;
    border:none;
    padding:15px 25px;
    border-radius:12px;
    cursor:pointer;
}

.login-btn{
    background:#1677ff;
    color:white !important;
    padding:12px 25px;
    border-radius:12px;

}

.lesson-card:hover{
    transform:translateY(-15px) scale(1.03);
    box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

.lesson-card button{
    background:#1677ff;
    color:white;
    border:none;
    padding:15px 25px;
    border-radius:12px;
    cursor:pointer;
    transition:0.3s;
}

.lesson-card button:hover{
    background:#0f5dd8;
    transform:scale(1.05);
}
@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.lesson-card{
    animation:fadeUp 0.8s ease forwards;
}
.lesson-icon{
    transition:0.5s;
}

.lesson-card:hover .lesson-icon{
    transform:rotate(360deg) scale(1.1);
}
@keyframes slideIn {
    from{
        opacity:0;
        transform:translateX(100px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }
}

.lesson-card{
    animation:slideIn 0.8s ease forwards;
}
.badge{
    background:#1677ff;
    color:white;
    display:inline-block;
    padding:8px 15px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
    margin-bottom:15px;
}
.trial-page{
    padding:80px;
    text-align:center;
}

.trial-box{
    max-width:500px;
    margin:auto;
    background:white;
    padding:40px;
    border-radius:25px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.trial-box input,
.trial-box select{
    width:100%;
    padding:15px;
    margin:15px 0;
    border:1px solid #ddd;
    border-radius:12px;
    box-sizing:border-box;
}

.trial-box button{
    background:#25D366;
    color:white;
    border:none;
    padding:18px 40px;
    border-radius:15px;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
}

.trial-box button:hover{
    background:#1ebe5d;
}
@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(50px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.trial-box{
    animation:fadeInUp 1s ease;
}
@keyframes slideDown{
    from{
        opacity:0;
        transform:translateY(-40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.trial-page h1{
    animation:slideDown 1s ease;
}
.trial-box input:focus,
.trial-box select:focus{
    outline:none;
    border:2px solid #1677ff;
    box-shadow:0 0 15px rgba(22,119,255,0.3);
}
.trial-box:hover{
    transform:translateY(-5px);
}

.trial-box{
    transition:0.4s;
}
.payfast-btn{
    background:#25D366;
    color:white;
    border:none;
    padding:18px 40px;
    border-radius:15px;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.payfast-btn:hover{
    transform:scale(1.05);
    background:#1ebe5d;
}
.donate-btn{
    background:#ff9800;
    color:white;
    border:none;
    padding:18px 40px;
    border-radius:15px;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.donate-btn:hover{
    background:#e68900;
    transform:scale(1.05);
}
.login-logo{
    width:180px;
    margin-bottom:20px;
}

.login-title{
    color:#061b4d;
    font-size:55px;
    margin-bottom:30px;
}

.role-selector{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

.role-btn{
    background:#061b4d;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:12px;
    cursor:pointer;
    font-weight:bold;
    transition:0.3s;
}

.role-btn:hover{
    background:#1677ff;
    transform:translateY(-3px);
}

.login-btn-main{
    background:#1677ff;
    color:white;
    border:none;
    padding:18px 40px;
    border-radius:15px;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
    width:100%;
}

.login-btn-main:hover{
    background:#0f5dd8;
    transform:scale(1.03);
}
#selectedRole{
    color:#061b4d;
    font-weight:bold;
    margin-bottom:20px;
}
.login-page{
    text-align:center;
    padding:60px 20px;
}

.login-logo{
    width:280px;
    margin-bottom:10px;
}

.login-title{
    font-size:60px;
    color:#061b4d;
    margin-bottom:30px;
}

.login-card{
    max-width:650px;
    margin:auto;
    background:white;
    padding:40px;
    border-radius:25px;
    box-shadow:0 15px 35px rgba(0,0,0,0.1);
}

.role-selector{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
    margin-bottom:25px;
}

.role-btn{
    background:#061b4d;
    color:white;
    border:none;
    padding:14px 28px;
    border-radius:12px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.role-btn:hover{
    background:#1677ff;
    transform:translateY(-3px);
}

#selectedRole{
    color:#061b4d;
    font-weight:bold;
    margin-bottom:20px;
}

#loginForm input{
    width:100%;
    padding:15px;
    margin-top:10px;
    margin-bottom:20px;
    border:1px solid #ddd;
    border-radius:12px;
    box-sizing:border-box;
}

.login-btn-main{
    background:#1677ff;
    color:white;
    border:none;
    width:100%;
    padding:18px;
    border-radius:15px;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.login-btn-main:hover{
    background:#0f5dd8;
    transform:scale(1.03);
}
@keyframes loginFadeIn{

    from{
        opacity:0;
        transform:translateY(50px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.login-card{
    animation:loginFadeIn 0.8s ease;
}
.login-logo{
    width:280px;
    margin-bottom:10px;
    animation:floatLogo 3s ease-in-out infinite;
}
.role-btn{
    background:#061b4d;
    color:white;
    border:none;
    padding:14px 28px;
    border-radius:12px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.role-btn:hover{
    background:#1677ff;
    transform:translateY(-5px) scale(1.05);
}
.login-btn-main:hover{
    background:#0f5dd8;
    transform:translateY(-3px) scale(1.03);
}
/* LOGIN PAGE FIX */

.login-page{
    text-align:center;
    padding:15px 20px 60px 20px !important;
}

.login-logo{
    width:320px !important;
    margin-bottom:0 !important;
    animation:floatLogo 3s ease-in-out infinite;
}

.login-title{
    font-size:60px;
    color:#061b4d;
    margin-top:-15px !important;
    margin-bottom:20px !important;
}
@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}
.role-btn.active{
    background:#1677ff;
    box-shadow:0 0 15px rgba(22,119,255,0.4);
}
.portal-heading{
    margin-top:40px;
    color:#061b4d;
}

.portal-container{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin-top:30px;
}

.subject-portal{
    width:450px;
    background:white;
    padding:30px;
    border-radius:25px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    transition:0.3s;
}

.subject-portal:hover{
    transform:translateY(-10px);
}

.portal-icon{
    width:90px;
    height:90px;
    margin:auto;
    border-radius:50%;
    background:#1677ff;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:40px;
    font-weight:bold;
}

.subject-portal ul{
    text-align:left;
    line-height:2;
    color:#555;
}

.upcoming-section{
    margin-top:50px;
}

.activity-card{
    background:white;
    padding:20px;
    margin:15px auto;
    max-width:600px;
    border-radius:15px;
    box-shadow:0 10px 20px rgba(0,0,0,0.08);
}

.portal-btn{
    background:#1677ff;
    color:white;
    border:none;
    padding:15px 25px;
    border-radius:12px;
    cursor:pointer;
    margin-top:15px;
    font-weight:bold;
}

.portal-btn:hover{
    background:#0f5dd8;
}
.dashboard-page{
    max-width:1200px;
    margin:auto;
    padding:40px;
    text-align:center;
}

.stats-container{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin:40px 0;
}

.stat-box{
    width:220px;
    background:white;
    padding:25px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.portal-container{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin-top:30px;
}

.subject-portal{
    width:400px;
    min-height:320px;
    background:white;
    padding:30px;
    border-radius:25px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);

    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:center;

    transition:0.3s;
}

.subject-portal:hover{
    transform:translateY(-10px);
}
.dashboard-page{
    max-width:1300px;
    margin:auto;
    padding:40px;
    text-align:center;
}

.dashboard-subtitle{
    color:#1677ff;
    font-size:22px;
    font-weight:bold;
    margin-bottom:30px;
}

.stats-container{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin:40px 0;
}

.stat-box{
    background:white;
    width:220px;
    padding:25px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.stat-box h2{
    color:#1677ff;
    font-size:40px;
    margin:0;
}

.portal-heading{
    color:#061b4d;
    margin:40px 0 20px;
}

.portal-container{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.subject-portal{
    background:white;
    width:420px;
    padding:30px;
    border-radius:25px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    transition:0.3s;
}

.subject-portal:hover{
    transform:translateY(-10px);
}

.portal-icon{
    width:90px;
    height:90px;
    background:#1677ff;
    color:white;
    border-radius:50%;
    margin:auto;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:40px;
    font-weight:bold;
}

.portal-btn{
    background:#1677ff;
    color:white;
    border:none;
    padding:15px 25px;
    border-radius:12px;
    margin-top:15px;
    cursor:pointer;
}

.task-container{
    max-width:900px;
    margin:auto;
}

.task-card{
    background:white;
    padding:20px;
    margin:15px 0;
    border-radius:15px;
    box-shadow:0 10px 20px rgba(0,0,0,0.08);
}
@keyframes dashboardFade {

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.dashboard-page{
    animation:dashboardFade 0.8s ease;
}
.stat-box{
    animation:dashboardFade 0.8s ease;
    transition:0.3s;
}

.stat-box:hover{
    transform:translateY(-10px);
}
.portal-btn:hover{
    background:#0f5dd8;
    transform:translateY(-3px);
    box-shadow:0 0 20px rgba(22,119,255,0.4);
}
.stat-box:nth-child(1){
    animation-delay:0.1s;
}

.stat-box:nth-child(2){
    animation-delay:0.2s;
}

.stat-box:nth-child(3){
    animation-delay:0.3s;
}

.stat-box:nth-child(4){
    animation-delay:0.4s;
}

.subject-portal:nth-child(1){
    animation-delay:0.5s;
}

.subject-portal:nth-child(2){
    animation-delay:0.7s;
}

.task-card:nth-child(1){
    animation-delay:0.9s;
}

.task-card:nth-child(2){
    animation-delay:1s;
}

.task-card:nth-child(3){
    animation-delay:1.1s;
}
.welcome-banner{
    background:linear-gradient(135deg,#061b4d,#1677ff);
    color:white;
    padding:40px;
    border-radius:25px;
    margin-bottom:30px;
}
.subject-portal{
    cursor:pointer;
}
.quick-nav{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
    margin:25px 0;
}
.subject-portal a{
    text-decoration:none;
}