/* CSS Reset & Variables */
:root {
    --primary-color: #B9B810;
    --primary-hover: #D4D312;
    --text-color: #333333;
    --light-grey: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --font-family: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background-color: var(--white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--light-grey);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFFEF0 0%, #F5F5F5 100%);
    /* Slightly warmer for summer */
    position: relative;
    overflow: hidden;
}

/* Background Decoration */
.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background-color: rgba(185, 184, 16, 0.08);
    /* Stronger summer sun feel */
    border-radius: 50%;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Typography */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 300;
}

h1 .highlight {
    font-weight: 900;
    position: relative;
}

/* Underline effect for highlight */
h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--primary-color);
    opacity: 0.3;
    z-index: -1;
}

p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
    color: #666;
}

/* Form Card */
.form-card {
    background: var(--white);
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}


.form-card h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

input,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #FAFAFA;
    border-radius: 0;
    /* Sharp corners per brand */
    appearance: none;
    -webkit-appearance: none;
}

/* Custom Select Arrow */
.form-group:has(select) {
    position: relative;
}

.form-group:has(select)::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--primary-color);
    position: absolute;
    right: 1.2rem;
    top: 55%;
    /* Adjusted for label */
    pointer-events: none;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(185, 184, 16, 0.1);
}

/* Button */
.cta-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    /* Per brand buttons often black/dark on yellow */
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
    /* Sharp corners */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(185, 184, 16, 0.2);
}

.cta-button:active {
    transform: translateY(0);
}

.form-helper-note {
    margin-top: 0.95rem;
    font-size: 0.96rem;
    line-height: 1.55;
    color: #666;
}

.form-helper-note a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(185, 184, 16, 0.45);
}

.form-helper-note a:hover {
    color: var(--primary-hover);
    border-bottom-color: rgba(212, 211, 18, 0.55);
}

.calendar-download {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid #ece8d6;
}

.calendar-download-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 0.75rem;
}

.calendar-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #f4f1e3;
    color: var(--text-color);
    border: 1px solid #d8d2bc;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.calendar-button:hover {
    background-color: #ebe6d0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(51, 51, 51, 0.08);
}

.calendar-download-note {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6d6d6d;
}

.admin-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #fffef0 0%, #f4f3eb 100%);
}

.admin-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-logout {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #d9d5c5;
    padding: 0.7rem 1rem;
    background-color: #faf8ee;
}

.admin-main {
    padding: 3rem 0 5rem;
}

.admin-login-wrap {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    width: 100%;
    max-width: 560px;
}

.admin-login-title,
.admin-dashboard-title {
    font-size: 2.6rem;
    line-height: 1.05;
    margin-bottom: 1rem;
    font-weight: 300;
}

