@charset "utf-8";

/* ==========================================================================
   1. GLOBAL & CORE STYLES
   ========================================================================== */
    html { 
        scroll-behavior: smooth; 
    }

    body { 
        margin: 0; 
        padding: 0; 
        font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif; 
        position: relative;
        line-height: 1.6;
    }

    .container, .header-container  {
        max-width: 95%;
        margin: 0 auto;
        padding: 0 40px;    
        text-align: center;
        box-sizing: border-box;
    }

    .container ul {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
        padding-left: 20px; 
    }

    h2 {
        font-size: 1.8em;
        color: #333;
        margin-top: 20px;
        margin-bottom: 15px;
        text-align: center; 
    }

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
    .main-header {
        position: sticky; 
        top: 0;
        z-index: 1000;
        background-color: #ffffff;
        padding: 10px 0;           
        width: 100%;
    }

    .site-title {
        margin: 0 auto;
        padding: 0 0 10px 0;
        font-size: clamp(1.2em, 2.2vw, 1.6em);
        color: #AF1101; 
        font-weight: 800;
        text-transform: none; 
        letter-spacing: -0.5px;
        white-space: nowrap; 
    }

    .nav-links {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
        gap: 2px; 
        flex-wrap: wrap;
    }

    .nav-links a {
        text-decoration: none; 
        color: #003366; 
        font-weight: bold;
        font-size: clamp(13px, 1vw, 15px); 
        padding: 8px 12px;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

    .nav-links a:hover {
        color: #AF1101;
        background-color: #f4f4f4;
    }

    .menu-checkbox, .hamburger-icon, .mobile-top-link { 
        display: none; 
    }

/* ==========================================================================
   3. FOOTER & SOCIAL MEDIA
   ========================================================================== */
    footer {
        text-align: center;
        padding: 10px 50px;
        margin-top: 5px;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 20px; 
        margin: 5px 0;
    }

    .social-icons img {
        width: 50px;
        height: 50px;
    }

/* ==========================================================================
   4. LANGUAGE SETTINGS (GEAR ICON & COOKIE DRAWER)
   ========================================================================== */
    .settings-menu {
        position: fixed; 
        bottom: 10px;    
        left: 10px;      
        z-index: 1001;  
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .settings-button {
        background: transparent;
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #333;
        transition: background-color 0.3s, transform 0.3s, color 0.3s;
    }

    .settings-button:hover {
        background-color: #AF1101;
        color: #ffffff;      
        transform: rotate(90deg);  
    }

    .settings-content {
        display: none;
        position: absolute;
        left: 0;  
        bottom: 50px; 
        background-color: #ffffff;
        min-width: 200px;
        box-shadow: 0px 5px 16px rgba(0,0,0,0.2);
        padding: 15px; 
        border-radius: 8px;
        border: 1px solid #ddd;
        padding-bottom: 30px; 
        margin-bottom: -25px; 
    }

    .settings-content p {
        margin: 0 0 10px 0;
        font-size: 13px;
        line-height: 1.4;
        color: #333;
        text-align: left;
    }

    .settings-menu:hover .settings-content {
        display: block;
    }

    #lang-select {
        display: block;
        width: 100%; 
        margin: 5px 0;
        background-color: #ffffff;
        border: 1px solid #ccc;
        color: #333; 
        padding: 8px;
        font-size: 13px;
        border-radius: 4px;
    }

    .reset-btn {
        display: block;
        width: auto;
        margin: 8px 0 0 0;
        background: none;
        border: none;
        color: #AF1101;
        font-size: 11px;
        text-decoration: underline;
        cursor: pointer;
        padding: 0;
        text-align: left;
    }

/* ==========================================================================
   5. MISC LAYOUT ELEMENTS
   ========================================================================== */
    .lang-toast {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        background: #2c3e50;
        color: white;
        padding: 12px 24px;
        border-radius: 30px;
        z-index: 10000;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .lang-toast.show { 
        transform: translateX(-50%) translateY(0); 
    }

    img, embed, object, video { 
        max-width: 100%; 
        height: auto; 
    }

    .image-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px; 
        margin: 20px 0;
    }

    .img-small {
        max-width: 90%;
        height: auto;
        display: inline-block;
        vertical-align: middle; 
    }

/* ==========================================================================
   6. 404 ERROR PAGE STYLES
   ========================================================================== */
    .error-wrapper { 
        padding: 5px 5px; 
        text-align: center; 
        background-color: transparent;
        min-height: 70vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .error-content { 
        max-width: 600px; 
        margin: 0 auto; 
        background: transparent; 
    }

    .crest-404 { 
        max-width: 140px; 
        margin-top: 15px;
        margin-bottom: 15px; 
        height: auto; 
    }

    h1.err-h1 { 
        color: #003366; 
        margin-bottom: 15px; 
        font-size: 2.5rem; 
        border: none; 
    }

    .btn-404 { 
        display: inline-block; 
        padding: 15px 35px; 
        background: #003366; 
        color: white !important; 
        text-decoration: none; 
        border-radius: 4px; 
        font-weight: bold; 
        transition: background 0.3s;
    }

    .btn-404:hover { 
        background: #AF1101; 
    }

/* ==========================================================================
   7. MODERN EVENT CARD STYLES
   ========================================================================== */
   .event-text { 
        /* clamp(min, preferred, max) */
        /* Shrinks to 1.25em on mobile, grows to 1.6em on desktop */
        font-size: clamp(1.25em, 4vw, 1.6em); 
        font-weight: 800;
        text-align: center; 
        color: #AF1101;
        margin-top: 30px;
        margin-bottom: 10px;
        padding: 0 45px;
        letter-spacing: -0.5px;
        box-sizing: border-box;
    }

    .event-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px 0;
        margin: 0 auto;
        width: 90%;
        max-width: 850px;
    }

    .event-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 20px 15px;
        background: #ffffff;
        border-top: 1px solid #eaeaea;
        border-right: 1px solid #eaeaea;
        border-bottom: 1px solid #eaeaea;
        border-radius: 12px; 
        overflow: hidden; 
        
        height: 100%;
        box-sizing: border-box;
        line-height: 1.4;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .event-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        border-color: #d1d1d1;
    }

    .event-title {
        display: block;
        font-weight: 700;
        font-size: 1.1em;
        margin-bottom: 4px;
        color: #003366;
        letter-spacing: -0.2px;
    }

    .event-time {
        font-weight: 600;
        color: #AF1101;
        font-size: 0.9em;
        margin-top: 4px;
    }

    .event-description-wrapper {
        margin: 10px 0;
        display: flex;
        justify-content: center;
    }

    .event-description-badge {
        display: inline-block;
        line-height: 1.5;
        padding: 0 10px;
        color: #555;
        font-style: italic;
        background-color: transparent;
        border: none;
        font-size: 0.88em;
        max-width: 95%;
    }

    .event-country {
        display: inline-block;
        margin-top: 10px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.72em !important;
        letter-spacing: 0.5px;
        color: #888;
    }

