/* ===================================================================
   South County Democratic Club - Main Stylesheet
   Colors: Navy #2f2e6b (accent), White #fff, Black #111, Red #c62828
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { background: #2f2e6b; }

.hidden { display: none !important; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #111;
    background: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

a { color: #2f2e6b; }
a:hover { color: #1f1e4f; }

img { max-width: 100%; height: auto; }

/* ----- Layout ----- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-section {
    padding: 2rem 0;
}

/* ----- Navigation ----- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: #2f2e6b;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.35rem 1.5rem;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.header-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

.main-nav {
    background: #232254;
}

.main-nav .nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.nav-toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle-bars span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-toggle-label {
    width: auto;
    height: auto;
    background: none !important;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    justify-content: center;
    width: 100%;
    align-items: stretch;
}

.nav-links li {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: stretch;
}

.nav-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 0.5rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Get Involved dropdown */
.nav-dropdown {
    position: relative;
    flex: none !important;
    width: 15.625%;
    margin-left: auto;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.75rem 0.5rem;
    background: #c62828;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[data-active="true"] {
    background: #a01a1a;
}

.nav-arrow {
    font-size: 0.7em;
    margin-left: 0.25rem;
    display: inline-block;
    transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2f2e6b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 101;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
    max-height: 200px;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* ----- Hero Section ----- */

.hero {
    background: #2f2e6b;
    color: #fff;
    padding: 2rem 1.5rem;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-logo {
    height: 120px;
    width: auto;
    flex-shrink: 0;
}

.hero-text h1 {
    font-size: 2rem;
    margin: 0 0 0.3rem;
}

.hero h1 {
    font-size: 2rem;
    margin: 0 0 0.3rem;
}

.hero .tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* ----- Home Page Layout ----- */

.is-home .header-top { display: none; }
.is-home .nav-links { display: flex !important; flex-wrap: wrap; }
.is-home .site-header { position: static; }

/* ----- Page Entrance Animations ----- */

@keyframes hero-text-in {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-transition.is-home .hero h1 {
    animation: hero-text-in 0.5s ease-out 0.2s both;
}

.animate-transition.is-home .hero .tagline {
    animation: hero-text-in 0.5s ease-out 0.35s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- Buttons ----- */

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
}

.btn-primary {
    background: #2f2e6b;
    color: #fff;
    border-color: #2f2e6b;
}

.btn-primary:hover {
    background: #1f1e4f;
    border-color: #1f1e4f;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #2f2e6b;
    border-color: #2f2e6b;
}

.btn-secondary:hover {
    background: #e8eaf6;
    color: #2f2e6b;
}

.btn-danger {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}

.btn-danger:hover {
    background: #a01a1a;
    border-color: #a01a1a;
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ----- Flash Messages ----- */

.flash-container {
    max-width: 1100px;
    margin: 1rem auto;
    padding: 0 1.5rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.flash-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.flash-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.flash-warning {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #fff9c4;
}

.flash-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* ----- Cards ----- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
}

.card-body {
    padding: 1.25rem;
}

.card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.card-body .card-date {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    margin: 0 0 0.75rem;
    color: #333;
    font-size: 1rem;
}

/* ----- Content viewer (Quill read-only) ----- */

.content-viewer {
    background: #fff;
    min-height: 50px;
}

.content-viewer .ql-toolbar { display: none !important; }
.content-viewer .ql-container,
.content-viewer.ql-snow .ql-container,
.content-viewer .ql-snow .ql-container { border: none !important; font-size: inherit; }
.content-viewer .ql-editor {
    padding: 0;
    min-height: auto;
    font-size: 1.15rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
}
.content-viewer .ql-editor img {
    max-width: 100%;
    height: auto !important;
}

.content-viewer .ql-editor h1 { font-size: 2.2rem; margin: 1.25rem 0 0.75rem; }
.content-viewer .ql-editor h2 { font-size: 1.75rem; margin: 1rem 0 0.6rem; }
.content-viewer .ql-editor h3 { font-size: 1.4rem; margin: 0.85rem 0 0.5rem; }
.content-viewer .ql-editor p { margin: 0 0 0.85rem; }
.content-viewer .ql-editor li { margin-bottom: 0.4rem; }
.content-viewer.ql-snow,
.content-viewer .ql-snow { border: none !important; }

/* ----- Forms ----- */

.form-group {
    margin-bottom: 1rem;
}

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

.form-group .form-hint {
    font-size: 0.875rem;
    color: #555;
    margin-top: 0.2rem;
}

.form-control {
    width: 100%;
    max-width: 500px;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #2f2e6b;
    box-shadow: 0 0 0 2px rgba(26,35,126,0.15);
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

select.form-control {
    max-width: 300px;
}

.form-control-wide {
    max-width: 100%;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

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

.form-inline {
    display: flex;
    gap: 0.5rem;
    align-items: end;
}

/* ----- Page Header ----- */

.page-header {
    padding: 2rem 0 1rem;
}

.page-header h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #2f2e6b;
}

.page-header .subtitle {
    color: #666;
    margin-top: 0.3rem;
}

/* ----- Content Pages ----- */

.page-content {
    padding: 1rem 0 3rem;
}

/* ----- Events ----- */

.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 1rem;
    background: #fff;
}

.event-date-box {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    background: #2f2e6b;
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date-box .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date-box .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-details h3 {
    margin: 0 0 0.3rem;
}

.event-details .event-meta {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* ----- Store ----- */

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2f2e6b;
}

.sold-out-badge {
    display: inline-block;
    background: #c62828;
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ----- Membership & Donate placeholders ----- */

.placeholder-notice {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 6px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    text-align: center;
    color: #e65100;
}

.placeholder-notice h3 {
    margin: 0 0 0.5rem;
}

.price-display {
    font-size: 2rem;
    font-weight: 700;
    color: #2f2e6b;
    margin: 1rem 0;
}

/* ----- Footer ----- */

.site-footer {
    background: #2f2e6b;
    color: rgba(255,255,255,0.8);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    margin: 0.2rem 0;
    font-size: 1rem;
}

.footer-info a {
    color: rgba(255,255,255,0.8);
    text-decoration: underline;
    font-size: 0.75rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1rem;
}

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

.footer-newsletter {
    margin-left: auto;
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-newsletter label {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.newsletter-name-row {
    display: flex;
    gap: 0.5rem;
}

.newsletter-name-row .form-control {
    flex: 1;
    margin: 0;
    font-size: 1rem;
}

.newsletter-email {
    width: 100%;
    margin: 0;
    font-size: 1rem;
    box-sizing: border-box;
}

.newsletter-btn {
    padding: 0.5rem 1.2rem;
    background: #fff;
    color: #2f2e6b;
    font-weight: 700;
    border-color: #fff;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
}

.newsletter-btn:hover {
    background: rgba(255,255,255,0.85);
}

/* ----- Error Pages ----- */

.error-page {
    text-align: center;
    padding: 4rem 1.5rem;
}

.error-page h1 {
    font-size: 2rem;
    color: #2f2e6b;
    margin-bottom: 1rem;
}

/* ----- Quill Editor (admin) ----- */

#editorContainer {
    background: #fff;
    border-radius: 4px;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.4rem;
    min-height: 1.4rem;
}

/* ----- Admin Layout ----- */

.admin-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 240px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 1rem 0;
    flex-shrink: 0;
}

.admin-sidebar h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    padding: 0.5rem 1.25rem;
    margin: 1rem 0 0.25rem;
}

.admin-sidebar h3:first-child {
    margin-top: 0;
}

.admin-sidebar a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.admin-sidebar a:hover {
    background: #e8eaf6;
    color: #2f2e6b;
}

.admin-sidebar a.active {
    background: #e8eaf6;
    color: #2f2e6b;
    font-weight: 600;
}

.admin-content {
    flex: 1;
    padding: 1.5rem 2rem;
    min-width: 0;
}

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

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #2f2e6b;
}

/* Admin sidebar toggle for mobile */
.admin-sidebar-toggle {
    display: none;
    background: #2f2e6b;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ----- Dashboard Cards ----- */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
}

.dash-card .dash-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2f2e6b;
}

.dash-card .dash-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ----- Data Tables ----- */

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: #f5f5f5;
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.data-table th a {
    color: inherit;
    text-decoration: none;
}

.data-table th a:hover {
    color: #2f2e6b;
}

.data-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.data-table tr:hover td {
    background: #fafafa;
}

.data-table .actions {
    white-space: nowrap;
    display: flex;
    gap: 0.4rem;
}

/* ----- Status Badges ----- */

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-expired {
    background: #ffebee;
    color: #c62828;
}

.badge-draft {
    background: #fff3e0;
    color: #e65100;
}

.badge-published {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-hidden {
    background: #f5f5f5;
    color: #888;
}

.badge-soldout {
    background: #ffebee;
    color: #c62828;
}

/* ----- Pagination ----- */

.pagination {
    display: flex;
    gap: 0.3rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    color: #333;
}

.pagination a:hover {
    background: #e8eaf6;
    border-color: #2f2e6b;
    color: #2f2e6b;
}

.pagination .current {
    background: #2f2e6b;
    color: #fff;
    border-color: #2f2e6b;
}

/* ----- Search & Filters ----- */

.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-bar input {
    flex: 1;
    min-width: 200px;
}

/* ----- Product Variants (admin) ----- */

.variant-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
    align-items: end;
    margin-bottom: 0.5rem;
}

/* ----- Import Preview ----- */

.import-preview {
    margin: 1.5rem 0;
}

.import-mapping {
    margin: 1rem 0;
}

.mapping-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.mapping-arrow {
    color: #888;
    font-weight: bold;
}

.duplicate-warning {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

/* ----- Login Page ----- */

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.login-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.login-box h1 {
    text-align: center;
    color: #2f2e6b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.login-box .form-control {
    max-width: 100%;
}

/* ----- Settings Page ----- */

.settings-section {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 2rem;
    max-width: 70%;
}

.settings-section h2 {
    font-size: 1.3rem;
    margin: 0 0 1rem;
    color: #2f2e6b;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.settings-section .form-control {
    max-width: 100%;
    font-size: 1.1rem;
    padding: 0.65rem 0.85rem;
}

.settings-section .form-row {
    max-width: 100%;
}

/* Logo schedule cards */
.logo-schedule-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: #fafafa;
}

.logo-schedule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.logo-schedule-header h3 {
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.logo-schedule-thumb {
    height: 50px;
    width: auto;
}

.logo-schedule-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.logo-schedule-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ----- Member History ----- */

.history-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.history-list li {
    padding: 0.75rem;
    border-left: 3px solid #2f2e6b;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.history-list .history-date {
    font-size: 0.8rem;
    color: #666;
}

.history-list .history-action {
    font-weight: 600;
    text-transform: capitalize;
}

/* ----- Payment Security & Notes ----- */

.payment-security-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #2e7d32;
}

.payment-security-note::before {
    content: "\1F512";
    font-size: 1.2rem;
}

.payment-alt-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #444;
}

.newsletter-privacy-note {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #555;
}

/* ----- Preset Donation Amounts ----- */

.donation-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.donation-presets .preset-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #2f2e6b;
    background: #fff;
    color: #2f2e6b;
    border-radius: 4px;
    cursor: pointer;
    min-height: 44px;
    transition: background 0.2s, color 0.2s;
}

.donation-presets .preset-btn:hover,
.donation-presets .preset-btn.selected {
    background: #2f2e6b;
    color: #fff;
}

/* ----- Loading Spinner on Submit ----- */

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ----- Responsive ----- */

@media (max-width: 768px) {
    html { font-size: 14px; }
    .nav-toggle {
        display: flex;
        align-items: center;
        margin: 0;
        margin-left: auto;
        padding: 0.65rem 1.25rem;
    }

    .main-nav .nav-container {
        position: relative;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #232254;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 99;
    }

    .nav-open .nav-links {
        display: flex;
    }

    /* Home page: use hamburger on mobile like all other pages */
    .is-home .nav-links {
        display: none !important;
        flex-direction: column;
    }

    .is-home .nav-open .nav-links {
        display: flex !important;
    }

    .nav-links li {
        flex: none;
        text-align: left;
        display: block;
    }

    .nav-links li a {
        display: block;
        padding: 0.85rem 1.5rem;
        min-height: 44px;
    }

    .nav-dropdown {
        flex: none !important;
        width: 100% !important;
        margin-left: 0;
    }

    .nav-dropdown-toggle {
        justify-content: flex-start;
        width: 100%;
        padding: 0.85rem 1.5rem;
        min-height: 44px;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: #1a1946;
    }

    .nav-dropdown-menu li a {
        padding: 0.75rem 2.5rem;
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
    }

    .hero h1 { font-size: 1.6rem; }
    .hero .tagline { font-size: 1rem; }
    .hero-logo { height: 140px; }

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

    .card-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
        gap: 0.75rem;
    }

    .event-date-box {
        width: 100%;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    /* Admin responsive */
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        display: none;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .admin-sidebar.open {
        display: block;
    }

    .admin-sidebar-toggle {
        display: block;
    }

    .admin-content {
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html { font-size: 12px; }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
    }

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

    .hero .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ----- Featured Event (About Us page) ----- */

.featured-event {
    margin-top: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    border-top: 2px solid #e8eaf6;
}

.featured-event h2 {
    color: #2f2e6b;
    margin-bottom: 1rem;
}

.featured-event-card {
    background: #f5f5fa;
    border-left: 4px solid #2f2e6b;
    padding: 1.5rem;
    border-radius: 4px;
}

.featured-event-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
}

.featured-event-card h3 a {
    color: #2f2e6b;
    text-decoration: none;
}

.featured-event-card h3 a:hover {
    text-decoration: underline;
}

.featured-event-details p {
    margin: 0.25rem 0;
    color: #555;
}

.featured-event-card .btn {
    margin-top: 1rem;
}

/* District map loading indicator */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-size: 1rem;
}
.map-loading::after {
    content: "";
    animation: map-dots 1.5s steps(3, end) infinite;
}
@keyframes map-dots {
    0%   { content: ""; }
    33%  { content: "."; }
    66%  { content: ".."; }
    100% { content: "..."; }
}
