:root {
    --esn-cyan: #00aeef;
    --esn-magenta: #ec008c;
    --esn-orange: #f47b20;
    --esn-green: #7ac143;
    --esn-blue: #2e3192;
    --bg-color: #f0f4fa;
    --text-color: #1a1c2e;
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(0, 0, 0, 0.08);
    --blue-gradient: linear-gradient(135deg, var(--esn-blue), var(--esn-cyan));

    /* Map Marker Colors */
    --marker-orange: #ff9800;
    /* Fügnerova */
    --marker-red: #f44336;
    /* Train station */
    --marker-purple: #9c27b0;
    /* Bus station */
    --marker-teal: #009688;
    /* Šaldovo náměstí */
    --marker-indigo: #3f51b5;
    /* Campus */
    --marker-yellow: #ffc107;
    /* Library */
    --marker-cyan: var(--esn-cyan);
    /* Březová */
    --marker-blue: var(--esn-blue);
    /* Lidové sady */
    --marker-magenta: var(--esn-magenta);
    /* Univerzitní koleje */
    --marker-green: var(--esn-green);
    /* Koleje */
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
    width: 100%;
}

/* Layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    /* Mobile performance optimization applied in media queries below */
}

/* Typography elements */
.gradient-text {
    background: linear-gradient(135deg, var(--esn-blue), var(--esn-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h1,
h2,
h3 {
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.auth-section {
    margin-left: 20px;
}

.nav-item {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    color: rgba(26, 28, 46, 0.75);
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    color: var(--esn-cyan);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--esn-cyan);
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    gap: 2px;
}

.nav-container>.lang-switch {
    margin-left: auto;
}

.lang-opt {
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    color: var(--esn-blue);
    opacity: 0.5;
}

.lang-opt:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.3);
}

.lang-opt.active {
    opacity: 1;
    background: #fff;
    color: var(--esn-cyan);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-sep {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--esn-blue);
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 18px;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: 0.4s ease-in-out;
    background: rgba(240, 244, 250, 0.97);
    z-index: 999;
    overflow-y: auto;
    max-height: 100dvh;
}

.mobile-nav .auth-section {
    width: 100% !important;
    text-align: center !important;
    margin-top: 2rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem !important;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.mobile-nav .auth-btn {
    padding: 12px 30px;
    background: var(--blue-gradient);
    color: white !important;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav .nav-item {
    font-size: 1.15rem;
    padding: 2px 0;
}

.mobile-nav .lang-switch {
    margin-top: 1rem;
    justify-content: center;
    align-self: center;
}

/* Layout and Hero section */
main {
    min-height: calc(100vh - 80px);
    /* header and footer offset */
    padding-top: 80px;
}

.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    padding-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(26, 28, 46, 0.7);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(26, 28, 46, 0.72);
    font-weight: 500;
    margin-bottom: 0;
    margin-top: 0.75rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 10rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--esn-cyan), var(--esn-blue));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 174, 239, 0.6);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Glass Buttons Enhancements */
.btn-primary.glass {
    background: linear-gradient(135deg, var(--esn-cyan), var(--esn-blue)) !important;
    color: #fff !important;
    opacity: 1 !important;
}

.btn-secondary.glass {
    background: #ffffff !important;
    color: var(--esn-blue) !important;
    opacity: 1 !important;
}

.btn-secondary.glass:hover {
    background: #f8f9fa !important;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.08;
    mix-blend-mode: multiply;
    user-select: none;
    pointer-events: none;
}

.map-attribution {
    position: absolute;
    bottom: 8px;
    right: 15px;
    font-size: 0.6rem;
    opacity: 0.3;
    color: var(--text-color);
    z-index: 5;
    pointer-events: none;
    user-select: none;
    font-weight: 500;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--esn-magenta);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
    opacity: 0.25;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--esn-cyan);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
    opacity: 0.25;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--esn-orange);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
    opacity: 0.15;
}

