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

:root {
    --green:   #1B6B3A;
    --green-d: #0F4524;
    --green-l: #2D9355;
    --gold:    #D4960A;
    --gold-l:  #F5B731;
    --cream:   #FAF7F2;
    --warm:    #F2EDE4;
    --ink:     #1A1A18;
    --muted:   #6B6B60;
    --white:   #FFFFFF;
    --radius:  14px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
    width: 100%;
}

nav,
.hero,
section,
footer {
    max-width: 100vw;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--warm); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ─── NAV ─── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw;
    height: 68px;
    background: rgba(250,247,242,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27,107,58,0.12);
    transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(27,107,58,0.1); }

.nav-logo {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo-mark {
    width: 12px; height: 12px; background: var(--green);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 700;
    color: var(--gold-l); letter-spacing: -1px;
}

.village-ai-logo {
    width: 180px;
    max-width: 100%;
    height: auto;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    text-decoration: none; font-size: 14px; font-weight: 500;
    color: var(--muted); transition: color .2s;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
    background: var(--green); color: var(--white) !important;
    padding: 8px 20px; border-radius: 100px; font-weight: 600 !important;
    transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: var(--green-l) !important; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ─── HERO ─── */
.hero {
    min-height: auto;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px 5vw 60px;
    gap: 60px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(27,107,58,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(212,150,10,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(27,107,58,0.1); color: var(--green);
    padding: 6px 14px; border-radius: 100px;
    font-size: 12px; font-weight: 600; letter-spacing: .5px;
    text-transform: uppercase; margin-bottom: 24px;
    border: 1px solid rgba(27,107,58,0.2);
    opacity: 0; animation: fadeUp .6s .1s forwards;
}
.hero-badge::before { content: '●'; font-size: 8px; color: var(--gold); }

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 900; line-height: 1.1;
    color: var(--ink); margin-bottom: 24px;
    opacity: 0; animation: fadeUp .6s .2s forwards;
}
.hero-title .accent { color: var(--green); }
.hero-title .underline {
    position: relative; display: inline-block;
}
.hero-title .underline::after {
    content: '';
    position: absolute; bottom: -4px; left: 0; right: 0; height: 4px;
    background: var(--gold); border-radius: 2px;
}

.hero-sub {
    font-size: 17px; line-height: 1.7; color: var(--muted);
    max-width: 480px; margin-bottom: 40px;
    opacity: 0; animation: fadeUp .6s .3s forwards;
}

.hero-buttons {
    display: flex; gap: 16px; flex-wrap: wrap;
    opacity: 0; animation: fadeUp .6s .4s forwards;
}
.btn-primary {
    background: var(--green); color: var(--white);
    padding: 14px 32px; border-radius: 100px;
    font-size: 15px; font-weight: 600; text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(27,107,58,0.3);
}
.btn-primary:hover {
    background: var(--green-l); transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(27,107,58,0.35);
}
.btn-secondary {
    background: transparent; color: var(--ink);
    padding: 14px 28px; border-radius: 100px;
    font-size: 15px; font-weight: 500; text-decoration: none;
    border: 1.5px solid rgba(26,26,24,0.2);
    transition: border-color .2s, transform .15s;
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* Hero visual */
.hero-visual {
    position: relative; opacity: 0;
    animation: fadeIn .8s .5s forwards;
}
.hero-card {
    background: var(--white);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 24px 80px rgba(26,26,24,0.12);
    position: relative; z-index: 2;
}
.hero-card-label {
    font-size: 11px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.grade-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
    margin-bottom: 24px;
}
.grade-pill {
    background: var(--warm); border-radius: 10px;
    padding: 10px 8px; text-align: center;
    font-size: 13px; font-weight: 600; color: var(--green-d);
    transition: background .2s, transform .2s;
    text-decoration: none;
}
.grade-pill:hover { background: rgba(27,107,58,0.12); transform: scale(1.04); }
.grade-pill span { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 2px; }

.hero-stats {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
    background: var(--warm); border-radius: 12px; overflow: hidden;
}
.hero-stat {
    background: var(--white); padding: 14px 10px; text-align: center;
}
.hero-stat-num {
    font-family: 'Space Mono', monospace; font-size: 20px;
    font-weight: 700; color: var(--green); display: block;
}
.hero-stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

.float-badge {
    position: absolute; background: var(--gold);
    color: var(--ink); padding: 10px 16px; border-radius: 12px;
    font-size: 12px; font-weight: 700; box-shadow: 0 8px 24px rgba(212,150,10,0.3);
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
}
.float-badge-1 { top: -50px; right: -16px; }
.float-badge-2 { bottom: -55px; left: -16px; animation-delay: -1.5s; background: var(--green); color: var(--white); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── TRUST BAR ─── */
.trust-bar {
    background: var(--green-d);
    padding: 20px 5vw;
    display: flex; align-items: center; justify-content: center;
    gap: 48px; flex-wrap: wrap;
}
.trust-item {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500;
}
.trust-item svg { opacity: .6; }
.trust-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.15); }

/* ─── SECTIONS COMMON ─── */
section { padding: 96px 5vw; }
.section-label {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 12px; display: block;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3.5vw, 46px); font-weight: 900;
    line-height: 1.15; color: var(--ink); margin-bottom: 16px;
}
.section-sub {
    font-size: 16px; color: var(--muted); line-height: 1.7;
    max-width: 560px;
}
.section-header { margin-bottom: 60px; }

/* ─── PROBLEM SECTION ─── */
.problem { background: var(--green-d); color: var(--white); }
.problem .section-title { color: var(--white); }
.problem .section-sub { color: rgba(255,255,255,0.65); }
.problem .section-label { color: var(--gold-l); }

.problem-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.problem-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); padding: 32px;
    transition: background .2s, transform .2s;
}
.problem-card:hover { background: rgba(255,255,255,0.11); transform: translateY(-4px); }
.problem-icon {
    font-size: 32px; margin-bottom: 16px; display: block;
}
.problem-card h3 {
    font-family: 'Playfair Display', serif; font-size: 20px;
    font-weight: 700; color: var(--white); margin-bottom: 10px;
}
.problem-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ─── SOLUTION / IFSAI ─── */
.ifsai-layout {
    display: flex;
    flex-direction: column;
}
.pillar-list { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.pillar {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 20px; border-radius: var(--radius);
    background: var(--white); border: 1px solid rgba(27,107,58,0.1);
    transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateX(6px); box-shadow: 0 8px 32px rgba(27,107,58,0.1); }
.pillar-icon {
    width: 48px; height: 48px; min-width: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.pillar-icon.tech { background: rgba(27,107,58,0.1); }
.pillar-icon.comm { background: rgba(212,150,10,0.12); }
.pillar-icon.prac { background: rgba(59,130,246,0.1); }
.pillar h4 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pillar p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* IFSAI visual side */
.ifsai-visual { position: relative; }
.ifsai-big-card {
    background: var(--white); border-radius: 24px;
    box-shadow: 0 24px 80px rgba(26,26,24,0.1);
    overflow: hidden;
}
.ifsai-card-header {
    background: var(--green); padding: 28px 32px;
}
.ifsai-card-header h3 {
    font-family: 'Playfair Display', serif; font-size: 22px;
    font-weight: 700; color: var(--white); margin-bottom: 4px;
}
.ifsai-card-header p { font-size: 13px; color: rgba(255,255,255,0.7); }
.ifsai-card-body { padding: 28px 32px; }
.chapter-row {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 0; border-bottom: 1px solid var(--warm);
}
.chapter-row:last-child { border-bottom: none; }
.chapter-num {
    font-family: 'Space Mono', monospace; font-size: 11px;
    font-weight: 700; color: var(--muted); min-width: 32px;
}
.chapter-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); min-width: 8px;
}
.chapter-title { font-size: 13px; font-weight: 500; color: var(--ink); }
.chapter-badge {
    margin-left: auto; font-size: 10px; font-weight: 600;
    background: rgba(27,107,58,0.1); color: var(--green);
    padding: 3px 8px; border-radius: 100px;
}

