/* MindE2 Styles - Dark, Moody, Parallax - REFACTOR V2 */

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    /* Standard scrolling */
    font-family: 'Inter', sans-serif;
    background-color: transparent;
    /* Allow parallax layers to show */
    color: #fff;
    scroll-behavior: smooth;
    position: relative;
}

a {
    color: #00ffcc;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ffcc;
}

/* SKIP NAV */
#skip,
.skip,
.invisible,
.navigation-skip,
a.invisible,
ul.invisible,
li.invisible {
    display: none !important;
}

/*
   LAYOUT WRAPPERS
   Restoring structure for Hero placement
*/
/* 
   LAYOUT WRAPPERS 
   Restoring structure for Hero placement 
*/
.parallax-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    transition: opacity 0.5s ease;
}

#main {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* ... existing code ... */

/* GLOBAL CONTENT STACKING FIX - MOBILE ONLY */
@media (max-width: 768px) {

    /* Only force full width on mobile to prevent horizontal scroll */
    main .block,
    main .ce_text,
    main .ce_image,
    main .ce_headline,
    main article,
    main section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Backgrounds - Fixed behind everything */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none !important;
    /* CRITICAL FIX */
    z-index: -1;
}

/* Removed pointer-events: none on descendants so clicks work */

/* Layer 1: Static Dark Background */
.layer-bg {
    background: radial-gradient(circle at 50% 50%, #1a2a3a 0%, #000000 100%);
    background-size: cover;
    z-index: -3;
}

/* Layer 2: Stars / Floating (Repeating) */
.layer-mid {
    z-index: -2;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1h2v2H1V1zm19 19h2v2h-2v-2zm-9 30h2v2h-2v-2zm40-10h2v2h-2v-2zm15 35h2v2h-2v-2z' fill='%2300ffcc' fill-opacity='0.2'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    opacity: 0.6;
    animation: starsMove 60s linear infinite;
    will-change: transform;
    /* Performance Hint */
}

@keyframes starsMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 100px;
    }
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: float 15s infinite ease-in-out;
}

.floating-shape-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 100, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    top: 60%;
    right: 5%;
    animation: float 20s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-40px);
    }
}

/* Content Layer - Natural Flow */
.layer-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: block;
    pointer-events: auto !important;
    /* Re-enable clicks for content */
}


/* Header & Nav */
.main-header {
    /* Height depends on page type */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 2rem;
    transition: height 0.5s ease, opacity 0.5s ease;
}

/* Home Header - Compact now (Hero text is separate) */
.is-home .main-header {
    height: auto;
    /* Was 90vh, now auto to respect fixed height */
}

/* Subpage Header - Compact */
.is-subpage .main-header {
    height: auto;
    padding-bottom: 0;
}


.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    min-height: 80px;
    /* Ensure header doesn't collapse */
    transition: background 0.3s;
    position: relative;
}

/* Darker background on subpages for better contrast */
.is-subpage .header-inner {
    background: rgba(0, 0, 0, 0.9);
}

.logo-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    outline: none;
    margin-left: 1rem;
    /* Desktop fallback margin */
}

/* Updated Logo Styles with Effects */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-btn:hover .logo-img {
    filter: brightness(1.5) drop-shadow(0 0 8px rgba(0, 255, 204, 0.6));
    transform: scale(1.1) rotate(-2deg);
}

/* 
 * Active Animation (With strong green glow and motion) 
 * When visualizer is ON, the logo smoothly floats and pulses green
 */
@keyframes logoPulseFloat {

    0%,
    100% {
        transform: scale(1) translateY(0);
        filter: brightness(1.5) drop-shadow(0 0 10px rgba(0, 255, 204, 0.8));
    }

    50% {
        transform: scale(1.05) translateY(-3px);
        filter: brightness(1.7) drop-shadow(0 0 18px rgba(0, 255, 204, 1));
    }
}

.logo-btn.active .logo-img {
    animation: logoPulseFloat 4s ease-in-out infinite;
    filter: brightness(1.7) drop-shadow(0 0 15px rgba(0, 255, 204, 1)) !important;
}