/* Page Headers for non-home pages */
.page-header {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 2rem 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-container {
    position: relative;
    z-index: 10;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.content-section {
    max-width: 1550px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    color: var(--esn-blue);
    font-weight: 500;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Content typography */
.text-content h2 {
    color: var(--esn-blue);
    margin: 2rem 0 1rem;
    font-size: 2rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: rgba(26, 28, 46, 0.8);
}

.text-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.text-content li {
    margin-bottom: 0.5rem;
    color: rgba(26, 28, 46, 0.8);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Navigation Collapse Breakpoint */
@media (max-width: 1450px) {

    .nav-links,
    .nav-container>.lang-switch,
    .nav-container>.auth-section {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        margin-top: 4rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    @media (max-width: 400px) {
        .container {
            padding-left: 10px;
            padding-right: 10px;
        }
    }

    .content-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile Scroll Performance Optimizations */
    .glass,
    .glass-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
        /* More opaque fallback */
    }

    /* Fix for navigation which should stay blurry */
    .navbar.glass {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(240, 244, 250, 0.85);
        /* Keep nav blurred */
    }

    .shape {
        animation: none !important;
        /* Disable expensive animations on scroll */
        filter: blur(40px);
        /* Reduce blur radius for performance */
        will-change: transform;
    }
}

/* ─── Stats Section ─────────────────────────────── */
.stats-section {
    padding-top: 0;
    padding-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    border-radius: 20px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--esn-cyan), var(--esn-magenta));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(26, 28, 46, 0.55);
    margin-top: 0.2rem;
    font-weight: 500;
}

/* Stats inside hero */
.hero-stats {
    margin-top: 3rem;
    position: relative;
    z-index: 10;
    /* Break out of hero-content max-width and center */
    width: min(1450px, calc(100vw - 4rem));
    margin-left: 50%;
    transform: translateX(-50%);
    /* Equal height blocks */
    align-items: stretch;
}

.hero-stats .stat-item {
    padding: 1.75rem 2rem;
    gap: 1.5rem;
    height: 100%;
}

.hero-stats .stat-icon {
    font-size: 3.8rem;
}

.hero-stats .stat-value {
    font-size: 1.4rem;
}

.hero-stats .stat-label {
    color: rgba(26, 28, 46, 0.6);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1.5rem;
    }
}

/* Partners grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 140px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.partner-card img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.partner-card:hover img {
    filter: grayscale(0%);
}

.partner-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(26, 28, 46, 0.6);
    text-align: center;
    letter-spacing: 0.03em;
}

.partners-note {
    margin-top: 3rem;
}

.partners-note p {
    font-size: 1.05rem;
    color: rgba(26, 28, 46, 0.75);
    line-height: 1.8;
    text-align: center;
}

/* ─── Instagram Feed Section ─────────────────────────────── */
.ig-section {
    padding-top: 2rem;
}

.ig-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ig-section-header h2 {
    font-size: 2.2rem;
}

.ig-handle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--esn-magenta);
    transition: all 0.3s ease;
}

.ig-handle:hover {
    background: rgba(236, 0, 140, 0.1);
    transform: translateY(-2px);
}

/* Loading state */
.ig-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem;
    color: rgba(26, 28, 46, 0.5);
}

.ig-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 174, 239, 0.2);
    border-top-color: var(--esn-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Carousel */
.ig-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ig-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
    padding: 20px 0;
    margin: -20px 0;
}

.ig-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card */
.ig-card {
    flex: 0 0 var(--card-width);
    min-width: var(--card-width);
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ig-card-inner {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ig-card:hover .ig-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.ig-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.ig-card-media {
    width: 100%;
    padding-top: 100%;
    /* 1:1 aspect ratio */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.03);
    position: relative;
}

.ig-placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.8;
}

.ig-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--esn-magenta);
}

.ig-card-info {
    padding: 0.85rem 1rem;
    flex: 1;
}

