/* Bastoslab v8 - Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #000000;
    --color-text: #333333;
    --color-text-secondary: #54595F;
    --color-text-light: #7A7A7A;
    --color-accent: #61CE70;
    --color-accent-red: #D32B4A;
    --color-bg: #ffffff;
    --color-bg-alt: #F2F2F2;
    --color-footer: #112433;
    --color-team-heading: #545c8f;
    --color-team-subheading: #efad46;
    --color-equipment-headline: #C9A227;
    --color-equipment-underline: #FF7600;

    /* Navigation colors */
    --color-nav-line: rgba(51, 51, 51, 0.7);
    --color-nav-line-light: rgba(255, 255, 255, 0.8);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Roboto', system-ui, sans-serif;

    /* Layout - 1140px at 16px base */
    --container-max: 71.25em;
    --container-width: 73%;
    --container-width-tablet: 80%;
    --container-width-mobile: 90%;
}

html {
    font-size: 100%;
    overflow-x: hidden;
}

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

/* ========================================
   DOT NAVIGATION
   ======================================== */
.dot-nav {
    position: fixed;
    left: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: center;
}

.dot-nav.visible {
    opacity: 1;
    visibility: visible;
}

/* Trigger hamburger - always visible when nav is visible */
.dot-nav-trigger {
    width: 1em;
    height: 0.8em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 0.1em 0;
}

.dot-nav-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-nav-line);
    border-radius: 1px;
    transition: background 0.2s ease;
}

.dot-nav:hover .dot-nav-trigger,
.dot-nav:focus-within .dot-nav-trigger {
    opacity: 0;
    transform: scale(0);
}

/* Menu container - hidden by default */
.dot-nav-menu {
    position: absolute;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dot-nav:hover .dot-nav-menu,
.dot-nav:focus-within .dot-nav-menu {
    opacity: 1;
    visibility: visible;
}

.dot-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6em;
    text-decoration: none;
    cursor: pointer;
}