/* Carousel / Text Slider Fix */
.carousel .item,
.ce_slider .slider-wrapper {
    min-height: 120px;
    /* Reserve space for ~2 lines of text + padding */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   NAVIGATION STYLES (DESKTOP FIRST)
   ========================================= */

/* Desktop-specific Navigation Layout */
@media (min-width: 769px) {

    /* Desktop: Hide Mobile Elements */
    .hamburger,
    .mobile-logo-container,
    .mobile-nav-logo {
        display: none !important;
    }

    /* Constrain the Header overall height on desktop */
    .main-header {
        height: 100px !important;
        /* Force a reasonable top bar height */
        padding: 0 2rem !important;
        background: rgba(0, 0, 0, 0.4) !important;
        /* Slight tint across top */
    }

    /* Main Navigation Wrapper */
    .nav-wrapper {
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
        justify-content: center !important;
        background: transparent !important;
        position: static !important;
        height: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important; /* Ensure dropdown can break out */
    }

    /* Logo spacing */
    .logo-link {
        padding-left: 1rem !important;
    }

    /* Navigation Lists styling (Horizontal on Desktop) */
    .nav-wrapper ul {
        list-style: none !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 1.5rem !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
    }

    .nav-wrapper li {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .nav-wrapper a,
    .nav-wrapper span {
        font-size: 0.9rem !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
        color: #ccc;
        position: relative;
        text-decoration: none;
        display: inline-block;
    }

    .nav-wrapper a:hover,
    .nav-wrapper .active>a,
    .nav-wrapper .active>span {
        color: #00ffcc;
    }

    .nav-wrapper a::after,
    .nav-wrapper span::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: #00ffcc;
        transition: width 0.3s;
    }

    .nav-wrapper a:hover::after,
    .nav-wrapper .active>a::after,
    .nav-wrapper .active>span::after {
        width: 100%;
    }

    /* Language Switcher (Right aligned on desktop) */
    .mod_changelanguage {
        margin-left: auto !important;
        padding-left: 2rem !important;
        padding-right: 1rem !important;
        /* Move away from edge */
        border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    /* Center primary navigation perfectly */
    .nav-wrapper .mod_navigation {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Ensure hamburger shows on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block !important;
    }
}

/* =========================================
   LANGUAGE SWITCHER UNIVERSAL DROPDOWN
   ========================================= */
.mod_changelanguage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 10005;
    overflow: visible !important;
    height: 48px;
    width: 140px; /* Fixed width to hold globe and collapsed active lang */
}

/* Globe Indicator (International Recognition) */
.mod_changelanguage::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ffcc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='2' y1='12' x2='22' y2='12'%3E%3C/line%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 10px;
    flex-shrink: 0;
    pointer-events: none;
}

