/**
 * Ella Rises Website Styles
 * Color scheme based on ellarises.org - Orange/warm tones with cultural heritage theme
 */

/* CSS Variables - Color Scheme from Ella Rises (exact values from ellarises.org) */
:root {
    /* Color Palette */
    --pink-bg: #F9D9D2;
    --accent-peach: #F4C4B5;
    --coral: #D65A47; /* Darker coral for better contrast (was #E88375) */
    --coral-light: #E88375; /* Original coral for backgrounds */
    --lavender: #C6B8E9;
    --forest-green: #324F41;
    --sage: #A7C4A0;
    --gold: #E4C26E;
    --text-dark: #1A1A1A;
    --text-dark-alt: #0D0D0D; /* Even darker for better contrast on light backgrounds */
    --white: #FFFFFF;
    
    /* Button Styles */
    --button-bg: #1E1E1E;
    --button-text: #FFFFFF;
    --button-radius: 50px;
    --button-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    
    /* Donate Button */
    --donate-btn-bg: #9EC3EC;
    --donate-btn-text: #1A1A1A;
    --donate-btn-radius: 20px;
    
    /* Borders and Shadows */
    --border-light: #EDEDED;
    --card-shadow: 0px 2px 12px rgba(0,0,0,0.10);
    
    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    
    /* Layout */
    --container-max-width: 1200px;
    
    /* Typography */
    --font-header: "Playfair Display", serif;
    --font-body: "Poppins", sans-serif;
    
    /* Legacy/Compatibility Variables */
    --primary-orange: var(--coral);
    --secondary-orange: var(--accent-peach);
    --light-gray: var(--pink-bg);
    --medium-gray: #6C757D;
    --dark-gray: var(--text-dark);
    --text-secondary: #6C757D;
    
    /* Status Colors */
    --success-green: #4CAF50;
    --error-red: #F44336;
    --warning-yellow: #FFC107;
    
    /* Background Overlays */
    --overlay-light: rgba(255, 255, 255, 0.95);
    --overlay-orange: rgba(232, 131, 117, 0.15);
    --overlay-dark: rgba(0, 0, 0, 0.3);
    --overlay-pink: rgba(249, 217, 210, 0.3);
}

/* Reset and Base Styles - Matching Wix/ellarises.org */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a, abbr, acronym, address, applet, b, big, blockquote, button, caption, center, cite, code, dd, del, dfn, div, dl, dt, em, fieldset, font, footer, form, h1, h2, h3, h4, h5, h6, header, i, iframe, img, ins, kbd, label, legend, li, nav, object, ol, p, pre, q, s, samp, section, small, span, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, title, tr, tt, u, ul, var {
    background: transparent;
    border: 0;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}

input, select, textarea {
    box-sizing: border-box;
    font-family: Helvetica, Arial, sans-serif;
}

ol, ul {
    list-style: none;
}

a {
    cursor: pointer;
    text-decoration: none;
}

body {
    font-family: var(--font-body), Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: auto;
    overflow-y: scroll;
}

/* Header and Navigation */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1001;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
    width: 100%;
    padding: 0;
}

.navbar {
    padding: 1.25rem 0;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.nav-logo {
    flex-shrink: 0;
    margin-right: auto;
    margin-left: 0;
    padding-left: 0;
}

.nav-menu {
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
    padding-right: 0;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--coral);
    font-family: var(--font-header), serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 300px;
    margin-right: 0.75rem;
    object-fit: contain;
    object-position: left center;
}

.logo-placeholder {
    height: 50px;
    width: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 8px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Hamburger menu button - hidden by default, shown when needed */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--coral-light);
}

.donate-btn {
    background-color: var(--donate-btn-bg);
    color: var(--donate-btn-text) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--donate-btn-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: var(--button-shadow);
}

.donate-btn:hover {
    background-color: var(--coral-light);
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Secondary Admin Navigation */
.admin-header {
    background-color: var(--coral-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: static; /* Static position - stays in natural flow */
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    background-color: rgba(232, 131, 117, 0.98);
    width: 100%;
    padding: 0;
}

.admin-navbar {
    padding: 0.75rem 0;
}

.admin-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
    margin-right: 1rem;
}

/* Admin hamburger menu button - hidden on desktop, shown on mobile */
.admin-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 999;
    margin-left: auto;
}