.ig-caption {
    font-size: 0.82rem;
    color: rgba(26, 28, 46, 0.75);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.ig-date {
    font-size: 0.72rem;
    color: rgba(26, 28, 46, 0.45);
    font-weight: 600;
}

/* Nav buttons */
.ig-nav {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--esn-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
}

.ig-nav:hover {
    background: rgba(0, 174, 239, 0.15);
    transform: scale(1.1);
}

/* Dots */
.ig-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.ig-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 28, 46, 0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.ig-dot.active {
    background: var(--esn-cyan);
    transform: scale(1.3);
}

/* Notice */
.ig-notice {
    font-size: 0.82rem;
    color: rgba(26, 28, 46, 0.5);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.2rem;
    border: 1px dashed rgba(0, 174, 239, 0.3);
    border-radius: 10px;
    background: rgba(0, 174, 239, 0.04);
}

.ig-notice code {
    font-family: monospace;
    background: rgba(0, 174, 239, 0.1);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

.ig-notice a {
    color: var(--esn-cyan);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .ig-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ig-carousel-wrapper {
        position: relative;
        padding: 0 10px;
    }

    .ig-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%) scale(0.85);
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .ig-nav:hover {
        transform: translateY(-50%) scale(0.95);
    }

    .ig-nav-prev {
        left: 5px;
    }

    .ig-nav-next {
        right: 5px;
    }

    .ig-card {
        padding: 0 10px;
    }

    .ig-viewport {
        border-radius: 12px;
    }
}

/* ─── Why Liberec Section ───────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.why-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--esn-cyan), var(--esn-magenta));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.why-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.35rem;
    color: var(--text-color);
}

.why-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(26, 28, 46, 0.75);
    margin: 0;
}

.cta-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.micro-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(26, 28, 46, 0.5);
}

.micro-note a {
    color: var(--esn-cyan);
    font-weight: 600;
    text-decoration: none;
}

.micro-note a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .why-card {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .why-icon {
        font-size: 3rem;
        margin-bottom: -0.5rem;
    }

    .why-content {
        text-align: center;
    }

    .why-content h3 {
        text-align: center;
    }

    .why-content p {
        text-align: center;
    }
}

/* ─── Team Sections (About Us) ───────────────────────── */
.team-section {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    align-items: stretch;
    /* Ensure all cards in a row have equal height */
}

.team-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    height: 100%;
    /* Fill the grid cell height */
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: #e0e0e0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.team-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    background: #fdfdfd;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    color: #cbd5e0;
}

.team-photo-placeholder .material-symbols-rounded {
    font-size: 60px;
    opacity: 0.8;
}

.team-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.team-info h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1a202c;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    height: 50px;
}

.team-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--esn-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.team-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #718096;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding-top: 1.2rem;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    margin-top: auto;
    /* Push e-mail to the very bottom of the card */
    overflow-wrap: anywhere;
    /* Ensure email never breaks the card */
    word-break: break-all;
}

.team-contact:hover {
    color: var(--esn-blue);
}

.team-contact .material-symbols-rounded {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Responsive Grid for Teams */
@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Hero Animated Greeting ────────────────────────── */
.hero-greeting {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(26, 28, 46, 0.72);
    margin-bottom: 0.8rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-greeting.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

@media (max-width: 768px) {
    .hero-greeting {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
}

/* ─── Premium About Us Styles ────────────────────────── */

/* Typography Helpers */
.display-3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--esn-blue);
}

.display-4 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(26, 28, 46, 0.8);
    margin-bottom: 1.5rem;
}

.section-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Page Header Overhaul */
.header-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: center;
}

.header-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
    color: rgba(26, 28, 46, 0.7);
    line-height: 1.6;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section Enhancements */