/* Base Solid Background Container for Both Views */
.mod_changelanguage ul {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    background: rgba(10, 15, 20, 0.98); /* Solid background to prevent see-through */
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 24px; /* Pill shape matches 48px height */
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: hidden; /* CRITICAL: Hides inactive items cleanly */
    z-index: 10006;
    transition: max-height 0.4s ease, max-width 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.mod_changelanguage:hover ul, .mod_changelanguage.open ul {
    border-color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.mod_changelanguage li {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

/* Desktop View: Horizontal fly-out to the left */
@media (min-width: 769px) {
    .mod_changelanguage ul {
        flex-direction: row; /* Horizontal */
        width: auto;
        max-width: 95px; /* Narrow width for active item */
        justify-content: flex-end; /* Keep anchored to the right */
        height: 48px;
        white-space: nowrap; /* Prevent wrapping */
    }

    .mod_changelanguage:hover ul, .mod_changelanguage.open ul {
        max-width: 800px; /* Expand fully to the left, covering globe naturally */
    }
    
    .mod_changelanguage li {
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        display: none; /* Hide inactive items initially */
    }
    
    .mod_changelanguage li.active,
    .mod_changelanguage:hover li,
    .mod_changelanguage.open li {
        display: block; /* Show all on hover */
    }

    .mod_changelanguage li:first-child {
        border-left: none;
    }
}

/* Mobile View: Upward dropdown */
@media (max-width: 768px) {
    .mod_changelanguage {
        width: 170px; /* Comfortably fit globe + menu side-by-side with active flag */
    }

    .mod_changelanguage ul {
        flex-direction: column; /* Standard column */
        width: 140px; /* Space on the left so the globe remains perfectly visible */
        bottom: 0; /* Anchor to the bottom of the wrapper */
        top: auto; /* Remove top centering anchor */
        right: 0; /* Keep anchored to right */
        transform: none; /* Remove centering transform */
        /* Let it grow naturally */
    }

    .mod_changelanguage:hover ul, .mod_changelanguage.open ul {
        max-height: 60vh; /* Expand upwards but don't overflow viewport */
        overflow-y: auto; /* Scroll if necessary */
    }

    .mod_changelanguage li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: none; /* Hide inactive items completely */
    }
    
    .mod_changelanguage li.active,
    .mod_changelanguage:hover li,
    .mod_changelanguage.open li {
        display: block; /* Show active by default, and all on hover/open */
    }

    /* Force active element to stay at the very bottom so it doesn't jump */
    .mod_changelanguage li.active {
        order: 999; /* Always at the bottom of the column */
        border-bottom: none;
    }

    .mod_changelanguage li a,
    .mod_changelanguage li span {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Align left rather than center for clean flag lines */
        gap: 10px;
        height: 32px; /* Even tighter vertical height */
        padding: 0 15px; /* Clean padding */
    }
    
    /* Ensure the active item exactly fills the 48px collapsed state */
    .mod_changelanguage li.active a,
    .mod_changelanguage li.active span {
        height: 48px;
    }
}

/* =========================================
   LANGUAGE SVG FLAGS VIA PSEUDO ELEMENTS
   ========================================= */
.mod_changelanguage li a::before,
.mod_changelanguage li span::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.mod_changelanguage li.lang-de a::before, .mod_changelanguage li.lang-de span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Crect width='5' height='3' fill='%23000'/%3E%3Crect width='5' height='2' y='1' fill='%23D00'/%3E%3Crect width='5' height='1' y='2' fill='%23FFCE00'/%3E%3C/svg%3E"); }
.mod_changelanguage li.lang-en a::before, .mod_changelanguage li.lang-en span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15 h30 v15 z v-15 h-30 z h-30 v-15 z v15 h30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E"); }
.mod_changelanguage li.lang-es a::before, .mod_changelanguage li.lang-es span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 750 500'%3E%3Crect fill='%23c60b1e' width='750' height='500'/%3E%3Crect fill='%23ffc400' y='125' width='750' height='250'/%3E%3C/svg%3E"); }
.mod_changelanguage li.lang-fr a::before, .mod_changelanguage li.lang-fr span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='3' height='2' fill='%23ED2939'/%3E%3Crect width='2' height='2' fill='%23fff'/%3E%3Crect width='1' height='2' fill='%23002395'/%3E%3C/svg%3E"); }
.mod_changelanguage li.lang-it a::before, .mod_changelanguage li.lang-it span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='3' height='2' fill='%23ce2b37'/%3E%3Crect width='2' height='2' fill='%23fff'/%3E%3Crect width='1' height='2' fill='%23009246'/%3E%3C/svg%3E"); }
.mod_changelanguage li.lang-pt a::before, .mod_changelanguage li.lang-pt span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Crect width='6' height='4' fill='%23f00'/%3E%3Crect width='2' height='4' fill='%230f0'/%3E%3C/svg%3E"); }
.mod_changelanguage li.lang-nl a::before, .mod_changelanguage li.lang-nl span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Crect fill='%2321468B' width='9' height='6'/%3E%3Crect fill='%23FFF' width='9' height='4'/%3E%3Crect fill='%23AE1C28' width='9' height='2'/%3E%3C/svg%3E"); }
.mod_changelanguage li.lang-cz a::before, .mod_changelanguage li.lang-cz span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Crect fill='%23d7141a' width='900' height='600'/%3E%3Crect fill='%23fff' width='900' height='300'/%3E%3Cpolygon fill='%2311457e' points='450,300 0,600 0,0'/%3E%3C/svg%3E"); }

/* Base item styling */
.mod_changelanguage li a,
.mod_changelanguage li span {
    display: block;
    padding: 6px 10px; /* Tighter vertical padding for 8 languages */
    line-height: 1.2;
    font-size: 0.9rem !important;
    color: #ddd;
    transition: background 0.3s, color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-decoration: none;
}


.mod_changelanguage li.active span {
    color: #00ffcc !important;
    font-weight: 700;
}

.mod_changelanguage li a:hover {
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc !important;
}

/* Dropdown Arrow Indicator (Hidden as Globe is used) */
.mod_changelanguage::after {
    display: none;
}

/* Hero CTA */
.hero-cta {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.5s ease-out;
    z-index: 1000;
    pointer-events: none;
    /* Container doesn't block background clicks */
}

.hero-cta.fade-out {
    opacity: 0;
    pointer-events: none;
}

.is-subpage .hero-cta {
    display: none !important;
    pointer-events: none !important;
}

.tagline {
    font-size: 3rem;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    text-align: center;
}

.btn-start {
    padding: 1rem 3rem;
    border: 2px solid #00ffcc;
    color: #00ffcc;
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    cursor: pointer;
    /* Ensure pointer shows */
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    /* Buttons MUST catch clicks */
}

.btn-start:hover {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.6);
}


/* Main Content Area */
main {
    background: transparent;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    /* Default padding */
    position: relative;
    z-index: 30;
    box-shadow: none;
}

/* Adjust padding based on page type */
.is-home main {
    padding-top: 6rem;
    /* More space on home under hero */
}

.is-subpage main {
    padding-top: 4rem;
    /* Less space on subpages */
}


.glass-panel {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2rem;
    color: #00ffcc;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 255, 204, 0.3);
    padding-bottom: 1rem;
    display: inline-block;
}

.legacy-content-wrapper {
    color: #ddd;
    line-height: 1.8;
    font-size: 1.1rem;
}

.legacy-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 2rem 0;
}

