html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #191931;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    min-width: 100vw;
    overflow-x: hidden;
}

.anakron-content, .anakron-content * {
    font-family: 'Montserrat', Arial, sans-serif !important;
    box-sizing: border-box;
}

.anakron-content {
    background: #fff;
    min-height: 100vh;
    min-width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* === ANAKRON NAVBAR STYLES (Fixed Hamburger/Close Button Visibility) === */
header {
    background: #161642;
    box-shadow: 0 2px 12px 0 rgba(22, 22, 66, 0.08);
    width: 100vw;
    overflow-x: hidden;
    position: relative;
    z-index: 102;
}

.anakron-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8em 6vw 0.8em 2vw;
    background: #161642;
    position: relative;
    z-index: 104;
    min-height: 66px;
}

.anakron-logo-title {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    flex: 1;
}

.anakron-nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
}

.anakron-site-title {
    font-size: 1.48rem;
    font-weight: 700;
    color: #ffe457;
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    line-height: 1.15;
    display: block;
    padding-right: 60px; /* Always leave space for close btn */
    box-sizing: border-box;
}

/* Hamburger / Close Button */
.anakron-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    z-index: 1301;
    position: absolute;
    top: 13px;
    right: 16px;
    box-sizing: border-box;
    transition: right 0.25s, left 0.25s, top 0.25s, width 0.25s, height 0.25s;
}
.anakron-hamburger span {
    display: block;
    width: 26px;
    height: 4px;
    margin: 4px 0;
    background: #ffe457;
    border-radius: 2.5px;
    transition: 0.3s;
}
.anakron-hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.anakron-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.anakron-hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* NAV LINKS - DESKTOP */
.anakron-nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
    transition: none;
}
.anakron-nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.13rem;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
}
.anakron-nav-links li a:hover,
.anakron-nav-links li a:focus {
    color: #ffe457;
}
.anakron-nav-links li a::after {
    content: "";
    display: block;
    width: 0%;
    height: 2.5px;
    background: linear-gradient(90deg, #ffe457 0%, #1c3144 90%);
    transition: width 0.26s;
    margin-top: 2px;
}
.anakron-nav-links li a:hover::after,
.anakron-nav-links li a:focus::after {
    width: 100%;
}

/* --- MOBILE STYLES --- */
@media (max-width: 900px) {
    .anakron-navbar {
        flex-direction: row;
        align-items: center;
        padding: 0.7em 2vw 0.7em 2vw;
        min-height: 60px;
    }
    .anakron-logo-title {
        flex: 1 1 0;
        min-width: 0;
        max-width: 73vw;
        overflow: hidden;
        white-space: normal;
    }
    .anakron-site-title {
        font-size: 1.05rem;
        max-width: 56vw;
        padding-right: 58px;
    }
    .anakron-hamburger {
        display: flex;
        position: absolute;
        top: 13px;
        right: 13px;
        width: 42px;
        height: 42px;
    }
    /* When menu is open, force close button fixed and away from edge */
    .anakron-nav-links.open ~ .anakron-hamburger,
    .anakron-hamburger.active {
        position: fixed !important;
        top: 18px !important;
        right: 18px !important;
        left: auto !important;
        width: 44px !important;
        height: 44px !important;
        z-index: 1501 !important;
        background: none;
        box-sizing: border-box;
    }
    .anakron-hamburger span {
        width: 26px;
        margin: 4px 0;
    }
    .anakron-nav-links {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background: #161642;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        box-shadow: 0 10px 20px #19193112;
        z-index: 1200;
        display: none;
        padding: 48px 0 32px 0;
        gap: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s;
        box-sizing: border-box;
    }
    .anakron-nav-links.open {
        display: flex !important;
        opacity: 1;
        pointer-events: auto;
        animation: fadeInDown 0.23s;
    }
    .anakron-nav-links li {
        width: 100vw;
        padding: 18px 0 18px 0;
        text-align: center;
    }
    .anakron-nav-logo {
        width: 40px;
        height: 40px;
        margin-right: 6px;
    }
}

@media (max-width: 600px) {
    .anakron-site-title {
        font-size: 0.98rem;
        max-width: 47vw;
        padding-right: 47px;
    }
    .anakron-logo-title {
        gap: 7px;
    }
    .anakron-nav-logo {
        width: 32px;
        height: 32px;
        margin-right: 5px;
    }
    .anakron-hamburger {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 6px;
    }
    .anakron-hamburger.active,
    .anakron-nav-links.open ~ .anakron-hamburger {
        top: 13px !important;
        right: 10px !important;
        width: 38px !important;
        height: 38px !important;
    }
}

/* Animation for mobile menu */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-18px);}
    100% { opacity: 1; transform: translateY(0);}
}