/* ==========================================================================
   8. MOBILE & TABLET STYLES 
   ========================================================================== */
@media screen and (max-width: 950px) {
  
    .main-header { 
        position: static; 
        padding: 15px 0; 
        width: 100%;
    }

    .site-title {
        font-size: 1.25em;
        line-height: 1.2;
        text-align: left !important; 
        padding-left: 0 !important; 
        padding-right: 65px !important; 
        padding-top: 15px !important;
        padding-bottom: 10px !important;
        margin-left: 0 !important;
        width: calc(100% - 60px) !important;
        display: block;
        white-space: normal; 
        text-transform: none;
        font-weight: 800;
    }

    .container {
        padding: 0 55px 0 45px;
        box-sizing: border-box;
        text-align: left; 
    }
    
    .header-container {
        padding-left: 45px !important;
        box-sizing: border-box;
    }

    .container ul {
        display: block; 
        margin-left: 0;
        padding-left: 25px; 
    }

    .container h1 {
        font-size: clamp(1.1em, 4vw, 1.4em);
        line-height: 1.2;
        margin-top: 15px;
        margin-bottom: 10px;
        text-align: center; 
    }

    footer {
        padding-left: 45px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    footer p, .footer-lang-link {
        text-align: center !important;
        display: block;
        width: 100%;
    }

    footer .social-icons {
        justify-content: center;
    }

    h2 {
        font-size: 1.4em; 
        text-align: center;
        margin-top: 15px;
    }

    .img-small {
        max-width: 100%;
        height: auto;
        display: inline-block;
        vertical-align: middle; 
    }

    .image-row {
        flex-direction: column;
        gap: 20px;
    }

/* ==========================================================================
    8-A MOBILE - EVENT CARDS
   ========================================================================== */
    .event-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
        max-width: 100%;
        padding: 10px 0;
        width: auto !important; 
    }

    @media screen and (max-width: 450px) {
        .event-grid {
            grid-template-columns: 1fr;
        }
    }

    .event-card {
        margin: 0 !important;
        width: 100% !important;
        padding: 10px 10px !important; 
        text-align: center !important;
        align-items: center !important;
        box-sizing: border-box;
    }

    .event-title {
        font-size: 1.05em;
    }

    .event-description-wrapper {
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
    }

    .event-description-badge {
        max-width: 100%;
        font-size: 0.85em;
    }

/* ==========================================================================
    8-B MOBILE - MENU
   ========================================================================== */

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed; 
        top: 60px;
        right: 10px; 
        width: 45%;               
        min-width: 180px;      
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: 0.3s ease-in-out;
        z-index: 1100;
        margin-top: 0;
    }

    .menu-checkbox:checked ~ .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 10px; 
        font-size: 15px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        color: #003366;
    }