.about-section {
    padding: 8rem 0;
    background: radial-gradient(circle at top right, rgba(0, 174, 239, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(236, 0, 140, 0.05), transparent 40%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text {
    animation: slideInLeft 0.8s ease-out;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    animation: slideInRight 0.8s ease-out;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.about-feature-card {
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.about-feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--esn-blue);
}

.about-feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Values Section */
.values-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.section-header-centered {
    margin-bottom: 4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    padding: 3rem 2rem;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

/* Group Photo */
.team-group-photo-container img {
    display: block;
    max-height: 720px;
    object-fit: cover;
    width: 75%;
    object-position: center 70%;
    margin: auto;
}

/* Team Page Redesign */
.team-page-section {
    padding: 8rem 0;
}

.team-category {
    margin-bottom: 6rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 1.5em;
    background: var(--gradient-magenta);
    border-radius: 3px;
}

.team-card {
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-role {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.team-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--esn-blue);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.team-contact:hover {
    opacity: 0.7;
}

.former-boards {
    margin-top: 4rem;
    padding: 3rem;
    border-radius: 30px;
    background: rgba(0, 174, 239, 0.03);
}

.former-boards p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(26, 28, 46, 0.6);
}

/* Final CTA */
.final-cta {
    padding: 8rem 0;
    background: var(--esn-blue);
    color: white;
}

.cta-box {
    padding: 5rem 3rem;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-box h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Icon Gradients */
.icon-cyan {
    background: linear-gradient(135deg, var(--esn-cyan), #00d2ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-magenta {
    background: linear-gradient(135deg, var(--esn-magenta), #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-orange {
    background: linear-gradient(135deg, var(--esn-orange), #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-blue {
    background: linear-gradient(135deg, var(--esn-blue), #517fa4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text,
    .about-features {
        animation: none;
    }
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }
}

/* ─── Map Journey Refinements ────────────────────────── */

.map-label-marker {
    pointer-events: none !important;
}

.map-label-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(-50%);
}

.map-label-container .material-symbols-rounded {
    font-size: 20px;
    color: var(--esn-blue);
}

.map-label-text {
    font-weight: 600;
    font-size: 13px;
    color: var(--esn-dark);
}

.label-magenta .material-symbols-rounded {
    color: var(--esn-magenta);
}

/* Walking Time Badge in Map */
.map-time-badge {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 24px !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    pointer-events: auto !important;
    transform: translateX(-50%);
    position: absolute;
    bottom: 30px;
    left: 50%;
    white-space: nowrap;
}

.map-time-badge .material-symbols-rounded {
    color: var(--esn-cyan);
    font-size: 24px;
}

.map-time-badge .time-text {
    font-weight: 700;
    font-size: 14px;
    color: var(--esn-dark);
}

/* ─── Erasmus Student Hub Styles ──────────────────────── */

.sub-nav {
    position: sticky;
    top: 80px;
    /* Below the navbar */
    z-index: 900;
    padding: 1rem 0;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sub-nav-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sub-nav-item {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(26, 28, 46, 0.6);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.sub-nav-item:hover {
    color: var(--esn-blue);
    background: rgba(0, 174, 239, 0.08);
    transform: translateY(-1px);
}

.sub-nav-item.active {
    color: white;
    background: var(--esn-blue);
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

/* Handy Files Section */
.student-info-section {
    padding: 5rem 0;
    position: relative;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.file-card {
    padding: 3rem 2rem;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background: var(--glass-bg);
}

.file-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--esn-blue) !important;
}

.file-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--esn-blue), var(--esn-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.file-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.file-card p {
    font-size: 1rem;
    color: rgba(26, 28, 46, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

/* Limit to maximum 2 columns on large screens */
@media (min-width: 1200px) {
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Center the last item if it's alone on a row (odd number of items in 2-column layout) */
@media (min-width: 1200px) {
    .info-cards-grid> :last-child:nth-child(odd) {
        grid-column: 1 / span 2;
        justify-self: center;
        width: 100%;
        max-width: calc(50% - 1.5rem);
    }
}

.info-card {
    padding: 2.5rem;
    border-radius: 40px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background: var(--glass-bg);
    transition: all 0.3s ease;
}

.info-card ul {
    padding: 40px 0 40px 0;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 174, 239, 0.2) !important;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card-icon {
    font-size: 3rem;
}

.info-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--esn-blue);
}

.info-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.info-list li::before {
    content: 'chevron_right';
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(0, 174, 239, 0.1);
    color: var(--esn-blue);
}

.tip-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    background: rgba(236, 0, 140, 0.1);
    color: var(--esn-magenta);
    font-weight: 800;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .sub-nav {
        top: 70px;
    }

    .sub-nav-container {
        gap: 0.5rem;
    }

    .sub-nav-item {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
        white-space: nowrap;
    }

    .info-card {
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
    }

    .info-card ul {
        padding: 1.5rem 0;
        margin-bottom: auto;
    }

    .info-card .btn {
        width: 100%;
        margin-top: 1rem;
    }

    .student-info-section {
        padding: 6rem 0;
    }
}

/* ─── Animated Map Journey ────────────────────────── */

.map-journey-section {
    position: relative;
    width: 100%;
    overflow: clip;
    /* Fix for sticky clipping issues */
}

.map-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: clip;
    /* clip instead of hidden to preserve sticky context on mobile */
    z-index: 10;
}

#map-canvas {
    height: 100%;
    width: 100%;
    background: #f0f0f0;
}

.map-overlay-content {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 100;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.map-info-card {
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    pointer-events: auto;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.map-info-card .material-symbols-rounded {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.map-info-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.map-info-card p {
    font-size: 1.1rem;
    color: rgba(26, 28, 46, 0.7);
    margin-bottom: 1.5rem;
}

.map-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.map-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--esn-blue), var(--esn-magenta));
    transition: width 0.1s ease-out;
}

/* Journey Intro Overlay */
.journey-intro-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 100%;
    max-width: 800px;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
    padding: 0 20px;
}

.intro-content {
    padding: 4rem 3rem;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
}

.intro-content h2 {
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: bounce-hint 2s infinite;
}

.scroll-hint span {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce-hint {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-8px);}
    60% {transform: translateY(-4px);}
}

.map-scroll-spacer {
    height: 300vh;
    /* Determines how long the scroll animation feels */
    width: 100%;
}

/* Custom Map Marker Pulse */
.marker-pulse {
    width: 20px;
    height: 20px;
    background: var(--esn-blue);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(0, 174, 239, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 174, 239, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 174, 239, 0);
    }
}

/* ─── Map Journey Refinements ────────────────────────── */

.map-label-marker {
    pointer-events: none !important;
}

.map-label-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(-50%);
    min-width: 180px;
    justify-content: center;
}

.map-label-container.label-below {
    transform: translateY(80px);
    /* Move it below the point */
}

.map-label-container .material-symbols-rounded {
    font-size: 20px;
    color: var(--esn-blue);
}

.map-label-text {
    font-weight: 600;
    font-size: 13px;
    color: var(--esn-dark);
}

.label-magenta .material-symbols-rounded {
    color: var(--esn-magenta);
}

/* Walking Time Badge in Map */
.map-time-badge {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 24px !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    pointer-events: auto !important;
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.map-time-badge .material-symbols-rounded {
    color: var(--esn-cyan);
    font-size: 24px;
}

.map-time-badge .time-text {
    font-weight: 700;
    font-size: 14px;
    color: var(--esn-dark);
}

/* ─── Harcov Info Section ────────────────────────── */

#harcov-info {
    background: linear-gradient(to bottom, #ffffff, #f8f9ff);
    position: relative;
    overflow: hidden;
    padding-bottom: 5rem;
}

#harcov-info .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding-bottom: 5rem;
}

#harcov-info .info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 3rem 2.5rem;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

/* ─── Collapsible Sections (Mobile Only) ─── */
.collapsible-trigger {
    position: relative;
    transition: all 0.3s ease;
}

.collapsible-icon {
    display: none !important;
    font-size: 2rem;
    color: var(--esn-cyan);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .student-info-section.collapsible {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .collapsible-trigger {
        cursor: pointer;
        padding: 1.5rem 0;
        margin-bottom: 0 !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left !important;
    }

    .collapsible-trigger .section-header {
        text-align: left !important;
        margin-bottom: 0 !important;
    }

    .collapsible-trigger .section-desc {
        display: none; /* Hide description on mobile when closed? Or keep it? Let's hide to save space */
    }

    .collapsible-icon {
        display: block;
    }

    .collapsible-content {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .collapsible-content > .collapsible-inner {
        overflow: hidden;
    }

    .student-info-section.collapsible.active .collapsible-content {
        grid-template-rows: 1fr;
        padding-bottom: 2rem;
    }

    .student-info-section.collapsible.active .collapsible-icon {
        transform: rotate(180deg);
        color: var(--esn-magenta);
    }
    
    .student-info-section.collapsible.active .collapsible-trigger .section-desc {
        display: block;
        margin-top: 0.5rem;
    }
}

#harcov-info .info-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    border-color: var(--esn-blue) !important;
}

#harcov-info .info-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

#harcov-info .info-card h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--esn-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#harcov-info .info-card p {
    color: rgba(26, 28, 46, 0.7);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

#harcov-info .info-card ul {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

#harcov-info .info-card li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--esn-dark);
}

#harcov-info .info-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--esn-magenta);
    font-weight: 900;
}

.important-info {
    background: rgba(0, 174, 239, 0.03);
    padding: 4rem;
    border-radius: 50px;
    border: 1px dashed rgba(0, 174, 239, 0.2);
    margin-top: 2rem;
}

.important-info h3 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.important-info .info-grid {
    margin-bottom: 0;
}

.important-info .info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
}

@media (max-width: 768px) {
    .important-info {
        padding: 2.5rem 1.5rem;
    }

    #harcov-info .info-card {
        padding: 2rem 1.25rem;
    }
}

