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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, rgba(6, 147, 227, 0.4) 0%, rgba(155, 81, 224, 0.4) 100%), #f5f5f5;
    background-attachment: fixed;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Top navigation bar */
nav {
    background: #1a1a1a;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #8B7FFF;
}

.nav-links a.active {
    color: #8B7FFF;
    font-weight: 600;
}

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

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #2a2a2a;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 0;
    padding-top: 0.5rem;
    top: 100%;
}

.nav-dropdown-content a {
    color: #ffffff;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.nav-dropdown-content a:hover {
    background-color: #333;
    color: #8B7FFF;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown > a::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.nav-search {
    max-width: 300px;
}

.nav-search input {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #444;
    border-radius: 20px;
    background: #2a2a2a;
    color: white;
    outline: none;
    transition: all 0.2s ease;
}

.nav-search input::placeholder {
    color: #999;
}

.nav-search input:focus {
    background: #333;
    border-color: #6B4FBB;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    color: #1a1a1a;
    padding: 5rem 2rem 3rem;
    background: transparent;
}

h1 {
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 600px;
    margin: 1rem auto 2rem;
}

.search-box {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    outline: none;
}

.search-box:focus {
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.tab-button {
    background: rgb(62, 43, 170);
    color: white;
    border: 2px solid transparent;
    border-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='none'%3e%3cpath stroke='url(%23a)' stroke-width='2' d='M8 1h84a7 7 0 0 1 7 7v84a7 7 0 0 1-7 7H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7Z'/%3e%3cdefs%3e%3clinearGradient id='a' x1='20.27' x2='120.715' y1='125' y2='113.589' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%236262F4'/%3e%3cstop offset='.367' stop-color='%2302DFFF'/%3e%3cstop offset='.682' stop-color='%233C8AE9'/%3e%3cstop offset='1' stop-color='%233DDABE'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e") 1;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tab-button:hover {
    transform: scale(1.1);
}

.tab-button.active {
    background: rgb(62, 43, 170);
    color: white;
    border: 2px solid transparent;
    border-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='none'%3e%3cpath stroke='url(%23a)' stroke-width='2' d='M8 1h84a7 7 0 0 1 7 7v84a7 7 0 0 1-7 7H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7Z'/%3e%3cdefs%3e%3clinearGradient id='a' x1='20.27' x2='120.715' y1='125' y2='113.589' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%236262F4'/%3e%3cstop offset='.367' stop-color='%2302DFFF'/%3e%3cstop offset='.682' stop-color='%233C8AE9'/%3e%3cstop offset='1' stop-color='%233DDABE'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e") 1;
    transform: scale(1.1);
}

.browse-button {
    background: rgb(62, 43, 170);
    color: white;
    border: 2px solid transparent;
    border-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='none'%3e%3cpath stroke='url(%23a)' stroke-width='2' d='M8 1h84a7 7 0 0 1 7 7v84a7 7 0 0 1-7 7H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7Z'/%3e%3cdefs%3e%3clinearGradient id='a' x1='20.27' x2='120.715' y1='125' y2='113.589' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%236262F4'/%3e%3cstop offset='.367' stop-color='%2302DFFF'/%3e%3cstop offset='.682' stop-color='%233C8AE9'/%3e%3cstop offset='1' stop-color='%233DDABE'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e") 1;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.browse-button:hover {
    transform: scale(1.1);
}

.tab-content {
    display: none;
}

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

.resource-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 2.5rem;
    border: none;
    transition: all 0.3s ease;
}

.resource-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-header {
    color: #1a1a1a;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.icon {
    width: 28px;
    height: 28px;
}

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

.repo-item, .video-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.repo-item:hover, .video-item:hover {
    background: #ffffff;
    border-color: #8B7FFF;
    box-shadow: 0 4px 16px rgba(107, 79, 187, 0.15);
    transform: translateY(-2px);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.video-thumbnail:hover {
    opacity: 0.85;
}

.repo-item h3, .video-item h3 {
    color: #313131;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.repo-item p, .video-item p {
    color: #1a1a1a;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.repo-item a, .video-item a {
    color: #6B4FBB;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.repo-item a:hover, .video-item a:hover {
    color: #8B7FFF;
    gap: 0.5rem;
}

.stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #1a1a1a;
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    background: #6B4FBB;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Team Member Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.team-member {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    background: #f8f9fa;
    border-color: #8B7FFF;
    box-shadow: 0 4px 16px rgba(107, 79, 187, 0.15);
    transform: translateY(-3px);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid #6B4FBB;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1rem;
    color: #6B4FBB;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-department {
    display: none;
}

.team-bio {
    display: none;
}

.team-email {
    color: #6B4FBB;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 1rem;
}

.team-email:hover {
    color: #8B7FFF;
    text-decoration: underline;
}

.team-calendly {
    display: inline-block;
    background: rgb(62, 43, 170);
    color: white;
    border: 2px solid transparent;
    border-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='none'%3e%3cpath stroke='url(%23a)' stroke-width='2' d='M8 1h84a7 7 0 0 1 7 7v84a7 7 0 0 1-7 7H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7Z'/%3e%3cdefs%3e%3clinearGradient id='a' x1='20.27' x2='120.715' y1='125' y2='113.589' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%236262F4'/%3e%3cstop offset='.367' stop-color='%2302DFFF'/%3e%3cstop offset='.682' stop-color='%233C8AE9'/%3e%3cstop offset='1' stop-color='%233DDABE'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e") 1;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.team-calendly:hover {
    transform: scale(1.05);
}