.dot {
    width: 1em;
    height: 2px;
    border-radius: 1px;
    background: var(--color-nav-line);
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.dot-nav-item:hover .dot,
.dot-nav-item:focus .dot {
    transform: scaleX(1.3);
}

.dot-nav-item.active .dot {
    background: var(--color-accent-red);
    transform: scaleX(1.2);
}

.dot-label {
    font-family: var(--font-body);
    font-size: 0.75em;
    font-weight: 300;
    color: var(--color-text);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-0.3em);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.dot-nav-item:hover .dot-label,
.dot-nav-item:focus .dot-label,
.dot-nav-item.active .dot-label {
    opacity: 1;
    transform: translateX(0);
}

/* Dark section adjustments */
.dot-nav.on-dark .dot-nav-trigger span {
    background: var(--color-nav-line-light);
}

.dot-nav.on-dark .dot-label {
    color: var(--color-bg);
}

.dot-nav.on-dark .dot {
    background: var(--color-nav-line-light);
}

.dot-nav.on-dark .dot-nav-item.active .dot {
    background: var(--color-accent-red);
}

.dot-nav.on-dark .dot-nav-item.active .dot-label {
    color: var(--color-bg);
    opacity: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: -1%;
    width: var(--container-width);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.3em;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1em;
    color: var(--color-text);
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 3.0em;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0.5em;
    color: var(--color-text);
}

.hero h3 {
    font-family: var(--font-heading);
    font-size: 1.75em;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.8em;
}

.hero .contact-info {
    font-family: var(--font-body);
    font-size: 1.2em;
    font-weight: 200;
    margin-top: -1%;
    color: var(--color-text);
}

/* Color Wheel */
.hero-wheel {
    position: absolute;
    width: 125%;
    bottom: -70%;
    right: -60%;
    z-index: -1;
    animation: spin 200s linear infinite;
    will-change: transform;
}

.hero-wheel img {
    width: 100%;
    height: auto;
}

@keyframes spin {
    from {
        transform: rotate(-360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator img {
    width: 20em;
    height: auto;
    margin-bottom: -5%;
}

/* ========================================
   RESPONSIVE - HERO
   ======================================== */
@media (max-width: 64em) {
    /* 1024px - Tablet */
    .hero-content {
        width: var(--container-width-tablet);
        margin: -1% auto 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero h2 {
        font-size: 1.5em;
    }

    .hero-wheel {
        width: 100%;
        bottom: -100%;
        right: -50%;
    }
}

@media (max-width: 48em) {
    /* 768px */
    .hero-content {
        width: var(--container-width-mobile);
        margin: -1% auto 0;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero h2 {
        font-size: 1.3em;
        padding-top: 1em;
    }

    .hero h3 {
        font-size: 1em;
    }

    .hero .contact-info {
        font-size: 0.9em;
    }

    .hero-wheel {
        width: 150%;
        bottom: -20%;
        right: -75%;
    }

    .scroll-indicator img {
        width: 10em;
    }
}

/* ========================================
   SECTION 2: PLANT ANIMATION (SVG)
   ======================================== */
.plant-animation-section {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--color-bg);
    overflow: visible;
}

.plant-animation-container {
    position: sticky;
    width: 30%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    top: 0;
    margin-top: -13%;
}

.plant-animation-container object {
    width: 100%;
    height: auto;
    max-height: 100vh;
}

/* ========================================
   RESPONSIVE - PLANT ANIMATION
   ======================================== */
@media (max-width: 64em) {
    /* 1024px - Tablet */
    .plant-animation-container {
        width: 50%;
    }
}

@media (max-width: 48em) {
    .plant-animation-container {
        width: 60%;
        height: auto;
        margin-top: -25%;
    }
}

/* ========================================
   SECTION 3: BETALAINS INTRO
   ======================================== */
.betalains-intro {
    position: relative;
    z-index: 10;
    background: var(--color-bg);
    padding: 5vh 0;
}

.betalains-intro-content {
    width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.betalains-intro h2 {
    font-family: var(--font-heading);
    font-size: 3.1em;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 0.3em;
}

.betalains-intro h4 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-secondary);
}

/* ========================================
   RESPONSIVE - BETALAINS INTRO
   ======================================== */
@media (max-width: 64em) {
    .betalains-intro-content {
        width: var(--container-width-tablet);
    }

    .betalains-intro h2 {
        font-size: 2em;
    }

    .betalains-intro h4 {
        font-size: 1.25em;
    }
}

@media (max-width: 48em) {
    .betalains-intro-content {
        width: var(--container-width-mobile);
    }

    .betalains-intro h2 {
        font-size: 1.5em;
    }

    .betalains-intro h4 {
        font-size: 1.1em;
    }
}

/* ========================================
   SECTION 4: PLANT GALLERY
   ======================================== */
.plant-gallery {
    background: var(--color-bg);
    padding: 3vh 0;
}

.plant-grid {
    width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
}

.plant-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.plant-card img {
    width: 90%;
    height: auto;
    margin-bottom: 0.8em;
}

.plant-card h5 {
    font-family: 'Petit Formal Script', cursive;
    font-size: 1.25em;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.25em;
}

.plant-card:hover h5 {
    color: var(--color-accent-red);
    text-decoration: underline;
}

.plant-card p {
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 300;
    color: var(--color-text-secondary);
}

/* ========================================
   RESPONSIVE - PLANT GALLERY
   ======================================== */
@media (max-width: 64em) {
    .plant-grid {
        width: var(--container-width-tablet);
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48em) {
    .plant-grid {
        width: var(--container-width-mobile);
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
    }

    .plant-card h5 {
        font-size: 1em;
    }

    .plant-card p {
        font-size: 0.85em;
    }

    .plant-card img {
        width: 60%;
    }
}

/* ========================================
   SECTION 5: MULTIDISCIPLINARY
   ======================================== */
.multidisciplinary {
    background: var(--color-bg);
    padding: 5vh 0;
}

.multidisciplinary-content {
    width: var(--container-width);
    margin: 0 auto;
    text-align: right;
}

.multidisciplinary h2 {
    font-family: var(--font-heading);
    font-size: 3.1em;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 0.3em;
}

.multidisciplinary h4 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin-bottom: 3vh;
}

.multidisciplinary-icons {
    width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.multidisciplinary-icons img {
    width: 33.333%;
    height: auto;
}

/* ========================================
   RESPONSIVE - MULTIDISCIPLINARY
   ======================================== */
@media (max-width: 64em) {
    .multidisciplinary-content {
        width: var(--container-width-tablet);
    }

    .multidisciplinary h2 {
        font-size: 2em;
    }

    .multidisciplinary h4 {
        font-size: 1.25em;
    }

    .multidisciplinary-icons {
        width: var(--container-width-tablet);
    }
}

@media (max-width: 48em) {
    .multidisciplinary-content {
        width: var(--container-width-mobile);
        text-align: center;
    }

    .multidisciplinary h2 {
        font-size: 1.5em;
    }

    .multidisciplinary h4 {
        font-size: 1.1em;
    }

    .multidisciplinary-icons {
        width: var(--container-width-mobile);
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .multidisciplinary-icons img {
        width: 100%;
    }
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   JS-driven: elements start visible, JS hides then reveals them
   ======================================== */
[data-reveal].will-animate {
    transition: transform 1.2s ease;
}

[data-reveal="from-right"].will-animate {
    transform: translateX(100vw);
}

[data-reveal="from-left"].will-animate {
    transform: translateX(-100vw);
}

[data-reveal="from-bottom"].will-animate {
    transform: translateY(100%);
}

[data-reveal].revealed {
    transform: translate(0, 0);
}

/* ========================================
   SECTION 6: PUBLICATIONS INTRO
   ======================================== */
.publications-intro {
    background: var(--color-bg);
    padding: 5vh 0 0;
}

.publications-intro-content {
    width: var(--container-width);
    margin: 0 auto;
    text-align: right;
}

.publications-intro h2 {
    font-family: var(--font-heading);
    font-size: 3.1em;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 0.3em;
}

.publications-intro h4 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-secondary);
}

.publications-intro h4 a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.publications-intro h4 a:hover {
    color: var(--color-accent-red);
}

.scroll-hint {
    display: flex;
    justify-content: center;
    margin-bottom: 1vh;
}

.scroll-text {
    font-family: var(--font-body);
    font-size: 0.9em;
    font-weight: 300;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
}

/* ========================================
   RESPONSIVE - PUBLICATIONS INTRO
   ======================================== */
@media (max-width: 64em) {
    .publications-intro-content {
        width: var(--container-width-tablet);
    }

    .publications-intro h2 {
        font-size: 2em;
    }

    .publications-intro h4 {
        font-size: 1.25em;
    }

    .scroll-text {
        font-size: 0.8em;
    }
}

@media (max-width: 48em) {
    .publications-intro-content {
        width: var(--container-width-mobile);
    }

    .publications-intro h2 {
        font-size: 1.5em;
    }

    .publications-intro h4 {
        font-size: 1.1em;
    }

    .scroll-text {
        font-size: 0.75em;
    }
}

/* ========================================
   SECTION 6b: PUBLICATIONS CAROUSEL
   ======================================== */
.publications-carousel {
    background: var(--color-bg);
    padding: 3vh 0 5vh;
}

.carousel-container {
    width: var(--container-width);
    margin: 0 auto;
    display: flex;
    gap: 2em;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.pub-card {
    flex: 0 0 calc((100% - 6em) / 4);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.pub-card img {
    width: 100%;
    height: auto;
    margin-bottom: 0.8em;
}

.pub-card h5 {
    font-family: var(--font-body);
    font-size: 1.3em;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.3em;
}

.pub-card p {
    font-family: var(--font-body);
    font-size: 0.95em;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin-bottom: 0.3em;
}

.pub-card p b {
    font-weight: 700;
    color: var(--color-text);
}

.pub-card p a {
    color: var(--color-accent-red);
    text-decoration: none;
}

.pub-card p a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE - PUBLICATIONS CAROUSEL
   ======================================== */
@media (max-width: 64em) {
    .carousel-container {
        width: var(--container-width-tablet);
    }

    .pub-card {
        flex: 0 0 calc((100% - 4em) / 3);
    }

    .pub-card h5 {
        font-size: 1.1em;
    }

    .pub-card p {
        font-size: 0.85em;
    }
}

@media (max-width: 48em) {
    .carousel-container {
        width: var(--container-width-mobile);
    }

    .pub-card {
        flex: 0 0 calc((100% - 2em) / 2);
    }

    .pub-card h5 {
        font-size: 1em;
    }

    .pub-card p {
        font-size: 0.8em;
    }
}

/* ========================================
   SECTION 7: VIDEO BACKGROUND
   ======================================== */
.video-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.5;
    z-index: 2;
}

.video-content {
    position: relative;
    z-index: 3;
    width: var(--container-width);
    text-align: right;
}

.video-section h2 {
    font-family: var(--font-heading);
    font-size: 3.1em;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-bg);
    margin-bottom: 0.4em;
}

.video-section h4 {
    font-family: var(--font-heading);
    font-size: 1.4em;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-bg);
}

/* ========================================
   RESPONSIVE - VIDEO SECTION
   ======================================== */
@media (max-width: 64em) {
    .video-content {
        width: var(--container-width-tablet);
    }

    .video-section h2 {
        font-size: 2em;
    }

    .video-section h4 {
        font-size: 1.25em;
    }
}

@media (max-width: 48em) {
    .video-content {
        width: var(--container-width-mobile);
        text-align: center;
    }

    .video-section h2 {
        font-size: 1.5em;
    }

    .video-section h4 {
        font-size: 1.1em;
    }
}

/* ========================================
   SECTION 8: TEAM
   ======================================== */
.team-section {
    background: var(--color-bg);
    padding: 5vh 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.team-grid {
    width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2em;
}

.team-column {
    padding: 2em;
}

.team-pi {
    background: var(--color-bg-alt);
    text-align: left;
}

.team-column h3 {
    font-family: var(--font-body);
    font-size: 1.6em;
    font-weight: 500;
    color: var(--color-team-heading);
    margin-bottom: 1em;
}

.team-pi img {
    margin-bottom: 1em;
    width: 100%;
    height: auto;
}

.team-pi h4 {
    font-family: var(--font-body);
    font-size: 1.5em;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.3em;
}

.team-pi .pi-title {
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 0.5em;
}

.team-pi .pi-pronouns {
    font-family: var(--font-body);
    font-size: 0.9em;
    font-weight: 300;
    color: var(--color-text-light);
    margin-bottom: 1em;
}

.team-pi .pi-bio {
    font-family: var(--font-body);
    font-size: 0.85em;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 1em;
}

.team-pi .pi-links {
    font-family: var(--font-body);
    font-size: 0.9em;
    font-weight: 400;
}

.team-pi .pi-links a {
    color: var(--color-accent-red);
    text-decoration: none;
}

.team-pi .pi-links a:hover {
    text-decoration: underline;
}

.team-column h5 {
    font-family: var(--font-body);
    font-size: 1.2em;
    font-weight: 400;
    color: var(--color-team-subheading);
    margin-bottom: 1em;
    margin-top: 1em;
}

.team-column h5:first-of-type {
    margin-top: 0;
}

.team-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-column li {
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.8;
}

.linkedin-icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-left: 0.3em;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.linkedin-icon:hover {
    opacity: 1;
}

.alumni-link {
    margin-top: 1.5em;
}

.alumni-link a {
    font-family: var(--font-body);
    font-size: 0.9em;
    color: var(--color-accent-red);
    text-decoration: none;
}

.alumni-link a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE - TEAM SECTION
   ======================================== */
@media (max-width: 64em) {
    .team-grid {
        width: var(--container-width-mobile);
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
    }

    .team-pi {
        grid-column: 1 / -1;
    }

    .team-column h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 48em) {
    .team-grid {
        width: var(--container-width-mobile);
        grid-template-columns: 1fr;
    }

    .team-pi {
        grid-column: auto;
    }

    .team-column {
        padding: 0em;
    }

    .team-column h3 {
        font-size: 1.3em;
    }

    .team-column h5 {
        font-size: 1.1em;
    }

    .team-column li {
        font-size: 0.95em;
    }
}

/* ========================================
   SECTION 9: LAB EQUIPMENT
   ======================================== */
.equipment-section {
    background: #000000 url('../images/bg-equipment.jpg') center center / cover no-repeat;
    padding: 5vh 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-content {
    width: var(--container-width);
    margin: 0 auto;
    text-align: left;
}

.equipment-headline {
    font-family: var(--font-heading);
    font-size: 3.1em;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-equipment-headline);
    margin-bottom: 0.4em;
}

.headline-highlight {
    position: relative;
    display: inline-block;
}

.highlight-underline {
    position: absolute;
    bottom: -0.15em;
    left: 0;
    width: 100%;
    height: 0.35em;
    overflow: visible;
}

.highlight-underline path {
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
}

.highlight-underline.animate path {
    animation: draw-underline 1.5s ease-out forwards;
}

@keyframes draw-underline {
    to {
        stroke-dashoffset: 0;
    }
}

.equipment-section h4 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-bg);
    margin-bottom: 1.5em;
}

.equipment-list {
    font-family: var(--font-body);
    font-size: 1.2em;
    font-weight: 400;
    color: var(--color-bg);
    line-height: 1.8;
    margin-bottom: 1.5em;
}

.sponsors-list {
    font-family: var(--font-body);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-bg);
    line-height: 1.8;
}

/* ========================================
   RESPONSIVE - LAB EQUIPMENT
   ======================================== */
@media (max-width: 64em) {
    .equipment-content {
        width: var(--container-width-tablet);
    }

    .equipment-headline {
        font-size: 2em;
    }

    .equipment-section h4 {
        font-size: 1.25em;
    }
}

@media (max-width: 48em) {
    .equipment-content {
        width: var(--container-width-mobile);
    }

    .equipment-headline {
        font-size: 1.5em;
    }

    .equipment-section h4 {
        font-size: 1.1em;
    }

    .equipment-list,
    .sponsors-list {
        font-size: 0.9em;
    }
}

/* ========================================
   SECTION 10: COLLABORATORS
   ======================================== */
.collaborators-section {
    background: var(--color-bg);
    padding: 5vh 0;
}

.collaborators-intro {
    width: var(--container-width);
    margin: 0 auto;
}

.collaborators-intro h2 {
    font-family: var(--font-heading);
    font-size: 3.1em;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 3vh;
}

.collaborators-grid {
    width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3em;
}

.collab-column h4 {
    font-family: var(--font-body);
    font-size: 1.2em;
    font-weight: 400;
    color: var(--color-text);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.collab-column h4:first-child {
    margin-top: 0;
}

.collab-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.collab-column li {
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.collab-column a {
    color: var(--color-accent-red);
    text-decoration: none;
}

.collab-column a:hover {
    text-decoration: underline;
}

.collab-icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-left: 0.3em;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.collab-icon:hover {
    opacity: 1;
}

/* ========================================
   RESPONSIVE - COLLABORATORS
   ======================================== */
@media (max-width: 64em) {
    .collaborators-intro {
        width: var(--container-width-tablet);
    }

    .collaborators-intro h2 {
        font-size: 2em;
    }

    .collaborators-grid {
        width: var(--container-width-tablet);
        grid-template-columns: 1fr;
        gap: 2em;
    }
}

@media (max-width: 48em) {
    .collaborators-intro {
        width: var(--container-width-mobile);
    }

    .collaborators-intro h2 {
        font-size: 1.5em;
    }

    .collaborators-grid {
        width: var(--container-width-mobile);
    }

    .collab-column h4 {
        font-size: 1.1em;
    }

    .collab-column li {
        font-size: 0.95em;
    }
}

/* ========================================
   SECTION 11: FOOTER
   ======================================== */
.site-footer {
    background: var(--color-footer);
    padding: 3vh 0;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    width: var(--container-width);
    text-align: center;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.footer-logo {
    width: 6em;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 300;
    color: var(--color-bg);
}

.footer-update {
    font-family: var(--font-body);
    font-size: 0.9em;
    font-weight: 300;
    color: var(--color-bg);
    margin: 1.5em 0;
}

.footer-contact {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 400;
}

.footer-contact a {
    color: var(--color-bg);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--color-accent-red);
    text-decoration: none;
}

/* ========================================
   RESPONSIVE - FOOTER
   ======================================== */
@media (max-width: 64em) {
    .footer-contact {
        font-size: 1.5em;
    }
}

@media (max-width: 48em) {
    .footer-row {
        flex-direction: column;
        gap: 1em;
    }

    .footer-logo {
        width: 5em;
    }

    .footer-copyright {
        font-size: 0.9em;
    }

    .footer-update {
        font-size: 0.85em;
    }

    .footer-contact {
        font-size: 1.2em;
        text-align: center;
    }
}

/* ========================================
   DOT NAVIGATION - RESPONSIVE
   ======================================== */
@media (max-width: 64em) {
    /* Tablet: closer to edge */
    .dot-nav {
        left: 1em;
    }

    .dot-nav-trigger {
        width: 0.9em;
        height: 0.7em;
    }

    .dot-nav-menu {
        gap: 0.35em;
    }

    .dot {
        width: 0.9em;
    }

    .dot-label {
        font-size: 0.7em;
    }
}

@media (max-width: 48em) {
    /* Mobile: hide dot nav, rely on scroll */
    .dot-nav {
        display: none;
    }
}

/* ========================================
   JOB ALERT BUTTON
   ======================================== */
.job-alert {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.75em 1.5625em;
    margin-top: 2.875em;
    background: var(--color-accent-red);
    border: none;
    border-radius: 0.375em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulse-glow 2s ease-in-out infinite;
}

.job-alert:hover {
    transform: scale(1.05);
    box-shadow: 0 0.3em 1em rgba(211, 43, 74, 0.4);
    animation: none;
}

.job-alert img {
    width: 1.875em;
    height: 1.875em;
    filter: brightness(0) invert(1);
}

.job-alert span {
    font-family: var(--font-body);
    font-size: 1.3125em;
    font-weight: 500;
    color: var(--color-bg);
    white-space: nowrap;
}

.job-alert .job-badge {
    position: absolute;
    top: -0.624em;
    right: -0.624em;
    min-width: 1.75em;
    height: 1.75em;
    padding: 0 0.44em;
    background: var(--color-bg);
    color: var(--color-accent-red);
    font-family: var(--font-body);
    font-size: 1.0624em;
    font-weight: 700;
    line-height: 1.75em;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.2);
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(211, 43, 74, 0.5);
    }

    50% {
        box-shadow: 0 0 0.8em 0.3em rgba(211, 43, 74, 0.3);
    }
}

/* ========================================
   JOB ALERT - RESPONSIVE
   ======================================== */
@media (max-width: 64em) {
    .job-alert {
        padding: 0.5em 1em;
        margin-top: 1.2em;
    }

    .job-alert img {
        width: 1.3em;
        height: 1.3em;
    }

    .job-alert span {
        font-size: 0.95em;
    }
}

@media (max-width: 48em) {
    .job-alert {
        padding: 0.45em 0.9em;
        margin-top: 1em;
    }

    .job-alert img {
        width: 1.2em;
        height: 1.2em;
    }

    .job-alert span {
        font-size: 0.85em;
    }
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background: var(--color-bg);
    width: 90%;
    max-width: 50em;
    max-height: 85vh;
    border-radius: 0.5em;
    overflow: hidden;
    transform: translateY(2em);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 0.5em;
    right: 0.8em;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--color-accent-red);
}

.modal-body {
    padding: 2.5em 3em;
    overflow-y: auto;
    max-height: 85vh;
}

.modal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1em;
    padding-right: 1.5em;
}

