/* PCRC Cycling Club Theme - Home Page */

/* CSS Variables for your color palette */
:root {
    --deep-blue: #004e9e;
    --light-blue: #1ca2dd;
    --yellow: #ffe400;
    --white: #ffffff;
    --dark-blue: #002f6c;
    --shadow: rgba(0, 78, 158, 0.3);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    grid-template-areas: 
        "header header header"
        "left-sidebar main right-sidebar"
        "footer footer footer";
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh; /* Ensure full height */
    /* Add fallback background color for mobile */
    background-color: var(--deep-blue);
}

/* Ensure html also has the background for mobile devices */
html {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%);
    background-color: var(--deep-blue); /* Fallback */
    min-height: 100%;
}

/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, var(--light-blue) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--yellow) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px;
    opacity: 0.1;
    z-index: -1;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

/* Header spans full width */
header {
    grid-area: header;
    background: linear-gradient(45deg, var(--light-blue), var(--deep-blue));
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--yellow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw; /* Full viewport width */
    max-width: none; /* Remove max-width constraint */
    z-index: 2000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px var(--shadow);
    border-radius: 0 0 20px 20px;
    animation: slideDown 0.8s ease-out;
    margin: 0; /* Remove any margin */
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.logo a {
    text-decoration: none;
    color: var(--yellow);
    font-size: 1.8em;
    font-weight: bold;
}

.logo img {
    width: 80px;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--yellow);
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px var(--yellow); }
    to { box-shadow: 0 0 20px var(--yellow), 0 0 30px var(--yellow); }
}

.logo img:hover {
    transform: rotate(360deg);
    border-color: var(--white);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    z-index: 2001;
    position: relative;
    min-width: 0; /* Allow nav to shrink if needed */
    flex-shrink: 0; /* Prevent nav from shrinking too much */
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.menu li {
    position: relative;
}

.menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 12px 20px;
    border-radius: 25px;
    background: linear-gradient(45deg, transparent, rgba(255, 228, 0, 0.1));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    transition: left 0.5s ease;
}

.menu li a:hover::before {
    left: 100%;
}

.menu li a:hover {
    background: var(--yellow);
    color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 228, 0, 0.4);
}

/* Dropdown Menu */
.dropdown .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-blue);
    border: 2px solid var(--yellow);
    border-radius: 15px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 10px 30px var(--shadow);
    z-index: 10000; /* Even higher z-index */
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.sub-menu li a {
    color: var(--white) !important;
    padding: 12px 20px !important;
    display: block !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    transform: none !important;
    box-shadow: none !important;
}

.sub-menu li a:hover {
    background: var(--light-blue) !important;
    color: var(--white) !important;
    padding-left: 30px !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    background: var(--yellow);
    color: var(--dark-blue);
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    transform: rotate(180deg);
    background: var(--white);
}

/* Main Content */
main {
    grid-area: main;
    padding: 120px 15px 40px; /* Reduced side padding */
    max-width: 1000px; /* Reduced from 1200px */
    margin: 0 auto;
}

/* Left Sidebar - News */
.news {
    grid-area: left-sidebar;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.9));
    backdrop-filter: blur(10px);
    border: 2px solid var(--light-blue);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    color: var(--dark-blue);
    transition: all 0.3s ease;
    height: fit-content;
    position: sticky;
    top: 160px;
    margin-top: 140px;
    z-index: 1; /* Much lower z-index */
}

/* Right Sidebar - Sponsors */
.sponsors {
    grid-area: right-sidebar;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 225, 0.9));
    backdrop-filter: blur(10px);
    border: 2px solid var(--yellow);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(255, 228, 0, 0.3);
    color: var(--dark-blue);
    transition: all 0.3s ease;
    height: fit-content;
    position: sticky;
    top: 160px;
    margin-top: 140px;
    z-index: 1; /* Much lower z-index */
}

