/* ===================================
TABLE OF CONTENTS:
1. CSS Variables & Root Styles
2. Base Styles
3. Typography
4. Layout & Utilities
5. Buttons & Interactive Elements
6. Announcement Bar
7. Header & Navigation
8. Hero Section
9. Core Values Section
9. Service Banner
10. Section Components
11. Footer
12. Chat Widget
13. Media Queries
=================================== */

/* ===== 1. CSS VARIABLES & ROOT STYLES ===== */
:root {
    /* Color Palette */
    --primary: #1a3a6d;
    --primary-light: #2a4a7d;
    --primary-dark: #0d2a4d;
    --secondary: #7bc142;
    --secondary-light: #8bcf5a;
    --accent: #dd4b39;
    --accent-light: #ed5b49;
    
    /* Neutrals */
    --white: #ffffff;
    --light-1: #f9f9f9;
    --light-2: #f0f0f0;
    --medium-1: #e0e0e0;
    --medium-2: #cccccc;
    --dark-1: #666666;
    --dark-2: #333333;
    --black: #111111;
    
    /* Enhanced Shadows with better performance */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.08);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.12);
    
    /* Optimized Transitions */
    --transition-fast: transform 0.15s ease, opacity 0.15s ease;
    --transition-normal: transform 0.3s ease, opacity 0.3s ease;
    --transition-slow: transform 0.5s ease, opacity 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-main: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-accent: 'Dancing Script', cursive;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    
    /* Z-index layers */
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
}

/* ===== 2. BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--dark-2);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-1);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    will-change: scroll-position;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ===== 3. TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0.75em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.text-serif {
    font-family: 'Dancing Script', cursive;
}

.text-center {
    text-align: center;
}
.value-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all cards equal height */
    min-height: 380px; /* Set a minimum height */
}

.value-card p {
    flex-grow: 1; /* Push the button to the bottom */
    margin-bottom: 25px;
}

.value-card .btn {
    margin-top: auto; /* Push button to bottom of card */
    align-self: center; /* Center the button */
}

/* ===== 4. LAYOUT & UTILITIES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-title {
    position: relative;
    display: inline-block;
    color: var(--primary);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.section-subtitle {
    color: var(--dark-1);
    font-size: 1.1rem;
}

/* Background utility classes */
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--light-1); }
.bg-primary { background-color: var(--primary); color: var(--white); }

/* Main Content styles from the first file */
.main-content {
    padding-top: 150px;
    min-height: 100vh;
    background-color: var(--bg-light);
}

/* Section descriptions from the first file */
.section-description {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Registration Section from the first file */
.registration-section {
    padding: 60px 0;
}

/* ===== 5. BUTTONS & INTERACTIVE ELEMENTS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--light-1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Tab buttons from the first file */
.registration-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 12px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    position: relative;
    transition: var(--transition-standard);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
}

/* Form elements from the first file */
.form-container {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition-standard);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 109, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox-group input {
    width: auto;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-standard);
    display: block;
    width: 100%;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #0f2a52;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Family Members Section from the first file */
.family-members {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.member-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.remove-member {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-member-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: var(--transition-standard);
}

.add-member-btn:hover {
    background-color: #6aaf39;
}

/* ===== 6. ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: block;
}

.announcement-bar a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
    margin-left: 0.5rem;
}

.announcement-bar a:hover {
    opacity: 0.9;
}

.close-announcement {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.8;
    transition: var(--transition-fast);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-announcement:hover {
    opacity: 1;
    background-color: rgba(255,255,255,0.1);
}

/* ===== 7. HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 58, 109, 0.9); /* Darker blue background */
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px); /* Increased blur */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Added shadow for depth */
}

.has-announcement header {
    top: 40px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 70px;
    width: auto;
    border-radius: var(--radius-sm);
}

