/* ═══════════════════════════════════════════════════
   CSS VARIABLES & RESET
═══════════════════════════════════════════════════ */
:root {
    --maroon: #6B1A1A;
    --maroon-dark: #4A1010;
    --maroon-mid: #7D2222;
    --maroon-light: #8B2E2E;
    --gold: #C9A84C;
    --gold-light: #E8D08A;
    --white: #FFFFFF;
    --off-white: #F8F5F2;
    --gray-100: #F2EEEB;
    --gray-200: #E0D9D4;
    --gray-400: #9E918A;
    --gray-600: #5C4F4A;
    --gray-800: #2C2220;
    --text: #1A1210;
    --shadow-sm: 0 2px 8px rgba(107, 26, 26, 0.12);
    --shadow-md: 0 4px 24px rgba(107, 26, 26, 0.18);
    --shadow-lg: 0 12px 48px rgba(107, 26, 26, 0.22);
    --radius: 6px;
    --radius-lg: 12px;
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════
     PAGE SYSTEM (SPA-like routing)
  ═══════════════════════════════════════════════════ */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════
     TOPBAR / NAV
  ═══════════════════════════════════════════════════ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--maroon-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 52px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.topbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: opacity var(--transition);
}

.topbar-brand:hover {
    opacity: 0.85;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item:hover,
.nav-item.active,
.nav-item:focus-within {
    background: rgba(255, 255, 255, 0.12);
}

.nav-item .chevron {
    font-size: 0.7rem;
    transition: transform var(--transition);
}

.nav-item:hover .chevron,
.nav-item:focus-within .chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--gray-800);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 6px;
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 1002;
    /* above nav-item for easy access */
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-dropdown:focus-within {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    color: var(--gray-200);
    text-decoration: none;
    padding: 9px 14px;
    border-radius: var(--radius);
    font-size: 0.86rem;
    transition: background var(--transition), color var(--transition);
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
    background: var(--maroon);
    color: var(--white);
    outline: none;
}

.topbar-search {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    border-radius: 50%;
    transition: background var(--transition);
}

.topbar-search:hover,
.topbar-search:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

/* ═══════════════════════════════════════════════════
     HERO BANNERS
  ═══════════════════════════════════════════════════ */
.hero {
    margin-top: 52px;
    background: var(--maroon);
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated wave layers matching the original */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.hero::before {
    width: 800px;
    height: 400px;
    background: var(--maroon-dark);
    bottom: -150px;
    left: -100px;
    transform: rotate(-12deg);
}

.hero::after {
    width: 600px;
    height: 300px;
    background: var(--maroon-light);
    bottom: -80px;
    right: -80px;
    transform: rotate(8deg);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    overflow: hidden;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 48px 24px;
}

.hero-frame {
    border: 2.5px solid rgba(255, 255, 255, 0.7);
    padding: 28px 64px;
    display: inline-block;
    border-radius: 2px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 8px;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════
     HOME PAGE
  ═══════════════════════════════════════════════════ */
.home-hero {
    background: var(--maroon);
    min-height: 400px;
}

.home-hero .hero-frame {
    padding: 32px 80px;
}

.home-hero .hero-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.home-cards-section {
    background: var(--white);
    padding: 72px 40px 80px;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1120px;
    margin: 0 auto;
}

.home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition);
}

.home-card:hover {
    transform: translateY(-6px);
}

.home-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--gray-200);
    overflow: hidden;
    position: relative;
}

.home-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-card:hover .home-card-img img {
    transform: scale(1.05);
}

/* Placeholder images using CSS art */
.img-students {
    background: linear-gradient(135deg, #8B6548 0%, #5C3D2A 100%);
}

.img-supervisors {
    background: linear-gradient(135deg, #6B4C3B 0%, #3D2B1F 60%, #7A1A1A 100%);
}

.img-examiners {
    background: linear-gradient(135deg, #3A5A6B 0%, #2A3A4B 100%);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.4;
}

.home-card-title {
    font-family: 'Playfair Display', serif;
    color: var(--maroon);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 20px;
    letter-spacing: -0.01em;
}

.home-card-link {
    color: var(--gray-600);
    font-size: 0.9rem;
    text-decoration: underline;
    margin-top: 8px;
    transition: color var(--transition);
}

.home-card:hover .home-card-link {
    color: var(--maroon);
}

/* ═══════════════════════════════════════════════════
     FORM CARDS GRID (Students / Supervisors / Examiners)
  ═══════════════════════════════════════════════════ */
.forms-section {
    background: var(--white);
    padding: 64px 40px 80px;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 32px;
    max-width: 1180px;
    margin: 0 auto;
}

.form-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition);
    gap: 12px;
}

.form-card-item:hover {
    transform: translateY(-5px);
}

.form-card-img {
    width: 100%;
    height: 185px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.12);
}

