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

:root {
    /* Logo-inspired colors */
    --primary-color: #232226;      /* Blackish grey from logo */
    --secondary-color: #FAB80A;    /* Yellow from logo */
    --accent-color: #FFD966;       /* Lighter yellow accent */
    --dark-accent: #1A1A1D;        /* Darker grey for contrast */
    
    /* Supporting colors */
    --text-dark: #2C2C2E;
    --text-light: #6C6C70;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(35, 34, 38, 0.1);
    --shadow-hover: 0 4px 20px rgba(35, 34, 38, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-text {
    display: flex;
    flex-direction: column;
}

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

.nav-brand .subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Calendar Follow Bar */
.calendar-follow-bar {
    background-color: var(--secondary-color);
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-follow-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.calendar-follow-text {
    font-weight: 600;
    color: var(--primary-color);
}

.calendar-dropdown {
    position: relative;
    display: inline-block;
}

.calendar-follow-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-follow-btn:hover {
    background-color: var(--dark-accent);
}

.calendar-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.calendar-dropdown-content.show {
    display: block;
}

.calendar-dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.calendar-dropdown-content a:hover {
    background-color: var(--bg-light);
}

.calendar-dropdown-content a:first-child {
    border-radius: 5px 5px 0 0;
}

.calendar-dropdown-content a:last-child {
    border-radius: 0 0 5px 5px;
}

/* Hero Section with Carousel Background */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-carousel .carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel .carousel-slide.active {
    opacity: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(35, 34, 38, 0.85) 0%, rgba(26, 26, 29, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(35, 34, 38, 0.7);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.hero-carousel .carousel-btn:hover {
    background-color: rgba(35, 34, 38, 0.9);
}

.hero-carousel .carousel-btn.prev {
    left: 0;
}

.hero-carousel .carousel-btn.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.hero-carousel .carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.hero-carousel .dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-carousel .dot:hover,
.hero-carousel .dot.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

/* Page Sections */
.page-section {
    min-height: calc(100vh - 80px);
    padding: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.subsection {
    margin-bottom: 4rem;
}

.subsection h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Executive Board Grid */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.board-member {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.board-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--secondary-color);
}

.board-member h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.board-member .position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.board-member .bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Awards List */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.award-item {
    background-color: var(--bg-white);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.award-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.award-year {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.award-description {
    color: var(--text-light);
}

/* Events */
.events-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-btn {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-accent));
    color: white;
    padding: 1.5rem;
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
}

.event-card.has-background .event-card-header {
    min-height: 200px;
}

.event-header-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    background: rgba(35, 34, 38, 0.8);
    padding: 1rem;
    border-radius: 5px;
}

.event-card:not(.has-background) .event-header-overlay {
    background: transparent;
    padding: 0;
}

.event-date {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.event-card h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.event-card-body {
    padding: 1.5rem;
}

.event-location-wrapper {
    margin-bottom: 1rem;
}

.event-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.event-location:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.event-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-speaker {
    background-color: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Event Calendar Dropdown */
.event-calendar-dropdown {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.event-calendar-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.event-calendar-btn:hover {
    background-color: var(--dark-accent);
    transform: translateY(-2px);
}

.event-calendar-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 100;
    bottom: 100%;
    left: 0;
    margin-bottom: 5px;
}

.event-calendar-dropdown-content.show {
    display: block;
}

.event-calendar-dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.event-calendar-dropdown-content a:hover {
    background-color: var(--bg-light);
}

.event-calendar-dropdown-content a:first-child {
    border-radius: 5px 5px 0 0;
}

.event-calendar-dropdown-content a:last-child {
    border-radius: 0 0 5px 5px;
}

/* Map Container */
.map-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 80vh;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.map-container.hidden {
    transform: translateY(100%);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
}

.map-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.map-close-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.map-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#map-embed {
    width: 100%;
    height: 450px;
}

#map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Newsletter Section */
.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.newsletter-info h3,
.newsletter-signup h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.newsletter-benefits ul {
    list-style: none;
    padding-left: 0;
}

.newsletter-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.newsletter-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.newsletter-signup {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.privacy-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-style: italic;
}

.past-newsletters h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.newsletters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.newsletter-item {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.newsletter-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

.newsletter-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.newsletter-preview {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

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

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

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

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

/* Intro Section */
.intro-section {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.intro-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intro-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hero-carousel {
        height: 400px;
    }

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

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

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

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

    .nav-logo {
        height: 50px;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .nav-brand .subtitle {
        font-size: 0.8rem;
    }

    .calendar-follow-bar .container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .calendar-dropdown-content {
        left: 50%;
        transform: translateX(-50%);
    }

    .map-container {
        max-height: 90vh;
    }
    
    .map-header {
        padding: 1rem;
    }
    
    #map-embed {
        height: 350px;
    }
}

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

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}
