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

html {
    overflow-x: hidden; /* Prevent horizontal scroll on html as well */
    width: 100%;
}

body {
    font-family: 'Lexend', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    background-image: url('images/mainBackground.png');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%; /* Use 100% instead of 100vw to avoid scrollbar issue */
    min-height: 100vh;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.nav-logo .header-logo {
    height: 48px; /* 20% larger than 40px */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #f59e0b;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
}

.dropdown-menu a:hover {
    background: #fef3c7;
    color: #f59e0b;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    color: #EFB080;
    margin-top: 70px;
}

.hero-media-wrapper {
    position: relative;
    /* Chiều cao bằng chiều cao cửa sổ trừ phần header cố định (70px) */
    height: calc(100vh - 70px); /* fallback */
    height: calc(100dvh - 70px); /* tránh thanh URL trên mobile */
    display: flex;
    align-items: flex-start; /* căn theo top thay vì center */
    justify-content: center;
    overflow: hidden; /* cho phép phần ngang bị thừa được crop, ảnh vẫn căn giữa */
    /* Mờ dần ở mép dưới container để blend mượt với section tiếp theo */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.hero-poster {
    /* Đảm bảo chiều cao luôn khớp với chiều cao container (100% viewport - header) */
    height: 100%;
    width: auto;
    min-width: 100%; /* đảm bảo cũng lấp đầy chiều ngang nếu cần */
    max-width: none;
    display: block;
    object-fit: cover; /* scale và crop để luôn lấp đầy container */
    object-position: center top; /* căn trên giữa */
}

/* Đổi poster sang phiên bản điện thoại trên mobile */
@media (max-width: 568px) {
    .hero-media-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        display: flex;
        align-items: center; /* Căn giữa theo chiều dọc */
        justify-content: center; /* Căn giữa theo chiều ngang */
    }
    
    .hero-poster {
        content: url('images/homePage/mainPosterPhone.png');
        /* Mobile: full chiều ngang, chiều cao tự động, căn giữa */
        width: 100%;
        height: auto;
        min-width: 100%;
        max-width: 100%;
        object-fit: contain;
        object-position: center center;
    }
}

/* legacy hero container no longer used */

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #f59e0b;
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #f59e0b;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 400px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* CTA buttons at bottom of Main Poster */
.hero-cta {
    position: absolute;
    /* Hạ nút đăng ký xuống gần đáy */
    bottom: 4vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 568px) {
    /* Mobile: hạ xuống nhẹ tương ứng */
    .hero-cta { 
        bottom: calc(8vh - 30px); /* Hạ thêm 30px (50px - 20px = 30px để đẩy lên cao 20px) */
        flex-direction: column;
        gap: 0px; /* Xóa khoảng cách giữa các nút */
    }
    
    /* Giảm kích thước 3 nút đi 30% ở mobile */
    .hero-cta .register-now-btn,
    .hero-cta .submit-now-btn,
    .hero-cta .see-question-btn {
        transform: scale(0.7); /* Giảm 30% */
        margin: -15px 0; /* Margin âm để loại bỏ khoảng trống do scale tạo ra */
    }
    
    .hero-placeholder {
        width: 90%;
        max-width: 350px;
        height: auto;
        min-height: 250px;
    }
    
    /* Change background to mobile version */
    body {
        background-image: url('images/mainBackgroundPhone.png');
    }
}

/* Common Section Styles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #EFB080;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #f59e0b;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Dividers between page sections (exclude header, sponsors, footer) */
/* Boundary divider line: nằm tại ranh giới trên của mỗi section (trừ section đầu tiên) */
.rules::before,
.timeline::before,
.participants::before,
.countdown::before,
.regulations::before {
    content: '';
    position: absolute;
    top: 0; /* đúng ranh giới giữa section trước và section này */
    left: 50%;
    transform: translateX(-50%);
    width: 25vw; /* 1/4 chiều rộng cửa sổ */
    height: 3px;
    background: linear-gradient(to right, rgba(242,173,121,0) 0%, #F2AD79 15%, #F2AD79 85%, rgba(242,173,121,0) 100%);
    border-radius: 2px;
    pointer-events: none;
    z-index: 2;
}

/* Image-based section titles */
.section-title-image {
    display: block;
    margin: 0 auto 3rem;
    max-width: min(90%, 700px);
    height: auto;
}

/* Round title images in Rules */
.round-title-image {
    display: block;
    margin: 0 auto 1rem;
    max-width: min(95%, 600px);
    height: auto;
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative; /* để section sau (rules) có thể hiển thị divider ở trên của nó */
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #EFB080;
    line-height: 1.8;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: #EFB080;
    margin: 2rem 0;
    text-align: center;
    letter-spacing: 1px;
}

/* About logo at the bottom */
.about-logo {
    display: block;
    margin: 2rem auto 0;
    width: min(320px, 60vw);
    height: auto;
}

/* Rules Section */
.rules {
    padding: 100px 0;
    position: relative; /* divider ::before nằm ở ranh giới với .about */
}

.rules-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rules-intro p {
    font-size: 1.2rem;
    color: #EFB080;
    line-height: 1.6;
}

.rules-content {
    max-width: 900px;
    margin: 0 auto;
}

.rule-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    text-align: center;
}

.rule-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rule-title {
    font-size: 1.8rem;
    color: #EFB080;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.rule-date {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 58px;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(247, 200, 153, 0.3) 0%, rgba(235, 188, 145, 0.1) 100%);
    border: 3px solid #EFB080; /* stroke */
    border-radius: 19px; /* corner radius */
    color: #EFB080;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.rule-details {
    text-align: center;
}

.rule-details > p {
    color: #EFB080;
    line-height: 1.7;
    font-size: 1.1rem;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Special layout for Round 1 with split sections */
.rule-details-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.rule-split-section {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.2); /* box trắng 20% opacity, không ảnh hưởng chữ bên trong */
    border-radius: 40px; /* bo tròn 40 */
    border: 3px solid #EFB080; /* viền vàng weight 3 */
    mix-blend-mode: plus-lighter; /* blending mode plus lighter */
}

.rule-split-section h4 {
    color: #EFB080;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rule-split-section p {
    color: #EFB080;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* Timeline Section */
.timeline {
    padding: 100px 0;
    position: relative; /* divider ở ranh giới với .rules */
}

.timeline-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 60px 20px 20px;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: flex-start;
    gap: 0;
    white-space: nowrap; /* Prevent wrapping to new line */
    
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(242, 173, 121, 0.2
    ) transparent;
}

.timeline-container::-webkit-scrollbar {
    height: 8px;
}

.timeline-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: rgba(242, 173, 121, 0.3); /* 50% opacity */
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 163, 115, 0.7); /* Slightly more opaque on hover */
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0; /* Start from the beginning of container */
    width: 100%; /* Full width of timeline container */
    height: 4px;
    background: linear-gradient(to right, rgba(242,173,121,0) 0%, #F2AD79 15%, #F2AD79 85%, rgba(242,173,121,0) 100%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: max(25vw, 300px); /* Minimum 1/4 window width or 300px */
    flex-shrink: 0; /* Prevent items from shrinking */
    z-index: 2;
}

