/*
 * KKA brand theme - overrides CoreUI defaults in style.css.
 * The stock sidebar-dark styling was never actually filled in upstream
 * (no background/text-color rules exist for .c-sidebar-dark at all), so
 * this defines the dark sidebar for real, in the school's own colors,
 * instead of only patching an existing theme.
 */
:root {
    --kka-accent: oklch(56% 0.135 145);
    --kka-accent-dark: oklch(40% 0.12 145);
    --kka-accent-tint: oklch(94.5% 0.035 145);
    --kka-sidebar: oklch(24% 0.014 240);
    --kka-sidebar-soft: oklch(62% 0.02 240);
    --kka-sidebar-active: oklch(32% 0.04 145);
    --kka-sidebar-line: oklch(32% 0.016 240);
}

/* Sidebar shell */
.c-sidebar.c-sidebar-dark {
    background: var(--kka-sidebar);
}

.c-sidebar.c-sidebar-dark .c-sidebar-brand {
    background: var(--kka-sidebar);
    border-bottom: 1px solid var(--kka-sidebar-line);
    justify-content: flex-start;
    padding: 0 20px;
    gap: 10px;
}

.c-sidebar.c-sidebar-dark .c-sidebar-brand .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--kka-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex: none;
}

.c-sidebar.c-sidebar-dark .c-sidebar-brand .brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.3;
}

.c-sidebar.c-sidebar-dark .c-sidebar-brand .brand-sub {
    color: var(--kka-sidebar-soft);
    font-weight: 500;
    font-size: 10px;
}

/* Nav links */
.c-sidebar.c-sidebar-dark .c-sidebar-nav-link,
.c-sidebar.c-sidebar-dark .c-sidebar-nav-dropdown-toggle {
    color: oklch(85% 0.01 240);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    margin: 1px 12px;
    width: calc(100% - 24px);
    padding: .68rem .75rem;
}

.c-sidebar.c-sidebar-dark .c-sidebar-nav-icon {
    color: oklch(85% 0.01 240);
    opacity: .85;
    flex: 0 0 34px;
}

.c-sidebar.c-sidebar-dark .c-sidebar-nav-link:hover,
.c-sidebar.c-sidebar-dark .c-sidebar-nav-dropdown-toggle:hover {
    background: oklch(30% 0.018 240) !important;
    color: #fff !important;
}

.c-sidebar.c-sidebar-dark .c-sidebar-nav-link.c-active,
.c-sidebar.c-sidebar-dark .c-sidebar-nav-link.c-sidebar-nav-link-primary {
    background: var(--kka-sidebar-active) !important;
    color: #fff !important;
}

.c-sidebar.c-sidebar-dark .c-sidebar-nav-link.c-active .c-sidebar-nav-icon {
    color: var(--kka-accent);
    opacity: 1;
}

.c-sidebar.c-sidebar-dark .c-sidebar-nav-dropdown-items .c-sidebar-nav-link {
    font-size: 12.8px;
    padding-left: 2.6rem;
}

/* CoreUI's base stylesheet aligns dropdown-item icons with a padding-left:56px
   + icon margin-left:-56px trick; our smaller padding-left above left that
   negative margin unopposed, so the icon (and the text after it) rendered far
   outside the rounded highlight box. Neutralize it and give the icon a sane
   column of its own instead. */
.c-sidebar.c-sidebar-dark .c-sidebar-nav-dropdown-items .c-sidebar-nav-icon {
    margin-left: 0 !important;
    flex: 0 0 20px;
    font-size: .85rem;
}

.c-sidebar.c-sidebar-dark .c-sidebar-nav-divider {
    background: var(--kka-sidebar-line);
}

/* Brand accent used app-wide: primary buttons/links/badges */
.btn-primary {
    color: #fff;
    background-color: var(--kka-accent);
    border-color: var(--kka-accent);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--kka-accent-dark) !important;
    border-color: var(--kka-accent-dark) !important;
}

.btn-outline-primary {
    color: var(--kka-accent-dark);
    border-color: var(--kka-accent);
}

.btn-outline-primary:hover {
    background-color: var(--kka-accent) !important;
    border-color: var(--kka-accent) !important;
}

.badge-primary {
    background-color: var(--kka-accent);
}

/* style.css's .btn-outline-secondary is #ced2d8 on white - barely visible,
   reads as "disabled" even though it's a normal clickable action (used as the
   standard Cancel/Back/New-Search button across every page in this theme). */