.admin-login-copy {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.admin-shell {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.admin-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-secondary-button {
    display: inline-block;
    padding: 0.9rem 1.1rem;
    background-color: #f4f1e3;
    border: 1px solid #d8d2bc;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.admin-secondary-button:hover {
    background-color: #ebe6d0;
}

.admin-alert {
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--primary-color);
    background-color: #fffdf4;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
    font-weight: 700;
}

.admin-alert--error {
    border-left-color: #d14343;
    background-color: #fff6f6;
    color: #8f2424;
}

.admin-alert--success {
    border-left-color: #819100;
    color: #4f5a00;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.admin-stat-card {
    background: var(--white);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.admin-stat-value {
    font-size: 2.3rem;
    line-height: 1;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 0.35rem;
}

.admin-stat-label {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
    font-weight: 700;
}

.admin-stat-note {
    margin-top: 0.55rem;
    font-size: 0.95rem;
    color: #5f5f5f;
    font-weight: 700;
}

.admin-panel {
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.admin-panel--collapsible {
    overflow: hidden;
}

.admin-panel-toggle {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.8rem;
    background-color: #f4f1e3;
    border-bottom: 1px solid #ede9da;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.98rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-color);
}

.admin-panel-toggle:hover {
    background-color: #ebe6d0;
}

.admin-panel-toggle::-webkit-details-marker {
    display: none;
}

.admin-panel-toggle::after {
    content: '+';
    font-size: 1.25rem;
    line-height: 1;
    color: #6f7b00;
}

.admin-panel--collapsible[open] .admin-panel-toggle::after {
    content: '−';
}

.admin-panel-content {
    background-color: var(--white);
}

.admin-panel-header {
    padding: 1.6rem 1.8rem 1.2rem;
    border-bottom: 1px solid #ede9da;
}

.admin-panel-header h2 {
    font-size: 1.45rem;
    margin-bottom: 0.25rem;
}

.admin-panel-header p {
    margin: 0;
    max-width: none;
    font-size: 1rem;
}

.admin-empty-state {
    padding: 2rem 1.8rem;
    color: #666;
    font-size: 1rem;
}

.admin-entry-form {
    padding: 1.6rem 1.8rem 1.8rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.1rem;
}

.admin-form-grid .form-group {
    margin-bottom: 0;
}

.admin-form-span-2 {
    grid-column: 1 / -1;
}

.admin-submit-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-submit-row .cta-button {
    width: auto;
    min-width: 240px;
    margin-top: 0;
}

.admin-field-note {
    margin: 0;
    max-width: none;
    font-size: 0.96rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.admin-table th,
.admin-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #f0ede1;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
    font-weight: 700;
    background-color: #fbfaf4;
}

.admin-table td {
    font-size: 0.98rem;
}

.status-pill {
    display: inline-block;
    padding: 0.36rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-pill--accept {
    background-color: rgba(185, 184, 16, 0.16);
    color: #4f5a00;
}

.status-pill--decline {
    background-color: #ececec;
    color: #555;
}

.admin-mail-link {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(51, 51, 51, 0.22);
}

.admin-table-actions {
    white-space: nowrap;
}

.inline-action-form {
    display: inline;
}

.delete-button {
    border: 1px solid #d8d2bc;
    background-color: #faf8ee;
    color: var(--text-color);
    padding: 0.6rem 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.delete-button:hover {
    background-color: #f0ebd8;
}

/* Program Section */
.program-section {
    padding: 6rem 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-header p {
    margin: 0 auto;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--light-grey);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.time {
    width: 45%;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-align: right;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .time {
    text-align: left;
    padding-right: 0;
    padding-left: 2rem;
}

.content {
    width: 45%;
    text-align: left;
}

.timeline-item:nth-child(even) .content {
    text-align: right;
}

.content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

/* Timeline Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    text-align: center;
    background-color: #f9f9f9;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid var(--light-grey);
}

.site-footer a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    margin-left: 1rem;
}

.footer-login-button {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    border: 1px solid #d8d2bc;
    background-color: #faf8ee;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-login-button:hover {
    background-color: #f0ebd8;
}

/* Form Message */
.form-message {
    margin-top: 1rem;
    font-weight: 700;
    text-align: center;
    min-height: 1.5rem;
    transition: var(--transition);
}

.success {
    color: #2e7d32;
}

.error {
    color: #d32f2f;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    p {
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-section::before {
        right: -30%;
        top: -10%;
    }

    /* Mobile Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 50px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
        text-align: left;
    }

    .time {
        width: 100%;
        text-align: left;
        padding: 0;
        margin-bottom: 0.5rem;
        font-size: 1.25rem;
    }

    .timeline-item:nth-child(even) .time {
        padding: 0;
        text-align: left;
    }

    .content {
        width: 100%;
        text-align: left;
    }

    .timeline-item:nth-child(even) .content {
        text-align: left;
    }

    .timeline-item::after {
        left: -30px;
        /* Adjust dot position relative to item margin */
        transform: translateX(0);
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding-top: 2rem;
    }

    .admin-login-title,
    .admin-dashboard-title {
        font-size: 2.1rem;
    }

    .admin-header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-span-2 {
        grid-column: auto;
    }

    .admin-submit-row .cta-button {
        width: 100%;
        min-width: 0;
    }
}
