/* Mobile-First Responsive Design */
html {
    height: 100%;
    overflow-x: hidden;
    background-color: #1a1a1a;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background-image: url('../images/bck_img_2025.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Header - Mobile First */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px 0 20px;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    box-sizing: border-box;
    background: transparent;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 12px 0;
}

.header-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1;
}

.header-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 400;
    color: #fff;
    margin-top: 4px;
    line-height: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: clamp(12px, 4vw, 36px);
    justify-content: center;
    flex-wrap: wrap;
}

.header-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}

.header-link.active {
    color: #fff;
}

.header-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 0;
    bottom: -2px;
}

.header-link:not(.active):hover {
    color: #e0e0e0;
}

.logo { 
    display: none; 
}

/* Main Content - Mobile First */
.main-content {  
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 5vw, 100px);
    padding: clamp(16px, 4vw, 50px);
    box-sizing: border-box;
    min-height: 400px;
}

.right-section {
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.coming_soon_text {
    height: 200px; 
    width: auto;
}

/* Rectangle - Mobile First */
.rectangle {
    width: 95vw;
    max-width: 1350px;
    min-width: 280px;
    height: auto;
    background-color: #C2C2C2;
    border-radius: clamp(12px, 3vw, 24px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 20px auto 0 auto;
    padding: clamp(16px, 4vw, 32px) clamp(12px, 3vw, 5vw);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
}

.rectangle:not(.about-rectangle):not(.about-rectangle-secondary) {
    min-height: clamp(500px, 95vh, 700px);
}

/* Tabs - Mobile First */
.tabs {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 36px);
    margin-bottom: clamp(16px, 4vw, 32px);
    align-items: center;
    width: 100%;
}

.tab {
    background: none;
    border: none;
    outline: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 600;
    color: #222;
    padding: 0 0 clamp(4px, 1vw, 8px) 0;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-bottom 0.2s;
    text-align: center;
}

.tab.active {
    color: #000;
    border-bottom: 3px solid #000;
}

.tab:not(.active):hover {
    color: #444;
}

.tab-content {
    color: #14202E;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(11px, 2.5vw, 14px);
    line-height: clamp(15px, 3.5vw, 20px);
    word-break: break-word;
    overflow-wrap: break-word;
}

.tab-content p {
    margin-bottom: clamp(10px, 3vw, 16px);
    text-align: justify;
}

.tab-content p:last-child {
    margin-bottom: 0;
}

/* This Edition specific content styling */
#this-edition-content {
    min-height: clamp(600px, 55vh, 700px);
}

#this-edition-content p {
    margin-bottom: clamp(12px, 3vw, 18px);
    text-align: justify;
    line-height: clamp(16px, 4vw, 22px);
}

/* Sub Tabs - Mobile First */
.sub-tabs {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 48px);
    margin-bottom: clamp(16px, 4vw, 24px);
    align-items: center;
    width: 100%;
}

.sub-tab {
    background: none;
    border: none;
    outline: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #222;
    padding: 0 0 clamp(4px, 1vw, 6px) 0;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-bottom 0.2s;
    text-align: center;
}

.sub-tab.active {
    color: #222;
    border-bottom: 3px solid #2C3953;
}

.sub-tab:not(.active):hover {
    color: #222;
}

/* About Content - Mobile First */
.about-content {
    color: #14202E;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(11px, 2.5vw, 14px);
    line-height: clamp(15px, 3.5vw, 20px);
}

.about-content p {
    margin-bottom: clamp(10px, 3vw, 16px);
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-rectangle {
    margin-bottom: clamp(25px, 6vw, 50px);
}

.about-rectangle-secondary {
    min-height: clamp(150px, 25vw, 200px);
    padding: clamp(16px, 4vw, 24px) clamp(12px, 3vw, 5vw);
    margin-top: 0;
}

/* Contact Form - Mobile First */
.contact-form {
    color: #14202E;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(11px, 2.5vw, 14px);
    line-height: clamp(15px, 3.5vw, 20px);
    padding: clamp(8px, 2vw, 0px);
    width: 100%;
    box-sizing: border-box;
}

.contact-form h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 600;
    margin-bottom: clamp(16px, 4vw, 24px);
    color: #14202E;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 3vw, 32px);
    margin-bottom: clamp(16px, 4vw, 24px);
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 16px);
    width: 100%;
}

.form-input, .form-textarea {
    padding: clamp(8px, 2vw, 12px) clamp(10px, 2.5vw, 16px);
    border: 2px solid transparent;
    border-radius: clamp(6px, 1.5vw, 8px);
    background-color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(11px, 2.5vw, 14px);
    color: #14202E;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    min-width: auto;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #999;
}

.form-textarea {
    height: clamp(60px, 15vw, 88px);
    resize: vertical;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 12px);
    align-items: flex-start;
    margin: clamp(8px, 2vw, 0px);
}

.required-text {
    font-size: clamp(10px, 2vw, 12px);
    color: #14202E;
}

