:root {
    --athis-navy: #0f2747;
    --athis-blue: #1f4f8c;
    --athis-gold: #f1b80d;
    --athis-cream: #f7f4ee;
    --athis-ink: #1b2230;
    --athis-muted: #6c7686;
    --athis-card: #ffffff;
    --athis-border: rgba(15, 39, 71, 0.08);
    --athis-surface: linear-gradient(135deg, #0f2747 0%, #1f4f8c 100%);
}

[data-theme="dark"] {
    --athis-card: #182131;
    --athis-cream: #111826;
    --athis-ink: #eef3ff;
    --athis-muted: #b2bfd5;
    --athis-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: "Manrope", sans-serif;
    background: var(--athis-cream);
    color: var(--athis-ink);
}

h1, h2, h3, h4, h5 {
    font-family: "Source Serif 4", serif;
}

.topbar {
    background: var(--athis-surface);
}

.btn-primary {
    --bs-btn-bg: var(--athis-blue);
    --bs-btn-border-color: var(--athis-blue);
    --bs-btn-hover-bg: var(--athis-navy);
    --bs-btn-hover-border-color: var(--athis-navy);
}

.btn-outline-primary {
    --bs-btn-color: var(--athis-blue);
    --bs-btn-border-color: var(--athis-blue);
    --bs-btn-hover-bg: var(--athis-blue);
    --bs-btn-hover-border-color: var(--athis-blue);
}

.btn-warning {
    --bs-btn-bg: var(--athis-gold);
    --bs-btn-border-color: var(--athis-gold);
    --bs-btn-hover-bg: var(--athis-navy);
    --bs-btn-hover-border-color: var(--athis-navy);
    --bs-btn-hover-color: #fff;
}

.text-primary {
    color: var(--athis-blue) !important;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.home-hero {
    position: relative;
    min-height: calc(100vh - 112px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.home-carousel,
.home-carousel .carousel-inner,
.home-carousel .carousel-item {
    position: absolute;
    inset: 0;
}

.home-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-carousel .carousel-control-prev,
.home-carousel .carousel-control-next,
.home-carousel .carousel-indicators {
    z-index: 3;
}

.home-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 20, 39, 0.86) 0%, rgba(15, 39, 71, 0.58) 44%, rgba(15, 39, 71, 0.2) 100%);
    z-index: 1;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin-left: max(1rem, calc((100vw - 1140px) / 2));
    margin-right: auto;
    padding: 4rem 1rem;
}

.home-hero-content .lead {
    max-width: 680px;
}

.home-slide-caption {
    position: absolute;
    right: 5rem;
    bottom: 4.5rem;
    z-index: 2;
    display: grid;
    gap: 0.25rem;
    max-width: 360px;
    padding: 1rem;
    background: rgba(7, 20, 39, 0.68);
    border-left: 4px solid var(--athis-gold);
}

.home-slide-caption span {
    color: rgba(255, 255, 255, 0.82);
}

.home-feature-band {
    background: var(--athis-card);
}

.feature-line {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    min-height: 100%;
    padding: 0.85rem 0;
    border-top: 1px solid var(--athis-border);
}

.feature-line i {
    color: var(--athis-blue);
    font-size: 1.2rem;
    line-height: 1.4;
}

.hero-section {
    background: var(--athis-surface);
    color: #fff;
    min-height: calc(100vh - 96px);
    display: flex;
    align-items: center;
}

.hero-card,
.form-card,
.stats-card,
.dashboard-panel,
.card {
    background: var(--athis-card);
    border: 1px solid var(--athis-border);
    border-radius: 0.5rem;
}

.hero-card {
    padding: 2rem;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hero-badge {
    width: 88px;
    height: 88px;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    background: linear-gradient(180deg, var(--athis-navy) 0%, var(--athis-blue) 100%);
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-main {
    padding: 1.5rem;
}

.stats-card {
    padding: 1.25rem;
    box-shadow: 0 18px 45px rgba(17, 30, 60, 0.06);
}

.stats-card .icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(31, 79, 140, 0.1);
    color: var(--athis-blue);
}

.table img.thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
}

.settings-slide-thumb {
    width: 112px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--athis-border);
}