/* Main Content Sections - Back to Original Theme */
.video-section, .welcome, .highlights {
    background: linear-gradient(135deg, rgba(28, 162, 221, 0.1), rgba(0, 78, 158, 0.1));
    backdrop-filter: blur(10px);
    border: 2px solid var(--light-blue);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    color: var(--white);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 30px;
}

/* Video section specific centering */
.video-section {
    text-align: center;
    padding: 20px; /* Reduced padding to save space */
    min-height: auto; /* Remove any min-height restrictions */
}

.video-section:hover, .welcome:hover, .highlights:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

/* Section Headings - Back to Original */
.video-section h2, .welcome h1, .highlights h2 {
    color: var(--yellow);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(255, 228, 0, 0.3);
}

.welcome h1 {
    font-size: 2.5em;
    background: linear-gradient(45deg, var(--yellow), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Video Styling - Updated for better large screen display */
video {
    width: 100%;
    max-width: 800px; /* Increased from 600px */
    height: auto;
    max-height: 60vh; /* Limit height to 60% of viewport height */
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    display: block;
    border: 3px solid var(--yellow);
    object-fit: contain; /* Ensures video maintains aspect ratio */
}

/* Alternative responsive video approach */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    /* aspect-ratio: 16/9; /* Adjust based on your video's aspect ratio */
}

.video-container video {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 60vh;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: block;
    border: 3px solid var(--yellow);
    object-fit: contain;
    position: relative;
}

/* Video caption styling */
.video-container {
    margin: 0 auto;
    text-align: center;
    position: relative; /* Change from absolute positioning issues */
    width: 100%;
    max-width: 800px;
    /* Remove the aspect-ratio and absolute positioning */
}

.video-container figcaption {
    color: var(--yellow);
    font-size: 0.9em; /* Made smaller */
    font-style: italic;
    margin-top: 15px;
    padding: 8px 12px; /* Reduced padding */
    background: rgba(0, 78, 158, 0.8);
    border-radius: 8px; /* Smaller border radius */
    text-align: center;
    max-width: 500px; /* Reduced from 600px */
    margin-left: auto;
    margin-right: auto;
    border: 2px solid var(--light-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative; /* Ensure it's not absolute positioned */
    z-index: 1;
}

/* Mobile responsive for video caption - make even smaller */
@media (max-width: 768px) {
    .video-container figcaption {
        font-size: 0.8em; /* Smaller on mobile */
        padding: 6px 10px;
        margin-top: 12px;
        max-width: 90%; /* Use percentage for mobile */
    }
}

@media (max-width: 600px) {
    .video-container figcaption {
        font-size: 0.75em; /* Even smaller */
        padding: 5px 8px;
        margin-top: 10px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .video-container figcaption {
        font-size: 0.7em; /* Very small on small screens */
        padding: 4px 6px;
        margin-top: 8px;
    }
}

/* Route Highlights Grid */
.highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px; /* Reduced from 40px */
    margin: 40px 0;
    padding: 0 10px; /* Reduced from 20px */
    max-width: 100%; /* Ensure it doesn't exceed container */
    overflow: hidden; /* Prevent any overflow */
}

.testimonies, .achievements {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px; /* Reduced from 30px */
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 100%; /* Ensure boxes don't exceed their container */
    overflow: hidden; /* Prevent content overflow */
}

/* Carousel Container */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    max-width: 100%;
    margin: 0 auto; /* Center the container */
    padding: 0; /* Remove padding that's causing button cutoff */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.testimony-box, .achievement-box {
    min-width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-blue);
    border-radius: 10px;
    text-align: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Show the active item and the first item by default */
.testimony-box.active, 
.achievement-box.active,
.testimony-box:first-child,
.achievement-box:first-child {
    opacity: 1 !important;
}

/* Ensure testimonies and achievements headings are visible */
.testimonies h2, .achievements h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--yellow);
    font-size: 1.8em;
    opacity: 1 !important; /* Make sure headings are always visible */
}

/* Testimony specific styles */
.testimony-box .quote {
    font-size: 1.1em;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--deep-blue);
}

