/* ========================================
   GREAT VICTORIA DESERT COUNCIL
   Modern Stylesheet - Enhanced Design
   ======================================== */

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Design System */
:root {
    /* Primary Colors */
    --primary-color: #1D3557;
    --primary-dark: #0f1f33;
    --primary-light: #2d4a70;
    --primary-lighter: #457b9d;
    
    /* Secondary Colors */
    --secondary-color: #E63946;
    --secondary-dark: #c1121f;
    --secondary-light: #ff6b6b;
    
    /* Accent Colors */
    --accent-color: #A8DADC;
    --accent-light: #d4f1f4;
    --accent-dark: #6b9b9d;
    
    /* Neutral Colors */
    --text-dark: #1a1a2e;
    --text-medium: #4a5568;
    --text-light: #718096;
    --text-muted: #a0aec0;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-lighter: #edf2f7;
    --bg-dark: #1a202c;
    
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    --border-dark: #cbd5e0;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* ========================================
   HEADER STYLES
   ======================================== */

.header-top {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: var(--space-3) 0;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
    pointer-events: none;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.contact-info {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
}

.contact-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.contact-item .icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.header-links {
    display: flex;
    gap: var(--space-5);
}

.header-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
}

.header-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    margin: 0;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 650px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.9) 0%, rgba(15, 31, 51, 0.85) 50%, rgba(29, 53, 87, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: var(--space-5);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: var(--space-8);
    opacity: 0.95;
    line-height: 1.7;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px 0 rgba(230, 57, 70, 0.39);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.23);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   QUICK SERVICES SECTION
   ======================================== */

.quick-services {
    padding: var(--space-24) 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
}

.quick-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-8);
}

.service-card {
    background: var(--bg-white);
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-lighter));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-lighter) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(29, 53, 87, 0.2);
    transition: transform var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
    color: var(--text-dark);
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: var(--space-4);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.service-link:hover {
    color: var(--secondary-color);
    gap: var(--space-3);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: var(--space-24) 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-lighter) 100%);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.875rem, 4vw, 2.625rem);
    margin-bottom: var(--space-5);
    color: var(--text-dark);
    line-height: 1.3;
}

.about-content .lead {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: var(--space-5);
    line-height: 1.7;
    font-weight: 500;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: var(--space-6);
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin: var(--space-8) 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: var(--text-medium);
    font-weight: 500;
}

.about-features img {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 50%;
    padding: 4px;
}

/* ========================================
   PROGRAMS SECTION
   ======================================== */

.programs-section {
    padding: var(--space-24) 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.875rem, 4vw, 2.625rem);
    margin-bottom: var(--space-4);
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-header .view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.section-header .view-all:hover {
    color: var(--secondary-color);
    gap: var(--space-3);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-8);
}

.program-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
}

.program-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.program-card:hover img {
    transform: scale(1.08);
}

.program-content {
    padding: var(--space-6);
}

.program-content h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-3);
    color: var(--text-dark);
    font-weight: 700;
}

.program-content p {
    color: var(--text-light);
    margin-bottom: var(--space-5);
    line-height: 1.7;
}

.program-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.program-link:hover {
    color: var(--secondary-color);
    gap: var(--space-3);
}

/* ========================================
   NEWS SECTION
   ======================================== */

.news-section {
    padding: var(--space-24) 0;
    background: var(--bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    border: 1px solid var(--border-light);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.news-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card.featured img {
    height: 100%;
}

.news-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.news-content {
    padding: var(--space-6);
}

.news-content time {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-3);
    font-weight: 500;
}

.news-content h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-3);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.news-link:hover {
    color: var(--secondary-color);
    gap: var(--space-3);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    padding: var(--space-24) 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.contact-info-box h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.875rem, 4vw, 2.375rem);
    margin-bottom: var(--space-4);
    color: var(--text-dark);
}

.contact-info-box > p {
    color: var(--text-light);
    margin-bottom: var(--space-10);
    font-size: 1.125rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-detail {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.contact-detail:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.contact-detail .icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-lighter));
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.contact-detail h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
    color: var(--text-dark);
    font-weight: 700;
}

.contact-detail p {
    color: var(--text-light);
    line-height: 1.7;
}

.contact-form-box {
    background: var(--bg-white);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.1);
}

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

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #d0d0d0;
    padding: var(--space-16) 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--primary-lighter));
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 60px;
    margin-bottom: var(--space-5);
    filter: brightness(0) invert(1);
}

.footer-column p {
    margin-bottom: var(--space-6);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
    border-color: transparent;
}

.social-links img {
    width: 20px;
    height: 20px;
}

.footer-column h4 {
    color: white;
    margin-bottom: var(--space-5);
    font-size: 1.125rem;
    font-weight: 700;
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: var(--radius-full);
}

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

.footer-column ul li {
    margin-bottom: var(--space-3);
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-column ul a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-column ul a::before {
    content: '→';
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-column ul a:hover::before {
    opacity: 1;
}

.footer-bottom {
    padding: var(--space-6) 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-legal a:hover {
    color: white;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-lighter) 100%);
    color: white;
    padding: var(--space-20) 0 var(--space-16);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-4);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

.content-section {
    padding: var(--space-20) 0;
}

.content-section.bg-light {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.content-main h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--space-5);
    color: var(--text-dark);
    position: relative;
    padding-bottom: var(--space-3);
}

