/* ---------------- */
/* GLOBAL VARIABLES */
/* ---------------- */
:root {
    /* Colors */
    --primary-color: #b8860b; /* Gold for Sunrise theme */
    --secondary-color: #1f3a5f; /* Dark blue for contrast */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
    
    /* Typography */
    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --heading-font: 'Georgia', serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;
    
    /* Border radius */
    --border-radius: 0.25rem;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* ----------- */
/* LAYOUT & CONTAINER */
/* ----------- */
.container {
    max-width: 1140px;
    width: 90%;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.hidden {
    display: none;
}

/* ----------- */
/* HEADER & NAVIGATION */
/* ----------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 5%;
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.8rem;
}

.logo h1 a {
    color: var(--primary-color);
}

.logo p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    position: relative;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* ----------- */
/* HERO SECTION */
/* ----------- */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 5%;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 3;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ----------- */
/* BUTTONS */
/* ----------- */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
    background-color: var(--secondary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
}

/* ----------- */
/* FEATURE SECTION */
/* ----------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 5%;
    background-color: var(--light-color);
    align-items: stretch; /* Ensure all cards stretch to same height */
}

.feature {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    height: 100%; /* Make each card fill the grid cell */
    text-align: center;
    padding: var(--spacing-lg);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease;
}

/* Optional: Ensure inner content fills height for visual consistency */
.feature h3, .feature p, .feature i {
    flex-shrink: 0;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

/* ----------- */
/* INFO SECTION */
/* ----------- */
.info-section {
    padding: var(--spacing-xl) 5%;
    background-color: white;
    background-image: linear-gradient(135deg, rgba(184, 134, 11, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-section h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.info-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.info-section p {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
}

.info-section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: left;
    list-style-type: none;
    padding: 0;
}

.info-section li {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 40px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.info-section li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-section li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

/* ----------- */
/* PAGE HEADER */
/* ----------- */
.page-header {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-xl) 5%;
    text-align: center;
}

.page-header h2 {
    margin-bottom: 0;
}

/* ----------- */
/* ABOUT SECTION */
/* ----------- */
.about-section {
    max-width: 800px;
    margin: 0 auto;
}

.about-section h3 {
    color: var(--secondary-color);
    margin-top: var(--spacing-lg);
}

.board-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0 var(--spacing-lg);
}

.board-member {
    padding: var(--spacing-md);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.board-member h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.position {
    color: var(--gray-color);
    font-style: italic;
    margin-bottom: 0;
}

.contact-info {
    background-color: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-md);
}

/* ----------- */
/* RESOURCES SECTION */
/* ----------- */
.resources-section {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-message {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.resource-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.resource-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.resource-card h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.resource-list {
    margin-top: var(--spacing-md);
    padding-left: var(--spacing-md);
}

.resource-list li {
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.resource-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* ----------- */
/* CONTACT SECTION */
/* ----------- */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-details {
    margin-top: var(--spacing-lg);
}

.contact-item {
    display: flex;
    margin-bottom: var(--spacing-lg);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: var(--spacing-md);
    min-width: 30px;
}

.contact-item h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: var(--spacing-xs);
}

input, select, textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.2);
}

/* Form success message */
.form-success {
    text-align: center;
    background-color: #d4edda;
    color: #155724;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.form-success i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------- */
/* FOOTER */
/* ----------- */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 5% var(--spacing-lg);
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: #fff;
}

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

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: var(--spacing-md) 0;
    font-size: 0.9rem;
}

/* ----------- */
/* RESPONSIVE DESIGN */
/* ----------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .feature {
        padding: var(--spacing-md);
    }
    
    .board-members {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
}

/* ----------- */
/* GOOGLE CALENDAR RESPONSIVE */
/* ----------- */
.calendar-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Optional: limit max width */
    margin: 0 auto;   /* Optional: center the calendar */
}

.calendar-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
