:root {
    --primary: #1aa0b8;
    --primary-dark: #148a9f;
    --hero-bg: #2f3b4a;
    --card-header: #1e88c7;
    --text-dark: #2d3748;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: #f8fafc;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1f2937;
    min-width: 0;
}

.site-brand-logo {
    height: 52px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.site-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.site-header img,
.site-brand img,
.navbar img,
.navbar-brand img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    flex-wrap: nowrap;
}

.site-nav-link,
.site-nav-dropdown-toggle {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    background: transparent;
    border: 0;
    padding: 8px 0;
    cursor: pointer;
    font-family: inherit;
}

.site-nav-link:hover,
.site-nav-dropdown-toggle:hover,
.site-nav-link.active,
.site-nav-dropdown-toggle.active {
    color: #0891b2;
}

.site-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    background: #0891b2;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.site-nav-button:hover {
    background: #0e7490;
}

.site-admin-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #0891b2;
    border-radius: 999px;
    color: #0891b2;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.site-admin-login:hover {
    background: #0891b2;
    color: #ffffff;
}

.admin-contact-support {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.admin-contact-support p {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
}

.admin-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-reminder-section {
    padding: 1.5rem 0 0;
}

.service-reminder-banner {
    background: linear-gradient(135deg, #e0f7fa 0%, #f0f9ff 100%);
    border: 1px solid #7dd3fc;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}

.service-reminder-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: #0e7490;
}

.service-reminder-text,
.service-reminder-note {
    margin: 0 0 0.75rem;
    color: #334155;
    line-height: 1.7;
}

.service-reminder-note {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.service-reminder-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.service-reminder-email {
    color: #0369a1;
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-all;
}

.service-reminder-email:hover {
    text-decoration: underline;
}

.service-reminder-alert {
    grid-column: 1 / -1;
    margin-bottom: 1.25rem;
}

.service-reminder-alert-title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.service-reminder-alert p {
    margin: 0 0 0.75rem;
    line-height: 1.7;
}

.service-reminder-alert p:last-of-type {
    margin-bottom: 1rem;
}

.service-reminder-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.service-reminder-contact-label {
    margin: 0;
    font-weight: 600;
}

.service-reminder-email-link {
    color: #1d4ed8;
    font-weight: 600;
    word-break: break-all;
}

.service-reminder-email-link:hover {
    text-decoration: underline;
}

.admin-instruction {
    margin: 0;
    color: #374151;
    line-height: 1.7;
}

.site-nav-dropdown {
    position: relative;
}

.site-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 1001;
}

.site-nav-dropdown:hover .site-nav-dropdown-menu {
    display: block;
}

.site-nav-dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}

.site-nav-dropdown-menu a:hover {
    background: #f0f9ff;
    color: #0891b2;
}

.hero-home {
    width: 100%;
    min-height: 430px;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.68)),
        var(--hero-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-home-overlay {
    width: 100%;
    padding: 90px 0;
}

.hero-home-content {
    text-align: center;
    color: #ffffff;
}

.hero-home-content h1 {
    max-width: 1100px;
    margin: 0 auto 18px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.hero-home-content p {
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 500;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.home-intro-section {
    padding: 64px 0;
    background: #f8fafc;
}

.home-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: stretch;
}

.campus-image-card {
    border-radius: 22px;
    overflow: hidden;
    background: #e5e7eb;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
    min-height: 390px;
}

.campus-image-card img,
.home-building-image {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    filter: none;
    display: block;
}

.service-highlight-card {
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    padding: 44px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.service-highlight-card h2 {
    font-size: clamp(1.6rem, 2.3vw, 2.2rem);
    line-height: 1.3;
    margin: 0 0 22px;
    font-weight: 800;
}

.service-highlight-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 24px;
}

.service-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-check-list li {
    position: relative;
    padding-left: 42px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: 700;
}

.service-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0891b2;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.service-check-list a {
    color: inherit;
    text-decoration: none;
}

.service-check-list a:hover {
    color: #67e8f9;
}

.services-section { padding: 3rem 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 1rem;
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.service-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.service-card p {
    color: var(--text-muted);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.service-card a {
    color: var(--primary);
    font-weight: 600;
}

.page-title-bar {
    background: var(--hero-bg);
    color: var(--white);
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
    padding: 2rem 0 3rem;
}

.form-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-card-header {
    background: var(--card-header);
    color: var(--white);
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-card-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.form-sidebar {
    padding: 1.5rem;
    border-right: 1px solid var(--border);
    background: #fafbfc;
}

.form-sidebar h3 { margin-top: 0; color: #1e40af; }

.form-sidebar p { color: var(--text-muted); font-size: 0.95rem; }

.progress-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.progress-box strong { color: #1e40af; }

.form-main { padding: 1.5rem; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1rem; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 160, 184, 0.15);
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.btn-primary:hover { background: #1d4ed8; }

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-footer-admin-link {
    color: #0891b2;
    font-weight: 600;
    text-decoration: none;
}

.site-footer-admin-link:hover {
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 90;
}

.back-to-top.show { display: flex; }

.honeypot { display: none !important; }

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #e0f2fe;
    color: #0369a1;
}

.download-list { list-style: none; padding: 0; }
.download-list li { margin-bottom: 0.5rem; }

.download-list a {
    color: var(--primary);
    font-weight: 600;
}

/* Admin */
.admin-body { background: #f1f5f9; margin: 0; }
.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.admin-sidebar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.admin-sidebar-user {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #334155;
}
.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}
.admin-sidebar-nav a {
    color: #cbd5e1;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    font-size: 0.92rem;
}
.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
    background: #1e293b;
    color: #fff;
}
.admin-sidebar-logout { margin-top: auto; padding-top: 1rem; }
.admin-main {
    padding: 1.5rem;
    overflow-x: auto;
}
.admin-header {
    background: #0f172a;
    color: white;
    padding: 1rem 0;
}
.admin-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.admin-nav a { color: #cbd5e1; }
.admin-nav a:hover { color: white; }
.admin-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.stat-box {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.stat-box h4 { margin: 0 0 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.stat-box .value { font-size: 1.75rem; font-weight: 700; color: var(--primary); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.92rem;
}
.table th { background: #f8fafc; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-sm {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-teal { background: var(--primary); color: white; }
.btn-blue { background: #2563eb; color: white; }
.btn-gray { background: #6b7280; color: white; }
.btn-green { background: #059669; color: white; }
.btn-red { background: #dc2626; color: white; }

.login-card {
    max-width: 420px;
    margin: 4rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 16px 22px;
    }

    .home-intro-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-brand-logo {
        height: 42px;
        max-width: 140px;
    }

    .site-brand-text {
        font-size: 1rem;
        white-space: normal;
    }

    .hero-home {
        min-height: 330px;
    }

    .hero-home-overlay {
        padding: 60px 0;
    }

    .home-intro-section {
        padding: 40px 0;
    }

    .service-highlight-card {
        padding: 28px;
    }

    .service-reminder-banner {
        padding: 1rem 1.1rem;
    }

    .service-reminder-title {
        font-size: 1.1rem;
    }

    .service-reminder-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .service-reminder-actions .btn-sm {
        text-align: center;
    }

    .service-reminder-contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .campus-image-card,
    .campus-image-card img,
    .home-building-image {
        min-height: 260px;
    }
}

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { min-height: auto; }
    .form-layout,
    .form-card-body,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
}
