/**********************************************************************************************************************/
/* Typography and colors */
/**********************************************************************************************************************/

html {
    font-size: 62.5%;
}

body {
    font-family: 'General Sans Variable', 'General Sans', -apple-system, BlinkMacSystemFont,
        'Segoe UI', 'Helvetica Neue', Helvetica, Cantarell, Ubuntu, Roboto, Noto, Arial, sans-serif;
    font-size: 1.6rem;
}

:root {
    --background: #fef8f2;
    --text: #814442;
    --headings: #a3605e;
    --separator: rgba(163, 96, 94, .3);
    /* Missing palette variables used below */
    --primary: #545784;
    --primary-dark: #434569;
    --primary-light: #7C81C8;
    --secondary: #FF66B3;
    --secondary-bg: #FFD1E6; /* lighter tint for dots/badges */
}

sup {
    top: -.4em;
}

.theme-primary {
    --background: #515582;
    --headings: #eed4f1;
    --text: #ffffff;
    --muted: #d9dae3;
}

.theme-dark {
    --background: #444669;
    --headings: #eed4f1;
    --text: #ffffff;
    --muted: #d9dae3;
}

.theme-light {
    --background: #eaebf6;
    --headings: #515582;
    --text: #444669;
    --muted: #d9dae3;
    --separator: rgba(81, 85, 130, .3);
}

.theme-secondary {
    --background: #9d5e5c;
    --headings: #f9f4ee;
    --text: #ffffff;
}

.theme-tertiary {
    --background: #862A4A;
    --headings: #f9f4ee;
    --text: #ffffff;
}