/* ─── Premium Dormitories Redesign ────────────────── */

.dorm-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.dorm-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dorm-hero:hover .dorm-hero-bg {
    transform: scale(1.05);
}

.dorm-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(26, 28, 46, 0.4) 0%,
            rgba(26, 28, 46, 0.8) 100%);
    z-index: 1;
}

.dorm-hero-container {
    position: relative;
    z-index: 2;
}

.dorm-hero-content h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 8vw, 5rem);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dorm-hero-content h1 .gradient-text {
    background: none;
    -webkit-text-fill-color: white;
}

.dorm-hero-content .tip-label {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dorm-hero-content .hero-subtitle {
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-address {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 2.5rem;
    border-radius: 100px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.hero-address .material-symbols-rounded {
    color: #fff;
    font-size: 1.4rem;
}

.hero-address:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.hero-stat-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.hero-stat-pill .material-symbols-rounded {
    color: white;
}

.hero-stat-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.hero-stat-pill .material-symbols-rounded {
    color: var(--esn-cyan);
}

/* Premium Info Grid */
.premium-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0 6rem;
}

.premium-info-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.premium-info-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 174, 239, 0.1);
}

.card-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.premium-info-card:hover .card-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.card-icon-box .material-symbols-rounded {
    font-size: 2rem;
    color: white;
}