.content-main h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: var(--radius-full);
}

.content-main h3 {
    font-size: 1.5rem;
    margin: var(--space-8) 0 var(--space-4);
    color: var(--text-dark);
    font-weight: 700;
}

.content-main p {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: var(--space-5);
}

.content-main ul {
    margin: var(--space-5) 0;
    padding-left: var(--space-6);
}

.content-main ul li {
    color: var(--text-medium);
    margin-bottom: var(--space-3);
    line-height: 1.8;
    position: relative;
}

.content-main ul li::marker {
    color: var(--secondary-color);
}

/* ========================================
   SERVICES DETAILED
   ======================================== */

.services-detailed-grid {
    display: grid;
    gap: var(--space-8);
}

.service-detailed-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    display: flex;
    gap: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.service-detailed-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.service-detailed-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-lighter) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(29, 53, 87, 0.25);
}

.service-detailed-icon img {
    width: 45px;
    height: 45px;
    filter: brightness(0) invert(1);
}

.service-detailed-content h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-3);
    color: var(--text-dark);
    font-weight: 700;
}

.service-detailed-content p {
    color: var(--text-light);
    margin-bottom: var(--space-5);
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin: var(--space-5) 0 var(--space-6);
}

.service-features li {
    padding: var(--space-3) 0;
    color: var(--text-medium);
    position: relative;
    padding-left: var(--space-8);
    border-bottom: 1px solid var(--border-light);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    width: 28px;
    height: 28px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    margin-bottom: var(--space-4);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-8);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   INFO BOX
   ======================================== */

.info-box {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.info-box h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-4);
    color: var(--text-dark);
    font-weight: 700;
}

.info-box p {
    color: var(--text-medium);
    line-height: 1.8;
}

.info-box ul {
    margin-top: var(--space-4);
}

.info-box ul li {
    margin-bottom: var(--space-3);
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background: var(--bg-white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.sidebar-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
    color: var(--text-dark);
    font-weight: 700;
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border-light);
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card ul li {
    margin-bottom: var(--space-3);
}

.sidebar-card ul a {
    color: var(--text-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
}

.sidebar-card ul a:hover {
    color: var(--primary-color);
    padding-left: var(--space-2);
}

.sidebar-card ul a::before {
    content: '›';
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ========================================
   FORM CONTAINER
   ======================================== */

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.form-container h2 {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    margin-bottom: var(--space-6);
    color: var(--text-dark);
    text-align: center;
}

/* ========================================
   CONTENT GRID
   ======================================== */

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

/* ========================================
   COUNCILLOR STYLES
   ======================================== */

.councillor-profile {
    display: flex;
    gap: var(--space-10);
    align-items: start;
    margin-bottom: var(--space-10);
}

.mayor-profile {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    border-left: 5px solid var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.councillor-details h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
    color: var(--text-dark);
    font-weight: 700;
}

.councillor-details p {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: var(--space-3);
}

.councillors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.councillor-card {
    background: var(--bg-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all var(--transition-base);
}

.councillor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.councillor-card h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
    color: var(--text-dark);
    font-weight: 700;
}

.councillor-ward {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.councillor-role {
    color: var(--text-dark);
    margin-bottom: var(--space-4);
    font-weight: 500;
}

/* ========================================
   NEWS ARTICLE STYLES
   ======================================== */

.news-article {
    margin-bottom: var(--space-12);
}

.news-article img {
    border-radius: var(--radius-xl);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-lg);
}

.news-article:hover img {
    transform: scale(1.02);
}

.news-article h3 {
    line-height: 1.4;
    margin-bottom: var(--space-4);
}

.news-article p {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: var(--space-5);
}

.news-article ul {
    color: var(--text-medium);
    line-height: 1.9;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .nav-menu {
        gap: var(--space-6);
    }
    
    .about-grid {
        gap: var(--space-10);
    }
    
    .contact-grid {
        gap: var(--space-8);
    }
}

@media (max-width: 968px) {
    .header-top-content {
        justify-content: center;
        text-align: center;
    }

    .contact-info,
    .header-links {
        justify-content: center;
        width: 100%;
    }

    .nav-menu {
        display: none;
    }

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

    .hero {
        height: auto;
        min-height: 500px;
        padding: var(--space-16) 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 2.75rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 350px;
    }

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

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

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

    .contact-form-box {
        order: -1;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom-content {
        justify-content: center;
        text-align: center;
    }

    .service-detailed-card {
        flex-direction: column;
        text-align: center;
    }

    .service-detailed-icon {
        margin: 0 auto;
    }

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

    .sidebar {
        position: relative;
        top: 0;
    }

    .councillor-profile {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 450px;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .about-content h2,
    .section-header h2 {
        font-size: 1.625rem;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-form-box {
        padding: var(--space-6);
    }

    .form-container {
        padding: var(--space-6);
    }

    .service-detailed-card {
        padding: var(--space-6);
    }

    .info-box {
        padding: var(--space-6);
    }

    .page-header {
        padding: var(--space-16) 0 var(--space-12);
    }

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

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

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-lighter);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-light: #000000;
        --text-medium: #000000;
        --border-color: #000000;
    }
}

/* Print styles */
@media print {
    .header-top,
    .navbar,
    .footer,
    .hero-buttons,
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero {
        height: auto;
        color: black;
    }
    
    .hero-overlay {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}