/* ==========================================================================
    8-C MOBILE - SETTINGS MENU
   ========================================================================== */
    .settings-button {
        width: 35px !important;
        height: 35px !important;
        background-color: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .settings-menu {
        position: fixed !important;
        bottom: 5px !important;
        left: 5px !important;
        z-index: 99999 !important;
        transform: translateZ(0);
    }

    .menu-checkbox { 
        display: block !important;
        position: fixed; 
        top: 15px;
        right: 10px; 
        width: 45px !important; 
        height: 45px !important;
        opacity: 0;
        cursor: pointer;
        z-index: 1300; 
    }

/* ==========================================================================
    8-D MOBILE - HAMBURGER MENU
   ========================================================================== */
    .hamburger-icon {
        display: flex !important;
        position: fixed;
        top: 15px;
        right: 10px; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 45px !important; 
        height: 45px !important;      
        background: #e0e0e0;
        border-radius: 4px;
        z-index: 1200;
    }

    .hamburger-icon span:not(.menu-label) {
        display: block;
        height: 2px;
        width: 22px;
        background: #333;
        margin: 2px 0;
    }

    .menu-label {
        display: block !important; 
        font-size: 9px;
        color: #AF1101;
        margin-top: 4px;
        font-weight: bold;
    }

    .mobile-top-link {
        display: flex !important; 
        position: fixed;
        top: 70px; 
        right: 10px;
        width: 45px !important;
        height: 35px !important;
        background: #e0e0e0;
        border-radius: 4px;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: 0.4s;
        z-index: 1500; 
    }

    .mobile-top-link.is-visible { 
        opacity: 1 !important; 
        visibility: visible !important; 
    }

    .up-arrow {
        display: inline-block;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 14px solid #AF1101; 
    }
}

/* =================================================================================================
    9 MOBILE - to remove Setting Gear from lightbox on photo gallery, does not work from gallery.css
   ================================================================================================= */
body.lb-open .settings-menu, 
body.lb-open .lang-toast {
    display: none !important;
}