.testimony-box .author {
    font-weight: bold;
    color: var(--light-blue);
    font-size: 0.9em;
}

/* Achievement specific styles */
.achievement-box h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: var(--deep-blue);
}

.achievement-box p {
    font-size: 1em;
    line-height: 1.5;
    color: var(--dark-blue);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--yellow);
    color: var(--dark-blue);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hide by default */
    pointer-events: none; /* Disable click when hidden */
}

/* Show buttons when hovering over the carousel container */
.carousel-container:hover .carousel-btn {
    opacity: 1;
    pointer-events: all; /* Enable click when visible */
}

.carousel-btn:hover {
    background: var(--light-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Position buttons inside the container */
.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* For touch devices - show buttons on touch/tap */
@media (hover: none) {
    .carousel-btn {
        opacity: 0.6; /* Semi-transparent on touch devices */
        pointer-events: all;
    }
    
    .carousel-container:hover .carousel-btn,
    .carousel-container:active .carousel-btn {
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1.2em;
        opacity: 0.5; /* Slightly visible on mobile for better UX */
    }
    
    .carousel-container:hover .carousel-btn {
        opacity: 1;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 1.1em;
    }
    
    .prev-btn {
        left: 3px;
    }
    
    .next-btn {
        right: 3px;
    }
}

/* Footer spans full width */
footer {
    grid-area: footer;
    background: linear-gradient(45deg, var(--light-blue), var(--deep-blue));
    color: var(--yellow);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px var(--shadow);
    transition: all 0.3s ease;
    border-top: 3px solid var(--yellow);
}

footer:hover {
    transform: translateY(-5px);
    box-shadow: 0 -8px 30px var(--shadow);
}

footer p {
    margin: 10px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

footer a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

footer a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

footer a:hover::before {
    width: 100%;
}

footer a:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--yellow);
}

/* Social links styling - Facebook blue theme */
.social-links {
    margin: 15px 0;
    text-align: center;
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border: 2px solid #1877f2;
    border-radius: 25px;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    transition: all 0.3s ease;
    font-size: 1em;
}

.facebook-link:hover {
    background: #1877f2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

.facebook-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(24, 119, 242, 0.2);
}

.facebook-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    fill: currentColor;
}

.facebook-link:hover .facebook-icon {
    transform: scale(1.1);
}

/* Race Banner Popup Styling - No backdrop box */
#race-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--yellow) 0%, var(--light-blue) 100%);
    color: var(--dark-blue);
    padding: 30px 45px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 4px solid var(--deep-blue);
    z-index: 9999;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    max-width: 600px;
    width: 90%;
    display: none;
    font-family: Arial, sans-serif;
    /* Add subtle backdrop blur to the banner itself */
    backdrop-filter: blur(2px);
}

/* Close button */
.close-banner {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    font-weight: bold;
    color: var(--dark-blue);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-blue);
    transition: all 0.3s ease;
}

.close-banner:hover {
    background: var(--dark-blue);
    color: var(--yellow);
    transform: rotate(90deg) scale(1.1);
}

/* Video content styling */
.video-content {
    text-align: center;
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(28, 162, 221, 0.05) 100%);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(28, 162, 221, 0.4);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.video-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(28, 162, 221, 0.25);
    border-color: var(--light-blue);
}

.video-content p {
    color: var(--white);
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Style the link as inline text with special highlighting */
.video-content a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
    display: inline;
    padding: 2px 4px;
    border-radius: 4px;
    background: linear-gradient(135deg, 
        rgba(255, 228, 0, 0.2) 0%, 
        rgba(255, 228, 0, 0.1) 100%);
}

.video-content a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--yellow), var(--light-blue));
    transition: width 0.3s ease;
    border-radius: 1px;
}

.video-content a:hover {
    color: var(--white);
    background: linear-gradient(135deg, 
        rgba(255, 228, 0, 0.4) 0%, 
        rgba(28, 162, 221, 0.3) 100%);
    text-shadow: 0 0 8px var(--yellow);
    transform: translateY(-1px);
}