/* 
   PAGINATION STYLING - FIXED
   Targeting standard Contao pagination classes: .pagination and .pagination ul
*/
.pagination {
    margin: 2rem 0;
    text-align: center;
    width: 100%;
    display: block;
    /* Contao wraps pagination in a block element */
}

.pagination ul {
    display: inline-flex !important;
    /* Force inline-flex for single line */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrap on very small screens, but aim for single line */
    gap: 0.5rem;
    list-style: none !important;
    /* Remove bullets */
    margin: 0;
    padding: 0;
}

.pagination li {
    list-style: none !important;
    /* Ensure no bullets on items */
    margin: 0;
    padding: 0;
    display: inline-block;
}

/* Pagination Links */
.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: #00ffcc;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Current Page & Hover */
.pagination a:hover,
.pagination span.current {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
    border-color: #00ffcc;
    font-weight: bold;
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 2rem;
    text-align: center;
    color: #666;
    position: relative;
    z-index: 30;
    border-top: 1px solid #222;
}

/* Duplicate media query block removed */
/* NUCLEAR SKIP NAV FIX */
.invisible,
.skip,
.navigation-skip,
#skip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
}

/* Cleaned up duplicate blocks */

.pagination ul {
    display: inline-flex !important;
    /* Force inline-flex for single line */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrap on very small screens, but aim for single line */
    gap: 0.5rem;
    list-style: none !important;
    /* Remove bullets */
    margin: 0;
    padding: 0;
}

.pagination li {
    list-style: none !important;
    /* Ensure no bullets on items */
    margin: 0;
    padding: 0;
    display: inline-block;
}

/* Pagination Links */
.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: #00ffcc;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Current Page & Hover */
.pagination a:hover,
.pagination span.current {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
    border-color: #00ffcc;
    font-weight: bold;
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 2rem;
    text-align: center;
    color: #666;
    position: relative;
    z-index: 30;
    border-top: 1px solid #222;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-inner .inside {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Responsive Mobile Architecture */
@media (max-width: 768px) {

    /* 1. Prevent overlapping content on Startpage */
    body.is-home main,
    body.is-home footer {
        display: none !important;
    }

    /* 2. Fixed Header Structure */
    .header-inner {
        flex-wrap: nowrap;
        /* Keep logo and hamburger on same line */
        padding: 1rem 1.5rem;
        background: rgba(0, 0, 0, 0.95);
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
        border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    }

    .logo-img {
        height: 35px;
        position: relative;
        z-index: 10002;
        /* Above the open drawer */
    }

    /* 3. Hamburger Button Animation */
    .hamburger {
        display: block !important;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10002;
        /* Above the nav-wrapper overlay */
        padding: 10px;
        outline: none;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #00ffcc;
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 4. Fullscreen Navigation Drawer Overlay */
    .nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 10, 15, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 10000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px) scale(0.98);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding-top: 60px;
        /* offset for logo/header */
    }

    .nav-wrapper.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-wrapper ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        list-style: none !important;
        padding: 0;
        margin: 0;
    }

    .nav-wrapper ul li {
        list-style: none !important;
    }

    .nav-wrapper a,
    .nav-wrapper span {
        font-size: 1.2rem !important;
        /* Smaller size */
        letter-spacing: 0.1em;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-wrapper a:hover,
    .nav-wrapper span.active {
        background: rgba(0, 255, 204, 0.1);
        color: #00ffcc !important;
        box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
    }

    /* Mobile Menu Logo styling */
    .mobile-nav-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .mobile-nav-logo img {
        height: 120px;
        width: auto;
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(0, 255, 204, 0.4));
    }

    .mobile-nav-logo span {
        display: none !important;
        /* Hide text as requested */
    }

    /* Mobile Language Switcher Positioning */
    .mod_changelanguage {
        margin-top: 2rem;
        margin-bottom: 2rem;
        width: 140px; /* Keep fixed width on mobile so ul is aligned */
        margin-left: auto;
        margin-right: auto;
        display: flex !important;
        justify-content: center;
        border-left: none !important;
        padding: 0 !important;
    }
    
    .mod_changelanguage::after {
        right: 15px; /* Adjust arrow position for fixed width */
    }

    /* Typography & Spacing */
    .tagline {
        font-size: 1.2rem;
        /* Smaller text for 'Kunst- und Kulturverein' */
        padding: 0 1rem;
        line-height: 1.4;
    }

    main {
        padding-top: 100px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .glass-panel {
        padding: 1.5rem 1rem;
    }

    .quotes-carousel-container {
        padding: 1.5rem 1rem;
        margin: 1rem auto;
    }
}

