/* Local Persian font */

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #0754cf;
    --primary-dark: #0343aa;
    --text: #102d50;
    --muted: #5b6c82;
    --border: #e5ebf2;
    --background: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.9;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 5px;
    border-radius: 4px;
}

.container {
    width: min(1320px, calc(100% - 64px));
    margin-inline: auto;
}

/* Accessibility */

.skip-link {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 100;
    padding: 10px 18px;
    background: var(--text);
    color: white;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Main header */

.site-header {
    background: white;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-block: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.brand-text strong,
.brand-text > span {
    display: block;
}

.brand-text strong {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
}

.brand-text > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 15px;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.nav-item {
    font-size: 16px;
    font-weight: 700;
}

.appointment-link,
.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 22px;
    border-radius: 9px;
    font-size: 15px;
    white-space: nowrap;
}

.appointment-link {
    background: var(--primary);
    color: white;
}

.login-link {
    border: 1px solid var(--primary);
    color: var(--primary);
    flex-shrink: 0;
}

/* Becomes useful when real links are connected */

a.nav-item:hover,
.secondary-nav a:hover {
    color: var(--primary);
}

a.appointment-link:hover {
    background: var(--primary-dark);
}

a.login-link:hover {
    background: #f0f5ff;
}

.unavailable {
    cursor: default;
}

/* Secondary navigation */

.secondary-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.secondary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-block: 16px;
    color: var(--muted);
    font-size: 15px;
}

.secondary-nav > * {
    padding-inline: 28px;
    line-height: 1.6;
}

.secondary-nav > * + * {
    border-inline-start: 1px solid var(--border);
}

/* Page content */

.main-content {
    min-height: 60vh;
}

.main-content:focus {
    outline: none;
}

.welcome {
    width: min(1100px, calc(100% - 64px));
    margin: 56px auto;
    padding: clamp(24px, 5vw, 48px);
    background: #f5f8fd;
    border: 1px solid var(--border);
    border-radius: 16px;
}

h1 {
    margin-top: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.6;
}

.welcome p {
    font-size: 18px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: #f8faff;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 28px;
}

.footer-content strong {
    font-size: 16px;
}

.footer-content p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-note {
    max-width: 360px;
    color: var(--muted);
    font-size: 14px;
}

/* Tablet */

@media (max-width: 1150px) {
    .header-main {
        flex-wrap: wrap;
        gap: 20px;
    }

    .brand {
        flex: 1;
    }

    .primary-nav {
        order: 3;
        flex-basis: 100%;
        gap: 36px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }
}

/* Mobile */

@media (max-width: 600px) {
    .container {
        width: calc(100% - 32px);
    }

    .header-main {
        padding-block: 18px;
        gap: 16px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text > span {
        font-size: 14px;
    }

    .login-link {
        min-height: 40px;
        padding: 7px 12px;
        font-size: 14px;
    }

    .primary-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        text-align: center;
    }

    .nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        font-size: 15px;
    }

    .secondary-nav {
        flex-wrap: wrap;
        row-gap: 14px;
        padding-block: 14px;
        font-size: 14px;
    }

    .secondary-nav > * {
        padding-inline: 14px;
    }

    .welcome {
        width: calc(100% - 32px);
        margin-block: 32px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Homepage — approved design */

.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: clamp(440px, 33vw, 620px);
    background: white;
}

.hero-picture {
    position: absolute;
    inset-block: 0;
    left: 0;
    width: 64%;
    z-index: -1;
}

.hero-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

.hero-picture::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        white 0%,
        rgba(255, 255, 255, 0.94) 9%,
        rgba(255, 255, 255, 0.45) 24%,
        transparent 42%
    );
}

.hero-copy {
    width: 48%;
    margin-left: auto;
    padding: 48px 4vw 48px 20px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 56px);
    font-weight: 700;
    line-height: 1.75;
    color: #09274c;
}

.hero-doctor {
    margin-top: 28px;
}

.hero-doctor p {
    margin: 0;
}

.doctor-name {
    font-size: clamp(20px, 1.7vw, 28px);
    font-weight: 700;
}

.doctor-specialty {
    margin-top: 3px !important;
    color: var(--muted);
    font-size: clamp(16px, 1.4vw, 22px);
}

.hero-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 58px;
    margin-top: 34px;
    padding: 12px 28px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font: inherit;
    font-size: 18px;
}

.hero-booking:disabled {
    opacity: 1;
    cursor: default;
}

.hero-booking svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.home-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-block: 40px;
}

.service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 16px;
    text-align: center;
}

.service-item + .service-item::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f1f6ff;
    color: var(--primary);
}

.service-icon svg {
    width: 42px;
    height: 42px;
}

.service-item h2 {
    margin: 0;
    font-size: clamp(18px, 1.6vw, 25px);
    line-height: 1.7;
}

.home-education {
    padding-top: 16px;
    padding-bottom: 64px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0;
    text-align: center;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.7;
}

.section-heading::before,
.section-heading::after {
    content: "";
    height: 1px;
    flex: 1;
    max-width: 280px;
    background: #cad7e8;
}