.btn-outline-secondary {
    color: #6b7885;
    border-color: #c7cdd3;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #fff !important;
    background-color: #8a96a1 !important;
    border-color: #8a96a1 !important;
}

a {
    color: var(--kka-accent-dark);
}

a:hover {
    color: var(--kka-accent);
}

/* ---------------------------------------------------------------------
 * Shared page/card components (stat-card, page-header, chips, kka-table)
 * Used across the finance screens (student payments, account codes,
 * banks, set fees, batches, fees breakdown) so every screen shares one
 * definition instead of repeating the same <style> block per view.
 * ------------------------------------------------------------------- */
.page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.page-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--kka-accent-tint);
    color: var(--kka-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: none;
}

.page-header h4 {
    margin-bottom: 0;
    font-weight: 700;
}

.page-header .page-subtitle {
    font-size: 13px;
    color: #8a96a1;
}

.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid #eef0f2;
}

.card-head .card-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.card-head i {
    color: var(--kka-accent-dark);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}

.chip.good {
    background: var(--kka-accent-tint);
    color: var(--kka-accent-dark);
}

.chip.warning {
    background: oklch(94% 0.05 70);
    color: oklch(58% 0.15 70);
}

.chip.muted {
    background: #eef0f2;
    color: #8a96a1;
}

.chip.bad {
    background: oklch(94% 0.05 25);
    color: oklch(50% 0.18 25);
}

.code-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7885;
}

.code-tag .code {
    font-weight: 700;
    color: #3a4249;
    background: #f1f3f5;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 11.5px;
}

table.kka-table th,
table.kka-table td {
    padding: 14px 20px;
}

table.kka-table th:first-child,
table.kka-table td:first-child {
    padding-left: 24px;
}

table.kka-table th:last-child,
table.kka-table td:last-child {
    padding-right: 24px;
}

table.kka-table th {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a96a1;
    font-weight: 700;
    background: #f8f9fa;
    border-top: none;
}

table.kka-table td {
    vertical-align: middle;
    font-size: 13.5px;
}

table.kka-table .empty-state {
    text-align: center;
    color: #8a96a1;
    padding: 32px 24px;
}

/* The raw-HTML report tables (DebtorServices, PaymentReportsServices) put the
   colspan'd class/section header directly on a <th> - give it the same
   generous inset as every other header cell instead of relying on inherited
   padding alone. */
table.kka-table .class-group-row {
    padding: 12px 24px;
}

.inline-select {
    min-width: 120px;
    display: inline-block;
    font-size: 12.5px;
    padding: 3px 6px;
}

.icon-btn-group {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.icon-btn-group form {
    margin: 0;
}

/* Used on plenty of cards that never carry .form-card (report filter cards,
   Set Fees' option cards, etc.) - was wrongly scoped to ".form-card
   .card-body-pad" so the padding silently never applied on any of those,
   leaving Bootstrap's row negative-margin gutters pulling content flush
   against the card edge instead. */
.card-body-pad {
    padding: 20px;
}

.form-card label,
.card-body-pad label {
    font-size: 12.5px;
    font-weight: 700;
    color: #4a545c;
}

/* Printed report header (Debtors Report, Student Ledger, Payment Reports) -
   used both on screen and as the letterhead-style banner when the report is
   physically printed via window.print(). */
.report-print-header {
    text-align: center;
    background: var(--kka-accent-tint);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
}

.report-print-header h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--kka-accent-dark);
    margin-bottom: 4px;
}

.report-print-header h2,
.report-print-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #3a4249;
    margin-bottom: 4px;
}

.report-print-header p {
    font-size: 12px;
    color: #8a96a1;
    margin-bottom: 0;
}

table.kka-table .class-group-row {
    background: var(--kka-accent-tint) !important;
    color: var(--kka-accent-dark) !important;
    font-weight: 700;
    text-align: left !important;
    font-size: 12.5px;
}

@media print {
    .report-print-header {
        background: #fff !important;
        border: 1px solid #d7dbe0;
    }

    table.kka-table .class-group-row {
        background: #f1f3f5 !important;
        color: #222 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ---------------------------------------------------------------------
 * Auth screens (login, parents login) - split brand/form layout shared
 * by resources/views/auth/partials/loginCard.blade.php.
 * ------------------------------------------------------------------- */
body.kka-auth-body {
    margin: 0;
    min-height: 100vh;
    background: #f5f7fa;
}

.kka-auth {
    width: 100%;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .kka-auth {
        display: flex;
    }
}

.kka-auth-brand {
    flex: 0 0 42%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: linear-gradient(160deg, var(--kka-sidebar) 0%, oklch(16% 0.014 240) 100%);
    overflow: hidden;
}

.kka-auth-brand-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.kka-auth-brand-decor::before,
.kka-auth-brand-decor::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--kka-accent);
    opacity: .12;
}