/* NUCLEAR SKIP NAV FIX */
.invisible,
.skip,
.navigation-skip,
#skip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
}

.mod_navigation,
.mod_customnav {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* GLOBAL CONTENT STACKING FIX - REMOVED FOR DESKTOP */
/* (Moved to mobile-only block above) */

/* Ensure tables behave on desktop but don't break flex layouts */
table {
    width: 100%;
    border-collapse: collapse;
}

/* HAMBURGER MENU STYLES */
.hamburger {
    display: none;
    /* Hidden on Desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
    margin-left: auto;
    /* Push to right */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #00ffcc;
    margin: 5px 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* MOBILE NAV STYLES */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        /* Show on Mobile */
    }

    .nav-wrapper {
        position: fixed;
        /* Fixed to cover screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
        transform: translateX(100%);
        /* Slide out right */
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 10001;
    }

    .nav-wrapper.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        display: flex !important;
    }

    .nav-wrapper ul {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 2rem;
    }

    .nav-wrapper li a {
        font-size: 1.2rem;
    }

    /* Strict stacking for mobile tables/content */
    table,
    tbody,
    tr,
    td {
        display: block !important;
        width: 100% !important;
    }

    /* Extended nav-wrapper styles (recovered) */
    .nav-wrapper li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 1rem;
    }

    .header-inner {
        padding: 0.5rem 1rem;
        /* Compact header on mobile */
        justify-content: space-between;
    }
}

/* FINAL FIXES */
.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    transform: none !important;
}

.logo-img {
    filter: brightness(1.2) contrast(1.1) !important;
    transition: all 0.4s ease !important;
}