/* 10 — Auth: login form */

.auth-page {
    padding: 48px 16px;
}

.auth-card {
    width: min(100%, 440px);
    margin-inline: auto;
    padding: clamp(24px, 5vw, 36px);
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
}

.auth-card h1 {
    margin: 0 0 12px;
    font-size: 28px;
}

.auth-description {
    margin: 0 0 28px;
    color: var(--muted);
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #b8c6d8;
    border-radius: 8px;
    background: white;
    color: var(--text);
    font: inherit;
}

.form-input:focus-visible,
.auth-submit:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.form-input[aria-invalid="true"] {
    border-color: #b42318;
}

.field-error {
    margin: 6px 0 0;
    color: #b42318;
    font-size: 14px;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit:hover {
    background: #0343aa;
}

.auth-notice {
    margin-bottom: 24px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #edf4ff;
    color: var(--text);
}

/* 11 — Children: list and cards */

.children-page {
    padding-block: 40px;
}

.children-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.children-heading h1 {
    margin: 0;
    font-size: 28px;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 280px), 1fr)
    );
    gap: 20px;
}

.child-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}

.child-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
    overflow-wrap: anywhere;
}

.child-card p {
    margin: 8px 0;
    color: var(--muted);
}

/* 12 — Shared component: Jalali date input */

.date-field {
    min-width: 0;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.date-field legend {
    margin-bottom: 8px;
    padding: 0;
    font-weight: 600;
}

.date-selects {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.2fr;
    gap: 8px;
}

.date-selects > div {
    min-width: 0;
}

.date-part-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 14px;
}

.date-selects .form-input {
    padding-inline: 6px;
}

/* 13 — Children: individual profile */

.child-summary {
    margin-bottom: 32px;
}

.child-info {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 200px), 1fr)
    );
    gap: 20px;
    margin: 24px 0;
}

.child-info dt {
    color: var(--muted);
    font-size: 14px;
}

.child-info dd {
    margin: 4px 0 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.child-services > h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.child-services h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.service-pending {
    display: inline-block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

/* 14 — Growth: collapsible measurement history */

.growth-history {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.growth-entry {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
}

.growth-entry-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 12px;
    cursor: pointer;
    list-style: none;
}

.growth-entry-summary::-webkit-details-marker {
    display: none;
}

.growth-entry-summary:hover {
    background: #f5f8ff;
}

.growth-entry-summary:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.growth-entry-summary > strong {
    font-size: 18px;
}

.growth-summary-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    color: var(--muted);
    font-size: 14px;
}

.growth-toggle {
    margin-inline-start: auto;
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
}

.growth-toggle::before {
    content: "+";
}

.growth-entry[open] .growth-toggle::before {
    content: "−";
}

.growth-entry[open] .growth-entry-summary {
    background: #f5f8ff;
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
}

.growth-entry-body {
    padding: 20px;
}

.growth-measurement-info {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 180px), 1fr)
    );
    gap: 16px;
    margin: 0 0 24px;
}

.growth-measurement-info dt {
    color: var(--muted);
    font-size: 14px;
}

.growth-measurement-info dd {
    margin: 4px 0 0;
}

.growth-table-wrapper {
    overflow-x: auto;
}

.growth-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.growth-table-caption {
    padding-bottom: 12px;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
}

.growth-table th,
.growth-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.growth-table thead {
    background: #f5f8ff;
}

.growth-table tbody th {
    font-weight: 500;
}

.growth-table td {
    text-align: center;
}

.growth-table thead th:not(:first-child) {
    text-align: center;
}