.card-icon-box.cyan {
    background: linear-gradient(135deg, var(--esn-cyan), #00d2ff);
}

.card-icon-box.blue {
    background: linear-gradient(135deg, var(--esn-blue), #5055ff);
}

.card-icon-box.magenta {
    background: linear-gradient(135deg, var(--esn-magenta), #ff4db2);
}

.card-icon-box.orange {
    background: linear-gradient(135deg, var(--esn-orange), #ffaa4d);
}

.premium-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--esn-dark);
}

.premium-info-card p {
    color: rgba(26, 28, 46, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.card-footer-tip {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(26, 28, 46, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-footer-tip::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--esn-cyan);
    border-radius: 2px;
}

/* Important Info Box */
.important-info-box {
    padding: 4rem;
    border-radius: 50px;
    margin-top: 4rem;
}

.important-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.important-header .material-symbols-rounded {
    font-size: 3rem;
    background: rgba(236, 0, 140, 0.1);
    color: var(--esn-magenta);
    padding: 1rem;
    border-radius: 22px;
}

.important-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.important-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--esn-magenta);
}

.important-item p {
    color: rgba(26, 28, 46, 0.75);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .dorm-hero {
        height: auto;
        padding: 10rem 0 6rem;
    }

    .important-info-box {
        padding: 3rem 2rem;
        border-radius: 30px;
    }

    .important-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ─── Harcov Rooms Section ────────────────────────── */

#harcov-rooms {
    background: #fff;
    padding: 6rem 0;
}

#harcov-rooms .title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--esn-blue), var(--esn-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#harcov-rooms .subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(26, 28, 46, 0.6);
    max-width: 800px;
    margin: 0 auto 4rem;
}

.image-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

/* Limit to maximum 2 columns on large screens */
@media (min-width: 1200px) {
    .image-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Center the last item if it's alone on a row */
@media (min-width: 1200px) {
    .image-row> :last-child:nth-child(odd) {
        grid-column: 1 / span 2;
        justify-self: center;
        width: 100%;
        max-width: calc(50% - 1.25rem);
    }
}

.image-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-card:hover {
    transform: translateY(-10px);
}

.image-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-card figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.image-card:hover figcaption {
    transform: translateY(0);
    opacity: 1;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

/* Limit to maximum 2 columns on large screens */
@media (min-width: 1200px) {
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Center the last item if it's alone on a row */
@media (min-width: 1200px) {
    .feature-list> :last-child:nth-child(odd) {
        grid-column: 1 / span 2;
        justify-self: center;
        width: 100%;
        max-width: calc(50% - 0.75rem);
    }
}

.feature-list li {
    background: #f8faff;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--esn-dark);
    border: 1px solid rgba(0, 174, 239, 0.05);
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background: #fff;
    transform: translateX(10px);
    border-color: var(--esn-cyan);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.05);
}

.feature-list li::before {
    content: 'check_circle';
    font-family: 'Material Symbols Rounded';
    color: var(--esn-cyan);
    font-size: 1.5rem;
}

@media (max-width: 992px) {
    .image-row {
        grid-template-columns: 1fr;
    }

    .image-card img {
        height: 300px;
    }
}

/* ─── Become a Member Section ─── */
.become-member-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.section-tag {
    display: inline-block;
    color: var(--esn-magenta);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 800px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
    color: rgba(26, 28, 46, 0.7);
}

.become-member-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-top: 5rem;
    align-items: center;
}

.intro-text h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--esn-blue);
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: rgba(26, 28, 46, 0.8);
}

