/**********************************************************************************************************************/
/* 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;
}

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

.lead-link::after {
    background: var(--headings);
    transition: .2s ease-in-out width;
    border-radius: 20em;
}

.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-color: 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-color: 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);
        }
    }



/**********************************************************************************************************************/
/* Sponsor Specific Styles */
/**********************************************************************************************************************/

.sponsors-list {
    display: flex;
    background-color: white;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3.5rem;
    padding: 4em 1em;
}

.sponsors-list::before {
    background-color: white;
}

.sponsor-card {
  background: none;
  border-radius: 1.2rem;
  box-shadow: none;
  padding: 2rem 2rem 1.6rem 2rem; /* slightly larger padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 320px;
  min-height: 260px;
  min-width: 400px;
  max-width: 600px;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeIn 0.5s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: 0.5s;
}

.sponsor-card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  margin-top: 2.5em;
  width: 100%;
  padding-left: 8em;
  padding-right: 8em;
}

@media (max-width: 700px) {
  .sponsor-card-row {
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
    align-items: center;
  }
}

/* Fallback when user prefers reduced motion or animations are unavailable */
@media (prefers-reduced-motion: reduce) {
    .sponsor-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.sponsor-row-separator {
    width: 90%;
    height: 3px;
    background-color: var(--separator);
    opacity: 0.5;
    border-radius: 25em;
    margin-top: 2em;
}



/* Flex row for sponsor tags */
.sponsor-tags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em 0.5em;
  margin-bottom: 0.7rem;
    width: 100%; /* let tags span the card width */
}


.sponsor-logo {
    width: 200px; /* was 180px */
    height: 200px; /* was 180px */
  object-fit: contain;
    margin-bottom: 1.4rem;
    margin-top: 0.3rem;
  transition: .2s ease-in-out transform;
}

.sponsor-logo:hover {
    transform: scale(1.1);
}

.sponsor-tag {
  display: inline-flex;
  align-items: center;
  background: var(--tag-color, #e0e0e0);
  color: #fff;
  font-size: 1.05rem; /* was 0.93rem */
  font-weight: 600;
  padding: 0.3em 1.1em 0.3em 0.9em; /* slightly larger */
  border-radius: 999px;
  margin-bottom: 0.2rem;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.04);
  user-select: none;
  transition: background 0.2s;
  position: relative;
}

.sponsor-tag::before {
  content: "";
  display: inline-block;
  width: 0.8em; /* was 0.7em */
  height: 0.8em; /* was 0.7em */
  border-radius: 50%;
  background: #888;
  margin-right: 0.6em;
  margin-left: -0.4em;
  flex-shrink: 0;
}

.sponsor-tag--bee {
  background: #FFC105 ;
}
.sponsor-tag--bee::before {
  background: #FFF7AE ;
}

.sponsor-tag--week {
  background: var(--primary-light) ;
}
.sponsor-tag--week::before {
  background: var(--primary-dark) ;
}

.sponsor-tag--peb {
  background: var(--secondary) ;
}
.sponsor-tag--peb::before {
  background: var(--secondary-bg) ;
}


.sponsor-desc {
  color: #444;
  text-align: center;
  font-size: 1.5rem; 
  margin-top: 0.4rem;
  opacity: 0.85;
}
.readmore-short {
    display: inline;
}

.readmore-btn {
    display: inline-block;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s;
    font-style: italic;
}
.readmore-btn:hover {
    color: var(--headings, #434569);
}

/* Thin divider between tags and description */
.sponsor-tags-row + .sponsor-desc {
    border-top: 1px solid var(--separator);
    padding-top: 0.8rem;
}

@media (max-width: 700px) {
  .sponsors-list {
    flex-direction: column;
    align-items: center;
    gap: 1.8rem; /* slightly more to fit larger cards */
  }
  .sponsor-card {
        min-width: 260px;
        max-width: 92vw;
  }
    .sponsor-logo {
        width: 180px;
        height: 180px;
    }
}

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

/* 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 {
        flex-direction: column;
        gap: 1.2rem;
    }
}