/* Quick Links */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-link-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.quick-link-card:hover {
    background: #f8f9fa;
    border-color: #8B7FFF;
    box-shadow: 0 4px 16px rgba(107, 79, 187, 0.15);
    transform: translateY(-3px);
}

.quick-link-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quick-link-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.quick-link-description {
    font-size: 0.9rem;
    color: #1a1a1a;
}

.summary-stats {
    background: linear-gradient(135deg, rgba(6,147,227,0.1), rgba(155,81,224,0.1));
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.summary-stat-item {
    text-align: center;
}

.summary-stat-item strong {
    color: #0693e3;
    font-size: 2.5rem;
    display: block;
}

.summary-stat-item span {
    color: #313131;
    font-size: 1rem;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #1a1a1a;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.accordion-header {
    background: #f8f9fa;
    padding: 1.25rem 1.75rem;
    margin: 1.5rem 0 0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.accordion-header:hover {
    background: #ffffff;
    border-color: #8B7FFF;
}

.accordion-header.regional {
    background: linear-gradient(135deg, #6B4FBB, #8B7FFF);
    color: white;
    border: none;
}

.accordion-header.regional:hover {
    background: linear-gradient(135deg, #8B7FFF, #6B4FBB);
}

.accordion-header.regional h3 {
    color: white;
}

.accordion-header.regional .accordion-icon {
    color: white;
}

.accordion-header h3 {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.accordion-icon {
    color: #6B4FBB;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-icon.open {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 5000px;
}

footer {
    text-align: center;
    color: #1a1a1a;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid #d0d0d0;
    background: transparent;
}

footer a {
    color: #6B4FBB;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #8B7FFF;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .container {
        padding: 1.5rem;
    }

    .resource-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .quick-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    header {
        padding: 4rem 2rem 2.5rem;
    }

    .resource-card {
        padding: 2rem;
    }
}

/* Mobile Styles (max 768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .subtitle {
        font-size: 1rem;
    }

    nav {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: #2a2a2a;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem;
        border-bottom: 1px solid #444;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-dropdown {
        width: 100%;
        border-bottom: 1px solid #444;
        text-align: center;
    }

    .nav-dropdown > a {
        padding: 0.75rem !important;
        border-bottom: none !important;
        display: inline-block !important;
        text-align: center !important;
    }

    .nav-dropdown > a::after {
        content: ' ▼';
        font-size: 0.7rem;
        margin-left: 0.25rem;
    }

    .nav-dropdown-content {
        position: static;
        display: none;
        background: #1a1a1a;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border-top: 1px solid #333;
        text-align: center;
    }

    .nav-dropdown-content a {
        padding: 0.75rem !important;
        background: #1a1a1a;
        border-bottom: 1px solid #333 !important;
        text-align: center !important;
        display: block !important;
    }

    .nav-dropdown-content a:last-child {
        border-bottom: none !important;
    }

    .nav-dropdown.active .nav-dropdown-content {
        display: block;
    }

    .nav-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .hamburger {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .container {
        padding: 1rem;
    }

    header {
        padding: 3rem 1rem 2rem;
    }

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

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tabs {
        gap: 0.5rem;
    }

    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .resource-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-header {
        font-size: 1.2rem;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .section-header button {
        flex-shrink: 0;
    }

    /* H3 headings with copy buttons */
    h3[style*="display: flex"] {
        font-size: 1.1rem !important;
        flex-wrap: nowrap !important;
    }

    h3[style*="display: flex"] button {
        flex-shrink: 0 !important;
    }

    /* Copy link buttons */
    .copy-link-btn,
    .copy-link-button {
        flex-shrink: 0 !important;
    }

    .accordion-header {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .team-photo {
        width: 120px;
        height: 120px;
    }

    .team-name {
        font-size: 1.25rem;
    }

    .summary-stats {
        gap: 1.5rem;
        padding: 1rem;
    }

    .summary-stat-item strong {
        font-size: 2rem;
    }

    footer {
        padding: 2rem 1rem;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-logo img {
        width: 24px;
        height: 24px;
    }

    .resource-card {
        padding: 1rem;
    }

    .section-header {
        font-size: 1.2rem;
    }

    .team-grid,
    .quick-links-grid,
    .resource-grid {
        gap: 1rem;
    }

    .tab-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .browse-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Responsive overrides for inline-styled event cards and grids */
@media (max-width: 768px) {
    /* Force event card grids to single column on mobile */
    [style*="grid-template-columns: repeat(auto-fill, minmax(320px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* Event sticky nav wrapper */
    .sticky-nav {
        position: static !important;
        padding: 0.75rem !important;
    }

    /* Event tab buttons wrapper */
    .tab-buttons {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Event tab buttons */
    .event-tab-button {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Video tab buttons */
    .video-tab-button {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }

    /* Video sticky nav full playlist button - hide on mobile */
    .sticky-nav a[href*="youtube.com"] {
        display: none !important;
    }

    /* Team photo grid */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    /* Force team photo grid to single column on very small screens */
    [style*="grid-template-columns: repeat(4, 1fr)"],
    [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Reduce padding on inline styled elements */
    [style*="padding: 1.5rem"] {
        padding: 1rem !important;
    }

    /* Smaller event date text */
    [style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }
}