/* =========================
   HERO / BANNER STYLES
   ========================= */

.banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: clamp(360px, 56vh, 640px); /* responsive height */
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* Event carousel slides */
.banner-slides,
.banner-slide,
.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner-slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
  z-index: 0;
}

.banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.banner-img {
  object-fit: cover;
  object-position: 50% 45%; /* tweak if needed */
  transform: translateZ(0);
}

/* Removed the blue overlay completely */
.banner::after {
  content: none; /* disables previous overlay tint */
}

/* ======================
   Overlay (desktop view)
   ====================== */
.banner-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55); /* simple semi-transparent black for contrast */
  padding: clamp(16px, 3.5vw, 36px) clamp(18px, 6vw, 64px);
  border-radius: 28px;
  box-shadow: 0 6px 36px 0 rgba(0, 0, 0, 0.25);
  text-align: center;
  color: #ffe457;
  width: min(92vw, 820px);
}

.banner-overlay h1 {
  margin: 0 0 12px 0;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: clamp(1.6rem, 5.5vw, 3rem);
  line-height: 1.1;
}

.banner-overlay p {
  margin: 0;
  color: #ffffff;
  font-weight: 500;
  font-size: clamp(0.98rem, 2.9vw, 1.2rem);
  line-height: 1.45;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(8, 8, 25, 0.58);
  color: #ffe457;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.banner-arrow:hover,
.banner-arrow:focus-visible {
  background: rgba(8, 8, 25, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.banner-arrow-prev { left: clamp(10px, 2vw, 28px); }
.banner-arrow-next { right: clamp(10px, 2vw, 28px); }

.banner-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.banner-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.banner-dot.is-active {
  background: #ffe457;
  transform: scale(1.16);
}

/* ======================
   Mobile adjustments
   ====================== */
@media (max-width: 900px) {
  .banner {
    height: clamp(380px, 64vh, 560px);
  }
  .banner-overlay {
    display: none !important; /* hide overlay on mobile */
  }
  .banner-img {
    object-position: 50% 35%;
  }
}

/* Optional: limit max height on ultra-wide screens */
@media (min-width: 1400px) {
  .banner {
    max-height: 70vh;
  }
}

/* Accessibility: reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .banner-img { transform: none; }
  .banner-slide { transition: none; }
}

.footer-links .admin-link {
  opacity: 0.52;
  font-size: 0.82rem;
}
.footer-links .admin-link:hover,
.footer-links .admin-link:focus-visible { opacity: 1; }

/* DESCRIPTION */
.description {
  max-width: 880px;
  margin: 44px auto 28px auto;
  background: rgba(27, 29, 51, 0.98);
  border-radius: 16px;
  box-shadow: 0 3px 24px 0 #ffe45719;
  padding: 32px 32px;
  text-align: center;
  transition: all 0.25s ease-in-out;
}

.description h2 {
  color: #ffe457;
  margin-bottom: 14px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.description p {
  color: #fff;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 400;
}

/* ==========================
   Mobile / Tablet Adjustments
   ========================== */
@media (max-width: 900px) {
  .description {
    /* Give breathing room on both sides */
    margin: 32px clamp(16px, 5vw, 28px);

    /* Softer padding similar to Members section */
    padding: clamp(20px, 5vw, 28px);

    /* Slightly larger rounding for mobile */
    border-radius: 18px;

    /* Prevent card from touching viewport edges */
    max-width: none;
  }

  .description h2 {
    font-size: clamp(1.25rem, 5vw, 1.45rem);
    margin-bottom: 12px;
  }

  .description p {
    font-size: clamp(1rem, 4.2vw, 1.12rem);
    line-height: 1.55;
  }
}

/* ==========================
   Ultra Small Devices
   ========================== */
@media (max-width: 360px) {
  .description {
    margin-left: 12px;
    margin-right: 12px;
    padding: 18px;
    border-radius: 14px;
  }
}

/* GALLERY */
.gallery-section {
    max-width: 1020px;
    margin: 28px auto 34px auto;
    padding: 0 12px;
}
.gallery {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.gallery-item {
    background: #161642e6;
    border-radius: 18px;
    box-shadow: 0 6px 24px 0 #ffe45715;
    overflow: hidden;
    width: 260px;
    max-width: 94vw;
    text-align: center;
    margin-bottom: 22px;
    transition: transform 0.22s, box-shadow 0.22s;
    margin-left: auto;
    margin-right: auto;
}
.gallery-item:hover {
    transform: translateY(-7px) scale(1.045);
    box-shadow: 0 12px 36px 0 #ffe45736;
}
.gallery-item img {
    width: 100%;
    height: 164px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
.gallery-caption {
    background: #ffe457;
    color: #232244;
    font-weight: 700;
    padding: 12px 0;
    font-size: 1.07rem;
    letter-spacing: 0.4px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

/*MEET OUR MEMBERS*/
/* MODAL Styles (ONLY affects the modal, not rest of your layout) */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(35,34,68, 0.92);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background: #232244;
    border-radius: 22px;
    padding: 0 0 24px 0;
    box-shadow: 0 8px 56px #ffe45744;
    max-width: 700px;
    width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-img {
    display: block;
    max-width: 88vw;
    max-height: 60vh;
    width: auto;
    height: auto;
    border-radius: 20px 20px 0 0;
    margin: 0;
    background: #22223a;
    box-shadow: 0 2px 36px #19193170;
}

.modal-caption {
    color: #ffe457;
    font-size: 1.2rem;
    margin: 20px 0 0 0;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    color: #ffe457;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    padding: 0 10px;
    transition: color 0.2s;
}
.modal-close:hover { color: #fff; }

@media (max-width: 700px) {
    .gallery-item {
        width: 97vw;
    }
    .modal-content {
        max-width: 99vw;
        width: 99vw;
        max-height: 96vh;
        border-radius: 11px;
        padding-bottom: 10px;
    }
    .modal-img {
        max-width: 97vw;
        max-height: 45vh;
        border-radius: 11px 11px 0 0;
    }
    .modal-caption {
        font-size: 1rem;
        margin: 12px 0 0 0;
    }
    .modal-close {
        top: 3px;
        right: 6px;
        font-size: 2rem;
    }
}

/* NEWS SECTION */
.news-section {
    background: #22223a;
    max-width: 1060px;
    margin: 36px auto 42px auto;
    padding: 32px 22px 34px 22px;
    border-radius: 20px;
    box-shadow: 0 3px 18px 0 #ffe45724;
}
.news-section h2 {
    color: #ffe457;
    text-align: center;
    font-size: 1.32rem;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}
.news-list {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
}
.news-card-link {
    display: flex;
    max-width: 320px;
    min-width: 240px;
    flex: 1 1 300px;
    color: inherit;
    text-decoration: none !important;
}
.news-card-link *,
.news-card-link:hover,
.news-card-link:focus,
.news-card-link:visited {
    text-decoration: none !important;
}
.news-card {
    background: #191931e8;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 12px 0 #ffe45718;
    padding: 24px 22px 18px 22px;
    margin: 0;
    width: 100%;
    transition: transform 0.18s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.news-card-image {
    width: calc(100% + 44px);
    height: 165px;
    margin: -24px -22px 18px;
    border-radius: 14px 14px 0 0;
    object-fit: cover;
}
.news-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 30px 0 #ffe45735;
}
.news-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffe457;
    font-size: 1.09rem;
}
.news-card p {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 10px 0;
}
.news-date {
    color: #ffe457;
    font-size: 0.93rem;
    font-weight: 700;
    margin-top: auto;
    align-self: flex-end;
}
.news-read-more {
    margin-top: 12px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

/* FOOTER */
footer {
    background: #161642;
    padding: 22px 0 10px 0;
    text-align: center;
    color: #ffe457;
    font-size: 1rem;
    border-top: 2px solid #ffe45735;
    margin-top: 38px;
    width: 100vw;
    position: relative;
    left: 0;
    bottom: 0;
}
.footer-links {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.footer-links a {
    color: #ffe457;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s;
    display: inline-block;
    margin: 0 10px;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-credit {
    color: #fff;
    font-size: 0.97rem;
    margin-top: 6px;
    font-weight: 400;
}
@media (max-width: 700px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .footer-links a {
        margin: 4px 0;
    }
}

/* ==== MEET OUR MEMBERS ==== */
.members-section {
    max-width: 1020px;
    margin: 48px auto 24px auto;
    padding: 0 14px;
    text-align: center;
}
.members-section h2 {
    background: #232244;
    padding: 13px 32px;
    border-radius: 13px;
    color: #ffe457;
    margin-bottom: 18px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 3px 16px #ffe45718;
}
.members-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.members-carousel {
    position: relative;
    width: 100%;
    height: 370px;
    min-height: 370px;
}
.member-card {
    position: absolute;
    left: 50%;
    top: 0;
    width: 350px;
    max-width: 94vw;
    min-height: 320px;
    background: #838396;
    border-radius: 28px;
    padding: 18px 12px 12px 12px;
    box-shadow: 0 4px 18px #ffe45710;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    border: 2.5px solid transparent;
    color: #fff;
    z-index: 1;
    display: flex;
    transform: translate(-50%, 0) scale(0.93);
    transition: 
        transform 0.5s cubic-bezier(.66,0,.34,1), 
        opacity 0.5s cubic-bezier(.66,0,.34,1),
        background 0.3s, 
        color 0.3s, 
        border 0.2s, 
        box-shadow 0.3s;
}
.member-card[data-pos="center"] {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1.07);
    border-color: #ffe457;
    z-index: 3;
    box-shadow: 0 8px 32px #ffe45735;
    background: #232244;
    color: #ffe457;
}
.member-card[data-pos="left"] {
    opacity: 0.7;
    pointer-events: auto;
    z-index: 2;
    transform: translate(calc(-50% - 380px), 0) scale(0.97);
    background: #838396;
    color: #fff;
}
.member-card[data-pos="right"] {
    opacity: 0.7;
    pointer-events: auto;
    z-index: 2;
    transform: translate(calc(-50% + 380px), 0) scale(0.97);
    background: #838396;
    color: #fff;
}
.member-card:not([data-pos="center"]):not([data-pos="left"]):not([data-pos="right"]) {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, 0) scale(0.93);
}
.member-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffe457;
    background: #fff;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px #ffe45738;
}
.member-name {
    color: inherit;
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.member-role {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    opacity: 0.90;
}
.member-card[data-pos="center"] .member-name,
.member-card[data-pos="center"] .member-role {
    color: #ffe457;
    opacity: 1;
}
/* Carousel Buttons */
.carousel-btn {
    background: #ffe457;
    color: #232244;
    border: none;
    font-size: 2.1rem;
    width: 54px;
    height: 54px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 22px #ffe45733;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    outline: none;
    border: 0;
}
.carousel-btn.prev { left: -70px; }
.carousel-btn.next { right: -70px; }
.carousel-btn:active, .carousel-btn:focus { outline: none; }
.carousel-btn:hover {
    background: #232244;
    color: #ffe457;
}
/* ==== MOBILE FIX ==== */
@media (max-width: 900px) {
    .members-carousel {
        min-height: 260px;
        height: 300px;
    }
    .member-card {
        width: 90vw;
        min-width: 90vw;
        max-width: 90vw;
        border-radius: 18px;
        padding: 12px 0 10px 0;
        left: 50%;
        transform: translate(-50%, 0) scale(0.95);
        transition: transform 0.45s cubic-bezier(.66,0,.34,1), opacity 0.45s cubic-bezier(.66,0,.34,1), background 0.3s, color 0.3s, border 0.2s, box-shadow 0.3s;
    }
    .member-card img {
        width: 110px;
        height: 110px;
        border-width: 4px;
        margin-bottom: 8px;
    }
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
        top: 50%;
        left: unset;
        right: unset;
        transform: translateY(-50%);
    }
    .carousel-btn.prev {
        left: 10px !important;
        right: unset !important;
    }
    .carousel-btn.next {
        right: 10px !important;
        left: unset !important;
    }
    .member-card[data-pos="left"], 
    .member-card[data-pos="right"] {
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: 1 !important;
        transform: translate(-50%, 0) scale(0.95) !important;
    }
    .member-card[data-pos="center"] {
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 3 !important;
        transform: translate(-50%, 0) scale(1.05) !important;
    }
}

/* ==== MODAL STYLES ==== */
.modal {
    display: none;
    position: fixed;
    z-index: 101;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(34,34,70,0.92);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    animation: fadeInModal 0.3s;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background: #232244;
    border-radius: 24px;
    box-shadow: 0 6px 32px #ffe45744;
    padding: 36px 36px 24px 36px;   /* Add side/top padding */
    max-width: 900px;
    width: 92vw;
    margin: 36px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;               /* Ensure nothing spills out */
}
.modal-img {
    width: 100%;
    max-width: 700px;
    max-height: 60vh;
    border-radius: 16px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 24px #ffe45738;
    background: #232244;
}
.modal-close {
    position: absolute;
    right: 24px;
    top: 18px;
    background: none;
    border: none;
    color: #ffe457;
    font-size: 2.1rem;
    font-weight: 900;
    cursor: pointer;
    z-index: 10;
    outline: none;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #fff;
}
.modal-caption {
    background: #232244;
    color: #ffe457;
    text-align: center;
    margin-top: 16px;
    padding: 16px 26px 4px 26px;
    border-radius: 0 0 18px 18px;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.5;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 24px #ffe45722;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 700px) {
    .modal-content {
        max-width: 98vw;
        padding: 14vw 2vw 12vw 2vw;
    }
    .modal-img {
        max-width: 96vw;
        max-height: 42vh;
        border-radius: 10px;
    }
    .modal-caption {
        padding: 11px 6vw 4px 6vw;
        font-size: 1.07rem;
    }
}

/* ==== PARTICIPANT PROFILE MODAL (v1.1.1) ==== */
.participant-modal {
    box-sizing: border-box;
    z-index: 10000;
    padding: 24px;
    overflow: hidden;
    background: rgba(12, 12, 31, 0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.participant-modal-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    width: min(980px, 100%);
    height: min(680px, calc(100vh - 48px));
    height: min(680px, calc(100dvh - 48px));
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 228, 87, 0.58);
    border-radius: 26px;
    background: #fbfaf6;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}
.participant-modal-media {
    min-width: 0;
    min-height: 0;
    padding: 22px;
    background: linear-gradient(145deg, #171744, #242452);
}
.participant-modal-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 17px;
    object-fit: contain;
    object-position: center;
    background: #101028;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}
.participant-modal-details {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 64px 46px 42px;
    color: #292940;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: #b99a20 #ece9df;
}
.participant-modal-details::-webkit-scrollbar { width: 9px; }
.participant-modal-details::-webkit-scrollbar-track { background: #ece9df; }
.participant-modal-details::-webkit-scrollbar-thumb { border-radius: 10px; background: #b99a20; }
.participant-modal-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #8a7000;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.participant-modal-details h2 {
    margin: 0;
    color: #171744;
    font-size: clamp(1.9rem, 4vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}
.participant-modal-role {
    margin-top: 10px;
    color: #806900;
    font-size: 1.08rem;
    font-weight: 800;
}
.participant-modal-divider {
    width: 56px;
    height: 3px;
    margin: 25px 0 23px;
    border-radius: 4px;
    background: #d4af37;
}
.participant-modal-bio {
    color: #48485d;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.75;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.participant-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #171744;
    color: #ffe457;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.22);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.participant-modal-close:hover,
.participant-modal-close:focus-visible {
    transform: scale(1.06);
    background: #ffe457;
    color: #171744;
    outline: 3px solid rgba(255, 228, 87, 0.35);
}

@media (max-width: 720px) {
    .participant-modal { padding: 12px; }
    .participant-modal-card {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(190px, 38%) minmax(0, 62%);
        width: 100%;
        height: calc(100vh - 24px);
        height: calc(100dvh - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 20px;
    }
    .participant-modal-media { padding: 12px; }
    .participant-modal-media img { border-radius: 12px; }
    .participant-modal-details {
        padding: 29px 24px 34px;
        text-align: left;
    }
    .participant-modal-details h2 { font-size: clamp(1.65rem, 8vw, 2.1rem); }
    .participant-modal-role { font-size: 1rem; }
    .participant-modal-divider { margin: 19px 0 18px; }
    .participant-modal-bio { font-size: 1rem; line-height: 1.67; }
    .participant-modal-close {
        top: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        border: 2px solid rgba(255, 228, 87, 0.75);
    }
}

@media (max-width: 390px) {
    .participant-modal-card { grid-template-rows: minmax(170px, 34%) minmax(0, 66%); }
    .participant-modal-details { padding: 24px 19px 29px; }
}