.submit-section {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 16px);
    margin-top: clamp(8px, 2vw, 16px);
    justify-content: flex-end;
    width: 100%;
}

.submit-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 16px);
    padding: 0;
}

.submit-text {
    font-weight: 600;
    font-size: clamp(12px, 2.5vw, 14px);
    color: #14202E;
}

/* Social Footer - Mobile First */
.social-footer {
    display: flex;
    justify-content: flex-end;
    gap: clamp(8px, 2vw, 16px);
    margin-top: clamp(4px, 1vw, 8px);
    padding-top: 0;
    width: 100%;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 7vw, 40px);
    height: clamp(28px, 7vw, 40px);
    border-radius: 50%;
    background-color: #14202E;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.social-icon:hover {
    background-color: #2C3953;
}

.social-icon svg {
    width: clamp(14px, 4vw, 20px);
    height: clamp(14px, 4vw, 20px);
}

/* Catalogue Content - Mobile First */
#catalogue-content {
    width: 90vw;
    min-width: 100%;
    min-height: clamp(400px, 50vh, 600px);
}

#sponsors-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(8px, 2vw, 16px);   
    background-color: #454545;
    border-radius: clamp(12px, 3vw, 24px);
    min-height: clamp(400px, 50vh, 600px);
}

#sponsors-content img {
    width: 100%;
    height: auto;
    max-width: 1200px;
    border-radius: clamp(8px, 2vw, 12px);
    object-fit: contain;
    background-color: #454545;
}

@media (max-width: 767px) {
    /* Ensure proper mobile background handling to prevent white space */
    html {
        height: 100%;
        overflow-x: hidden;
    }
    
    body {
        min-height: 100%;
        background-attachment: scroll !important;
        background-size: cover;
        background-position: center center;
    }
    
    body::before {
        position: fixed;
        height: 100vh;
        min-height: 100%;
    }
    
    #sponsors-content {
        min-height: clamp(450px, 60vh, 650px);
    }
    
    #catalogue-content {
        min-height: clamp(450px, 60vh, 650px) !important;
    }
    
    .tabs {
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: clamp(8px, 2vw, 16px);
        overflow-x: auto;
        align-items: flex-end !important;
    }
    
    .tab {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: clamp(0.85rem, 2.5vw, 1rem);
    }
    
    .header-left {
        display: none;
    }
    
    .header {
        justify-content: center;
    }
    
    .sub-tabs {
        flex-direction: row !important;
        justify-content: flex-start;
        align-items: flex-end !important;
        gap: clamp(6px, 1.5vw, 12px);
        margin-bottom: clamp(12px, 3vw, 16px);
    }
    
    .sub-tab {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media (min-width: 767px) {
    /* Restore fixed background on larger screens where it works properly */
    body {
        background-attachment: fixed;
    }
    
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 24px 40px 0 40px;
    }
    
    .header-left {
        margin: 0 0 0 0;
        align-items: flex-start;
    }
    
    .header-right {
        margin: 0;
        justify-content: flex-end;
    }

    .main-content {
        flex-direction: row;
        gap: 50px;
    }
    
    .tabs {
        flex-direction: row;
        align-items: flex-end;
    }
    
    .sub-tabs {
        flex-direction: row;
        align-items: flex-end;
    }
    
    .form-row {
        flex-direction: row;
    }
    
    .form-column:first-child {
        flex: 0 0 250px;
    }

    .form-column:last-child {
        flex: 1;
    }
    
    .form-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .rectangle {
        max-width: 1000px;
    }
    
    #catalogue-content {
        min-width: 90vw;
    }

    #sponsors-content img {
        max-width: 850px;
    }
}

@media (min-width: 1200px) {
    .rectangle {
        min-width: 1250px;
    }

    .main-content {
        gap: 100px;
    }
}

@media (min-width: 1500px) {    
    #catalogue-content {
        min-width: 1150px;
        max-width: 1150px;
    }

    #sponsors-content {
        min-height: 600px;
    }
}

/* Edition Layout - Poster and Text */
.edition-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 4vw, 32px);
    align-items: center;
}

.edition-poster {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 400px;
}

.poster-image {
    width: 90%;
    height: auto;
    object-fit: cover;
}

.edition-text {
    flex: 1;
    width: 100%;
}

.edition-text p {
    margin-bottom: clamp(12px, 3vw, 18px);
    text-align: justify;
    line-height: clamp(16px, 4vw, 22px);
}

/* Desktop Layout for Edition */
@media (min-width: 768px) {
    .edition-layout {
        flex-direction: row;
        gap: clamp(32px, 5vw, 48px);
        align-items: flex-start;
    }
    
    .edition-poster {
        flex: 1;
        width: auto;
        max-width: none;
        min-width: 0;
    }
    
    .edition-text {
        flex: 1;
        min-width: 0;
    }
}

@media (min-width: 1200px) {
    .edition-layout {
        gap: clamp(40px, 4vw, 56px);
    }
}