.kka-auth-brand-decor::before {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -140px;
}

.kka-auth-brand-decor::after {
    width: 260px;
    height: 260px;
    bottom: -100px;
    left: -80px;
    opacity: .08;
}

.kka-auth-brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 340px;
}

.kka-auth-logo {
    width: 132px;
    height: auto;
    margin-bottom: 22px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
}

.kka-auth-brand-inner h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.kka-auth-tagline {
    color: var(--kka-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.kka-auth-portal-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: oklch(85% 0.01 240);
    font-size: 12.5px;
    font-weight: 600;
}

.kka-auth-panel {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.kka-auth-card {
    width: 100%;
    max-width: 380px;
    min-width: 0;
}

.kka-auth-logo-mobile {
    display: none;
    width: 72px;
    margin: 0 auto 18px;
}

.kka-auth-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: #16202b;
    margin-bottom: 4px;
}

.kka-auth-card .kka-auth-sub {
    font-size: 13.5px;
    color: #8a96a1;
    margin-bottom: 24px;
}

.kka-auth-card .alert {
    font-size: 13px;
    padding: 10px 14px;
    margin: 0 0 14px;
    border-radius: 10px;
}

.kka-field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #4a545c;
    margin-bottom: 7px;
}

.kka-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef1f5;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    padding: 4px 14px;
    margin-bottom: 16px;
    transition: border-color .15s ease, background-color .15s ease;
}

.kka-field:focus-within {
    border-color: var(--kka-accent);
    background: #fff;
}

.kka-field svg {
    flex: none;
    color: #8a96a1;
}

.kka-field input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 11px 0;
    font-size: 14.5px;
    color: #16202b;
    outline: none;
}

.kka-field .kka-field-toggle {
    cursor: pointer;
    display: flex;
    color: #8a96a1;
}

.kka-field .kka-field-toggle:hover {
    color: #4a545c;
}

.kka-auth-forgot {
    display: block;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    margin: -6px 0 18px;
}

.kka-auth-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px;
    background: var(--kka-sidebar);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    transition: background-color .15s ease;
}

.kka-auth-submit:hover,
.kka-auth-submit:focus {
    background: oklch(16% 0.014 240);
    color: #fff;
}

.kka-auth-help {
    margin: 22px 0 0;
    text-align: center;
    font-size: 12px;
    color: #8a96a1;
}

@media (max-width: 767.98px) {
    .kka-auth-brand {
        display: none;
    }

    .kka-auth-logo-mobile {
        display: block;
    }
}

/* ---------------------------------------------------------------------
 * Public landing page - resources/views/landing.blade.php.
 * A new, separate marketing page (not the current "/" route) built on
 * the same brand tokens as the auth screens/sidebar above.
 * ------------------------------------------------------------------- */
body.kka-landing-body {
    margin: 0;
    color: #16202b;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.kka-landing-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
.kka-landing-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #eef1f5;
}

.kka-landing-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.kka-landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 15px;
    color: #16202b;
    text-decoration: none;
}

.kka-landing-brand img {
    width: 38px;
    height: auto;
    flex: none;
}

.kka-landing-brand span {
    white-space: nowrap;
}

@media (max-width: 420px) {
    .kka-landing-brand span {
        display: none;
    }
}

.kka-landing-links {
    display: none;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kka-landing-links a {
    color: #4a545c;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.kka-landing-links a:hover {
    color: var(--kka-accent-dark);
}

.kka-landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kka-landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    white-space: nowrap;
}

.kka-landing-btn-ghost {
    color: var(--kka-sidebar);
    border-color: #e1e5eb;
}

.kka-landing-btn-ghost:hover {
    border-color: var(--kka-sidebar);
    color: var(--kka-sidebar);
}

.kka-landing-btn-accent {
    background: var(--kka-accent);
    color: #fff;
}

.kka-landing-btn-accent:hover {
    background: var(--kka-accent-dark);
    color: #fff;
}