.video-content a:hover::before {
    width: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .video-content {
        margin-top: 15px;
        padding: 12px 15px;
        max-width: 90%;
    }
    
    .video-content p {
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    .video-content {
        margin-top: 12px;
        padding: 10px 12px;
        border-radius: 12px;
    }
    
    .video-content p {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .video-content {
        margin-top: 10px;
        padding: 8px 10px;
    }
    
    .video-content p {
        font-size: 0.9em;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
    body {
        grid-template-columns: 200px 1fr 200px;
    }
    
    .menu {
        gap: 10px;
    }
    
    .menu li a {
        padding: 10px 15px;
        font-size: 1em;
    }
}

@media (max-width: 900px) {
    html {
        background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%) !important;
        background-attachment: fixed;
        background-color: var(--deep-blue) !important;
    }
    
    body {
        background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%) !important;
        background-attachment: fixed;
        background-color: var(--deep-blue) !important;
        min-height: 100vh !important;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "main"
            "left-sidebar"
            "right-sidebar"
            "footer";
        gap: 10px;
    }
    
    /* Force background on mobile viewport */
    body::before {
        background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%);
        background-image: 
            radial-gradient(circle at 20% 50%, var(--light-blue) 1px, transparent 1px),
            radial-gradient(circle at 80% 20%, var(--yellow) 1px, transparent 1px);
        background-size: 100px 100px, 150px 150px;
        opacity: 0.15; /* Slightly more visible on mobile */
    }
    
    header {
        width: 100vw;
        left: 0;
        right: 0;
        max-width: none;
    }
    
    .news, .sponsors {
        position: static;
        margin: 20px;
        margin-top: 20px;
        z-index: 0;
    }
    
    main {
        padding: 160px 20px 40px;
        z-index: 0;
    }
    
    nav {
        width: 100%;
        justify-content: center;
        position: relative;
        z-index: 2001;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--dark-blue);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10000;
        border-radius: 0 0 20px 20px;
        padding: 20px 0;
        gap: 0;
    }
    
    .menu.active {
        display: flex;
        animation: slideDown 0.5s ease;
    }
    
    .menu li {
        padding: 10px 0;
        text-align: center;
        width: 100%;
    }
    
    /* Mobile logo adjustments */
    .logo img {
        width: 60px;
    }
    
    .logo a {
        font-size: 1.4em;
    }
    
    /* Mobile video adjustments */
    video {
        max-width: 100%;
        max-height: 50vh;
    }
    
    .video-section {
        padding: 15px;
    }
    
    .video-section h2 {
        font-size: 1.8em;
    }
    
    /* Better text sizing for mobile */
    body {
        font-size: 16px; /* Ensure base font size is readable */
        line-height: 1.7; /* Increase line height for better readability */
    }
    
    /* Improved sidebar readability */
    .news, .sponsors {
        font-size: 1em;
        line-height: 1.6;
        padding: 25px;
        margin: 15px;
    }
    
    .news h2, .sponsors h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
        color: var(--deep-blue);
    }
    
    .news p, .sponsors p {
        font-size: 1em;
        color: var(--dark-blue);
    }
}