.logo-link:hover .logo-img {
    filter: brightness(1.5) drop-shadow(0 0 10px #00ffcc) !important;
    transform: scale(1.1) rotate(-2deg) !important;
}

.ce_slider,
.ce_text,
.slider-wrapper {
    min-height: 150px !important;
    display: flex !important;
    align-items: center !important;
}

.is-subpage .main-header {
    height: auto !important;
    background: transparent !important;
}

/* HOMEPAGE LAYOUT FIX */
.is-home main {
    margin-top: 100vh !important;
    padding-top: 2rem !important;
    transition: none !important; /* MUST BE NONE to allow instant coordinate measuring for SPA */
}

/* Subpages spacing */
.is-subpage .content-block {
    margin-top: 0;
    padding: 120px 4rem 3rem 4rem;
    transition: none !important;
}

@media (max-width: 768px) {
    .is-subpage .content-block {
        padding: 100px 1rem 2rem 1rem !important;
    }
    
    main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .is-subpage .content-block {
        padding: 90px 5px 1rem 5px !important;
    }
    
    main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .glass-panel {
        padding: 1rem 5px !important;
    }
    
    .is-home main .legacy-content-wrapper {
        gap: 5px;
    }
    
    .legacy-content-wrapper,
    .block {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

/* SPA API Scroll Anchor Offsets */
#main, .content-block {
    scroll-margin-top: 100px;
}
/* QUOTES CAROUSEL STYLES */
.quotes-carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(0, 255, 204, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.quote-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quote-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    z-index: 2;
}

.quote-content {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    position: relative;
}

.quote-content p {
    margin: 0;
    padding: 0;
}

.quote-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.quote-controls button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    outline: none;
}

.quote-controls button:hover {
    color: #00ffcc;
}

/* When Explore is clicked, the body gets .is-subpage and removes .is-home.
   We need to make sure the transition is smooth. */
.is-subpage main {
    margin-top: 0 !important;
    padding-top: 4rem !important;
    transition: margin-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* CAROUSEL TEXT SIZING & ALIGNMENT FIX */
.main-header .ce_text,
.main-header .ce_slider {
    max-width: 800px;
}

.main-header h1,
.main-header h2,
.main-header h3 {
    font-size: 1.2rem !important;
}

.main-header p {
    font-size: 0.9rem !important;
    max-width: 95%;
    line-height: 1.4;
}

/* HOMEPAGE SLIDER STRICT LAYOUT (Left-aligned, Two-tier) */
.is-home main .ce_slider {
    text-align: left !important;
}

.is-home main .ce_slider h1,
.is-home main .ce_slider h2,
.is-home main .ce_slider h3,
.is-home main .ce_slider h4,
.is-home main .slider-wrapper h3 {
    text-align: left !important;
    font-size: 1.4rem !important;
    /* Oben 1. Part größer */
    margin-bottom: 0.3rem !important;
    margin-top: 0 !important;
    line-height: 1.2;
    /* Strict 1-line truncation */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.is-home main .ce_slider p,
.is-home main .slider-wrapper p {
    text-align: left !important;
    font-size: 0.85rem !important;
    /* Darunter Erklärung kleiner */
    margin-left: 0 !important;
    margin-right: 0 !important;
    line-height: 1.4;
    /* Zweizeilig: Strict 2-line clamping for explanation */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

/* DESKTOP MENU RESET & COMPACT STYLING */
/* DESKTOP MENU RESET & COMPACT STYLING - STRICT MODE */
/* DESKTOP MENU RESET & COMPACT STYLING - STRICT MODE */
/* DESKTOP MENU - MOBILE STYLE LAYOUT (Hamburger on Desktop) */
@media (min-width: 769px) {

    /* ... existing header styles ... */
    /* 1. Header Container - FIXED HEIGHT */
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px !important;
        padding: 0 2rem;
        background: rgba(5, 5, 5, 0.9);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        z-index: 9999;
        overflow: visible !important;
    }

    .header-inner {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        background: transparent;
        border: none;
        height: 100%;
        overflow: visible !important;
    }

    /* Hamburger explicitly hidden on desktop */
    .hamburger {
        display: none !important;
    }

    /* --- Removed conflicting legacy hero-cta overlay styles that were overriding the subpage navigation --- */

    /* SUBPAGE CONTENT LAYOUT - FORCE VERTICAL STACK (Readability) */
    .is-subpage main {
        display: block !important;
        padding-top: 120px !important;
        /* Clear fixed header */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    .is-subpage main .block,
    .is-subpage main .ce_text,
    .is-subpage main .ce_image,
    .is-subpage main .ce_headline,
    .is-subpage main article,
    .is-subpage main section {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        float: none !important;
        margin-bottom: 2rem;
    }

    /* Desktop Navigation Base Styles take over here because the mobile overrides are removed */
    /* HOMEPAGE GRID LAYOUT (Desktop Only) */
    .is-home main {
        max-width: 95% !important;
        /* Widen container */
        margin: 0 auto;
        padding-top: 100vh !important;
        /* Push way down below visible hero */
    }

    .is-home main .legacy-content-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        gap: 2rem;
    }

    /* Carousel (Slider) - Left 50% */
    .is-home main .ce_slider,
    .is-home main .slider-wrapper,
    .is-home main .quotes-carousel-container {
        width: 48% !important;
        min-width: 250px;
        flex-grow: 1;
        margin: 0 !important;
    }

    /* Text - Right 50% */
    .is-home main .ce_text,
    .is-home main .block {
        width: 48% !important;
        flex-grow: 1;
        margin: 0 !important;
    }
}

/* MOBILE HOMEPAGE LAYOUT (Enforce 50/50 instead of stacking) */
@media (max-width: 768px) {
    .is-home main {
        max-width: 98% !important;
        margin: 0 auto;
        padding-top: 2rem !important;
        /* adjust for mobile */
    }

    .is-home main .legacy-content-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        gap: 1rem;
    }

    .is-home main .ce_slider,
    .is-home main .slider-wrapper,
    .is-home main .quotes-carousel-container,
    .is-home main .ce_text,
    .is-home main .block {
        width: 48% !important;
        min-width: 0;
        margin: 0 !important;
    }
}

/* MOBILE MENU REFINEMENTS - ABSOLUTE POSITIONING FIX */
@media (max-width: 768px) {

    .nav-wrapper {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        padding-top: 6rem;
        /* Flex for menu items but we use absolute for lang/logo to be safe */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
        /* Allow scrolling if menu is long */
    }

    /* Mobile Logo (Top Center) */
    .mobile-logo-container {
        display: block !important;
        margin-bottom: 2rem;
        text-align: center;
        z-index: 10005;
        position: relative;
    }

    .mobile-logo-container img {
        height: 60px !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto;
        filter: brightness(1.2) contrast(1.1);
        opacity: 1 !important;
        visibility: visible !important;
    }


}

/* MOBILE SCROLLBAR VISIBILITY */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        -webkit-appearance: none;
        width: 6px !important;
        display: block !important;
    }

    ::-webkit-scrollbar-track {
        background: #050505 !important;
    }

    ::-webkit-scrollbar-thumb {
        background-color: #00ffcc !important;
        border-radius: 3px;
    }

    body {
        scrollbar-width: thin !important;
        scrollbar-color: #00ffcc #050505 !important;
    }
}