.timeline-item:first-child {
    margin-left: 40px; /* Add margin to the first timeline item */
}

.timeline-item:not(:last-child) {
    margin-right: 80px;
}

.timeline-item:last-child {
    margin-right: 40px; /* Add margin to the last timeline item */
}

/* Removed timeline dot - was .timeline-item::before */

.timeline-date {
    background: #F2AD79;
    color: #F2AD79;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0;
    margin: 20px auto 25px auto; /* Increased top and bottom margins */
    white-space: nowrap;
    text-align: center;
    padding: 10px; /* Add padding around the dot for more spacing */
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content {
    background: transparent;
    padding: 15px 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    border: none;
    transition: none;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-content h3 {
    color: #F2AD79 !important;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.timeline-image {
    width: 100%;
    max-width: 300px; /* Remove max-width limit */
    min-width: 25vw; /* Minimum 1/4 window width */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content p {
    color: #F2AD79;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
}

/* Participants Section */
.participants {
    padding: 100px 0;
    position: relative; /* divider ở ranh giới với .timeline */
}

/* Tạo khung bao cả title và content cho participants */
.participants .container {
    max-width: 900px;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    border: 3px solid #EFB080;
    mix-blend-mode: plus-lighter;
}

.participants-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    /* Bỏ các style khung vì đã chuyển lên .container */
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    mix-blend-mode: normal;
}

.participants-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #EFB080;
    margin-bottom: 1.5rem;
}

.participants-content p:last-child {
    margin-bottom: 0;
}

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

.participant-card {
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #f59e0b;
    transition: transform 0.3s ease;
}

.participant-card:hover {
    transform: translateY(-5px);
}

.participant-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.participant-icon i {
    font-size: 1.5rem;
    color: white;
}

.participant-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #EFB080;
}

