@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=DM+Sans:wght@400;500;600&display=swap');

body {
    margin: 0;
    font-family: DM Sans, sans-serif;
    background-color: #14005a; /* dark purple */
}

/* Navbar layout */
.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding: 25px;
}

/* Default button */
.nav-btn {
    background-color: #f4c542;
    color: black;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.25s ease;
}

/* Bigger bottom buttons */
.nav-btn.wide {
    padding: 14px 40px;
}

/* Home button (light purple) */
.nav-btn.home {
    background-color: #cfd2ff;
}

/* Hover effect */
.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --purple:#14005a;
    --purple-light:#24107a;
    --yellow:#f4c542;
    --yellow-light:#ffd95c;
    --white:#ffffff;
    --text-light:#d7d2ff;
    --input:#1d0c69;
    --border:#3a2d8f;
}

body{
    font-family:DM Sans,sans-serif;
    background:linear-gradient(135deg,#14005a 0%,#1b0c73 100%);
    color:white;
    min-height:100vh;
}

/* NAVBAR */

.navbar{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:18px;
    padding:25px;
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(20,0,90,0.9);
    backdrop-filter:blur(10px);
}

.nav-btn{
    background-color:#f4c542;
    color:black;
    text-decoration:none;
    padding:12px 26px;
    border-radius:40px;
    font-weight:600;
    transition:all 0.25s ease;
}

.nav-btn.home{
    background-color:#cfd2ff;
}

.nav-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 14px rgba(0,0,0,0.3);
}

.nav-btn.active{
    outline:3px solid rgba(255,255,255,0.25);
}

/* HERO */

.hero{
    text-align:center;
    padding:70px 20px 40px;
}

.hero-badge{
    display:inline-block;
    background:rgba(244,197,66,0.15);
    border:1px solid rgba(244,197,66,0.4);
    color:var(--yellow);
    padding:8px 18px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    letter-spacing:1px;
    margin-bottom:20px;
}

.hero h1{
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:clamp(36px,5vw,60px);
    text-align:center;
    margin-bottom:18px;
    font-weight:800;
}

.hero h1 span{
    color:var(--yellow);
    margin-left:12px;
}

.hero p{
    color:var(--text-light);
    max-width:650px;
    margin:auto;
    line-height:1.7;
    font-size:17px;
}

.hero-line{
    width:90px;
    height:4px;
    background:linear-gradient(to right,var(--yellow),transparent);
    margin:28px auto 0;
    border-radius:10px;
}

/* FORM */

.form-section{
    max-width:850px;
    margin:auto;
    padding:20px;
}

.form-card{
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(12px);
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 12px 40px rgba(0,0,0,0.35);
}