.growth-notes {
    margin-top: 20px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* 15 — Growth: reference charts */

.growth-chart-panel {
    margin-block: 28px;
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}

.growth-chart-panel h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.growth-chart-description {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.growth-chart-image {
    display: block;
    width: 100%;
    height: auto;
}

/* 16 — Growth: one-time assessment */

.quick-growth-results {
    margin-top: 32px;
}

.field-hint {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* 17 — Growth: one-time result charts */

.quick-charts {
    margin-block: 28px;
}

.quick-charts h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.quick-charts > .growth-entry {
    margin-top: 14px;
}

/* ==================================================
   پیام‌های عمومی سایت — Flash messages
   ================================================== */

.flash-messages {
    display: grid;
    gap: 12px;
    padding-block: 20px 0;
}

.flash-message {
    padding: 14px 18px;
    border: 1px solid;
    border-radius: 12px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.flash-message--success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.flash-message--error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.flash-message--warning {
    color: #854d0e;
    background: #fffbeb;
    border-color: #fde68a;
}

.flash-message--info {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* زمان‌های تکمیل‌شده در نوبت‌دهی */

.login-link:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==================================================
   پیام‌های حساب کاربری
   ================================================== */

.message-filters,
.message-pagination,
.message-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.message-filters {
    margin-block-end: 24px;
}

.message-filters [aria-current="page"] {
    outline: 2px solid #0754cf;
    outline-offset: 3px;
}

.message-heading {
    justify-content: space-between;
}

.message-heading h2 {
    margin: 0;
}

.message-unread-badge {
    padding: 4px 10px;
    border-radius: 999px;
    color: #0754cf;
    background: #eff6ff;
    font-size: 0.85rem;
}

.message-body {
    margin-block: 20px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 2;
}

.message-pagination {
    justify-content: center;
    margin-block-start: 24px;
}

/* شمارنده پیام‌های خوانده‌نشده */

.unread-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 2px 6px;
    margin-inline-start: 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
}

/* Urgent appointment requests */
.urgent-request-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.9;
}

/* Urgent request conversation */
.urgent-conversation {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.conversation-entry {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}

.conversation-entry-staff {
    background: #f0f6ff;
    border-color: #d4e3fa;
}

.conversation-entry-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.conversation-entry-heading small {
    color: #64748b;
}

.conversation-entry .urgent-request-text {
    margin-bottom: 0;
}

/* Messages: unread and read */
.child-card.message-card-unread {
    background: #eef5ff;
    border: 1px solid #b9d2fa;
    border-inline-start: 4px solid #0754cf;
}

.child-card.message-card-read {
    background: #fff;
}

.message-card-unread .message-heading h2 {
    font-weight: 800;
}

/* Appointment history */
.child-card.appointment-card-cancelled {
    background: #fff5f5;
    border: 1px solid #f2c2c2;
    border-inline-start: 4px solid #c62828;
}

.appointment-cancelled-label {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #fde2e2;
    color: #a51d1d;
    font-weight: 700;
}

.appointment-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    padding-top: 16px;
    padding-bottom: 24px;
    border-top: 1px solid #dce5ed;
}

.footer-links a {
    color: inherit;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 3px;
}

.footer-trust {
    display: flex;
    justify-content: center;
}

.enamad-slot:empty {
    display: none;
}

.enamad-slot:not(:empty) {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}

.enamad-slot img {
    max-width: 150px;
    height: auto;
}

.hero-booking-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
}

.hero-booking-group > a.hero-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    min-width: 240px;
    max-width: 100%;
    min-height: 64px;
    box-sizing: border-box;
    margin: 0;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgb(0 82 204 / 18%);
}

.hero-booking-group > a.hero-booking svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.hero-booking-group > .hero-price {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.9;
}

.hero-booking-group > .hero-price strong {
    display: inline;
    margin: 0;
    color: #183b62;
    font-size: inherit;
}

.hero-booking-group > a.hero-booking:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .hero-booking-group {
        align-items: stretch;
    }

    .hero-booking-group > a.hero-booking {
        width: 100%;
        min-width: 0;
    }

    .hero-booking-group > .hero-price {
        text-align: center;
    }
}

@media (max-width: 900px) {
    .hero-copy {
        width: 54%;
        padding-right: 24px;
    }

    .hero-copy h1 {
        font-size: 32px;
    }

    .hero-picture {
        width: 67%;
    }
}

@media (max-width: 600px) {
    .home-hero {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .hero-copy {
        width: 100%;
        padding: 32px 20px;
        text-align: center;
    }

    .hero-copy h1 {
        font-size: clamp(26px, 6.5vw, 34px);
        line-height: 1.8;
    }

    .hero-doctor {
        margin-top: 20px;
    }

    .hero-booking {
        margin-top: 24px;
        font-size: 16px;
        min-height: 50px;
    }

    .hero-picture {
        position: relative;
        order: 2;
        inset: auto;
        width: 100%;
        height: 280px;
        z-index: auto;
    }

    .hero-picture::after {
        background: linear-gradient(
            to bottom,
            white,
            transparent 25%
        );
    }

    .home-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 0;
        padding-block: 32px;
    }

    .service-item + .service-item::before {
        display: none;
    }

    .service-item:nth-child(even)::before {
        display: block;
    }

    .service-icon {
        width: 72px;
        height: 72px;
    }

    .service-icon svg {
        width: 34px;
        height: 34px;
    }

    .section-heading {
        gap: 14px;
        font-size: 24px;
    }

    .home-education {
        padding-bottom: 40px;
    }
}
/* Shared navigation on every page */

.main-sections {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-block: 20px 28px;
    border-top: 1px solid var(--border);
}

.section-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    text-align: center;
    color: var(--text);
}

.section-item + .section-item::before {
    content: "";
    position: absolute;
    right: 0;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--border);
}

.main-sections .service-icon {
    width: 64px;
    height: 64px;
}

.main-sections .service-icon svg {
    width: 30px;
    height: 30px;
}

.section-label {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

a.section-item:hover {
    color: var(--primary);
}

a.section-item:hover .service-icon {
    background: #e5eeff;
}

.home-education {
    padding-top: 48px;
}

@media (max-width: 600px) {
    .main-sections {
        gap: 8px;
        padding-block: 16px;
    }

    .section-item {
        padding: 4px 2px;
        gap: 8px;
    }

    .section-item + .section-item::before {
        display: none;
    }

    .main-sections .service-icon {
        width: 46px;
        height: 46px;
    }

    .main-sections .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .section-label {
        font-size: 14px;
    }
}