.highlight-card {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.highlight-card h4 {
    color: var(--esn-blue);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.highlight-card ul {
    list-style: none;
}

.highlight-card li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: rgba(26, 28, 46, 0.85);
}

.highlight-card li::before {
    content: "check_circle";
    font-family: 'Material Symbols Rounded';
    position: absolute;
    left: 0;
    color: var(--esn-green);
    font-size: 1.4rem;
}

/* Roles Section */
.roles-section {
    margin-top: 100px;
}

.roles-heading {
    margin-bottom: 4rem;
}

.roles-heading h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--esn-blue);
}

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

.role-card {
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--esn-cyan);
}

.role-card .material-symbols-rounded {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.role-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--esn-blue);
    letter-spacing: 0.5px;
}

.role-card p {
    font-size: 0.95rem;
    color: rgba(26, 28, 46, 0.7);
    line-height: 1.5;
}

/* Become Member CTA - Dynamic Redesign */
.become-member-cta {
    margin-top: 40px;
    perspective: 1000px;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 450px;
    border-radius: 40px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-container:hover {
    transform: translateY(-5px);
}

.cta-visual {
    position: relative;
    background: linear-gradient(135deg, var(--esn-blue), var(--esn-cyan), var(--esn-magenta));
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-icon-wrapper {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: floatIcon 6s ease-in-out infinite;
}

.cta-icon-wrapper span {
    font-size: 5rem;
    color: white;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.cta-blob-1,
.cta-blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.cta-blob-1 {
    width: 200px;
    height: 200px;
    background: var(--esn-orange);
    top: -50px;
    right: -50px;
    opacity: 0.4;
    animation: moveBlob1 15s infinite alternate;
}

.cta-blob-2 {
    width: 150px;
    height: 150px;
    background: var(--esn-green);
    bottom: -30px;
    left: -30px;
    opacity: 0.3;
    animation: moveBlob2 12s infinite alternate;
}

@keyframes moveBlob1 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-50px, 80px);
    }
}

@keyframes moveBlob2 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(40px, -60px);
    }
}

.cta-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-info h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--esn-blue), var(--esn-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-info p {
    font-size: 1.2rem;
    color: rgba(26, 28, 46, 0.7);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.cta-actions .btn-outline {
    border-color: var(--esn-blue);
    color: var(--esn-blue);
}

.cta-actions .btn-outline:hover {
    background: var(--esn-blue);
    color: white;
}

.cta-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--esn-blue);
    font-weight: 700;
}

.cta-meta span {
    font-size: 1.3rem;
}

.cta-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.cta-meta a:hover {
    color: var(--esn-magenta);
}

/* Responsive CTA */
@media (max-width: 992px) {
    .cta-container {
        grid-template-columns: 1fr;
    }

    .cta-visual {
        min-height: 250px;
    }

    .cta-info {
        padding: 3rem 2rem;
        text-align: center;
    }

    .cta-info h3 {
        font-size: 2.5rem;
    }

    .cta-info p {
        margin: 0 auto 2.5rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .cta-container {
        min-height: auto;
        border-radius: 25px;
    }
    
    .cta-visual {
        min-height: 140px;
    }
    
    .cta-icon-wrapper {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }
    
    .cta-icon-wrapper span {
        font-size: 3rem;
    }
    
    .cta-info {
        padding: 24px 20px;
    }
    
    .cta-info h3 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .cta-info p {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .cta-actions {
        gap: 12px;
        width: 100%;
        margin-top: 10px;
    }
    
    .cta-actions .btn {
        width: 100%;
        margin: 0;
        padding: 14px 20px;
    }
}

/* Responsive adjustments for Join Us */
@media (max-width: 992px) {
    .become-member-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-text h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .become-member-section {
        padding: 60px 0;
    }

    .cta-box {
        padding: 4rem 2rem;
    }

    .cta-box h3 {
        font-size: 2rem;
    }
}

/* ─── Czech Phrases Section ─── */
.phrase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.phrase-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
}

.phrase-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.cz-text {
    font-size: 1.8rem;
    color: var(--esn-blue);
    margin-bottom: 0.5rem;
}

.en-desc {
    font-size: 1rem;
    color: rgba(26, 28, 46, 0.7);
    line-height: 1.4;
}

.phrase-card audio {
    display: none;
}

.phrase-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.phrase-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--esn-blue);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 158, 224, 0.3);
}

.phrase-play-btn .material-symbols-rounded {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.phrase-play-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--esn-cyan);
    box-shadow: 0 8px 25px rgba(0, 158, 224, 0.4);
}