.form-header{
    padding:30px;
    background:linear-gradient(135deg,#24107a,#14005a);
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.form-header h2{
    font-size:30px;
    margin-bottom:8px;
}

.form-header p{
    color:var(--text-light);
}

.form-body{
    padding:35px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.full{
    grid-column:1 / -1;
}

label{
    font-size:14px;
    font-weight:700;
    color:white;
    letter-spacing:0.5px;
}

input,
select{
    width:100%;
    padding:15px 18px;
    border-radius:14px;
    border:1px solid var(--border);
    background:var(--input);
    color:white;
    font-size:15px;
    outline:none;
    transition:0.25s;
}

input::placeholder{
    color:#a8a2d8;
}

input:focus,
select:focus{
    border-color:var(--yellow);
    box-shadow:0 0 0 4px rgba(244,197,66,0.18);
}

/* SUBJECTS */

.subject-title{
    margin-top:30px;
    margin-bottom:15px;
    font-weight:700;
    font-size:15px;
}

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

.subject-chip{
    background:#1d0c69;
    border:1px solid var(--border);
    padding:14px;
    border-radius:14px;
    cursor:pointer;
    transition:0.2s;
    display:flex;
    align-items:center;
    gap:10px;
}

.subject-chip:hover{
    border-color:var(--yellow);
    transform:translateY(-2px);
}

.subject-chip.checked{
    background:rgba(244,197,66,0.12);
    border-color:var(--yellow);
}

/* BUTTON */

.submit-btn{
    margin-top:35px;
    width:100%;
    border:none;
    padding:18px;
    border-radius:18px;
    background:linear-gradient(135deg,var(--yellow),var(--yellow-light));
    color:black;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
    transition:0.25s;
}

.submit-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 24px rgba(244,197,66,0.35);
}

/* FOOTER */

footer{
    text-align:center;
    padding:35px 20px;
    color:#bfb8ef;
    font-size:14px;
}

/* MOBILE */

@media(max-width:700px){

    .form-grid{
        grid-template-columns:1fr;
    }

    .subjects-grid{
        grid-template-columns:1fr 1fr;
    }

    .hero{
        padding-top:40px;
    }

    .hero h1{
        flex-direction:column;
    }

    .hero h1 span{
        margin-left:0;
    }

    .form-body{
        padding:24px;
    }
}

/* Register Today */

.registertoday {
    background: linear-gradient(135deg, #7ce4ff, #74d7f0);
    border-top: 6px solid #1a1060;
    border-bottom: 6px solid #1a1060;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    min-height: 280px;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

.registertoday::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.registertoday .banner-inner {
    text-align: center;
    z-index: 2;
    max-width: 600px;
}

.registertoday h3 {
    color: #1a1060;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
    font-family: 'Nunito', sans-serif;
}

.registertoday p {
    font-size: 18px;
    color: #1a1060;
}

.registertoday img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.join-btn {
  display: inline-block;
  background: #f5c842;
  color: #1a1060;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.whymarkhamacademy {
    background: #14005a;
    padding: 80px 40px 90px;
    text-align: center;
}

.wma-header {
    max-width: 780px;
    margin: 0 auto 60px;
}

.wma-title {
    font-size: 52px;
    font-weight: 900;
    color: #f4c542;
    margin: 0 0 22px;
    line-height: 1.1;
    font-family: 'Nunito', sans-serif;
}

.wma-subtitle {
    font-size: 17px;
    color: #ffffff;
    line-height: 1.75;
    margin: 0;
}

.wma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.wma-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.wma-card:hover {
    transform: translateY(-10px);
    border-color: rgba(244,197,66,0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.wma-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.wma-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 28px;
    border: 5px solid rgba(244,197,66,0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

.wma-card:hover .wma-circle {
    transform: scale(1.05);
}

.wma-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wma-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #f4c542;
    margin: 0 0 16px;
    font-family: 'Nunito', sans-serif;
}

.wma-card p {
    font-size: 15px;
    color: #d7d2ff;
    line-height: 1.75;
    margin: 0;
    max-width: 280px;
}

@media (max-width: 768px) {
    .wma-title { font-size: 36px; }
    .wma-grid { grid-template-columns: 1fr; gap: 50px; }
    .whymarkhamacademy { padding: 60px 24px; }
}

@media (max-width: 768px) {

    .registertoday {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 50px 20px;
    }

    .registertoday img {
        width: 160px;
        height: 160px;
    }

    .navbar {
        gap: 10px;
        padding: 18px;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .wma-title {
        font-size: 38px;
    }
}

.hero-main {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
    max-width: 850px;
}

.hero-tag {
    display: inline-block;
    background: rgba(244,197,66,0.15);
    border: 1px solid rgba(244,197,66,0.4);
    color: #f4c542;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero-main h1 {
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1;
    font-weight: 900;
    margin-bottom: 24px;
    font-family: 'Nunito', sans-serif;
}

.hero-text {
    font-size: 19px;
    line-height: 1.8;
    color: #d7d2ff;
    max-width: 700px;
    margin: auto auto 35px;
}

.head2 {
    text-align: center;
    font-size: 52px;
    font-weight: 900;
    color: #f4c542;
    margin: 0 0 22px;
    line-height: 1.1;
    font-family: 'Nunito', sans-serif;
}