/* =========================================
   ARTISTS MODULE (V2 BEAUTIFIED)
   ========================================= */

/* Grid Layout */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
    width: 100%;
}

/* Base Card Styling */
.artist-card {
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(0, 255, 204, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Glow Effect on Hover */
.artist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.artist-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 204, 0.5);
    box-shadow: 0 15px 40px rgba(0, 255, 204, 0.2), 0 0 20px rgba(0, 255, 204, 0.1) inset;
}

.artist-card:hover::before {
    opacity: 1;
}

/* Inner Content (ensure it sits above background pseudo-elements) */
.artist-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Profile Image Container */
.artist-image-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #00ffcc 0%, #0066ff 100%);
    box-shadow: 0 5px 20px rgba(0, 255, 204, 0.3);
    position: relative;
    transition: transform 0.5s ease;
}

.artist-card:hover .artist-image-container {
    transform: scale(1.05) rotate(5deg);
}

/* The actual image */
.artist-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #000;
    background: #111;
}

/* Fallback placeholder if no image */
.artist-placeholder-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #000;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: #444;
}

/* Typography */
.artist-name {
    font-size: 1.8rem;
    color: #fff;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    letter-spacing: 1px;
}

.artist-card:hover .artist-name {
    color: #00ffcc;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

.artist-bio {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Pushes links to the bottom */
}

/* Links & Buttons */
.artist-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: auto;
}

.artist-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 204, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    min-width: 110px;
}

.artist-link-btn .icon {
    width: 16px;
    height: 16px;
}

/* Specific Button Styles */
.artist-link-btn.spotify-btn:hover {
    background: #1DB954;
    border-color: #1DB954;
    color: #000;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.6);
}

.artist-link-btn.instagram-btn:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.6);
}

.artist-link-btn.website-btn:hover {
    background: #00ffcc;
    border-color: #00ffcc;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
}

.artist-link-btn.detail-btn:hover {
    background: #444;
    border-color: #666;
    color: #fff;
}

/* =========================================
   ARTIST LOGIN AREA
   ========================================= */

.artist-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
}

.artist-login-card {
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 204, 0.1) inset;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.artist-login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.artist-login-card .login-header {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.artist-login-card .login-header h2 {
    color: #00ffcc;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
    letter-spacing: 2px;
}

.artist-login-card .login-header p {
    color: #aaa;
    font-size: 0.95rem;
}

.artist-login-card form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.artist-login-card .widget {
    text-align: left;
    margin-bottom: 1rem;
}

.artist-login-card label {
    display: block;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.artist-login-card input[type="text"],
.artist-login-card input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.artist-login-card input[type="text"]:focus,
.artist-login-card input[type="password"]:focus {
    outline: none;
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    background: rgba(0, 0, 0, 0.8);
}

.artist-login-card .widget-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -0.5rem;
}

.artist-login-card .widget-checkbox label {
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    color: #bbb;
}

.artist-login-card .submit_container {
    margin-top: 1rem;
}

.artist-login-card button.submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00ffcc 0%, #0066ff 100%);
    border: none;
    border-radius: 30px;
    color: #000;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.artist-login-card button.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.5);
    filter: brightness(1.2);
}

.artist-login-card .error.message {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.5);
    color: #ff5555;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* SPA Transitions */
#main {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#main.spa-fade-out {
    opacity: 0;
    transform: translateY(10px);
}