.phrase-play-btn:active {
    transform: scale(0.95);
}

.phrase-play-btn.playing {
    background: var(--esn-magenta);
    animation: pulse-audio 2s infinite;
}

@keyframes pulse-audio {
    0% {
        box-shadow: 0 0 0 0 rgba(235, 0, 139, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(235, 0, 139, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(235, 0, 139, 0);
    }
}

@media (max-width: 1200px) {
    .phrase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .phrase-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Hacks Map Layout & Markers ────────────────────── */
.hacks-map-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: stretch;
}

#hacks-map,
#dorms-map {
    height: 100%;
    min-height: 480px;
    border-radius: 12px;
}

.hacks-map-legend {
    padding: 2rem 1.5rem;
}

.hacks-legend-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hacks-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hacks-legend-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hacks-legend-icon {
    display: block !important;
    width: 40px;
    height: 40px;
    line-height: 40px !important;
    text-align: center;
    border-radius: 50%;
    color: white !important;
    background-color: var(--marker-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    font-size: 20px !important;
}

.hacks-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    background-color: var(--marker-color);
}

.hacks-marker .material-symbols-rounded {
    color: white !important;
    font-size: 18px !important;
}

@media (max-width: 900px) {
    .hacks-map-wrapper {
        grid-template-columns: 1fr;
    }

    #hacks-map,
    #dorms-map {
        height: 350px;
        min-height: auto;
    }

    .hacks-map-legend {
        padding: 1.5rem 1.25rem;
    }
}

/* ──────────────────────────────────────────────────────────
   Auth UI
   ────────────────────────────────────────────────────────── */
.auth-section {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.auth-btn {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-btn:hover {
    color: var(--accent);
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-name-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: rgba(0, 174, 239, 0.1);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    color: var(--esn-cyan);
    transition: all 0.2s;
}

.user-name-link:hover {
    background: rgba(0, 174, 239, 0.2);
    transform: translateY(-2px);
}

.mobile-nav .user-name-link {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.user-name {
    font-weight: 600;
    color: var(--accent);
}

.mobile-nav .auth-section {
    margin-left: 0;
    margin-top: 15px;
    padding-left: 0;
    padding-top: 15px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    justify-content: center;
}

/* ──────────────────────────────────────────────────────────
   Custom Modal Dialogs
   ────────────────────────────────────────────────────────── */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    pointer-events: none;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal-overlay.active .custom-modal-box {
    transform: scale(1) translateY(0);
}

.custom-modal-icon {
    width: 60px;
    height: 60px;
    background: var(--esn-blue-light);
    color: var(--esn-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.custom-modal-icon span {
    font-size: 32px;
}

.custom-modal-box h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.custom-modal-box p {
    margin: 0 0 25px;
    color: var(--text-light);
    line-height: 1.6;
}

.custom-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-modal-actions .btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    min-width: 100px;
}

@media (max-width: 480px) {
    .custom-modal-box {
        padding: 25px 20px;
    }
    .custom-modal-actions {
        flex-direction: column;
    }
    .custom-modal-actions .btn {
        width: 100%;
    }
}
/* Unified Role Badges */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}

.role-badge.developer { background: #008080 !important; color: white !important; }
.role-badge.president { background: #e91e8c !important; color: white !important; }
.role-badge.event_manager { background: var(--esn-green, #7ac143) !important; color: white !important; }
.role-badge.buddy_coordinator { background: var(--esn-blue, #2e3192) !important; color: white !important; }
.role-badge.buddy_manager { background: #7b5ea7 !important; color: white !important; }
.role-badge.buddy { background: var(--esn-cyan, #00aeef) !important; color: white !important; }
.role-badge.student { background: var(--esn-orange, #f47b20) !important; color: white !important; }
.role-badge.none { background: #eee !important; color: #666 !important; }
.role-badge.deactivated { background: #ff4b5c !important; color: white !important; opacity: 0.6; }
.admin-card {
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 174, 239, 0.2);
    background: rgba(0, 174, 239, 0.03);
}

.admin-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-info-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-icon-container {
    background: var(--esn-blue);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.admin-text-content h3 {
    margin: 0;
    color: var(--text);
}

.admin-text-content p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .admin-card {
        padding: 24px 20px;
    }
    
    .admin-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .admin-info-box {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-card-content .btn {
        width: 100%;
        padding: 18px 25px !important;
        margin: 0;
    }
}