.kka-landing-btn-lg {
    padding: 13px 26px;
    font-size: 14.5px;
    border-radius: 12px;
}

.kka-landing-nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 8px;
    color: #16202b;
}

@media (min-width: 992px) {
    .kka-landing-links {
        display: flex;
    }

    .kka-landing-nav-toggle {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .kka-landing-nav-actions .kka-landing-btn {
        display: none;
    }
}

.kka-landing-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.kka-landing-mobile-actions .kka-landing-btn {
    width: 100%;
}

@media (min-width: 576px) {
    .kka-landing-mobile-actions {
        display: none;
    }
}

.kka-landing-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 16px;
    border-top: 1px solid #eef1f5;
}

.kka-landing-mobile-menu.is-open {
    display: flex;
}

.kka-landing-mobile-menu a {
    padding: 10px 4px;
    color: #4a545c;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

@media (min-width: 992px) {
    .kka-landing-mobile-menu {
        display: none !important;
    }
}

/* Hero */
.kka-landing-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--kka-sidebar) 0%, oklch(16% 0.014 240) 100%);
    padding: 72px 0 88px;
    text-align: center;
}

.kka-landing-hero::before,
.kka-landing-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--kka-accent);
    opacity: .12;
    pointer-events: none;
}

.kka-landing-hero::before {
    width: 460px;
    height: 460px;
    top: -220px;
    right: -160px;
}

.kka-landing-hero::after {
    width: 320px;
    height: 320px;
    bottom: -180px;
    left: -120px;
    opacity: .08;
}

.kka-landing-hero-inner {
    position: relative;
    z-index: 1;
}

.kka-landing-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .kka-landing-hero-grid {
        grid-template-columns: 1fr 1.1fr;
        max-width: 1080px;
        text-align: left;
    }

    .kka-landing-hero-grid .kka-landing-hero-actions {
        justify-content: flex-start;
    }

    .kka-landing-hero-grid .kka-landing-hero-copy p {
        margin-left: 0;
        margin-right: 0;
    }
}

.kka-landing-hero-media {
    display: flex;
    justify-content: center;
}

.kka-landing-hero-carousel {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3 / 2;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .14);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}

.kka-landing-hero-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.kka-landing-hero-carousel img.is-active {
    opacity: 1;
}

.kka-landing-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.kka-landing-hero-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    transition: background-color .2s ease, transform .2s ease;
}

.kka-landing-hero-dots span.is-active {
    background: #fff;
    transform: scale(1.25);
}

.kka-landing-hero-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--kka-accent);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.kka-landing-hero h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px;
}

.kka-landing-hero h1 span {
    color: var(--kka-accent);
}

.kka-landing-hero p {
    color: oklch(85% 0.01 240);
    font-size: 15.5px;
    line-height: 1.7;
    margin: 0 auto 32px;
    max-width: 540px;
}

.kka-landing-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (min-width: 576px) {
    .kka-landing-hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .kka-landing-hero h1 {
        font-size: 44px;
    }

    .kka-landing-hero p {
        font-size: 17px;
    }
}

/* Generic section chrome */
.kka-landing-section {
    padding: 72px 0;
}

.kka-landing-section-alt {
    background: #f5f7fa;
}

.kka-landing-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 44px;
}

.kka-landing-eyebrow {
    display: block;
    color: var(--kka-accent-dark);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.kka-landing-section-head h2 {
    font-size: 26px;
    font-weight: 800;
    color: #16202b;
    margin: 0 0 12px;
}

.kka-landing-section-head p {
    color: #6b7885;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Value / feature cards */
.kka-landing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .kka-landing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .kka-landing-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.kka-landing-card {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 16px;
    padding: 26px 22px;
}

.kka-landing-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--kka-accent-tint);
    color: var(--kka-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.kka-landing-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #16202b;
    margin: 0 0 8px;
}

.kka-landing-card p {
    font-size: 13.5px;
    line-height: 1.65;
    color: #6b7885;
    margin: 0;
}

/* About split */
.kka-landing-about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}

@media (min-width: 900px) {
    .kka-landing-about {
        grid-template-columns: 0.85fr 1.15fr;
    }
}

.kka-landing-about-panel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--kka-sidebar) 0%, oklch(16% 0.014 240) 100%);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.kka-landing-about-panel::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--kka-accent);
    opacity: .14;
    top: -80px;
    left: -60px;
}

.kka-landing-about-panel img {
    position: relative;
    z-index: 1;
    width: 130px;
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
}

