/* Global Styles */
:root {
    --primary-color: #1a1f54;
    --secondary-color: #777;
    --accent-color: #007bff;
    --bg-color: #fff;
    --text-color: #333;
    --light-gray: #f6f6f6;
    --border-color: #ddd;
    --heading-font: 'Adamina', serif;
    --body-font: 'Poppins', sans-serif;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

h5, h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 16px;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

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

ul {
    list-style-type: none;
}

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

/* Top Quote */
.top-quote {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 6px 0;
    font-size: 0.9rem;
    font-style: italic;
    font-family: var(--body-font);
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: block;
}

.top-quote:hover {
    background-color: #151a45;
    color: white;
    text-decoration: none;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.header-logo-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.main-logo {
    height: 80px;
    cursor: pointer;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links li {
    margin-left: 20px;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 1px rgba(25, 118, 210, 0.3);
    transition: all 0.3s ease;
}

/* Enhanced active state for dropdown links */
.dropdown-menu a.active {
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
}

/* Enhanced active state for user dropdown links */
.dropdown-link.active {
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
}

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

.more-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.more-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    padding: 10px 0;
    border-radius: 5px;
    border-top: 3px solid var(--primary-color);
}

/* Show dropdown on hover or when active */
.more-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    display: block;
}

/* Desktop styles for dropdown items */
.dropdown-menu li {
    margin: 0;
    padding: 0;
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    border-bottom: none !important;
    font-size: 0.85rem;
}

/* User account dropdown styles */
.user-account-dropdown {
    position: relative;
    margin-left: 5px;
    margin-right: 15px;
}

.user-icon {
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 10px 0;
    margin-top: 10px;
    display: none;
}

.user-account-dropdown:hover .account-dropdown,
.account-dropdown:hover {
    display: block;
}

/* Fix for dropdown disappearing when trying to click items */
.account-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

/* Create a larger hover area around the account dropdown */
.user-account-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -50px;
    right: -50px;
    height: 50px;
    z-index: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        padding: 0;
        position: relative;
        z-index: 9999;
    }
    
    .header-logo-bar {
        width: auto;
        justify-content: flex-start;
        padding: 15px 10px;
    }
    
    .main-nav {
        position: relative;
        z-index: 9999;
        width: auto;
        justify-content: flex-end;
        padding: 10px;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 80px;
        overflow-y: auto;
        z-index: 9000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 18px;
        border-bottom: none;
    }
    
    .nav-links a:hover, .nav-links a.active {
        border-bottom: none;
        background-color: #f5f5f5;
    }
    
    .mobile-menu-btn {
        display: block;
        position: relative;
        top: 0;
        right: 0;
        z-index: 9999;
        background: transparent;
        border: none;
        width: 30px;
        height: 30px;
        font-size: 20px;
        padding: 0;
        margin: 0 15px;
        color: var(--primary-color);
    }
    
    .user-account-dropdown {
        margin: 0;
        padding: 0;
    }
    
    body.mobile-menu-open .user-account-dropdown {
        display: none !important;
    }
    
    .more-dropdown {
        display: none !important;
    }
    
    body.mobile-menu-open .nav-links .more-items-direct {
        display: block;
    }
    
    .nav-links.active {
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        margin: 0;
        padding-top: 80px;
        box-sizing: border-box;
    }
    
    body.mobile-menu-open {
        overflow: hidden;
    }
    
    body.mobile-menu-open .nav-links > li:not(.mobile-more-item) {
        display: block !important;
    }
    
    .nav-links.active li {
        display: block !important;
    }
    
    body.mobile-menu-open .more-dropdown {
        display: none !important;
    }
    
    .mobile-more-item {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .mobile-more-item a {
        display: block !important;
        padding: 15px 20px !important;
        font-size: 18px !important;
    }
    
    .user-account-dropdown {
        position: absolute;
        right: 60px;
        top: 10px;
        z-index: 100;
    }
    
    .mobile-menu-btn {
        z-index: 101;
    }
}

/* User dropdown links */
.dropdown-link {
        display: block;
    padding: 8px 16px;
    color: #000;
    text-decoration: none;
    transition: background-color 0.2s;
    text-align: left;
}

.dropdown-link:hover {
    background-color: #f5f5f5;
    color: #000;
}

.user-info {
    padding: 8px 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    color: #000;
}

.user-info p {
    margin: 0;
    font-size: 14px;
    text-align: left;
    color: #000;
}

.user-name {
    font-weight: bold;
    color: #000;
}