h1 {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 strong {
    color: var(--headings);
    font-weight: 700;
}

h2 {
    color: var(--headings);
    font-weight: 700;
    font-size: 3.2rem;
    margin-bottom: 0;
}

h3 {
    color: var(--headings);
    font-size: 2rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: .4rem;
}

.lead {
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.4;
}

.lead-link {
    position: relative;
    color: var(--headings);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.1;
}

.lead-link::before,
.lead-link::after {
    display: block;
    content: '';
    position: absolute;
    width: 0;
    left: 0;
    bottom: -.15em;
    height: .2em;
    z-index: 0;
    border-radius: 15em;
}

.lead-link::before {
    background: var(--separator);
    width: 100%;
}

.lead-link::after {
    background: var(--headings);
    transition: .25s ease-in-out width;
}

.lead-link:hover::after {
    width: 100%;
}

/**********************************************************************************************************************/
/* General Sans */
/**********************************************************************************************************************/

@font-face {
    font-family: 'General Sans Variable';
    src: url('../fonts/GeneralSans-Variable.woff2') format('woff2'),
    url('../fonts/GeneralSans-Variable.woff') format('woff'),
    url('../fonts/GeneralSans-Variable.ttf') format('truetype');
    font-weight: 200 700;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'General Sans Variable';
    src: url('../fonts/GeneralSans-VariableItalic.woff2') format('woff2'),
    url('../fonts/GeneralSans-VariableItalic.woff') format('woff'),
    url('../fonts/GeneralSans-VariableItalic.ttf') format('truetype');
    font-weight: 200 700;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Extralight.woff2') format('woff2'),
    url('../fonts/GeneralSans-Extralight.woff') format('woff'),
    url('../fonts/GeneralSans-Extralight.ttf') format('truetype');
    font-weight: 200;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-ExtralightItalic.woff2') format('woff2'),
    url('../fonts/GeneralSans-ExtralightItalic.woff') format('woff'),
    url('../fonts/GeneralSans-ExtralightItalic.ttf') format('truetype');
    font-weight: 200;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Light.woff2') format('woff2'),
    url('../fonts/GeneralSans-Light.woff') format('woff'),
    url('../fonts/GeneralSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-LightItalic.woff2') format('woff2'),
    url('../fonts/GeneralSans-LightItalic.woff') format('woff'),
    url('../fonts/GeneralSans-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Regular.woff2') format('woff2'),
    url('../fonts/GeneralSans-Regular.woff') format('woff'),
    url('../fonts/GeneralSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Italic.woff2') format('woff2'),
    url('../fonts/GeneralSans-Italic.woff') format('woff'),
    url('../fonts/GeneralSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Medium.woff2') format('woff2'),
    url('../fonts/GeneralSans-Medium.woff') format('woff'),
    url('../fonts/GeneralSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-MediumItalic.woff2') format('woff2'),
    url('../fonts/GeneralSans-MediumItalic.woff') format('woff'),
    url('../fonts/GeneralSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Semibold.woff2') format('woff2'),
    url('../fonts/GeneralSans-Semibold.woff') format('woff'),
    url('../fonts/GeneralSans-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-SemiboldItalic.woff2') format('woff2'),
    url('../fonts/GeneralSans-SemiboldItalic.woff') format('woff'),
    url('../fonts/GeneralSans-SemiboldItalic.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
    font-style: italic;
}


@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Bold.woff2') format('woff2'),
    url('../fonts/GeneralSans-Bold.woff') format('woff'),
    url('../fonts/GeneralSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}


@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-BoldItalic.woff2') format('woff2'),
    url('../fonts/GeneralSans-BoldItalic.woff') format('woff'),
    url('../fonts/GeneralSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: italic;
}

/**********************************************************************************************************************/
/* Containers */
/**********************************************************************************************************************/

:root {
    --sm: 576px;
    --md: 768px;
    --lg: 992px;
    --xl: 1200px;
    --xxl: 1400px;
}

.container,
.container-wide {
    padding: 0 24px;
    margin: 0 auto;
}

@supports(padding: max(0px, 0px)) {
    .container,
    .container-wide {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
}

@media screen and (min-width: 576px) {
    .container,
    .container-narrow {
        max-width: 550px;
    }

    html {
        font-size: 75%;
    }
}

@media screen and (min-width: 768px) {
    html {
        font-size: 85%;
    }
}

@media screen and (min-width: 992px) {
    .container:not(.container-narrow) {
        max-width: 800px;
    }

    .container-wrapper-left {
        width: 50%;
    }

    .container-wrapper-left > .container-narrow {
        margin-right: 0;
    }

    .container-wrapper-right {
        margin-left: 50%;
        width: 50%;
    }

    .container-wrapper-right > .container-narrow {
        margin-left: 0;
    }
}

@media screen and (min-width: 1200px) {
    .container:not(.container-narrow) {
        max-width: 1000px;
    }

    .container-columns {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        justify-content: center;
        padding: 0 8rem;
        gap: 4rem;
    }
}

@media screen and (min-width: 1400px) {
    .container:not(.container-narrow) {
        max-width: 1200px;
    }
}

.scroll-x-wrapper {
    width: 100%;
    overflow-x: auto;
}

/**********************************************************************************************************************/
/* Sections */
/**********************************************************************************************************************/

:root {
    --divider-height: 25px;
}

@media screen and (min-width: 768px) {
    :root {
        --divider-height: 32px;
    }
}

@media screen and (min-width: 992px) {
    :root {
        --divider-height: 40px;
    }
}

@media screen and (min-width: 1200px) {
    :root {
        --divider-height: 60px;
    }
}

@media screen and (min-width: 1400px) {
    :root {
        --divider-height: 80px;
    }
}

.section {
    position: relative;
    background: var(--background);
    color: var(--text);
    padding-top: 24px;
}

.section::before {
    display: block;
    content: '';

    position: absolute;
    top: calc(5px - var(--divider-height));
    left: 0;
    width: 100%;
    height: var(--divider-height);

    clip-path: polygon(0% 80%, 0 100%, 100% 100%, 100% 80%, 100% 0%);
    background: var(--background);
    pointer-events: none;
}

/**********************************************************************************************************************/
/* Hero section */
/**********************************************************************************************************************/

.section-hero {
    padding-top: 48px;
    width: 100%;
    overflow: hidden;
}

.hero-logo {
    display: flex;
    line-height: 1;
}

.hero-logo img {
    width: 5em;
    margin-right: 1em;
}

.hero-drop-shadow {
    position: absolute;
    background-image: radial-gradient(
        circle at 10px 10px,
        rgba(81, 85, 130, 0) 0%,
        rgba(81, 85, 130, 1) var(--drop-shadow-size)
    ),
    conic-gradient(
        from 0.25turn at 10px 10px,
        transparent 10deg,
        transparent,
        10deg,
        #444669,
        70deg,
        #444669,
        70deg,
        transparent
    );
    width: max(100vw, 100vh);
    height: max(100vw, 100vh);

    --drop-shadow-size: 150vw;
}

@media screen and (min-width: 576px) {
    .hero-drop-shadow {
        --drop-shadow-size: 90vw;
    }
}

@media screen and (min-width: 1200px) {
    .hero-drop-shadow {
        --drop-shadow-size: 30vw;
    }
}

.hero-contents {
    position: relative;
}

.hero-wordmark {
    font-size: 3rem;
    font-weight: bold;
}

.hero-wordmark span {
    color: var(--headings);
    display: block;
}

.hero-bullet {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: .5em;
}

.hero-bullet svg {
    color: var(--headings);
    margin-right: .5em;
}

.section-hero-illustration {
    position: relative;
    margin-top: 40px;
    height: 90vw;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-image: url(../illustrations/v2/hero@0.5x.webp);
}

.no-webp .section-hero-illustration {
    background-image: url(../illustrations/v2/hero@0.5x.png);
}

@media screen and (min-width: 400px) {
    .section-hero-illustration {
        background-image: url(../illustrations/v2/hero.webp);
    }

    .no-webp .section-hero-illustration {
        background-image: url(../illustrations/v2/hero.png);
    }
}

@media screen and (min-width: 576px) {
    .section-hero-illustration {
        height: 450px;
        background-position: top left;
        background-size: 600px;
        margin-top: 0;
    }
}

@media screen and (min-width: 992px) {
    .section-hero-illustration {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 48%;
        height: 100%;
        max-height: 825px;
        background-size: 1100px;
        background-position: top right;
    }

    .section-hero {
        padding-top: 4rem;
        padding-bottom: 8rem;
    }
}

@media screen and (min-width: 2080px) {
    .section-hero-illustration {
        background-position: top left;
    }

    .section-hero {
        padding-top: 8rem;
        padding-bottom: 14rem;
    }
}
    /* Simple fade/slide-in used by sponsor cards */
    @keyframes fadeIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


/**********************************************************************************************************************/
/* Workshop Specific Styles */
/**********************************************************************************************************************/

.workshops-main {
  grid-column: main;
  padding: 1.25rem;
  min-block-size: 100vh;
  background-color: white;
}

.workshops-main::before {
    background-color: white;
}

.workshops-list {
    display: grid;
    /* Use pixel-based sizing to avoid rem-driven breakpoints changing min width */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 12px;
    padding-top: 2em;
    padding-bottom: 2em;
}

@media (width > 600px) {
    /* Explicit sizing by workshop type */
    .workshops-list .workshop-card.polylan,
    .workshops-list .workshop-card.arcanite,
    .workshops-list .workshop-card.jdrpoly,
    .workshops-list .workshop-card.tokamak {
        grid-row: span 2;  /* 2 rows */
        grid-column: span 2; /* 2 columns */
    }

    /* 1x2 (two columns, one row) */
    .workshops-list .workshop-card.dlai,
    .workshops-list .workshop-card.bsa,
    .workshops-list .workshop-card.sic,
    .workshops-list .workshop-card.gnugen,
    .workshops-list .workshop-card.polympiads,
    .workshops-list .workshop-card.epphil,
    .workshops-list .workshop-card.david-strutt,
    .workshops-list .workshop-card.camille,
    .workshops-list .workshop-card.polyjapan,
    .workshops-list .workshop-card.cctc,
    .workshops-list .workshop-card.jdrxludo,
    .workshops-list .workshop-card.alumni,
    .workshops-list .workshop-card.ludopoly,
    .workshops-list .workshop-card.musical,
    .workshops-list .workshop-card.mobots {
        grid-column: span 2;
    }


    .workshops-list .workshop-card.igem,
    .workshops-list .workshop-card.je,
    .workshops-list .workshop-card.escape-epfl,
    .workshops-list .workshop-card.francesco,
    .workshops-list .workshop-card.paolo-ricci,
    .workshops-list .workshop-card.loic1,
    .workshops-list .workshop-card.racing-team,
    .workshops-list .workshop-card.rock {
        grid-row: span 2;
    }
}


.workshop-card {
  border-radius: 0.4em;
  box-shadow: 0 2px 12px 0 rgba(60,60,120,0.1);
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s, background-size 0.5s ease;
    will-change: transform, opacity;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}


.workshop-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url("../workshops/logos-asso/placeholder.svg");
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: brightness(0.9);
}

.workshop-card:hover::before {
  transform: scale(1.3); /* smooth zoom */
  filter: brightness(0.4) blur(1px);
}

.workshop-card:hover {
  box-shadow: 0 8px 24px 0 rgba(60,60,120,0.18);
  transform: scale(1.03) translateY(-2px);
  color: white;
    will-change: transform, opacity;
}
.workshop-card:hover .workshop-name {
  transform: translateY(-1em);
}

.workshop-card:hover .workshop-title {
  opacity: 1;
  max-height: 100px;
}

/* Card content layout */
.workshop-card-title-row {
  display: flex;
  width: 100%;
  margin-bottom: 0.1em;
}
.workshop-name {
    font-size: 1.2em;
    font-weight: 800;
    text-decoration: none;
    margin: 0;
    transition: color 0.2s, transform 0.3s;
    text-align: left;
    position: relative;
    top: 25%;
    left: 0;
    z-index: 1;
    padding: 8px 18px;
    color: rgb(224, 224, 224);
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    width: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 100%);
    box-sizing: border-box;
    margin-bottom: 0.5em;
}

.workshop-date {
  font-size: 0.98em;
  font-weight: 600;
  margin-left: 1em;
  margin-right: 0;
  white-space: nowrap;
  transition: color 0.2s;
  text-align: right;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  -webkit-text-stroke: 1px rgba(0,0,0,0.7);
  z-index: 1;
  position: absolute;
  top: 5%;
  right: 5%;    
}
.workshop-title {
    opacity: 0;
    max-height: 0;
    font-size: 1.0em;
    text-align: center;
    margin: 0.7em 0 0.2em 0;
    transition: opacity 0.3s, max-height 0.3s, color 0.2s;
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    width: 80%;
    pointer-events: none;
    z-index: 1;
}

.workshop-card.bsa::before {
  background-image: url("../workshops/images/bsa-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.david-strutt::before {
  background-image: url("../workshops/images/david-strutt-lecture.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.dlai::before {
  background-image: url("../workshops/images/dlai-workshop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.epphil::before {
  background-image: url("../workshops/images/epphil-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.escape-epfl::before {
  background-image: url("../workshops/images/escapepfl-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.francesco::before {
  background-image: url("../workshops/images/francesco-mondada-lecture.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.frequence-banane::before {
  background-image: url("../workshops/images/frequence-banane-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.genorobotics::before {
  background-image: url("../workshops/images/genorobotics-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.gnugen::before {
  background-image: url("../workshops/images/gnugen-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.igem::before {
  background-image: url("../workshops/images/igem-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.pierre::before {
  background-image: url("../workshops/images/pierre-dilembourg-lecture.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.je::before {
  background-image: url("../workshops/images/je-workshop.png");
  background-size: 107% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.loic1::before {
  background-image: url("../workshops/images/loic-delineau-workshop-1.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.loic2::before {
  background-image: url("../workshops/images/loic-delineau-workshop-2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.polylan::before {
  background-image: url("../workshops/images/polyLAN-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.polympiads::before {
  background-image: url("../workshops/images/polympiads-workshop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.sic::before {
  background-image: url("../workshops/images/sic-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.zeg::before {
  background-image: url("../workshops/images/zeg-workshop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.paolo-ricci::before {  
  background-image: url("../workshops/images/paolo-ricci-lecture.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.polyjapan::before {  
  background-image: url("../workshops/images/polyjapan-workshop.png");
  background-size: 90%;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.clic::before {
  background-image: url("../workshops/images/clic-workshop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.unipoly::before {
  background-image: url("../workshops/images/unipoly-workshop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.camille::before {
  background-image: url("../workshops/images/camille-goemans-lecture.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left;
}

.workshop-card.gamestar::before {
  background-image: url("../workshops/images/gamestar-workshop.png");
  background-size: 260px 240px;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.jdrpoly::before {
  background-image: url("../workshops/images/jdrpoly-workshop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 20% 50%;
}

.workshop-card.arcanite::before {
  background-image: url("../workshops/images/arcanite-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 10% 50%;
}

.workshop-card.cctc::before {
  background-image: url("../workshops/images/cctc-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.start::before {
  background-image: url("../workshops/images/start-workshop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.yves::before {
  background-image: url("../workshops/images/yves-lecture.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.racing-team::before {
  background-image: url("../workshops/images/racing-team-workshop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.clement::before {
  background-image: url("../workshops/images/clement-lecture.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.tokamak::before {
  background-image: url("../workshops/images/tokamak-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.jdrxludo::before {
  background-image: url("../workshops/images/jdrxludo-workshop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.workshop-card.esther::before {
  background-image: url("../workshops/images/esther-workshop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; 
}

.workshop-card.alumni::before {
  background-image: url("../workshops/images/alumni-workshop.png");
  background-size: 90%;
  background-repeat: no-repeat;
  background-position: center; 
}

.workshop-card.orientation::before {
  background-image: url("../workshops/images/orientation-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; 
}

.workshop-card.ludopoly::before {
  background-image: url("../workshops/images/ludopoly-workshop.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; 
}

.workshop-card.archi::before {
  background-image: url("../workshops/images/archi-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; 
}

.workshop-card.montagne::before {
  background-image: url("../workshops/images/montagne-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; 
}

.workshop-card.rock::before {
  background-image: url("../workshops/images/rock-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; 
}

.workshop-card.musical::before {
  background-image: url("../workshops/images/musical-workshop.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; 
}

.workshop-card.mobots::before {
  background-image: url("../workshops/images/mobots-workshop.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; 
}

/* Hidden inline description that is only used for the modal */
.workshop-description[hidden] {
    display: none !important;
}

.workshop-description-modal {
    margin-top: 1rem;
    color: #333;
}
.workshop-description-modal p {
    margin: 0.25rem 0 0;
    line-height: 1.5;
}

.workshop-modal-name {
    color: #515582;
}

.workshop-modal-title {
    color: #515582;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* semi-transparent backdrop */
  justify-content: center;
  align-items: center;
}

.modal-content {
    background: #fff;
    opacity: 0;
    border-radius: 1em;
    width: min(900px, 92vw);
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-40px);
    animation: fadeIn 0.8s cubic-bezier(.4,0,.2,1) 0.2s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  height: 180px;
  width: 100%;
  background-size:cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0.7em 0.7em 0 0;
  flex: 0 0 300px;
}


.modal-body {
    padding: 2em;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0; /* allow flex child to shrink for scrolling */
}

/* Modal floating link icon */
.modal-link-icon {
    position: absolute;
    top: 1em;
    left: 1em;
    z-index: 2;
    background: #444669;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    font-size: 1.5em;
}

.modal-location-icon {
    z-index: 2;
    background: #444669;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    font-size: 1.5em;
}

.modal-location-text {
    color: var(--primary);
    font-size: 1.8rem;
    margin-left: 10px;

}


.modal-link-icon:hover {
    background: #6368A2;
    color: #fff;
    box-shadow: 0 4px 16px rgba(60,60,120,0.18);
}
.modal-link-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    color: inherit;
}

/* Modal close button styled like modal-link-icon */
.close-btn {
    position: absolute;
    top: 1em;
    right: 1em;
    z-index: 2;
    background: #444669;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    cursor: pointer;
}
.close-btn:hover {
    background: #6368A2;
    color: #fff;
    box-shadow: 0 4px 16px rgba(60,60,120,0.18);
}
.close-btn svg {
    width: 24px;
    height: 24px;
    color: inherit;
    display: block;
}


.section-footer {
    display: flex;
    justify-content: space-evenly;
    padding: 4% 5% 4% 5%;
    margin-top: 5em;
}

/* Ensure footer links align text vertically with their circular icons */
.section-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.2;
    color: white;
}

.section-footer .footer-contact-icon {
    flex: 0 0 40px; /* prevent shrinking and keep fixed circle size */
    width: 40px;
    height: 40px;
}

.section-footer a svg {
    display: block; /* avoid baseline whitespace shifting vertical centering */
}

.footer-div {
    padding: 2% 2% 2% 2%;
    min-width: 260px;
}

.footer-div a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
    margin: .6rem 0;
}

.footer-contact-icon {
    background: #444669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* smaller */
    height: 40px; /* smaller */
    border-radius: 50%;
    margin-right: .5em;
    transition: .15s ease-in-out background-color;
}

.footer-div-title {
    color: var(--headings);
    font-weight: 700;
    margin-bottom: 2.9rem; /* more space to separate */
    font-size: 2.1rem; /* a bit bigger */
    text-align: left; /* centered */
}

.footer-div a:hover .footer-contact-icon {
    background: #5a5c86;
}

.footer-div a svg {
    color: white;
}

@media (max-width: 700px) {
    .section-footer {
        align-items: center;
        flex-direction: column;
        gap: 1.2rem;
    }
}


.workshop-schedule {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 600px;
  margin-top: 2rem;
}

.schedule-day {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.day-label {
  width: 160px;
  color: var(--primary);
  font-size: 1.4rem;
}

.timeline {
  position: relative;
  flex: 1;
  height: 4px;
  background: var(--line-color, #ccc);
  border-radius: 2px;
}

.timeline .highlight {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--primary-dark);
  border-radius: 2px;
}

.dot-wrapper {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ccc;
  border: 3px solid var(--line-color, #ccc);
  transition: 0.2s;
}

.dot.active {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.hour-label {
  font-size: 0.7em;
  color: white;
  white-space: nowrap;
  position: absolute;
  top: 10%;
  left: 25%;
}