.form-card-img-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.form-card-item:hover .form-card-img-inner {
    transform: scale(1.06);
}

/* Unique photo-like CSS backgrounds */
.fc-img-1 {
    background: linear-gradient(160deg, #4A3728 0%, #2A1A10 40%, #6B4030 100%);
}

.fc-img-2 {
    background: linear-gradient(140deg, #2A3545 0%, #1A2535 50%, #3A4A5A 100%);
}

.fc-img-3 {
    background: linear-gradient(150deg, #1A2530 0%, #0A1520 60%, #2A3D50 100%);
}

.fc-img-4 {
    background: linear-gradient(135deg, #3A2A1A 0%, #5A4030 100%);
}

.fc-img-5 {
    background: linear-gradient(160deg, #2A4040 0%, #1A3030 60%, #3A5050 100%);
}

.fc-img-6 {
    background: linear-gradient(140deg, #3A2535 0%, #5A3A4A 100%);
}

.fc-img-7 {
    background: linear-gradient(155deg, #2A3530 0%, #3A4A40 100%);
}

.fc-img-8 {
    background: linear-gradient(145deg, #453020 0%, #2A1A10 60%, #604030 100%);
}

.fc-img-a {
    background: linear-gradient(140deg, #2A2A3A 0%, #3A3A5A 100%);
}

.fc-img-b {
    background: linear-gradient(140deg, #3A2520 0%, #5A3A30 100%);
}

.fc-img-c {
    background: linear-gradient(150deg, #202A35 0%, #304050 100%);
}

.fc-img-d {
    background: linear-gradient(145deg, #352525 0%, #552D2D 100%);
}

.fc-img-e {
    background: linear-gradient(160deg, #253530 0%, #354545 100%);
}

.fc-img-f {
    background: linear-gradient(135deg, #3A2A30 0%, #5A3A45 100%);
}

.fc-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.form-card-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--maroon);
    line-height: 1.35;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-card-code {
    font-size: 0.8rem;
    color: var(--maroon);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════
     ADMIN VIEW TABLE
  ═══════════════════════════════════════════════════ */
.admin-section {
    background: var(--white);
    padding: 56px 40px 80px;
}

.admin-table-wrap {
    max-width: 1160px;
    margin: 0 auto;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead tr th {
    color: var(--maroon);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 20px 14px;
    border-bottom: 1.5px solid var(--gray-200);
    text-align: left;
    white-space: nowrap;
    background: var(--white);
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background var(--transition);
}

.admin-table tbody tr:hover {
    background: var(--gray-100);
}

.admin-table tbody td {
    padding: 14px 20px;
    font-size: 0.87rem;
    vertical-align: middle;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

/* Name pill */
.name-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #C9A84C22;
    border: 1px solid #C9A84C55;
    color: #6B4A1A;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.name-pill .avatar-icon {
    font-size: 0.7rem;
}

/* Faculty pill */
.faculty-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.faculty-pill .remove-btn {
    color: var(--gray-400);
    cursor: pointer;
    font-size: 0.7rem;
    margin-left: 2px;
    transition: color var(--transition);
}

.faculty-pill .remove-btn:hover {
    color: var(--maroon);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.status-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-dot-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.65rem;
    opacity: 0.7;
}

.badge-admin {
    background: #EBE0D0;
    color: #7A4A1A;
}

.badge-admin .badge-dot {
    background: #C9803A;
}

.badge-pending {
    background: #DDEAF5;
    color: #1A4A7A;
}

.badge-pending .badge-dot {
    background: #3A7AC9;
}

.badge-completed {
    background: #D4EDD9;
    color: #1A5A2A;
}

.badge-completed .badge-dot {
    background: #3A9A4A;
}

.badge-archived {
    background: #E8E0D8;
    color: #4A3A2A;
}

.badge-archived .badge-dot {
    background: #8A7A6A;
}

/* Remark text */
.remark-text {
    color: var(--gray-400);
    font-style: italic;
    font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════
     LOGIN / AUTH PAGE
  ═══════════════════════════════════════════════════ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    background: var(--off-white);
    margin-top: 52px;
}

.auth-left-panel {
    width: 440px;
    min-height: calc(100vh - 52px);
    background: var(--maroon);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -200px;
    left: -100px;
}

.auth-left-panel::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -100px;
    right: -80px;
}

.auth-left-content {
    position: relative;
    z-index: 2;
}

.auth-logo-mark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.auth-portal-title {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}

.auth-portal-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 40px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-feat {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
}

.auth-feat-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
}

.auth-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.auth-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--maroon-dark);
    margin-bottom: 4px;
    font-weight: 700;
}

.auth-form-sub {
    color: var(--gray-400);
    font-size: 0.88rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 7px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.93rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(107, 26, 26, 0.08);
}

.form-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.93rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E918A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}

.form-select:focus {
    border-color: var(--maroon);
}

.btn-primary {
    width: 100%;
    padding: 13px;
    background: var(--maroon);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: var(--maroon-dark);
    box-shadow: 0 4px 16px rgba(107, 26, 26, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--maroon);
    border: 1.5px solid var(--maroon);
    border-radius: var(--radius);
    font-size: 0.93rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all var(--transition);
}

.btn-outline:hover {
    background: var(--maroon);
    color: var(--white);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-hint {
    margin-top: 24px;
    padding: 14px;
    background: var(--gray-100);
    border-radius: var(--radius);
    border-left: 3px solid var(--maroon);
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
     INLINE FORM SUBMISSION PAGE
  ═══════════════════════════════════════════════════ */
.form-page {
    background: var(--off-white);
    min-height: calc(100vh - 52px);
}

.form-page-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.form-page-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.form-page-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.form-page-back:hover {
    border-color: var(--maroon);
    color: var(--maroon);
}

.form-page-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--maroon-dark);
    font-weight: 700;
}

.form-page-code {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-top: 4px;
    background: rgba(201, 168, 76, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.form-section-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.form-section-head {
    padding: 16px 24px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--maroon);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-section-head span {
    font-size: 1rem;
}

.form-section-body {
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group-inline {
    display: flex;
    flex-direction: column;
}

.form-textarea {
    width: 100%;
    padding: 11px 14px;
    resize: vertical;
    min-height: 90px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.93rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-textarea:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(107, 26, 26, 0.08);
}

.upload-box {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    margin-top: 4px;
}

.upload-box:hover {
    border-color: var(--maroon);
    background: rgba(107, 26, 26, 0.02);
}

.upload-box-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--gray-400);
}

.upload-box-text {
    font-size: 0.83rem;
    color: var(--gray-400);
}

.upload-box-text strong {
    color: var(--maroon);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check-row input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--maroon);
}

.check-row label {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.5;
    cursor: pointer;
}

.form-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.btn-save {
    padding: 11px 24px;
    background: transparent;
    border: 1.5px solid var(--gray-400);
    color: var(--gray-600);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-save:hover {
    border-color: var(--maroon);
    color: var(--maroon);
}

.btn-submit {
    padding: 11px 32px;
    background: var(--maroon);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--maroon-dark);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════
     ALERT / FLASH
  ═══════════════════════════════════════════════════ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #D4EDD9;
    color: #1A5A2A;
    border-left: 3px solid #3A9A4A;
}

.alert-error {
    background: #FAE0E0;
    color: #6A1A1A;
    border-left: 3px solid #C43A3A;
}

.alert-warning {
    background: #FFF4D4;
    color: #6A4A1A;
    border-left: 3px solid #C9803A;
}

/* ═══════════════════════════════════════════════════
     FOOTER
  ═══════════════════════════════════════════════════ */
.site-footer {
    background: var(--maroon-dark);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 24px;
    font-size: 0.8rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
}

/* ═══════════════════════════════════════════════════
     MODAL
  ═══════════════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(26, 18, 16, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: calc(100% - 40px);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--maroon-dark);
    margin-bottom: 6px;
}

.modal-sub {
    color: var(--gray-400);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

/* ═══════════════════════════════════════════════════
     SEARCH OVERLAY
  ═══════════════════════════════════════════════════ */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(26, 18, 16, 0.85);
    backdrop-filter: blur(8px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.search-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.search-box {
    width: 100%;
    max-width: 640px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 56px 18px 24px;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    outline: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.search-results {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-top: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-result-item {
    padding: 14px 24px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background var(--transition);
}

.search-result-item:last-child {
    border: none;
}

.search-result-item:hover {
    background: var(--gray-100);
}

.search-result-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--maroon);
    background: rgba(107, 26, 26, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.search-esc {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.75rem;
    cursor: pointer;
    background: var(--gray-100);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: inherit;
}

/* ═══════════════════════════════════════════════════
     TIMELINE PAGE
  ═══════════════════════════════════════════════════ */
.timeline-section {
    padding: 64px 40px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--maroon) 0%, var(--gold) 100%);
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    animation: fadeIn 0.4s ease both;
}

.timeline-marker {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--maroon);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--maroon), var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 1;
    margin-top: 4px;
}

.timeline-content {
    flex: 1;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.timeline-step {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--maroon);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--maroon-dark);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
     UTILITIES
  ═══════════════════════════════════════════════════ */
.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 900px) {
    .forms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-cards {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 480px;
    }

    .auth-left-panel {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .forms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .forms-section,
    .admin-section,
    .home-cards-section {
        padding: 40px 20px;
    }

    .hero-frame {
        padding: 24px 32px;
    }

    .topbar {
        padding: 0 16px;
    }
}