.payment-amount {
    padding: 1rem;
    border: 1px solid var(--athis-border);
    border-radius: 0.5rem;
    background: rgba(31, 79, 140, 0.06);
}

.payment-amount strong {
    font-size: 2rem;
    color: var(--athis-navy);
}

.payment-detail {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--athis-border);
}

.payment-detail span {
    display: block;
    color: var(--athis-muted);
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.payment-detail strong {
    overflow-wrap: anywhere;
}

.receipt-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.summer-option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    height: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--athis-border);
    border-radius: 0.5rem;
    background: var(--athis-card);
    cursor: pointer;
}

.summer-option input {
    margin-top: 0.25rem;
}

[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--athis-ink);
    --bs-table-border-color: var(--athis-border);
}

@media print {
    .topbar,
    .admin-sidebar,
    .public-footer,
    .btn,
    .modal {
        display: none !important;
    }

    .admin-layout {
        display: block;
    }

    .admin-main {
        padding: 0;
    }

    body {
        background: #fff;
    }
}

.login-shell {
    min-height: 100vh;
    background: var(--athis-surface);
}

.login-card {
    max-width: 440px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        min-height: auto;
        position: relative;
    }

    .home-hero {
        min-height: 76vh;
    }

    .home-hero-content {
        margin-left: 0;
        padding-top: 3rem;
        padding-bottom: 5rem;
    }

    .home-slide-caption {
        left: 1rem;
        right: 1rem;
        bottom: 1.25rem;
        max-width: none;
    }
}

/* Homepage refinements */
.home-hero {
    min-height: 500px;
    height: min(620px, 66vh);
}

.home-hero-content {
    max-width: 700px;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.home-hero-content h1 {
    max-width: 680px;
}

.home-slide-caption {
    right: 4rem;
    bottom: 3.5rem;
    max-width: 420px;
    padding: 1rem 1.15rem;
    background: rgba(7, 20, 39, 0.78);
    border-left: 5px solid var(--athis-gold);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.home-slide-caption strong {
    font-size: 1.05rem;
    line-height: 1.25;
}

.home-slide-caption span {
    line-height: 1.45;
}

.home-hero-shade {
    background: linear-gradient(90deg, rgba(7, 20, 39, 0.88) 0%, rgba(15, 39, 71, 0.62) 42%, rgba(15, 39, 71, 0.22) 100%);
}

.home-steps {
    background: var(--athis-cream);
}

.step-tile {
    height: 100%;
    padding: 1.25rem;
    background: var(--athis-card);
    border: 1px solid var(--athis-border);
    border-radius: 0.5rem;
}

.step-tile .step-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--athis-gold);
    color: #111826;
    font-weight: 800;
}

.public-footer {
    background: var(--athis-navy);
    color: #fff;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

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

.footer-rule {
    border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 991.98px) {
    .home-hero {
        min-height: 520px;
        height: auto;
    }

    .home-hero-content {
        padding-top: 2.5rem;
        padding-bottom: 8.5rem;
    }

    .home-slide-caption {
        left: 1rem;
        right: 1rem;
        bottom: 1.25rem;
        max-width: none;
    }
}

.home-hero-static {
    min-height: 470px;
    height: auto;
    background:
        linear-gradient(110deg, rgba(7, 20, 39, 0.92) 0%, rgba(15, 39, 71, 0.84) 46%, rgba(31, 79, 140, 0.72) 100%),
        var(--athis-surface);
}

.home-hero-static::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -42px;
    width: min(360px, 42vw);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transform: rotate(16deg);
}

.home-hero-static .home-hero-content {
    margin-left: auto;
    margin-right: auto;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}