.logout-link {
    color: #d32f2f !important;
    text-align: left !important;
    padding-left: 16px !important;
    display: block;
    width: 100%;
}

/* Login state visibility */
html.user-is-logged-in #logged-out-view {
    display: none !important;
}

html.user-is-logged-in #logged-in-view {
    display: block !important;
}

/* Display mode classes for login state */
.user-logged-in #logged-out-view {
    display: none !important;
}

.user-logged-in #logged-in-view {
    display: block !important;
}

.user-logged-out #logged-out-view {
    display: block !important;
}

.user-logged-out #logged-in-view {
    display: none !important;
}

/* Login/Logout Buttons */
.login-btn,
.logout-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: var(--primary-color);
    color: white !important;
}

.login-btn:hover {
    background-color: #151a45;
    transform: translateY(-1px);
}

.logout-btn {
    background-color: #f5f5f5;
    color: var(--text-color) !important;
}

.logout-btn:hover {
    background-color: #e5e5e5;
}

/* User Name Display */
.signed-in-name {
    font-size: 0.9rem;
    color: #000;
    margin-left: 0;
    white-space: nowrap;
}

/* Mobile Menu Button */
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Back Office Link */
.back-office-link {
    display: none !important;
}

html.user-is-logged-in .back-office-link {
    display: none !important;
}