.admin-mobile-menu-toggle .hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.admin-mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.admin-mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.admin-mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.admin-nav-menu li {
    margin: 0;
}

.admin-nav-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-body), Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    margin-right: 0.25rem;
}

.admin-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.admin-nav-link:active,
.admin-nav-link.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Flash Messages */
.flash-messages {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.flash-message {
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border: 1px solid;
    font-size: 0.9375rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.flash-success {
    background-color: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.flash-error {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.flash-warning {
    background-color: #FFF8E1;
    border-color: var(--warning-yellow);
    color: #F57C00;
}

.flash-info {
    background-color: #E3F2FD;
    border-color: #2196F3;
    color: #1565C0;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}

/* Remove top padding when hero section is first child */
.main-content > .hero-section-pink:first-child {
    margin-top: -2rem;
}

/* Full-width sections - Matching Wix layout */
.section-full {
    width: 100vw;
    padding: 4rem 0;
    margin: 0;
    position: relative;
    isolation: isolate;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.section-full.orange-bg {
    background: linear-gradient(135deg, var(--coral-light), var(--accent-peach));
    color: var(--white);
    position: relative;
}

.section-full.orange-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(214, 90, 71, 0.95), rgba(244, 196, 181, 0.95));
    z-index: 0;
    pointer-events: none;
}

.section-full.orange-bg > * {
    position: relative;
    z-index: 1;
}

.section-full.light-bg {
    background-color: var(--pink-bg);
}

.section-full.pink-bg {
    background-color: var(--pink-bg);
    position: relative;
}

/* Butterfly Image with White Circle Background */
.butterfly-image-wrapper {
    display: inline-block;
    position: relative;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.butterfly-image {
    max-width: 200px;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Page Headers - Professional Styling */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.page-header h1 {
    font-family: var(--font-header), serif;
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.page-header p {
    font-family: var(--font-body), Arial, Helvetica, sans-serif;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

/* Buttons - Professional Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--font-body), Arial, Helvetica, sans-serif;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
    white-space: nowrap;
    user-select: none;
}

.btn:focus {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-primary:hover {
    background-color: #c04a3a;
    border-color: #c04a3a;
    box-shadow: 0 2px 4px rgba(214, 90, 71, 0.2);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(214, 90, 71, 0.2);
}

.btn-rsvp:hover {
    background-color: #c04a3a !important;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(214, 90, 71, 0.2);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Events Section Styles */
.events-section {
    scroll-margin-top: 100px;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: var(--text-dark);
}

.btn-success {
    background-color: #10b981;
    color: var(--white);
    border-color: #10b981;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

.btn-danger {
    background-color: #ef4444;
    color: var(--white);
    border-color: #ef4444;
}

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

.btn-outline-primary {
    background-color: transparent;
    color: var(--coral);
    border-color: var(--coral);
}

.btn-outline-primary:hover {
    background-color: var(--coral);
    color: var(--white);
}

.btn-sm {
    padding: 0.4375rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 5px;
}

.btn-small {
    padding: 0.4375rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 5px;
}

/* Forms - Professional Styling */
.form-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 700px;
    margin: 2rem auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

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

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: inherit;
    background-color: var(--white);
    color: var(--text-dark);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(214, 90, 71, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Tables - Professional Styling */
.table-container {
    background-color: var(--white);
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    min-width: fit-content;
}

thead {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

th {
    padding: 0.625rem 0.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

td {
    padding: 0.625rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.8125rem;
    color: var(--text-dark);
    vertical-align: middle;
    word-wrap: break-word;
    white-space: normal;
}

/* Email columns can be wider */
td:nth-child(2),
th:nth-child(2) {
    min-width: 150px;
    max-width: 250px;
}

/* Action column should wrap and size appropriately */
td:has(.action-buttons),
th:has-text("Actions") {
    white-space: normal;
    min-width: 160px;
}

tbody tr {
    transition: background-color 0.15s ease-in-out;
}

tbody tr:hover {
    background-color: #f9fafb;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:last-child:hover {
    border-radius: 0 0 8px 8px;
}

.text-center {
    text-align: center;
}

/* Search and Filters - Professional Styling */
.search-container {
    margin-bottom: 2rem;
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    flex-wrap: wrap;
    background-color: var(--white);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: inherit;
    background-color: var(--white);
    color: var(--text-dark);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search-input:hover {
    border-color: #9ca3af;
}

.search-input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(214, 90, 71, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

/* Action Buttons in Tables - Professional Styling */
.action-buttons {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    align-items: center;
}

td .action-buttons {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    align-items: center;
}

td .btn {
    margin: 0;
    padding: 0.3125rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Action column should allow wrapping for buttons */
td:has(.action-buttons),
td:has(.btn) {
    white-space: normal;
    max-width: none;
    min-width: 160px;
    width: auto;
}

/* Remove min-width constraints for action columns */
td:last-child,
th:last-child {
    min-width: 160px;
    max-width: none;
    width: auto;
}

/* Filter Tabs - Professional Styling */
.filter-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    background-color: var(--white);
    padding: 0;
    border-radius: 8px 8px 0 0;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9375rem;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease-in-out;
    position: relative;
    margin-bottom: -2px;
}

.filter-tab:hover {
    color: var(--coral);
    background-color: #f9fafb;
}

.filter-tab.active {
    color: var(--coral);
    border-bottom-color: var(--coral);
    font-weight: 600;
}

/* Cards - Professional Styling */
.card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.15s ease-in-out;
}

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

.card-header {
    color: var(--text-dark);
    font-family: var(--font-header), serif;
    font-size: 1.375rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

/* Landing Page Styles - Matching Ella Rises design */
.hero-section {
    background: linear-gradient(135deg, var(--coral-light) 0%, var(--accent-peach) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 0;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Color Underlay matching website */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 131, 117, 0.95), rgba(244, 196, 181, 0.95));
    z-index: 0;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/mariposa-pattern.png') repeat;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

/* New Hero Section with Circular Images - Matching actual website */
.hero-section-pink {
    background-color: var(--pink-bg);
    padding: var(--space-lg) 0;
    text-align: center;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
    margin: 0 auto;
    padding: var(--space-md) var(--space-md);
}

.hero-title {
    font-family: var(--font-header), serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark-alt);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-images-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile carousel - hidden by default */
.hero-images-carousel {
    display: none;
}

.hero-images-mobile {
    display: none;
}

.hero-images-desktop {
    display: flex;
}

/* JavaScript will control these with inline styles using !important */

.circle-image-wrapper {
    width: 220px;
    height: 220px;
    max-width: 220px;
    max-height: 220px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--card-shadow);
    background-color: var(--white);
    box-sizing: border-box;
}

.circle-image-wrapper.logo-center {
    width: 420px;
    height: 420px;
    max-width: 420px;
    max-height: 420px;
    z-index: 1;
    background-color: transparent;
    box-shadow: none;
    flex-shrink: 0;
}

.circle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-image {
    object-fit: contain;
    padding: var(--space-md);
    background-color: transparent;
    width: 100%;
    height: 100%;
}

.hero-description {
    font-family: var(--font-body), Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark-alt);
    width: 100%;
    margin: var(--space-xl) auto 0;
    padding: 0 var(--space-md);
    line-height: 1.7;
    font-weight: 400;
}

/* Banner Section */
.banner-section {
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.banner-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 600px;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Social Media Icons */
.social-media-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

/* Color underlay for sections - Matching Wix implementation */
.color-underlay {
    position: relative;
    isolation: isolate;
}

.color-underlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-orange);
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
}

.color-underlay > * {
    position: relative;
    z-index: 1;
}

/* Wix-style color underlay data attribute */
[data-testid="colorUnderlay"] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-orange);
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: multiply;
}

[data-testid="colorUnderlay"] + *,
*:has([data-testid="colorUnderlay"]) > *:not([data-testid="colorUnderlay"]) {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-family: var(--font-header), serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.hero-section p {
    font-family: var(--font-body), Arial, Helvetica, sans-serif;
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--light-gray), var(--light-cream));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 1rem;
    border: 2px dashed var(--medium-gray);
    margin: 1rem 0;
}

.image-placeholder.large {
    height: 400px;
}

.image-placeholder.medium {
    height: 250px;
}

.image-placeholder.small {
    height: 150px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin: 3rem 0;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.program-card {
    background-color: var(--white);
    border-radius: 0;
    padding: 0;
    box-shadow: var(--card-shadow);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: none;
    position: relative;
    isolation: isolate;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
    height: 500px;
}

.program-card a {
    text-decoration: none;
    color: inherit;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.program-card:hover .program-card-overlay {
    background: rgba(158, 195, 236, 1);
}

.program-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.program-card-content {
    padding: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* Program Card Overlay - Clean Implementation */
.program-card-overlay {
    background: rgba(158, 195, 236, 0.95);
    color: var(--white);
    padding: 1.25rem 1.75rem;
    z-index: 3;
    border: none;
    position: relative;
    text-align: center;
}

.program-card-overlay h3 {
    font-family: var(--font-header), serif;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    display: block !important;
    text-align: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.program-card-overlay p {
    font-family: var(--font-body), Arial, Helvetica, sans-serif;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-weight: 400;
    font-size: 0.85rem;
    display: none;
}

.program-card-overlay .btn {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    display: none;
    margin-right: 0.75rem;
    border: none;
    text-decoration: none;
}

.program-card-overlay .btn:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* Show description and buttons on hover */
.program-card:hover .program-card-overlay p {
    display: block;
}

.program-card:hover .program-card-overlay .btn {
    display: inline-block;
}

.program-card h3 {
    display: none;
}

.program-card p {
    display: none;
}

.program-card .btn {
    display: none;
}

/* Footer */
footer.main-footer {
    background-color: var(--text-dark) !important;
    color: var(--white) !important;
    margin-top: 5rem;
    padding: 4rem 0 1.5rem !important;
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

footer.main-footer * {
    color: var(--white);
}

footer.main-footer h3,
footer.main-footer h4 {
    color: var(--coral-light) !important;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    background: transparent;
    border-radius: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-header), serif;
    margin-bottom: 1rem;
    color: var(--coral-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--coral);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design - Show hamburger when menu would wrap */
@media (max-width: 1024px) {
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
    }

    .admin-mobile-menu-toggle {
        display: flex;
    }

    /* Hide nav menu by default when hamburger is shown */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1001;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
    }

    /* Make donate button look like other nav links in mobile menu */
    .nav-menu .donate-btn {
        background-color: transparent !important;
        color: var(--text-dark) !important;
        padding: 1rem 2rem !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 100%;
        text-align: left;
    }

    .nav-menu .donate-btn:hover {
        background-color: transparent !important;
        color: var(--coral-light) !important;
        transform: none !important;
    }

    .nav-container {
        position: relative;
    }

    .admin-header {
        position: static; /* Static on mobile too */
    }

    .admin-nav-container {
        padding: 0 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    .admin-mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        order: 3;
    }
    
    .admin-label {
        order: 1;
        margin-right: auto;
    }
    
    /* Hide admin nav menu by default when hamburger is shown */
    .admin-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--coral-light);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 998;
        flex: 0;
        margin-right: 0;
    }

    .admin-nav-menu.active {
        max-height: 500px;
    }

    .admin-nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .admin-nav-link {
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        white-space: normal;
    }

    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .hero-section-pink {
        padding: var(--space-lg) var(--space-md);
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--space-lg);
    }

    /* On mobile, default to carousel - JS will override if needed */
    .hero-images-desktop {
        display: none !important;
    }

    .hero-images-mobile {
        display: block !important;
    }
    
    /* Allow inline styles to override on larger screens */
    @media (min-width: 1800px) {
        .hero-images-desktop[style*="display: flex"] {
            display: flex !important;
        }
        .hero-images-mobile[style*="display: none"] {
            display: none !important;
        }
    }

    .hero-images-carousel {
        display: block;
        margin: var(--space-lg) 0;
    }

    .carousel-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .carousel-track {
        display: flex;
        overflow: hidden;
        width: 100%;
        max-width: 300px;
        position: relative;
    }

    .carousel-slide {
        min-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .carousel-slide.active {
        opacity: 1;
        visibility: visible;
        position: relative;
    }

    .carousel-circle {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .carousel-circle.logo-center {
        width: 220px;
        height: 220px;
    }

    .carousel-btn {
        background: var(--coral-light);
        color: var(--white);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.2s ease;
        flex-shrink: 0;
        z-index: 10;
    }

    .carousel-btn:hover {
        background: var(--coral);
        transform: scale(1.1);
    }

    .carousel-btn:active {
        transform: scale(0.95);
    }

    .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: none;
        background: rgba(0, 0, 0, 0.3);
        cursor: pointer;
        transition: background 0.3s ease, transform 0.2s ease;
        padding: 0;
    }

    .carousel-indicator.active {
        background: var(--coral-light);
        transform: scale(1.2);
    }

    .carousel-indicator:hover {
        background: var(--coral);
    }

    .hero-description {
        font-size: 1.25rem;
        margin-top: var(--space-lg);
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .table-container {
        overflow-x: scroll;
    }

    .search-container {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .main-content {
        padding: 1rem;
    }

    .section-full {
        padding: 2rem 1rem;
    }

    .programs-images-section > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-images-circle {
        gap: var(--space-sm);
    }

    .circle-image-wrapper {
        width: 80px;
        height: 80px;
    }

    .circle-image-wrapper.logo-center {
        width: 120px;
        height: 120px;
    }

    .hero-description {
        font-size: 1.1rem;
        padding: 0 var(--space-md);
    }

    .program-card-content {
        padding: 1.5rem;
    }

    .program-card h3 {
        font-size: 1.5rem;
    }

    .programs-images-section > div {
        grid-template-columns: 1fr !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

/* Image Placeholder Styles */
.image-placeholder {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-orange);
    opacity: 0.3;
    border-radius: inherit;
}

.image-placeholder small {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: #bbb;
    position: relative;
    z-index: 1;
}

/* Skip to Content Link - Accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: -9999px;
    background: var(--coral-light);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    opacity: 0;
    pointer-events: none;
}

.skip-to-content:focus {
    top: 0;
    left: 0;
    opacity: 1;
    pointer-events: auto;
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--coral-light);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Form Validation Styles */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: var(--success-green);
}

.error-message {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
    display: block;
}

.success-message {
    color: var(--success-green);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
    display: block;
}

.field-hint {
    color: var(--medium-gray);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
    display: block;
}

/* Accessibility Improvements - Only show focus outline for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--coral-light);
    outline-offset: 2px;
    z-index: 9999; /* Ensure outline appears on top */
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--coral-light);
    outline-offset: 2px;
    z-index: 9999;
}

/* Fieldset and legend styling */
fieldset {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

legend {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding: 0 var(--space-md);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Ensure sufficient color contrast */
.btn-primary {
    background-color: var(--button-bg);
    color: var(--button-text);
    /* Contrast ratio meets WCAG AA (4.5:1) */
}

/* Keyboard navigation - ensure all interactive elements are focusable */
.program-card:focus-visible {
    outline: 3px solid var(--coral-light);
    outline-offset: 4px;
    z-index: 9999;
}

/* Remove outline for mouse users, keep for keyboard */
.js-focus-visible *:focus:not(.focus-visible) {
    outline: none;
}

/* Ensure buttons are keyboard accessible */
button[type="button"],
button[type="submit"] {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Print Styles */
@media print {
    /* Hide navigation and non-essential elements */
    .main-header,
    .admin-header,
    .skip-to-content,
    .btn,
    button,
    nav,
    .footer,
    .main-footer,
    .flash-messages {
        display: none !important;
    }

    /* Ensure content is visible */
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }

    .main-content {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }

    /* Page breaks */
    .page-break {
        page-break-before: always;
    }

    /* Links */
    a {
        color: black;
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }

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

    /* Cards and sections */
    .card,
    .section {
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    /* Headings */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black;
    }

    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
    }

    th, td {
        border: 1px solid #ddd;
        padding: 8px;
    }

    th {
        background-color: #f0f0f0;
    }
}