@media (max-width: 768px) {
    html, body {
        background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%) !important;
        background-color: var(--deep-blue) !important;
        background-attachment: fixed !important;
    }
    
    body {
        gap: 5px;
    }
    
    .news, .sponsors {
        margin: 10px;
        padding: 20px;
    }
    
    main {
        padding: 140px 10px 20px;
    }
    
    .highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .welcome h1 {
        font-size: 2em;
    }
    
    .video-section, .welcome, .highlights {
        padding: 20px;
    }
    
    .testemosies, .achievements {
        padding: 20px;
    }
    
    header {
        padding: 12px 15px;
    }
    
    .logo img {
        width: 50px;
    }
    
    .logo a {
        font-size: 1.2em;
    }
    
    /* Better main content readability */
    .welcome p, .testemosies p, .achievements p {
        font-size: 1.1em !important;
        line-height: 1.7 !important;
        margin-bottom: 15px;
    }
    
    /* Improved section headers */
    .testemosies h2, .achievements h2 {
        font-size: 1.4em !important;
        margin-bottom: 20px;
    }
    
    /* Better sidebar text */
    .news, .sponsors {
        font-size: 1.05em;
        padding: 20px;
    }
    
    .news h2, .sponsors h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 600px) {
    html, body {
        background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%) !important;
        background-color: var(--deep-blue) !important;
        background-attachment: fixed !important;
        min-height: 100vh !important;
    }
    
    /* Rest of existing 600px breakpoint code... */
    main {
        padding: 120px 15px 20px;
    }
    
    .video-section, .welcome, .highlights {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .welcome h1 {
        font-size: 1.8em;
    }
    
    .video-section h2 {
        font-size: 1.6em;
    }
    
    video {
        max-height: 40vh;
        border-radius: 10px;
    }
    
    .news, .sponsors {
        margin: 15px;
        padding: 15px;
    }
    
    .facebook-link {
        font-size: 0.9em;
        padding: 8px 12px;
    }
    
    .facebook-icon {
        width: 18px;
        height: 18px;
    }
    
    header {
        padding: 10px 15px;
    }
    
    .logo img {
        width: 45px;
    }
    
    .logo a {
        font-size: 1.1em;
    }
    
    /* Ensure all text is readable */
    body {
        font-size: 17px; /* Slightly larger base font */
    }
    
    /* Main content improvements */
    .welcome p {
        font-size: 1.15em !important;
        line-height: 1.8 !important;
        margin-bottom: 20px;
    }
    
    .testemosies p, .achievements p {
        font-size: 1.1em !important;
        line-height: 1.7 !important;
    }
    
    /* Better video section text */
    .video-section h2 {
        font-size: 1.7em !important;
        margin-bottom: 15px;
    }
    
    .video-section p {
        font-size: 1.1em !important;
        line-height: 1.6 !important;
        margin: 10px 0;
    }
    
    /* Sidebar improvements */
    .news, .sponsors {
        padding: 18px;
        margin: 12px;
        border-radius: 15px;
    }
    
    .news h2, .sponsors h2 {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    
    .news p, .sponsors p {
        font-size: 1em;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    /* Add missing 480px breakpoint improvements */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    main {
        padding: 110px 12px 20px;
    }
    
    /* Ensure readable text sizes */
    .welcome h1 {
        font-size: 1.9em !important;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .welcome p {
        font-size: 1.1em !important;
        line-height: 1.8 !important;
        margin-bottom: 18px;
    }
    
    .testemosies h2, .achievements h2 {
        font-size: 1.3em !important;
        margin-bottom: 15px;
    }
    
    .testemosies p, .achievements p {
        font-size: 1.05em !important;
        line-height: 1.7 !important;
    }
    
    /* Video section mobile optimization */
    .video-section {
        padding: 15px;
    }
    
    .video-section h2 {
        font-size: 1.5em !important;
        margin-bottom: 12px;
    }
    
    video {
        max-height: 35vh;
        border-radius: 12px;
        margin: 15px 0;
    }
    
    /* Sidebar mobile optimization */
    .news, .sponsors {
        padding: 15px;
        margin: 10px;
        font-size: 0.95em;
    }
    
    .news h2, .sponsors h2 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
}

@media (max-width: 400px) {
    .sponsors {
        margin: 8px;
        padding: 12px;
    }
    
    .sponsors h2 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    .sponsors h3 {
        font-size: 0.8em;
        margin-bottom: 10px;
    }
    
    .sponsors p {
        font-size: 0.75em;
        padding: 4px 6px;
        margin: 2px 0;
    }
}

/* Enhanced Sponsors Section Styling */
.sponsors {
    grid-area: right-sidebar;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 248, 225, 0.9) 50%,
        rgba(255, 240, 200, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 3px solid var(--yellow);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(255, 228, 0, 0.3);
    color: var(--dark-blue);
    transition: all 0.3s ease;
    height: fit-content;
    position: sticky;
    top: 160px;
    margin-top: 140px;
    z-index: 1;
    overflow: hidden;
    position: relative;
}

/* Add animated border glow */
.sponsors::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--yellow), var(--light-blue), var(--yellow));
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Sponsors heading */
.sponsors h2 {
    color: var(--deep-blue);
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 78, 158, 0.3);
    background: linear-gradient(45deg, var(--deep-blue), var(--light-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 10px;
}

.sponsors h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    border-radius: 2px;
}

/* Sponsors subtitle */
.sponsors h3 {
    color: var(--blue);
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
    padding: 10px;
    background: rgba(28, 162, 221, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(28, 162, 221, 0.3);
}

/* Individual sponsor names */
.sponsors p {
    color: var(--dark-blue);
    font-size: 1em;
    font-weight: 600;
    margin: 8px 0;
    padding: 12px 15px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8), 
        rgba(255, 228, 0, 0.1));
    border-radius: 12px;
    border-left: 4px solid var(--yellow);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Sponsor hover effects */
.sponsors p:hover {
    transform: translateX(8px) scale(1.02);
    background: linear-gradient(135deg, var(--yellow), rgba(255, 228, 0, 0.8));
    color: var(--dark-blue);
    box-shadow: 0 6px 20px rgba(255, 228, 0, 0.4);
    border-left-color: var(--light-blue);
}

/* Add subtle animation to sponsor items */
.sponsors p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.sponsors p:hover::before {
    left: 100%;
}

/* Add sponsor icons */
.sponsors p::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.sponsors p:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

/* Alternating sponsor styles */
.sponsors p:nth-child(odd) {
    border-left-color: var(--light-blue);
}

.sponsors p:nth-child(even) {
    border-left-color: var(--yellow);
}

.sponsors p:nth-child(odd):hover {
    background: linear-gradient(135deg, var(--light-blue), rgba(28, 162, 221, 0.8));
    color: white;
    border-left-color: var(--yellow);
}

.sponsors p:nth-child(even):hover {
    background: linear-gradient(135deg, var(--yellow), rgba(255, 228, 0, 0.8));
    color: var(--dark-blue);
    border-left-color: var(--light-blue);
}

/* Add thank you message styling */
.sponsors h3 {
    position: relative;
    overflow: hidden;
}

.sponsors h3::before {
    content: '🙏';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: thankYou 2s ease-in-out infinite;
}

.sponsors h3::after {
    content: '🤝';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: thankYou 2s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes thankYou {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

/* Mobile responsive sponsors */
@media (max-width: 900px) {
    .sponsors {
        position: static;
        margin: 20px;
        margin-top: 20px;
        padding: 25px;
        border-radius: 20px;
    }
    
    .sponsors h2 {
        font-size: 1.6em;
    }
    
    .sponsors h3 {
        font-size: 1em;
        padding: 8px;
    }
    
    .sponsors p {
        font-size: 0.95em;
        padding: 10px 12px;
        margin: 6px 0;
    }
}

@media (max-width: 768px) {
    .sponsors {
        margin: 15px;
        padding: 20px;
    }
    
    .sponsors h2 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    
    .sponsors h3 {
        font-size: 0.95em;
        margin-bottom: 15px;
    }
    
    .sponsors p {
        font-size: 0.9em;
        padding: 8px 10px;
        margin: 5px 0;
    }
}

@media (max-width: 600px) {
    .sponsors {
        margin: 12px;
        padding: 18px;
        border-radius: 15px;
    }
    
    .sponsors h2 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    
    .sponsors h3 {
        font-size: 0.9em;
        margin-bottom: 12px;
        padding: 6px;
    }
    
    .sponsors p {
        font-size: 0.85em;
        padding: 6px 8px;
        margin: 4px 0;
    }
    
    .sponsors p::after {
        font-size: 1em;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .sponsors {
        margin: 10px;
        padding: 15px;
    }
    
    .sponsors h2 {
        font-size: 1.2em;
    }
    
    .sponsors h3 {
        font-size: 0.85em;
        padding: 5px;
    }
    
    .sponsors p {
        font-size: 0.8em;
        padding: 5px 7px;
        margin: 3px 0;
    }
    
    .sponsors h3::before,
    .sponsors h3::after {
        font-size: 1em;
    }
}

@media (max-width: 400px) {
    .sponsors {
        margin: 8px;
        padding: 12px;
    }
    
    .sponsors h2 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    .sponsors h3 {
        font-size: 0.8em;
        margin-bottom: 10px;
    }
    
    .sponsors p {
        font-size: 0.75em;
        padding: 4px 6px;
        margin: 2px 0;
    }
}

/* Enhanced News Section Styling - matching sponsors */
.news {
    grid-area: left-sidebar;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(225, 248, 255, 0.9) 50%,
        rgba(200, 240, 255, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 3px solid var(--light-blue);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(28, 162, 221, 0.3);
    color: var(--dark-blue);
    transition: all 0.3s ease;
    height: fit-content;
    position: sticky;
    top: 160px;
    margin-top: 140px;
    z-index: 1;
    overflow: hidden;
    position: relative;
}

/* Add animated border glow for news */
.news::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--light-blue), var(--yellow), var(--light-blue));
    border-radius: 25px;
    z-index: -1;
    animation: newsBorderGlow 3s ease-in-out infinite;
}

@keyframes newsBorderGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* News heading */
.news h2 {
    color: var(--deep-blue);
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(28, 162, 221, 0.3);
    background: linear-gradient(45deg, var(--light-blue), var(--deep-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 10px;
}

.news h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
    border-radius: 2px;
}

/* News content */
.news p {
    color: var(--dark-blue);
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8), 
        rgba(28, 162, 221, 0.1));
    border-radius: 15px;
    border-left: 4px solid var(--light-blue);
    box-shadow: 0 4px 15px rgba(28, 162, 221, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 0;
}

/* News hover effects */
.news p:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, var(--light-blue), rgba(28, 162, 221, 0.8));
    color: white;
    box-shadow: 0 8px 25px rgba(28, 162, 221, 0.4);
    border-left-color: var(--yellow);
}