.modal-body h3 {
    font-family: var(--font-body);
    font-size: 1.3em;
    font-weight: 500;
    color: var(--color-team-heading);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.modal-body p {
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0.6em;
}

.modal-body p strong {
    font-weight: 500;
}

.modal-body a {
    color: var(--color-accent-red);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-body hr {
    border: none;
    border-top: 1px solid var(--color-bg-alt);
    margin: 1.5em 0;
}

.modal-body ul,
.modal-body ol {
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.8;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.modal-body li {
    margin-bottom: 0.3em;
}

/* Positions Menu */
.positions-intro {
    color: var(--color-text-secondary);
    margin-bottom: 1.5em;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.no-positions {
    color: var(--color-text-secondary);
    line-height: 1.6;
    padding: 1em;
    background: var(--color-bg-alt);
    border-radius: 0.4em;
}

.no-positions a {
    color: var(--color-accent-red);
    text-decoration: none;
}

.no-positions a:hover {
    text-decoration: underline;
}

.position-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.2em;
    background: var(--color-bg-alt);
    border: 2px solid transparent;
    border-radius: 0.4em;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.position-item:hover:not(.disabled) {
    border-color: var(--color-accent-red);
    background: var(--color-bg);
}

.position-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.position-title {
    font-family: var(--font-body);
    font-size: 1.1em;
    font-weight: 400;
    color: var(--color-text);
}

.position-count {
    font-family: var(--font-body);
    font-size: 0.9em;
    font-weight: 500;
    color: var(--color-bg);
    background: var(--color-accent-red);
    padding: 0.2em 0.6em;
    border-radius: 1em;
    min-width: 1.8em;
    text-align: center;
}

.position-item.disabled .position-count {
    background: var(--color-text-light);
    color: var(--color-bg);
}

/* Back Button */
.modal-back {
    display: inline-block;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95em;
    font-weight: 400;
    color: var(--color-accent-red);
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5em;
    transition: opacity 0.2s ease;
}

.modal-back:hover {
    opacity: 0.7;
}

/* Contact Modal Specific Styles */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2em;
}

.contact-section {
    padding: 1.5em 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.15);
}

.contact-section:last-child {
    border-bottom: none;
}

.contact-section p {
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

.contact-section a {
    color: var(--color-accent-red);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-section a:hover {
    opacity: 0.7;
}

/* ========================================
   MODAL - RESPONSIVE
   ======================================== */
@media (max-width: 64em) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-body {
        padding: 2em;
        max-height: 90vh;
    }

    .modal-body h2 {
        font-size: 1.5em;
    }

    .modal-body h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 48em) {
    .modal-body {
        padding: 1.5em;
    }

    .modal-body h2 {
        font-size: 1.3em;
    }

    .modal-body h3 {
        font-size: 1.1em;
    }

    .modal-body p,
    .modal-body ul,
    .modal-body ol {
        font-size: 0.9em;
    }

    .modal-close {
        font-size: 1.8em;
    }
}