.site-name {
    font-family: 'Dancing Script', cursive;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Navigation */
nav ul {
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

nav ul li a i {
    font-size: 0.625rem;
    transition: transform 0.3s;
}

/* Dropdown Menu */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.dropdown-content a {
    color: var(--dark-2) !important;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    text-align: left;
    text-transform: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--light-2);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(26, 58, 109, 0.05);
    color: var(--primary) !important;
    padding-left: 1.25rem;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.mobile-menu-close:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ===== 8. HERO SECTION ===== */
.hero {
    position: relative;
    height: 90vh; /* Reduced height */
    min-height: 500px; /* Reduced min-height */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); /* Gradient from bottom */
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 900px;
    z-index: 1;
    padding: 0 1.25rem;
}

.welcome-text {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-family: 'Dancing Script', cursive;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-button {
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    border-radius: var(--radius-full);
}

.hero-button:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.75rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* ===== 9. SERVICE BANNER ===== */
.service-banner {
    background-color: var(--secondary);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-banner-text {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ===== 10. SECTION COMPONENTS ===== */
/* Connect Grid */
.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.connect-card {
    background-color: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.connect-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.connect-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--secondary); /* Changed to secondary color */
}

.connect-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(26, 58, 109, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition-normal);
}

.connect-card:hover .connect-icon {
    background-color: var(--primary);
    color: var(--white);
}

.connect-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.connect-card p {
    color: var(--dark-1);
    margin-bottom: 1.5rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: var(--transition-normal);
    border-radius: var(--radius-lg);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: var(--transition-normal);
}

.value-card:hover .value-icon {
    transform: scale(1.1);
}

.value-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Events Cards */
.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    background-color: var(--white);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.event-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--dark-1);
}

.event-time, .event-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-meta i {
    color: var(--secondary);
}

.event-description {
    color: var(--dark-1);
    margin-bottom: 1.5rem;
}

.events-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ===== 11. FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--black), var(--primary));
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-info p {
    color: var(--medium-2);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-info strong {
    color: var(--white);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.link-group h3 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.125rem;
}

.link-group ul li {
    margin-bottom: 0.75rem;
}

.link-group ul li a {
    color: var(--medium-2);
    transition: var(--transition-fast);
}

.link-group ul li a:hover {
    color: var(--white);
    padding-left: 0.25rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.map-container {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--medium-2);
    font-size: 0.875rem;
}

/* ===== 12. CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.chat-button:hover {
    background-color: var(--accent-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.chat-box {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    height: 420px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.chat-box.active {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    opacity: 1;
}

.chat-header {
    background-color: var(--accent);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
}

.close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.close-chat:hover {
    background-color: rgba(255,255,255,0.2);
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    line-height: 1.4;
    font-size: 0.875rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background-color: var(--light-2);
    color: var(--dark-2);
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

.user-message {
    background-color: var(--accent);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

.chat-footer {
    padding: 0.75rem;
    background-color: var(--light-1);
    display: flex;
    align-items: center;
    border-top: 1px solid var(--medium-1);
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--medium-1);
    border-radius: 2rem;
    outline: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.chat-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(221, 75, 57, 0.2);
}

.send-button {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.send-button:hover {
    background-color: var(--accent-light);
    transform: scale(1.05);
}

/* ===== 13. MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    header {
        padding: 15px 20px;
    }
    
    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .logo img {
        height: 60px;
        margin-right: 10px;
    }
    
    .site-name {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    /* Mobile Announcement Bar */
    .announcement-bar {
        padding: 0.5rem 3rem 0.5rem 1rem;
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .close-announcement {
        right: 0.5rem;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 2rem;
        padding-top: 5rem;
        transition: right 0.3s ease;
        z-index: 1100;
        gap: 0.5rem;
    }
    
    nav ul.active {
        right: 0;
    }
    
    .mobile-menu-close {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        padding: 0.75rem 1rem;
        border-radius: var(--radius-sm);
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        transform: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-top: 0;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        color: var(--white) !important;
        text-align: left;
        padding-left: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-content a:hover {
        background-color: rgba(255,255,255,0.1);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-button {
        width: 100%;
        text-align: center;
    }
    
    /* Extra styles from first file */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .section-title {
        font-size: 30px;
    }
    
    .registration-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        border-bottom: none;
    }
    
    .tab-btn.active::after {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 50px;
        margin-right: 8px;
    }
    
    .site-name {
        font-size: 1.5rem;
        line-height: 1.1;
    }
    
    /* Small Mobile Announcement Bar */
    .announcement-bar {
        padding: 0.4rem 2.5rem 0.4rem 0.8rem;
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .close-announcement {
        right: 0.3rem;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .welcome-text {
        font-size: 1.5rem;
    }
    
    .connect-card, .value-card {
        padding: 1.5rem;
    }
    
    .connect-icon, .value-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .chat-box {
        width: 280px;
        height: 380px;
    }
    
    /* Extra styles from first file */
    .section-title {
        font-size: 26px;
    }

    .form-container {
        padding: 20px;
    }
    
    .logo img {
        height: 85px;
        margin-right: 10px;
    }
    
    .site-name {
        font-size: 36px;
    }
/* New styles to add */

/* Base style update */
img {
    display: block; /* This is new, the previous only had max-width and height */
}

/* Add these Edge-specific fixes if you encounter layout issues */
@supports (-ms-ime-align:auto) {
    /* Edge-specific CSS fixes */
    .hero-content {
        -webkit-transform: translateZ(0); /* Hardware acceleration fix */
        transform: translateZ(0);
    }
}

/* ========== HERO SECTION - Updated version ========== */
.hero {
    position: relative;
    height: 50vh; /* Changed from 100vh */
    min-height: 400px; /* Changed from 600px */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1501968323795-1621d96a9a69?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80'); /* New */
    background-size: cover; /* New */
    background-position: center; /* New */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7));
    z-index: 0;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ========== ABOUT SECTION ========== */
.about-section {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.about-content {
    color: var(--dark-1);
}

.about-content h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-content h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/9;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ========== MISSION & BELIEFS SECTION ========== */
.beliefs-section {
    padding: 5rem 0;
    background-color: var(--light-1);
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.belief-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.belief-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.belief-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--secondary);
}

.belief-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
}

.belief-card h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.belief-card p {
    color: var(--dark-1);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.belief-list {
    margin-top: 1.5rem;
}

    .belief-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.belief-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
}

/* ========== LEADERSHIP SECTION ========== */
.leadership-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.leadership-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.leadership-tab {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-1);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    border: 2px solid transparent;
}

.leadership-tab.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.leadership-tab:not(.active):hover {
    background-color: var(--light-2);
}

.leadership-content {
    display: none;
}

.leadership-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--light-2);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    height: 300px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-bio {
    color: var(--dark-1);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: var(--primary);
}

.team-social a:hover {
    transform: translateY(-3px);
    background-color: var(--primary-light);
}

/* New media query for larger screens */
@media (min-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile menu close button specific styles */
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1101;
}

/* Additional tablet/mobile specific styles */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-grid, 
    .beliefs-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .leadership-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .leadership-tab {
        text-align: center;
    }
}

