/* ====== GLOBAL STYLES ====== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    /* Coastal Blue Color Scheme */
    --primary-blue: #1a4b7a;
    --secondary-blue: #2c6a9e;
    --accent-blue: #4a90d9;
    --light-blue: #e6f0f9;
    --dark-blue: #0d2d4d;
    --sand-color: #f5e8d0;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --highlight: #f3961c;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

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

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--accent-blue);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-secondary:hover {
    background-color: var(--accent-blue);
    color: var(--white);
}

/* ====== HEADER & NAVIGATION ====== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

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

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background-color: var(--accent-blue);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ====== HERO SECTION ====== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: calc(var(--space-xxl) + 1rem) 0 var(--space-xxl);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 10px;
    padding-bottom: 10px;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.hero-text .subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* ====== CONTENT CARDS ====== */
.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--primary-blue);
    position: relative;
    padding-bottom: var(--space-md);
    padding-top: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--highlight);
    border-radius: var(--radius-sm);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.card-content {
    padding: var(--space-lg);
}

.card-title {
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

/* ====== CONTACTS PAGE ====== */
.contacts-section {
    background-color: var(--light-blue);
}

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

.contact-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.contact-category {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.contact-item {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-email {
    color: var(--accent-blue);
    font-size: 0.95rem;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-link {
    display: block;
    color: var(--accent-blue);
    margin-top: 0.25rem;
}

/* ====== LINKS PAGE ====== */
.links-section {
    background-color: var(--white);
}

.link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.link-card {
    background-color: var(--light-blue);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.link-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.link-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: var(--space-md);
}

.link-title {
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
}

.link-url {
    color: var(--text-light);
    font-size: 0.9rem;
    word-break: break-all;
}

/* ====== MEETINGS PAGE ====== */
.meetings-hero {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: var(--space-xl) 0;
    margin-top: 80px;
    text-align: center;
}

.next-meeting {
    background-color: var(--highlight);
    color: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    display: inline-block;
    margin-top: var(--space-sm);
    font-weight: 600;
}

.meeting-agenda {
    background-color: var(--light-blue);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.agenda-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.minutes-list {
    list-style: none;
}

.minute-item {
    background-color: var(--white);
    border-left: 4px solid var(--accent-blue);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.minute-item:hover {
    border-left-width: 8px;
    padding-left: calc(var(--space-md) - 4px);
}

.minute-date {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.minute-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.minute-link i {
    font-size: 1.2rem;
}

/* ====== TRAFFIC PAGE ====== */
.traffic-section {
    background-color: var(--light-blue);
}

.traffic-map-container {
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
    position: relative;
}

.traffic-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.legend-color.current { background-color: #FF0000; }
.legend-color.upcoming { background-color: #FFA500; }
.legend-color.longterm { background-color: #0000FF; }

.traffic-list {
    list-style: none;
}

.traffic-item {
    background-color: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-blue);
}

.traffic-dates {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.traffic-title {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ====== FOOTER ====== */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: var(--space-xl) 0;
}

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

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.footer-text {
    text-align: center;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--accent-blue);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contacts-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: var(--space-xl);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .traffic-map-container {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
    }
    
    .link-cards {
        grid-template-columns: 1fr;
    }
}