/* ─── GRADES ─── */
.grades { background: var(--warm); }
.grades-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.grade-card {
    background: var(--white); border-radius: var(--radius);
    padding: 28px 24px; border: 1px solid rgba(26,26,24,0.07);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    cursor: default;
}
.grade-card:hover {
    transform: translateY(-6px); border-color: var(--green);
    box-shadow: 0 16px 48px rgba(27,107,58,0.12);
}
.grade-card-num {
    font-family: 'Space Mono', monospace; font-size: 13px;
    font-weight: 700; color: var(--muted); margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: 1px;
}
.grade-card-name {
    font-family: 'Playfair Display', serif; font-size: 18px;
    font-weight: 700; color: var(--ink); margin-bottom: 10px;
}
.grade-card-tag {
    display: inline-block; font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 100px; margin-bottom: 14px;
}
.tag-green { background: rgba(27,107,58,0.1); color: var(--green); }
.tag-gold { background: rgba(212,150,10,0.12); color: var(--gold); }
.tag-blue { background: rgba(59,130,246,0.1); color: #2563EB; }
.grade-card-topics { list-style: none; }
.grade-card-topics li {
    font-size: 12px; color: var(--muted); padding: 3px 0;
    display: flex; align-items: center; gap: 6px;
}
.grade-card-topics li::before { content: '→'; color: var(--green); font-size: 11px; }

/* ─── HOW IT WORKS ─── */
.how {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 20px; padding: 24px 0; position: relative; }
.step:not(:last-child)::after {
    content: ''; position: absolute;
    left: 19px; top: 72px; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, var(--green), transparent);
}
.step-num {
    width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
    background: var(--green); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 700;
    position: relative; z-index: 1;
}
.step h4 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.how-visual { display: flex; flex-direction: column; gap: 16px; }
.model-card {
    background: var(--white); border-radius: var(--radius);
    padding: 24px; border: 1px solid rgba(26,26,24,0.07);
}
.model-card-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--muted); margin-bottom: 14px;
}
.model-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 14px;
}
.model-row:not(:last-child) { border-bottom: 1px solid var(--warm); }
.model-row-label { color: var(--muted); }
.model-row-value { font-weight: 600; color: var(--ink); }
.model-row-badge {
    font-size: 11px; font-weight: 600; padding: 3px 10px;
    border-radius: 100px; background: rgba(27,107,58,0.1); color: var(--green);
}