/* Add shimmer effect to news */
.news p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.news p:hover::before {
    left: 100%;
}

/* Add news icon */
.news p::after {
    content: '⚡';
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.5em;
    opacity: 0.6;
    transition: all 0.3s ease;
    animation: sparkle 3s ease-in-out infinite;
}

.news p:hover::after {
    opacity: 1;
    transform: scale(1.3) rotate(20deg);
    color: var(--yellow);
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
}


@keyframes newBadge {
    0%, 100% { transform: rotate(-15deg) scale(1); }
    50% { transform: rotate(-15deg) scale(1.1); }
}

/* Mobile responsive news */
@media (max-width: 900px) {
    .news {
        position: static;
        margin: 20px;
        margin-top: 20px;
        padding: 25px;
        border-radius: 20px;
    }
    
    .news h2 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    
    .news p {
        font-size: 1em;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .news {
        margin: 15px;
        padding: 20px;
    }
    
    .news h2 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    
    .news p {
        font-size: 0.95em;
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .news {
        margin: 12px;
        padding: 18px;
        border-radius: 15px;
    }
    
    .news h2 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    
    .news p {
        font-size: 0.9em;
        padding: 10px;
    }
    
    .news p::after {
        font-size: 1.3em;
        right: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .news {
        margin: 10px;
        padding: 15px;
    }
    
    .news h2 {
        font-size: 1.2em;
    }
    
    .news p {
        font-size: 0.85em;
        padding: 8px;
    }
}

@media (max-width: 400px) {
    .news {
        margin: 8px;
        padding: 12px;
    }
    
    .news h2 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    .news p {
        font-size: 0.8em;
        padding: 6px;
    }
}