html.user-is-logged-in.user-is-admin .back-office-link {
    display: block !important;
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar .container {
        padding: 10px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .signed-in-name {
        font-size: 0.85rem;
    }
}

/* Hero Section */
#hero {
    background-image: url('assets/images/heroes/318564892_10223175317031064_613446211024762026.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
}

.hero-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.hero-content h6 {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    font-size: 1rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    font-size: 0.9rem;
}

.cta-button:hover {
    background-color: #151b4a;
    color: white;
}

/* Image Slider */
.image-slider {
    margin: 40px 0;
    text-align: center;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-main {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.slider-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.slider-main img.active {
    display: block;
}

.slider-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.slider-thumbnail {
    width: 70px;
    height: 70px;
    margin: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    object-fit: cover;
    border-radius: 5px;
}

.slider-thumbnail.active {
    border-color: var(--primary-color);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

/* About Section */
#about {
    padding: 60px 0;
    text-align: center;
    background-color: var(--light-gray);
}

.award-badge {
    margin-bottom: 20px;
}

.award-badge h6 {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Events Section */
#events {
    padding: 60px 0;
    text-align: center;
}

.event-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.event-gallery img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Connector Section */
#connector {
    padding: 60px 0;
    text-align: center;
    background-color: var(--light-gray);
}

.connector-box {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.connector-box h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.connector-box p {
    margin-bottom: 20px;
}

/* Partners Section */
#partners {
    padding: 60px 0;
    text-align: center;
    background-color: var(--light-gray);
}

.partners-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.partner-section {
    margin-top: 30px;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.partner-logo {
    width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    vertical-align: middle;
    transition: transform 0.2s;
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* Add special fix for M&T Bank logo */
.mt-bank-logo {
    object-position: center;
    margin-top: 17px;
}

/* Contact Section */
#contact {
    padding: 60px 0;
    background-color: white;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.hours {
    margin-top: 20px;
}

.hours table {
    width: 100%;
    border-collapse: collapse;
}

.hours td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.hours td:last-child {
    text-align: right;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--body-font);
}

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

.recaptcha-notice {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #ddd;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Ensure podcast link has appropriate contrast */
footer .container p a {
    color: #ddd;
}

footer .container p a:hover {
    color: white;
    text-decoration: underline;
}

/* Footer Socials */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-icon {
    font-size: 24px;
    margin: 0 10px;
    color: white;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* About Us Page */
#about-page {
    padding: 60px 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0;
}

.about-image-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.about-text ul li {
    margin-bottom: 8px;
}

.about-section-two {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.leadership-section {
    margin: 60px 0;
}

.leadership-content {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.leadership-image-container {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    justify-content: center;
}

.leadership-photo {
    width: 100%;
    max-width: 250px;
    object-fit: contain;
    border-radius: 5px;
}

.leadership-bio {
    flex: 2;
    min-width: 300px;
}

.leadership-bio h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.achievements ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 30px;
}

.achievements li {
    margin-bottom: 10px;
}

.join-us {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 5px;
    margin: 40px 0;
}

/* Meetup Page */
#meetup-page {
    padding: 60px 0;
}

.hero-banner {
    background-color: #333;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    margin-bottom: 50px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-banner h1 {
    color: white;
    margin-bottom: 30px;
}

.intro-section {
    text-align: center;
    margin-bottom: 50px;
}

.meetup-groups {
    margin-bottom: 60px;
}

.meetup-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.meetup-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.meetup-card h3 {
    padding: 15px;
    margin: 0;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

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

.meetup-content {
    padding: 20px;
}

.meetup-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.meetup-button:hover {
    background-color: #151b4a;
    color: white;
}

.event-highlight {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 40px;
    text-align: center;
}

.meetup-schedule {
    margin: 40px 0;
}

.schedule-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.schedule-item i {
    color: var(--primary-color);
    margin-right: 10px;
}

.rsvp-section {
    margin-top: 60px;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Events Page */
#events-page {
    padding: 60px 0;
}

.featured-event {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
}

.event-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.event-details {
    flex: 2;
    min-width: 300px;
}

.event-details i {
    color: var(--primary-color);
    margin-right: 10px;
}

.events-gallery {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.event-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    margin-bottom: 30px;
}

.event-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.register-section {
    margin-top: 60px;
}

.event-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Us Page */
#contact-page {
    padding: 60px 0;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.contact-info-block {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 10px;
}

.connector-info {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.contact-form-block {
    flex: 1;
    min-width: 300px;
}

/* Partners Pages */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.partner-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    margin-bottom: 30px;
}

.partner-logo {
    width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* News Page */
#news-page {
    padding: 50px 0;
}

.featured-news {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.news-feature-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.news-content {
    flex: 1;
    min-width: 300px;
}

.news-date {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.news-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h3, .news-item p, .news-item a {
    padding: 0 20px;
}

.news-item h3 {
    margin-top: 20px;
    font-size: 1.3rem;
}

.news-item .news-date {
    margin-top: 5px;
    font-size: 0.9rem;
}

.news-item p:not(.news-date) {
    margin: 15px 0;
}

.news-item a {
    display: inline-block;
    margin: 15px 20px 20px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}

.press-section {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.press-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

.resources-list {
    list-style: none;
    padding: 0;
}

.resources-list li {
    margin-bottom: 15px;
}

.resources-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

.resources-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* News page sections and tabs */
.section-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin: 30px 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.section-tab {
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}

.section-tab.active {
    color: var(--primary-color);
}

.section-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
}

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

.tab-content {
    display: none;
    padding: 30px 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Video gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

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

.video-item h3, .video-item p {
    padding: 0 20px;
}

.video-item h3 {
    margin-top: 20px;
    font-size: 1.2rem;
}

.video-item p {
    margin: 10px 0 20px;
}

/* Responsive styles for news page */
@media (max-width: 768px) {
    .featured-news {
        flex-direction: column;
    }
    
    .news-feature-image {
        max-width: 100%;
    }
    
    .video-gallery {
        grid-template-columns: 1fr;
    }
    
    .press-section {
        grid-template-columns: 1fr;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-logo {
        height: 70px;
    }
    
    .award-logo {
        height: 50px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-content h3 {
        font-size: 1.6rem;
    }
    
    .partner-logos {
        gap: 15px;
    }
    
    .partner-logo {
        width: 160px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        padding: 0;
    }
    
    .header-logo-bar {
        width: auto;
        justify-content: flex-start;
        padding: 15px 10px;
    }
    
    .award-logo {
        display: none; /* Hide award logo on mobile */
    }
    
    .main-nav {
        width: auto;
        justify-content: flex-end;
        padding: 10px;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 2000;
        position: relative;
    }
    .main-nav {
        position: relative;
        z-index: 1500;
    }
    .nav-links {
        z-index: 1200;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        align-items: flex-start;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a:hover, .nav-links a.active {
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background-color: #f5f5f5;
        padding: 0;
        margin: 0;
        display: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-menu li {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .dropdown-menu a {
        display: block;
        padding: 10px 20px 10px 40px;
        border-bottom: 1px solid #e0e0e0;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover, 
    .dropdown-menu a.active {
        background-color: #e8e8e8;
    }
    
    /* Fix for mobile dropdown layering */
    .more-dropdown {
        position: relative !important;
        width: 100% !important;
        display: block !important;
    }
    
    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        left: 0 !important;
        right: auto !important;
        top: auto !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border-top: none !important;
        background-color: #f5f5f5 !important;
        padding: 0 !important;
        display: none;
        transform: none !important;
        z-index: 100 !important;
    }
    
    .dropdown-menu::before,
    .dropdown-menu::after {
        display: none !important;
    }
    
    .dropdown-menu li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .dropdown-menu a {
        display: block !important;
        width: 100% !important;
        padding: 10px 20px 10px 40px !important;
        border-bottom: 1px solid #e0e0e0 !important;
        text-align: left !important;
    }
    
    /* More link styling */
    .more-link {
        position: relative !important;
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .more-link i {
        position: absolute !important;
        right: 20px !important;
    }
    
    .more-dropdown:hover .more-link i,
    .more-dropdown:focus .more-link i,
    .dropdown-menu.show ~ .more-link i {
        transform: rotate(180deg);
    }

    #hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.4rem;
    }
    
    .featured-event, 
    .about-content, 
    .contact-wrapper,
    .leadership-content {
        flex-direction: column;
    }
    
    .event-image, 
    .about-image-container,
    .leadership-image-container {
        margin-bottom: 20px;
    }

    .partner-logo {
        width: 140px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .header-logo-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .main-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h3 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    #about, #events, #connector, #contact, #partners {
        padding: 40px 0;
    }
    
    .event-gallery, 
    .partners-grid, 
    .news-grid, 
    .members-grid {
        justify-content: center;
    }
    
    .slider-main {
        height: 300px;
    }

    .partner-logo {
        width: 120px;
        height: 90px;
    }
}

.featured-event-image.small {
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* Auth buttons styles */
.auth-buttons {
    display: flex;
    align-items: center;
}

.login-button {
    background-color: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #151c5a;
}

#logged-in-info {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.logout-link {
    color: #d32f2f;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 600;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Adjust header-logo-bar for auth buttons */
.header-logo-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

@media (max-width: 768px) {
    .auth-buttons {
        margin-top: 10px;
    }
}

/* Add user account dropdown mobile styles at the end of the file */

/* User account dropdown mobile positioning */
@media (max-width: 768px) {
    .main-nav {
        position: relative;
    }
    
    .user-account-dropdown {
        position: absolute;
        right: 60px;
        top: 10px;
        z-index: 100;
    }
    
    .mobile-menu-btn {
        z-index: 101;
    }
}

.dropdown-link {
    display: block;
    padding: 8px 16px;
    color: #000;
    text-decoration: none;
    transition: background-color 0.2s;
    text-align: left;
}

.dropdown-link:hover {
    background-color: #f5f5f5;
    color: #000;
}

.user-info {
    padding: 8px 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    color: #000;
}

.user-info p {
    margin: 0;
    font-size: 14px;
    text-align: left;
    color: #000;
}

.user-name {
    font-weight: bold;
    color: #000;
}

.logout-link {
    color: #d32f2f !important;
    text-align: left !important;
    padding-left: 16px !important;
    display: block;
    width: 100%;
}

/* Add back the hover styles */
.dropdown-menu a:hover, .dropdown-menu a.active {
    background-color: var(--light-gray);
    color: var(--primary-color);
    border-bottom: none !important;
}

/* Fix for dropdown disappearing when trying to click items */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

/* Create a larger hover area around the dropdown */
.more-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -30px;
    right: -30px;
    height: 30px;
    z-index: 1;
}

@media (max-width: 768px) {
    /* MOBILE-SPECIFIC OVERRIDES */
    
    /* Hide hover helpers on mobile */
    .dropdown-menu::before,
    .more-dropdown::after {
        display: none !important;
    }
    
    /* Make sure dropdown doesn't open on hover on mobile */
    .more-dropdown:hover .dropdown-menu {
        display: none !important;
    }
    
    /* Hide the dropdown container entirely on mobile when menu is open */
    body.mobile-menu-open .more-dropdown {
        display: none !important;
    }
    
    /* Show all the clone items instead */
    body.mobile-menu-open .mobile-more-item {
        display: block !important;
    }
}

/* Disable browser password reveal buttons for security */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}

/* Remove any custom password toggle styling */
.password-toggle, .toggle-password, .password-eye {
    display: none !important;
}

.reveal-password {
    display: none !important;
}

/* Group Logo Fixes */
.group-logo {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
}

.group-card .group-logo,
.group-item .group-logo {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto 10px auto;
}

/* Profile Photo Fixes */
.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 3px solid #ddd;
}

.profile-photo-small {
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 2px solid #ddd;
}

/* Firebase Loading State */
.firebase-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
}

.firebase-loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Authentication States */
[data-auth-required] {
    display: none;
}

[data-guest-only] {
    display: block;
}

[data-admin-only] {
    display: none;
}

.user-is-logged-in [data-auth-required] {
    display: block;
}

.user-is-logged-in [data-guest-only] {
    display: none;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .modal-content {
        max-width: 95%;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    
    .gallery-image {
        height: 120px;
    }
} 