/* ─── SEMINARS ─── */
.seminars { background: var(--green-d); }
.seminars .section-title { color: var(--white); }
.seminars .section-sub { color: rgba(255,255,255,0.65); }
.seminars .section-label { color: var(--gold-l); }
.seminar-logos {
    display: flex; flex-wrap: wrap; gap: 16px;
    margin-top: 48px;
}
.seminar-logo {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px; padding: 14px 24px;
    font-size: 15px; font-weight: 700; color: var(--white);
    letter-spacing: .5px; transition: background .2s, transform .2s;
}
.seminar-logo:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }

.seminar-callout {
    margin-top: 48px;
    background: rgba(212,150,10,0.15); border: 1px solid rgba(212,150,10,0.3);
    border-radius: var(--radius); padding: 28px 32px;
    display: flex; align-items: center; gap: 20px;
}
.seminar-callout-icon { font-size: 40px; }
.seminar-callout h4 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.seminar-callout p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ─── CERTIFICATE ─── */
.cert-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cert-visual {
    background: var(--white); border-radius: 20px;
    padding: 40px; box-shadow: 0 24px 80px rgba(26,26,24,0.1);
    border: 3px solid var(--warm); position: relative; overflow: hidden;
}
.cert-visual::before {
    content: '';
    position: absolute; inset: 8px;
    border: 1.5px dashed rgba(27,107,58,0.2); border-radius: 14px;
    pointer-events: none;
}
.cert-header { text-align: center; margin-bottom: 24px; }
.cert-org {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted);
}
.cert-title-big {
    font-family: 'Playfair Display', serif; font-size: 26px;
    font-weight: 900; color: var(--green-d); margin: 8px 0 4px;
}
.cert-subtitle { font-size: 12px; color: var(--muted); }
.cert-divider {
    height: 2px; background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 20px 0;
}
.cert-body { text-align: center; }
.cert-body p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cert-name {
    font-family: 'Playfair Display', serif; font-size: 28px;
    font-weight: 700; color: var(--ink); margin: 12px 0;
    border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 4px;
}
.cert-programme { font-size: 13px; color: var(--muted); margin-top: 8px; }
.cert-footer {
    display: flex; justify-content: space-between; margin-top: 24px;
}
.cert-seal {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--green); display: flex; align-items: center; justify-content: center;
    font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700;
    color: var(--white); text-align: center; line-height: 1.3; padding: 4px;
}

/* ─── FOR SCHOOLS ─── */
.schools { background: var(--warm); }
.benefits-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.benefit-card {
    background: var(--white); border-radius: var(--radius); padding: 32px;
    border: 1px solid rgba(26,26,24,0.07);
    transition: transform .2s, box-shadow .2s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(26,26,24,0.08); }
.benefit-icon {
    font-size: 32px; margin-bottom: 16px; display: block;
}
.benefit-card h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.benefit-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ─── CONTACT ─── */
.contact { background: var(--green-d); }
.contact .section-title { color: var(--white); }
.contact .section-sub { color: rgba(255,255,255,0.65); }
.contact .section-label { color: var(--gold-l); }

.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.contact-form-wrap {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px; padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
    color: rgba(255,255,255,0.6); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 10px;
    padding: 12px 16px; font-size: 15px; font-family: 'DM Sans', sans-serif;
    color: var(--white); outline: none; transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold-l); }
.form-group select option { background: var(--green-d); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
    width: 100%; background: var(--gold); color: var(--ink);
    padding: 14px; border: none; border-radius: 100px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--gold-l); transform: translateY(-2px); }

