:root {
    --bg: #f4f8fb;
    --surface: #ffffff;
    --primary: #0f4c81;
    --primary-soft: #d9e9f7;
    --text: #1d2a35;
    --muted: #607182;
    --border: #d9e2ea;
    --topbar-height: 86px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topbar-height) + 8px);
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: linear-gradient(160deg, #eef4f9 0%, #f9fbfd 45%, #edf6ff 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.topbar .container {
    width: min(1080px, 92%);
}

.topbar .header-shell {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.3px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 4px;
}

.brand-text {
    line-height: 1.05;
}

.brand-main {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0056b3;
}

.brand-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
}

.menu {
    gap: 6px;
}

.menu .nav-link {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu .nav-link:hover,
.menu .nav-link:focus {
    color: var(--primary);
    background: #eef4fb;
}

.menu-primary-item {
    margin-left: 10px;
}

.okul-auth-btn {
    border-radius: 12px;
    padding: 0.5rem 0.92rem;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.24);
}

.okul-auth-btn:hover,
.okul-auth-btn:focus {
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.32);
}

.topbar .navbar-toggler {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.topbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(15, 76, 129, 0.2);
}

.topbar .navbar-toggler-icon {
    width: 1.2rem;
    height: 1.2rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2860,73,86,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.entry-hub {
    padding-top: calc(var(--topbar-height) + 8px);
    padding-bottom: 10px;
    background: radial-gradient(circle at 20% 0%, #1E63B6 0%, var(--primary) 62%, #3182E9 100%);
}

.entry-hub-inner {
    width: min(1080px, 92%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.entry-hub-card {
    position: relative;
    border: 1px solid rgba(118, 174, 214, 0.28);
    border-top-width: 3px;
    border-radius: 16px;
    background: linear-gradient(165deg, #1E63B6 0%, #3182E9 100%);
    box-shadow: 0 10px 24px rgba(4, 26, 44, 0.22);
    padding: 14px 14px 12px;
    text-decoration: none;
    color: #eaf4ff;
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 105px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.entry-hub-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(125, 181, 223, 0.16);
}

.entry-hub-card--school {
    border-top-color: #3cc8ff;
}

.entry-hub-card--teacher {
    border-top-color: #2ddf96;
}

.entry-hub-card--student {
    border-top-color: #ff8a3c;
}

.entry-hub-card .icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, rgba(94, 188, 255, 0.26), rgba(50, 128, 194, 0.38));
    margin-bottom: 3px;
    font-size: 0.88rem;
}

.entry-hub-card strong {
    font-size: 1.48rem;
    line-height: 1;
    letter-spacing: 0.2px;
}

.entry-hub-card small {
    color: #c1d7ea;
    font-weight: 600;
    font-size: 0.94rem;
    margin-bottom: 6px;
}

.entry-hub-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 9px;
    padding: 6px 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #9ed7ff;
    background: linear-gradient(145deg, rgba(57, 144, 208, 0.58), rgba(38, 114, 171, 0.58));
}

.entry-hub-card--teacher .entry-hub-action {
    color: #7df3c1;
    background: linear-gradient(145deg, rgba(52, 169, 138, 0.58), rgba(39, 133, 117, 0.58));
}

.entry-hub-card--student .entry-hub-action {
    color: #ffd874;
    background: linear-gradient(145deg, rgba(142, 126, 66, 0.58), rgba(130, 112, 54, 0.58));
}

.entry-hub-card:hover {
    color: #f1f7ff;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(4, 26, 44, 0.3);
    border-color: rgba(134, 187, 223, 0.45);
}

main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 28px 0 40px;
}

.hero-modules {
    padding: 16px 0 10px;
    scroll-margin-top: calc(var(--topbar-height) + 8px);
}

.hero-modules-inner {
    width: min(1080px, 92%);
}

.hero-modules-title {
    text-align: center;
    margin-bottom: 20px;
}

.hero-modules-title h2 {
    margin: 0;
    font-size: 1.9rem;
    color: var(--primary);
}

.hero-modules-title p {
    margin: 8px 0 0;
    font-size: 0.98rem;
    color: var(--muted);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.module-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(162deg, #ffffff 0%, #f2f7fc 55%, #e9f2fb 100%);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(9, 44, 73, 0.1);
    padding: 20px 18px;
    min-height: 190px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.module-card::after {
    content: "";
    position: absolute;
    right: -56px;
    top: -56px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(15, 76, 129, 0.17) 0%, rgba(15, 76, 129, 0) 70%);
    pointer-events: none;
}

.module-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #b9d0e4;
    box-shadow: 0 18px 36px rgba(9, 44, 73, 0.18);
}

.module-badge {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    margin-bottom: 10px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.module-card:hover .module-badge {
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 8px 18px rgba(15, 76, 129, 0.32);
}

.module-card h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    color: #104f87;
}

.module-card p {
    margin: 0;
    color: #4a5d6f;
    line-height: 1.5;
    font-size: 0.92rem;
}

.module-card-1 .module-badge { background: linear-gradient(145deg, #1a6db0, #0f4c81); }
.module-card-2 .module-badge { background: linear-gradient(145deg, #1e7aa7, #135d84); }
.module-card-3 .module-badge { background: linear-gradient(145deg, #2e6c95, #144968); }
.module-card-4 .module-badge { background: linear-gradient(145deg, #0f5f92, #0b3f60); }

.module-card-1:hover { background: linear-gradient(162deg, #ffffff 0%, #edf5ff 56%, #e2f0ff 100%); }
.module-card-2:hover { background: linear-gradient(162deg, #ffffff 0%, #eef9ff 56%, #e4f5ff 100%); }
.module-card-3:hover { background: linear-gradient(162deg, #ffffff 0%, #f0f8ff 56%, #e8f2ff 100%); }
.module-card-4:hover { background: linear-gradient(162deg, #ffffff 0%, #eef6ff 56%, #e4efff 100%); }

.module-card h3,
.module-card p {
    position: relative;
    z-index: 1;
}

.program-features {
    padding: 14px 0 6px;
    scroll-margin-top: 90px;
}

.program-features-inner {
    width: min(1080px, 92%);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(160deg, #ffffff 0%, #f4f9ff 100%);
    box-shadow: 0 14px 28px rgba(15, 76, 129, 0.08);
    padding: 22px;
}

.program-features-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.program-features-head p {
    margin: 8px 0 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #dce8f3;
    background: #fff;
    border-radius: 12px;
    padding: 10px 11px;
    font-size: 0.9rem;
    color: #365066;
    line-height: 1.42;
}

.feature-list li i {
    color: #1a73b8;
    margin-top: 2px;
    flex-shrink: 0;
}

.module-detail-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.module-detail-card {
    border: 1px solid #dce8f3;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
}

.module-detail-card h3 {
    margin: 0 0 10px;
    font-size: 1.02rem;
    color: #1b507a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-detail-card h3 i {
    color: #1f76b9;
}

.module-detail-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.module-detail-card li {
    position: relative;
    padding-left: 14px;
    color: #3e5870;
    font-size: 0.89rem;
    line-height: 1.38;
}

.module-detail-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #74acd6;
}

.references-section {
    padding: 12px 0 8px;
    scroll-margin-top: 90px;
}

.references-inner {
    width: min(1080px, 92%);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(160deg, #ffffff 0%, #f5f9fd 100%);
    box-shadow: 0 12px 26px rgba(15, 76, 129, 0.08);
    padding: 22px;
}

.references-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.references-head p {
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

.references-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.references-map-card {
    border: 1px solid #dce8f3;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}

.references-map-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f8fd;
    min-height: 360px;
    display: grid;
    place-items: center;
}

.references-map {
    width: 100%;
    height: auto;
    display: block;
}

.references-map-svg {
    width: 100%;
    height: 100%;
}

.references-map-svg svg {
    width: 100%;
    height: auto;
    display: block;
    background: #f4f8fd;
    border-radius: 10px;
}

.references-map-svg #points,
.references-map-svg #label_points {
    display: none;
}

.references-map-svg #features path {
    fill: #d9e5f1;
    stroke: #b9ccdf;
    stroke-width: 0.8;
    transition: fill 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.references-map-svg #features path.has-schools {
    fill: #8ec6ea;
    stroke: #5fa7d7;
    cursor: pointer;
}

.references-map-svg #features path.has-schools:hover {
    fill: #2d8ecb;
}

.references-map-svg #features path.is-hovered {
    fill: #1f78b6;
}

.city-tooltip {
    position: absolute;
    z-index: 5;
    max-width: 360px;
    min-width: 240px;
    border: 1px solid #9fc1da;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(6, 51, 86, 0.2);
    padding: 10px 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.city-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.city-tooltip-title {
    margin: 0 0 6px;
    color: #1a4f79;
    font-size: 0.95rem;
    font-weight: 700;
}

.city-tooltip-list {
    margin: 0;
    padding-left: 16px;
    color: #324c66;
    font-size: 0.82rem;
    line-height: 1.4;
}

.contact-section {
    padding: 14px 0 8px;
    scroll-margin-top: 90px;
}

.contact-inner {
    width: min(1080px, 92%);
    background: #fff;
    border-top: 3px solid #1fc77a;
    border-bottom: 3px solid #1fc77a;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(10, 49, 80, 0.08);
    padding: 24px 28px 28px;
}

.contact-head {
    text-align: center;
    margin-bottom: 18px;
}

.contact-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 2.05rem;
    letter-spacing: 0.4px;
}

.contact-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-field label {
    display: block;
    margin-bottom: 6px;
    color: #334f67;
    font-size: 0.92rem;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid #c9d7e4;
    border-radius: 6px;
    padding: 11px 12px;
    font-size: 0.94rem;
    color: #1d2a35;
    background: #fff;
    outline: none;
}

.contact-field textarea {
    min-height: 220px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #62a7d9;
    box-shadow: 0 0 0 3px rgba(78, 147, 198, 0.16);
}

.captcha-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.captcha-side {
    display: grid;
    gap: 8px;
}

.captcha-canvas {
    border: 1px solid #b2bfd0;
    border-radius: 6px;
    background: #6a62b7;
    width: 170px;
    height: 52px;
}

.captcha-refresh {
    border: 1px solid #c1cedb;
    border-radius: 6px;
    background: #f4f8fc;
    color: #2e5879;
    font-weight: 600;
    padding: 8px 10px;
}

.captcha-refresh:hover {
    background: #e8f1f9;
}

.robot-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #35556f;
    font-size: 0.92rem;
}

.robot-check input {
    width: 16px;
    height: 16px;
}

.contact-feedback {
    min-height: 22px;
    margin: 0;
    color: #365871;
    font-size: 0.9rem;
}

.contact-feedback.is-error {
    color: #b33131;
}

.contact-feedback.is-success {
    color: #0f7a4d;
}

.contact-submit {
    justify-self: center;
    min-width: 130px;
    border: none;
    border-radius: 6px;
    background: #1fc77a;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
}

.contact-submit:hover {
    filter: brightness(1.02);
}

.login-card {
    width: min(460px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(22, 56, 90, 0.08);
}

.card-logo {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: var(--primary);
    text-align: center;
}

.login-card p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
}

.field {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 0.95rem;
    outline: none;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.login-submit {
    width: 100%;
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 12px;
    cursor: pointer;
}

.login-submit:hover {
    filter: brightness(1.05);
}

.site-footer {
    margin-top: 18px;
    background: #f7fbff;
    border-top: 1px solid #d7e5f2;
}

.site-footer-inner {
    width: min(1080px, 92%);
    padding: 26px 0 16px;
}

.footer-brand {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.footer-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.footer-brand-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #0f4c81;
}

.footer-divider {
    margin: 20px 0 14px;
    border-top: 1px solid #d7e5f2;
}

.footer-bottom p {
    margin: 0;
    font-size: 1.05rem;
    color: #5f7691;
}

.footer-bottom strong {
    color: #2e5f8d;
}

@media (max-width: 1100px) {
    .brand-main {
        font-size: 1rem;
    }
}

@media (max-width: 800px) {
    :root {
        --topbar-height: 78px;
    }

    .topbar .container {
        width: 94%;
    }
}

@media (max-width: 767.98px) {
    .topbar .navbar-toggler {
        display: inline-flex;
    }

    .topbar .navbar-collapse {
        margin-top: 0.9rem;
        padding: 0.65rem;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 10px 24px rgba(15, 76, 129, 0.08);
    }

    .menu {
        gap: 0.25rem;
    }

    .menu .nav-link {
        border-radius: 10px;
        padding: 0.58rem 0.75rem;
    }

    .menu-primary-item {
        margin-left: 0;
        margin-top: 0.35rem;
    }

    .okul-auth-btn {
        width: 100%;
        justify-content: center;
        padding: 0.62rem 0.75rem;
    }

    .hero-modules {
        padding-top: 12px;
    }

    .hero-modules-title h2 {
        font-size: 1.45rem;
    }

    .hero-modules-title p {
        font-size: 0.9rem;
    }

    .program-features-inner {
        padding: 16px;
    }

    .program-features-head h2 {
        font-size: 1.28rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .module-detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-inner {
        padding: 16px;
    }

    .contact-head h2 {
        font-size: 1.55rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .captcha-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .captcha-side {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .references-inner {
        padding: 16px;
    }

    .references-layout {
        grid-template-columns: 1fr;
    }

    .references-map-wrap {
        min-height: 250px;
    }

    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .entry-hub {
        padding-top: calc(var(--topbar-height) + 8px);
        padding-bottom: 8px;
    }

    .entry-hub-inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .entry-hub-card {
        min-height: 105px;
    }

    .entry-hub-card strong {
        font-size: 1.4rem;
    }

    .entry-hub-card small {
        font-size: 0.9rem;
    }

    .entry-hub-action {
        font-size: 0.88rem;
        padding: 6px 10px;
    }

    .module-card {
        padding: 14px 12px;
        min-height: 138px;
    }

    .module-card h3 {
        font-size: 0.95rem;
    }

    .module-card p {
        font-size: 0.84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .module-card,
    .module-badge {
        transition: none;
    }

    .module-card:hover {
        transform: none;
    }
}

@media (min-width: 768px) {
    .topbar .navbar-toggler {
        display: none;
    }
}

@media (max-width: 480px) {
    .module-grid {
        grid-template-columns: 1fr;
    }
}