.kka-landing-about-copy h2 {
    font-size: 26px;
    font-weight: 800;
    color: #16202b;
    margin: 0 0 16px;
}

.kka-landing-about-copy p {
    font-size: 15px;
    line-height: 1.75;
    color: #4a545c;
    margin: 0 0 16px;
}

.kka-landing-about-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.kka-landing-about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #16202b;
    font-weight: 600;
}

.kka-landing-about-list svg {
    flex: none;
    color: var(--kka-accent-dark);
    margin-top: 2px;
}

/* Programs */
.kka-landing-program-card {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
}

.kka-landing-program-card .kka-landing-card-icon {
    margin: 0 auto 14px;
}

.kka-landing-program-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #16202b;
}

.kka-landing-program-card p {
    font-size: 13px;
    color: #6b7885;
    margin: 0;
}

/* Gallery */
.kka-landing-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .kka-landing-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.kka-landing-gallery-item {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eef1f5;
}

.kka-landing-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.kka-landing-gallery-item:hover img {
    transform: scale(1.06);
}

/* CTA banner */
.kka-landing-cta {
    background: var(--kka-accent);
    border-radius: 20px;
    padding: 44px 32px;
    text-align: center;
}

.kka-landing-cta h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
}

.kka-landing-cta p {
    color: oklch(97% 0.02 145);
    font-size: 14.5px;
    margin: 0 0 24px;
}

.kka-landing-cta .kka-landing-btn-accent {
    background: #fff;
    color: var(--kka-accent-dark);
}

.kka-landing-cta .kka-landing-btn-accent:hover {
    background: var(--kka-sidebar);
    color: #fff;
}

/* Footer */
.kka-landing-footer {
    background: var(--kka-sidebar);
    padding: 56px 0 24px;
}

.kka-landing-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--kka-sidebar-line);
}

@media (min-width: 768px) {
    .kka-landing-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.kka-landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 12px;
}

.kka-landing-footer-brand img {
    width: 34px;
}

.kka-landing-footer p {
    color: var(--kka-sidebar-soft);
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0;
}

.kka-landing-footer h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 16px;
}

.kka-landing-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.kka-landing-footer-links a {
    color: var(--kka-sidebar-soft);
    font-size: 13.5px;
    text-decoration: none;
}

.kka-landing-footer-links a:hover {
    color: #fff;
}

.kka-landing-copyright {
    padding-top: 20px;
    text-align: center;
    color: var(--kka-sidebar-soft);
    font-size: 12.5px;
}

/* ---------------------------------------------------------------------
 * Public admissions application form - resources/views/apply/*.
 * ------------------------------------------------------------------- */
.kka-apply-page {
    width: 100%;
    align-self: flex-start;
    min-height: 100vh;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.kka-apply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #eef1f5;
    text-decoration: none;
}

.kka-apply-header img {
    width: 36px;
    height: auto;
}

.kka-apply-header span {
    font-weight: 800;
    color: #16202b;
    font-size: 15px;
}

.kka-apply-wrap {
    max-width: 760px;
    margin: 32px auto 64px;
    padding: 0 20px;
}

.kka-apply-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f5;
    padding: 32px;
}

.kka-apply-card h1 {
    font-size: 22px;
    font-weight: 800;
    color: #16202b;
    margin: 0 0 6px;
}

.kka-apply-card .kka-apply-sub {
    color: #6b7885;
    font-size: 14px;
    margin: 0 0 28px;
}

.kka-apply-section-label {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--kka-accent-dark);
    margin: 28px 0 14px;
}

.kka-apply-section-label:first-of-type {
    margin-top: 0;
}

.kka-apply-fee-note {
    background: var(--kka-accent-tint);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #16202b;
    margin: 4px 0 24px;
}

.kka-apply-fee-note strong {
    color: var(--kka-accent-dark);
}

.kka-apply-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 13px;
    background: var(--kka-accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    transition: background-color .15s ease;
}

.kka-apply-submit:hover,
.kka-apply-submit:focus {
    background: var(--kka-accent-dark);
    color: #fff;
}

.kka-apply-thankyou {
    text-align: center;
    padding: 24px 8px;
}

.kka-apply-thankyou .kka-apply-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--kka-accent-tint);
    color: var(--kka-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.kka-apply-reference {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f5f7fa;
    font-family: monospace;
    font-size: 13px;
    color: #16202b;
}