/* Worship Section */
.worship-content {
    margin-top: 3rem;
}

.worship-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.worship-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.worship-feature {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.worship-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.worship-feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.worship-feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.worship-feature p {
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .worship-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mission & Beliefs Section */
.mission-content {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.mission-statement {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-statement h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.mission-statement p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.belief-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.belief-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.belief-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.belief-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.belief-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Story Section */
.story-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.story-text {
    padding-right: 2rem;
}

.story-text h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.story-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 400px; /* Control maximum width */
    margin: 0 auto;
}

.story-image img {
    width: 100%;
    height: auto;
    max-height: 500px; /* Control maximum height */
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-text {
        padding-right: 0;
    }
    
    .story-image {
        max-width: 100%;
        margin-top: 2rem;
    }
    
    .story-image img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .story-image img {
        max-height: 300px;
    }
}

/* ========== WEEKEND SECTION ========== */
.weekend-section .section-title,
.weekend-section .section-subtitle {
    color: var(--white);
}

.weekend-section .section-subtitle {
    opacity: 0.8;
}

.weekend-section .btn-outline {
    color: var(--white);
    border-color: var(--white);
    margin-left: 1rem;
}

/* ========== UTILITY CLASSES ========== */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Pastors Section */
.pastors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.pastor-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.pastor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pastor-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.pastor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pastor-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.pastor-role {
    padding: 0 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pastor-bio {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.leader-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.leader-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.leader-role {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 992px) {
    .beliefs-grid,
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mission-statement {
        padding: 0 1rem;
    }
    
    .pastors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .beliefs-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .pastor-image,
    .leader-image {
        height: 200px;
    }
}

/* Core Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    font-size: 2rem;
    color: var(--white);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.value-card .btn {
    margin-top: auto;
}

@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 350px;
    }
    
    .belief-card {
        padding: 1.5rem;
    }
}}