.participant-card p {
    color: #EFB080;
    margin-bottom: 1.5rem;
}

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

.participant-card li {
    padding: 0.5rem 0;
    color: #EFB080;
    position: relative;
    padding-left: 1.5rem;
}

.participant-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #EFB080;
    font-weight: bold;
}

/* Countdown Section */
.countdown {
    padding: 100px 0;
    color: #EFB080;
    text-align: center;
    position: relative; /* divider ở ranh giới với .participants */
}

.countdown .section-title {
    color: #EFB080;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.countdown-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.countdown-box {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.countdown-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 1rem;
    opacity: 0.8;
}

.countdown-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.countdown-button {
    margin-top: 1rem;
}

.countdown .btn-primary {
    background: white;
    color: #f59e0b;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.countdown .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Register Now image button */
.register-now-btn {
    /* Responsive kích thước dựa trên chiều cao poster (viewport trừ header ~70px) */
    /* Tăng 20%: 0.09 * 1.2 = 0.108, và 72px * 1.2 = 86.4px */
    height: clamp(52.8px, calc((100dvh - 70px) * 0.108), 86.4px);
    aspect-ratio: 225 / 61; /* giữ đúng tỉ lệ nút gốc */
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none; /* bỏ khung chữ nhật */
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease;
    mix-blend-mode: plus-lighter; /* blend mode plus lighter */
}

.register-now-btn:hover {
    transform: translateY(-2px);
}

.register-now-btn img {
    /* Tăng kích thước ảnh để khớp với khung chữ nhật ban đầu */
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* See Question image button */
.see-question-btn {
    /* Same responsive sizing as register button */
    height: clamp(52.8px, calc((100dvh - 70px) * 0.108), 86.4px);
    aspect-ratio: 225 / 61; /* Same aspect ratio as register button */
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease;
    mix-blend-mode: plus-lighter;
}

.see-question-btn:hover {
    transform: translateY(-2px);
}

.see-question-btn img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Submit Now image button */
.submit-now-btn {
    /* Same responsive sizing as register button */
    height: clamp(52.8px, calc((100dvh - 70px) * 0.108), 86.4px);
    aspect-ratio: 225 / 61; /* Same aspect ratio as register button */
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease;
    mix-blend-mode: plus-lighter;
}

.submit-now-btn:hover {
    transform: translateY(-2px);
}

.submit-now-btn img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Regulations Section */
.regulations {
    padding: 100px 0;
    position: relative; /* divider ở ranh giới với .countdown */
}

.regulations-content {
    display: block;
    /* Đóng khung chữ nhật cho content */
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    border: 3px solid #EFB080;
    mix-blend-mode: plus-lighter;
}

.regulation-section {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.regulation-section h3 {
    color: #EFB080;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 0.5rem;
}

.regulation-section ul {
    list-style: none;
}

.regulation-section li {
    padding: 0.75rem 0;
    color: #EFB080;
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
}

.regulation-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #EFB080;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Simple regulations list (new structure) */
.regulations-list {
    max-width: 900px;
    margin: 0 auto;
    list-style: disc;
    padding-left: 1.5rem;
}

.regulations-list li {
    color: #EFB080;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

/* Sponsors Section */
.sponsors {
    padding: 100px 0;
    position: relative; /* để line vàng bám đúng ranh giới trên của sponsors */
}

/* Boundary line giữa Regulations và Sponsors */
.sponsors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25vw;
    height: 3px;
    background: linear-gradient(to right, rgba(242,173,121,0) 0%, #F2AD79 15%, #F2AD79 85%, rgba(242,173,121,0) 100%);
    border-radius: 2px;
    pointer-events: none;
    z-index: 2;
}

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

.sponsor-tier {
    margin-bottom: 3rem;
}

.sponsor-tier h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #EFB080;
}

.sponsors-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.sponsor-item {
    background: transparent;
    border-radius: 15px;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-item:hover {
    transform: none;
}

.sponsor-item.diamond,
.sponsor-item.gold,
.sponsor-item.silver,
.sponsor-item.bronze,
.sponsor-item.bronze-items {
    width: auto;
    height: 120px;
}

.sponsor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #EFB080;
}

.sponsor-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #3C2F49 0%, #000000 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f8fafc;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f59e0b;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #f59e0b;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* New footer layout */
.footer-logo {
    width: 280px; /* doubled size */
    height: auto;
    margin-bottom: 0.5rem;
}

.footer-brand h3 {
    color: #f8fafc;
    margin: 0.25rem 0 0.25rem 0;
}

.footer-brand p {
    color: #9ca3af;
    margin: 0;
}

.footer-contact-title {
    color: #f8fafc;
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.contact-info a {
    color: #9ca3af;
    text-decoration: none;
}

.contact-info a:hover {
    color: #f59e0b;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left; /* Căn trái */
        padding: 0 20px; /* Tăng padding để text không sát viền */
    }
    
    .footer-right {
        margin-top: 0; /* Bỏ margin vì đã trong cùng 1 column */
    }
    
    .footer-left {
        display: none; /* Ẩn logo */
    }
    
    /* Giảm font-size title để tránh cắt chữ */
    .footer-contact-title {
        font-size: 1.5rem;
    }
    
    /* Sử dụng flexbox để label không bị xuống dòng */
    .contact-info p {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.7rem;
        word-wrap: normal; /* Không break label */
    }
    
    /* Chỉ cho phép link xuống hàng */
    .contact-info a {
        word-wrap: break-word;
        word-break: break-all;
        flex: 1 1 auto;
        min-width: 0; /* Cho phép flex item shrink */
    }
}

/* Hide logo at 747px breakpoint */
@media (max-width: 747px) {
    .footer-left {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-right {
        text-align: left;
    }
}

/* ===== Register Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 2000;
}

.modal-overlay.show { display: flex; }

.modal-dialog {
    background: #ffffff; /* nền trắng */
    width: min(760px, 92vw);
    max-height: 90vh; /* giới hạn chiều cao form */
    border-radius: 20px;
    padding: 24px;
    /* vàng glow phát sáng */
    box-shadow:
        0 0 0 2px rgba(239, 176, 128, 0.25) inset,
        0 10px 30px rgba(239, 176, 128, 0.35),
        0 20px 60px rgba(253, 215, 187, 0.45),
        0 6px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #EFB080;
    font-size: 24px;
    cursor: pointer;
    z-index: 10; /* đảm bảo luôn ở trên */
}

.modal-title-image {
    display: block;
    margin: 4px auto 18px;
    max-width: min(90%, 520px);
    height: auto;
    flex-shrink: 0; /* không co lại khi scroll */
}

.form-card {
    border: 2px solid #EFB080; /* stroke EFB080 */
    border-radius: 19px; /* trả về thông số trước */
    padding: 14px 16px 12px 16px;
    margin: 0 auto 20px;
    box-sizing: border-box;
    background: linear-gradient(-82deg, #EFB080 0%, #FDD7BB 100%); /* fill gradient */
    color: #B56141; /* text color inside content */
    overflow-y: auto; /* cho phép scroll nội dung trong ô vàng */
    flex: 1; /* chiếm không gian còn lại */
    min-height: 0; /* cần thiết để overflow hoạt động trong flex */
    width: 100%; /* đảm bảo chiều ngang đầy đủ như cũ */
    max-width: 100%; /* không bị thu hẹp */
    position: relative;
    z-index: 1;
}

/* Custom scrollbar for form-card */
.form-card::-webkit-scrollbar {
    width: 6px;
}

.form-card::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}

.form-card::-webkit-scrollbar-thumb {
    background-color: rgba(181, 97, 65, 0.3);
    border-radius: 10px;
}

.form-card::-webkit-scrollbar-thumb:hover {
    background-color: rgba(181, 97, 65, 0.6);
}

.form-label {
    font-weight: 700;
    margin-bottom: 8px;
    color: #B56141; /* cập nhật màu text */
}
.form-label .required { color: #B56141; }

.radio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: #B56141; /* cập nhật màu text */
}

/* Radio checked color */
.form-card input[type="radio"] {
    accent-color: #B56141;
}

/* Input in register form */
.form-input {
    width: 100%;
    max-width: 100%;
    height: 42px;
    border: 2px solid #FFD3BE;
    border-radius: 10px;
    background: #FFF9F4;
    color: #B56141;
    padding: 10px 12px;
    outline: none;
}

.form-input::placeholder {
    color: #B56141;
    opacity: 0.7;
}

/* Error state for form inputs */
.form-input.error {
    border: 2px solid #e53e3e;
    background: #fef2f2;
}

.form-input.error:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Error message styling */
.error-message {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* Register form layout for member page */
.form-section-title {
    font-weight: 800;
    color: #B56141;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #B56141;
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.date-input { width: 74px; }
.year-input { width: 110px; }

.form-hint {
    font-size: 0.9rem;
    color: #B56141;
    opacity: 0.8;
}

/* Thank-you contact card */
.contact-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: #B56141;
}
.contact-list li { margin: 8px 0; }
.form-card a { color: #B56141; text-decoration: underline; }

/* Confirm info container */
.confirm-info-container {
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(255, 243, 230, 0.5);
    border-radius: 10px;
    margin: 15px 0;
}

.confirm-info-container h4 {
    color: #B56141;
    font-size: 18px;
    margin: 15px 0 10px 0;
    font-weight: bold;
}

.confirm-info-container p {
    color: #B56141;
    font-size: 15px;
    margin: 5px 0;
    line-height: 1.6;
}

.confirm-info-container strong {
    font-weight: 600;
    color: #8B4513;
}

/* Member accordion styles */
.member-accordion {
    margin: 10px 0;
    border: 1px solid #FFD3BE;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.member-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 211, 190, 0.3);
    cursor: pointer;
    font-weight: 600;
    color: #B56141;
    transition: background 0.3s ease;
}

.member-accordion-header:hover {
    background: rgba(255, 211, 190, 0.5);
}

.accordion-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.member-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
    background: white;
}

.member-accordion-content p {
    margin: 8px 0;
    padding: 5px 0;
}

.member-accordion-content p:first-child {
    padding-top: 12px;
}

.member-accordion-content p:last-child {
    padding-bottom: 12px;
}

/* Loading Spinner Overlay */
.form-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 6px solid #FFD3BE;
    border-top: 6px solid #B56141;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    color: #B56141;
    font-weight: 600;
    margin: 0;
}

/* Sponsor tier title images */
.sponsor-tier-title-image {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto 14px;
}

/* Sponsor tier text titles */
.sponsor-tier-title-text {
    text-align: center;
    color: #F2AD79;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .sponsor-tier-title-text {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

/* Host sponsor specific styling */
.sponsor-item.host {
    background: transparent;
    box-shadow: none;
    width: auto;
    height: auto;
}

.sponsor-item.host .sponsor-logo, .sponsor-logo {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Sponsor tier specific sizing */
.sponsor-item.diamond .sponsor-logo {
    height: 300px; /* 300% of base 100px */
}

.sponsor-item.gold .sponsor-logo {
    height: 250px; /* 250% of base 100px */
}

.sponsor-item.silver .sponsor-logo {
    height: 200px; /* 200% of base 100px */
}

.sponsor-item.bronze .sponsor-logo {
    height: 150px; /* 150% of base 100px */
}

.sponsor-item.bronze-items .sponsor-logo {
    height: 100px; /* 100% of base - same as default */
}

/* Solid action button (used on Thank You: Gửi) */
.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    min-height: 36px;
    border-radius: 10px;
    background: #DF723E;
    border: 2px solid #DF723E;
    color: #FFFFFF;
    font-weight: 600;
    cursor: pointer;
}

.btn-solid:hover {
    filter: brightness(0.95);
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    flex-shrink: 0; /* giữ nguyên, không co lại */
    margin-top: auto; /* đẩy xuống dưới cùng */
}

/* Thank you page: align close button to the right */
.modal-actions.thank-you-actions {
    justify-content: flex-end;
}

.btn-outline {
    width: 107px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid #FFD3BE; /* stroke FFD3BE */
    background: #FFF9F4; /* fill đơn giản */
    color: #EFB080;
    font-weight: 600;
    cursor: pointer;
}

/* Question Modal Styles */
.question-modal-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #B56141;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.question-content {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(-82deg, #EFB080 0%, #FDD7BB 100%);
    border: 2px solid #EFB080;
    border-radius: 19px;
    padding: 30px;
    margin-bottom: 20px;
    min-height: 200px;
}

.question-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.question-divider {
    width: 2px;
    background: #B56141;
    margin: 0 30px;
    opacity: 0.5;
}

.question-brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #B56141;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

.question-category {
    font-size: 1rem;
    font-weight: 600;
    color: #B56141;
    text-align: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-category:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 97, 65, 0.2);
}

.close-question-btn {
    width: 107px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid #FFD3BE;
    background: #FFF9F4;
    color: #EFB080;
    font-weight: 600;
    cursor: pointer;
}

/* PDF Modal Styles */
.pdf-dialog {
    max-width: 1200px;
    max-height: 90vh;
    width: 95vw;
    height: 90vh;
}

.pdf-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #B56141;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    text-align: center;
}

.pdf-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

#pdf-viewer {
    width: 100%;
    height: 100%;
    min-height: 70vh;
    border: none;
    border-radius: 8px;
    object-fit: contain;
}