.contact-info { padding-top: 8px; }
.contact-info h3 {
    font-family: 'Playfair Display', serif; font-size: 26px;
    font-weight: 700; color: var(--white); margin-bottom: 16px;
}
.contact-info p { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 32px; }
.contact-detail {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.1); display: flex;
    align-items: center; justify-content: center; font-size: 18px;
    min-width: 40px;
}
.contact-detail-label { font-size: 11px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: .5px; }
.contact-detail-value { font-size: 14px; color: var(--white); font-weight: 500; }

/* ─── FOOTER ─── */
footer {
    background: #0A2E16; padding: 40px 5vw;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
}
.footer-logo {
    font-family: 'Playfair Display', serif; font-size: 20px;
    font-weight: 700; color: var(--white);
}
.footer-logo span { color: var(--gold-l); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity .6s, transform .6s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── SUCCESS MESSAGE ─── */
.form-success {
    display: none; text-align: center; padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success-icon { font-size: 56px; margin-bottom: 16px; display: block; }
.form-success h3 { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.form-success p { font-size: 14px; color: rgba(255,255,255,0.6); }



/* ─── BETTER MOBILE RESPONSIVE FIXES ─── */

/* ─── MOBILE STACK FIXES ─── */

/* ─── MOBILE STACK FIXES ─── */

@media (max-width: 900px) {

    /* HOW IT WORKS */

    .how {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .steps {
        width: 100%;
    }

    .step {
        gap: 14px;
        align-items: flex-start;
    }

    .step h4 {
        font-size: 18px;
        line-height: 1.4;
    }

    .step p {
        font-size: 14px;
        line-height: 1.7;
    }

    .how-visual {
        width: 100%;
    }

    .model-card {
        width: 100%;
        padding: 20px;
        overflow: hidden;
    }

    .model-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }


    /* RECOGNITION */

    .cert-layout {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .cert-visual {
        width: 100%;
        padding: 24px 18px;
        overflow: hidden;
    }

    .cert-title-big {
        font-size: 22px;
    }

    .cert-name {
        font-size: 22px;
        word-break: break-word;
    }

    .cert-footer {
        gap: 16px;
        align-items: flex-start;
        flex-wrap: wrap;
    }


    /* CONTACT */

    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .contact-info {
        width: 100%;
    }

    .contact-form-wrap {
        width: 100%;
        padding: 24px 18px;
        overflow: hidden;
    }

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

    .contact-detail {
        gap: 12px;
        align-items: flex-start;
    }

    .contact {
        overflow-x: hidden;
    }


    /* GENERAL WIDTH FIXES */

    .how,
    .cert-layout,
    .contact-grid,
    .model-card,
    .cert-visual,
    .contact-form-wrap {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 900px) {

    nav {
        padding: 0 20px;
        height: 64px;
    }

    .village-ai-logo {
        width: 170px;
        height: auto;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 90px 16px 40px;
        gap: 30px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-title {
        font-size: clamp(34px, 8vw, 48px);
        line-height: 1.15;
    }

    .hero-sub {
        max-width: 100%;
    }

    .hero-buttons {
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }


    .hero-visual {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }

    .hero-card {
        width: 100%;
        padding: 22px;
        border-radius: 18px;
    }

    .grade-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    /* MOBILE NAV MENU */

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-links {

    display: flex;
    flex-direction: column;

    position: fixed;

    top: 64px;
    right: -100%;

    left: auto;

    width: 240px;
    max-width: 80vw;

    height: calc(100vh - 64px);

    padding: 24px 20px;

    background: rgba(250,247,242,0.98);

    backdrop-filter: blur(12px);

    box-shadow: -10px 0 30px rgba(0,0,0,0.08);

    gap: 8px;

    transition: right 0.3s ease;

    z-index: 1000;

    overflow-y: auto;
}
    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        list-style: none;
    }

    .nav-links a {
        display: block;

        width: 100%;

        padding: 14px 0;

        font-size: 16px;

        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    /* FIX FLOAT BADGES */

.float-badge-1 {
    right: 0;
    top: -30px;
}

.float-badge-2 {
    left: 0;
    bottom: -35px;
}

.float-badge {
    max-width: calc(100vw - 40px);
    white-space: normal;
}

    .nav-cta {
        margin-top: 10px;
        text-align: center;
    }

    .trust-bar {
        padding: 18px 20px;
        text-align: center;
    }
}

/* EXTRA SMALL DEVICES */

@media (max-width: 600px) {

    .hero {
        padding-top: 95px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-card {
        padding: 18px;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .section-title {
        font-size: 30px;
    }
}