#main.spa-fade-in {
    opacity: 0;
    transform: translateY(-10px);
    animation: spaFadeIn 0.3s forwards;
}

@keyframes spaFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   EVENT LIST (GLASSMORPHISM)
   ========================================= */

.mod_eventlist {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.mod_eventlist .header {
    font-size: 1.2rem;
    color: #00ffcc;
    font-weight: 700;
    margin-bottom: -1rem; /* Pull slightly towards the card */
    padding: 10px 20px;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    display: inline-block; /* Make it a tab */
    width: max-content;
    z-index: 2;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mod_eventlist .event {
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(0, 255, 204, 0.1);
    border-radius: 0 20px 20px 20px; /* Flatten top left corner to match the tab */
    padding: 2.5rem 2rem 2rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* Card Glow Effect on Hover */
.mod_eventlist .event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.mod_eventlist .event:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 204, 0.5);
    box-shadow: 0 15px 40px rgba(0, 255, 204, 0.2), 0 0 20px rgba(0, 255, 204, 0.1) inset;
}

.mod_eventlist .event:hover::before {
    opacity: 1;
}

.mod_eventlist .event > * {
    position: relative;
    z-index: 1;
}

.mod_eventlist .event h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    margin-top: 0;
}

.mod_eventlist .event h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.mod_eventlist .event:hover h2 a {
    color: #00ffcc;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

.mod_eventlist .event .time,
.mod_eventlist .event .location {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mod_eventlist .event .ce_text {
    margin-top: 1.5rem;
    color: #ddd;
    line-height: 1.6;
}

.mod_eventlist .event .image_container {
    float: left;
    margin: 0 1.5rem 1rem 0;
    border-radius: 10px;
    overflow: hidden;
    max-width: 250px; /* Limit image width */
}

.mod_eventlist .event .image_container img {
    border-radius: 10px;
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.mod_eventlist .event:hover .image_container img {
    transform: scale(1.05);
}

.mod_eventlist .event .more {
    margin-top: 1.5rem;
}

.mod_eventlist .event .more a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: #00ffcc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mod_eventlist .event .more a:hover {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
}

@media (max-width: 768px) {
    .mod_eventlist .event .image_container {
        float: none;
        margin: 0 0 1.5rem 0;
        max-width: 100%;
        width: 100%;
    }
}

/* =========================================
   GLOBAL FORM STYLES (GLASSMORPHISM)
   ========================================= */

.mod_form,
.mod_subscribe {
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(0, 255, 204, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.mod_form::before,
.mod_subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.05) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.mod_form .formbody,
.mod_subscribe .formbody {
    position: relative;
    z-index: 1;
}

.mod_form .widget,
.mod_subscribe .widget {
    margin-bottom: 1.5rem;
}

.mod_form label,
.mod_subscribe label {
    display: block;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mod_form input[type="text"],
.mod_form input[type="password"],
.mod_form input[type="email"],
.mod_form textarea,
.mod_form select,
.mod_subscribe input[type="text"],
.mod_subscribe input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.mod_form textarea {
    min-height: 120px;
    resize: vertical;
}

.mod_form input[type="text"]:focus,
.mod_form input[type="password"]:focus,
.mod_form input[type="email"]:focus,
.mod_form textarea:focus,
.mod_subscribe input[type="email"]:focus {
    outline: none;
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    background: rgba(0, 0, 0, 0.8);
}

.mod_form .widget-checkbox,
.mod_form .widget-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -0.5rem;
}

.mod_form .widget-checkbox label,
.mod_form .widget-radio label,
.mod_subscribe .widget-checkbox label {
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    color: #bbb;
    display: inline-block;
}

.mod_form .submit_container,
.mod_subscribe .submit_container {
    margin-top: 1.5rem;
}

.mod_form button.submit,
.mod_subscribe button.submit {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #00ffcc 0%, #0066ff 100%);
    border: none;
    border-radius: 30px;
    color: #000;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.mod_form button.submit:hover,
.mod_subscribe button.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.5);
    filter: brightness(1.2);
}

.mod_form .error,
.mod_subscribe .error {
    background: rgba(255, 50, 50, 0.1) !important;
    border: 1px solid rgba(255, 50, 50, 0.5) !important;
    color: #ff5555 !important;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.mod_form input.error,
.mod_form textarea.error {
    border-color: #ff5555 !important;
    box-shadow: 0 0 10px rgba(255, 85, 85, 0.3) !important;
}