.close-pdf-btn {
    width: 107px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid #FFD3BE;
    background: #FFF9F4;
    color: #EFB080;
    font-weight: 600;
    cursor: pointer;
}

/* Mobile layout for question modal */
@media (max-width: 768px) {
    .question-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .question-divider {
        width: 100%;
        height: 2px;
        background: #B56141;
        margin: 0;
        opacity: 0.5;
    }
    
    .question-column {
        gap: 10px;
    }
    
    .question-brand-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .question-category {
        margin-bottom: 8px;
    }
}

/* Responsive adjustments for PDF modal */
@media (max-width: 768px) {
    .pdf-dialog {
        max-width: 98vw;
        width: 98vw;
        padding: 10px;
    }
    
    .pdf-modal-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    #pdf-viewer {
        min-height: 60vh;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .pdf-dialog {
        max-width: 100vw;
        width: 100vw;
        max-height: 95vh;
        height: 95vh;
        padding: 8px;
    }
    
    .pdf-modal-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    #pdf-viewer {
        min-height: 70vh;
    }
}

@media (max-width: 480px) {
    .modal-dialog { padding: 18px; }
    .modal-title-image { max-width: 85%; }
    .btn-outline { width: 100px; height: 34px; }
    
    /* Countdown responsive */
    .countdown-container {
        gap: 0.8rem;
        flex-wrap: wrap;
        padding: 0 10px;
    }
    
    .countdown-box {
        min-width: 70px;
        max-width: calc(25% - 0.8rem);
        padding: 1rem 0.5rem;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    section {
        overflow-x: hidden;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        border-bottom: 1px solid #f1f5f9;
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        margin-left: 2rem;
        border-radius: 0;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .rule-title {
        font-size: 1.5rem;
    }
    
    .rule-details-split {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .rule-split-section {
        padding: 1rem;
    }
    
    /* Timeline Mobile Styles - Vertical Layout */
    .timeline-container {
        flex-direction: column;
        overflow-x: visible;
        overflow-y: visible;
        padding: 40px 20px 20px;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        gap: 40px;
        margin-left: 0; /* Reset desktop full-width */
    }
    
    .timeline-container::before {
        /* Vertical line for mobile */
        top: 0;
        left: 20px;
        right: auto;
        bottom: 0;
        width: 4px;
        height: auto;
        background: linear-gradient(to bottom, rgba(242,173,121,0) 0%, #F2AD79 15%, #F2AD79 85%, rgba(242,173,121,0) 100%);
    }
    
    .timeline-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: auto;
        width: 100%;
        padding-left: 50px;
        margin-left: 0; /* Reset desktop margin */
        margin-right: 0; /* Reset desktop margin */
        margin-bottom: 0;
    }
    
    .timeline-item:first-child {
        margin-left: 0; /* Reset desktop margin */
    }
    
    .timeline-item:last-child {
        margin-right: 0; /* Reset desktop margin */
    }
    
    /* Mobile timeline dot */
    .timeline-dot {
        position: absolute;
        left: -32px;
        top: 15px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: linear-gradient(45deg, #F2AD79, #EFB080);
        border: 2px solid white;
        box-shadow: 0 0 0 2px #F2AD79;
        z-index: 10;
    }
    
    /* Mobile header with horizontal layout */
    .timeline-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
        flex-wrap: wrap;
        width: 100%;
    }
    
    /* Hide timeline-title on desktop, keep timeline-header visible */
    @media (min-width: 769px) {
        .timeline-header .timeline-title {
            display: none;
        }
    }
    
    .timeline-date {
        font-size: 0.85rem;
        padding: 6px 12px;
        background: linear-gradient(135deg, #F2AD79, #EFB080);
        color: white;
        border-radius: 20px;
        white-space: nowrap;
        font-weight: 500;
        flex-shrink: 0;
        width: auto; /* Reset desktop styling */
        height: auto; /* Reset desktop styling */
        margin: 0; /* Reset desktop margin */
        display: flex; /* Reset desktop styling */
    }
    
    .timeline-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #F2AD79;
        margin: 0;
        flex: 1;
        text-transform: uppercase;
    }
    
    .timeline-content {
        padding: 15px 0; /* Remove horizontal padding, keep vertical */
        min-height: auto;
        width: 100%;
        text-align: left;
        background: transparent; /* Remove background box */
        border-radius: 0; /* Remove rounded corners */
        margin-bottom: 15px;
        border-left: none; /* Remove left border */
        display: flex; /* Reset desktop styling */
        flex-direction: column; /* Reset desktop styling */
        justify-content: flex-start; /* Reset desktop styling */
    }
    
    .timeline-content p {
        font-size: 0.85rem;
        margin: 0;
        line-height: 1.5;
        color: #F2AD79;
        opacity: 1; /* Reset desktop opacity */
    }
    
    /* Mobile image styling */
    .timeline-image {
        width: 100%;
        max-width: 280px;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        align-self: flex-start;
        margin-bottom: 0; /* Reset desktop margin */
    }
    
    .participants-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .countdown-box {
        min-width: 100px;
        padding: 1.5rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .regulations-content {
        grid-template-columns: 1fr;
    }
    
    .sponsors-row {
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Timeline Small Mobile */
    .timeline-item {
        min-width: 180px;
    }
    
    .timeline-item:not(:last-child) {
        margin-right: 40px;
    }
    
    .timeline-content {
        padding: 12px;
        min-height: 90px;
    }
    
    .timeline-content h3 {
        font-size: 0.95rem;
    }
    
    .timeline-content p {
        font-size: 0.8rem;
    }
    
    .timeline-date {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .countdown-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .sponsor-item.diamond,
    .sponsor-item.gold,
    .sponsor-item.silver,
    .sponsor-item.bronze,
    .sponsor-item.bronze-items {
        width: auto;
        height: 100px;
    }
    
    .sponsor-logo {
        height: 80px;
    }
    
    /* Mobile sponsor tier specific sizing */
    .sponsor-item.diamond .sponsor-logo {
        height: 240px; /* 300% of mobile base 80px */
    }

    .sponsor-item.gold .sponsor-logo {
        height: 200px; /* 250% of mobile base 80px */
    }

    .sponsor-item.silver .sponsor-logo {
        height: 160px; /* 200% of mobile base 80px */
    }

    .sponsor-item.bronze .sponsor-logo {
        height: 120px; /* 150% of mobile base 80px */
    }

    .sponsor-item.bronze-items .sponsor-logo {
        height: 80px; /* 100% of mobile base */
    }
}

/* Member Slider Styles */
.member-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.member-slider-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.member-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 5px; /* Small padding to prevent content touching edges */
}

.slide-content-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent content from overflowing horizontally */
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #FFE4D6; /* Lighter color for inactive */
    border: 1px solid #EFB080;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #B56141; /* Darker, high contrast color for active */
    border-color: #B56141;
    transform: scale(1.2);
}

.slider-dot.hidden {
    display: none;
}

.member-slide.hidden {
    display: none;
}

/* Hide scrollbar for clean look if we use native scroll */
.member-slider-container::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    body {
        background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('images/mainBackgroundPhone.png');
    }
}

/* ====================================
   FILE UPLOAD STYLES
   ==================================== */

.upload-container {
    margin: 20px 0;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #f59e0b;
    background-color: #fff7ed;
}

.upload-icon {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

.upload-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #f59e0b;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 12px;
}

.upload-btn:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.upload-btn i {
    margin-right: 8px;
}

.upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.file-preview {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    background-color: white;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-icon {
    font-size: 40px;
    color: #dc2626;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
}

.file-size {
    font-size: 14px;
    color: #666;
}

.remove-file-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.remove-file-btn:hover {
    color: #dc2626;
}

/* File upload progress (optional for future) */
.upload-progress {
    margin-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #f59e0b;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

/* ====================================
   MOBILE RESPONSIVE FOR UPLOAD
   ==================================== */

@media (max-width: 768px) {
    .upload-area {
        padding: 30px 15px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .upload-text {
        font-size: 14px;
    }

    .upload-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .file-icon {
        font-size: 32px;
    }

    .file-name {
        font-size: 14px;
    }

    .file-size {
        font-size: 12px;
    }
}
