/*
Theme Name: Green Ridge Forum
Description: A modern WordPress theme for the Kenya-China Partnership Economic Forum 2025. Features a responsive design with hero section, registration forms, and admin portal functionality.
Author: Green Ridge Advisory
Version: 1.0
License: GPL v2 or later
Text Domain: greenridge-forum
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1a5490;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a5490;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: #1a5490;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    padding: 0.5rem 0;
}

nav a:hover {
    color: #d4af37;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #1a5490;
    padding: 0.5rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    color: #1a5490;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    padding: 2rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 84, 144, 0.7), rgba(212, 175, 55, 0.7));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 2rem;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    word-wrap: break-word;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.event-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 600px;
}

.event-details h2 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: 1rem;
    color: #d4af37;
}

.event-details p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    min-width: 150px;
    text-align: center;
}

.cta-primary {
    background: #d4af37;
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-primary:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
    background: white;
    color: #1a5490;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}


/* Partnership Logos Section */
.partnership-logos {
    background: #ffffff;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 300px;
}

.logo-item.ministry {
    flex-grow: 2;
    max-width: none;
}

.logo-item.ministry .logo-emblem {
    width: 100%;
}

.logo-emblem {
    flex-shrink: 0;
}

.logo-emblem img {
    display: block;
    max-width: 100%;
}

.logo-item.ministry .logo-emblem img {
    height: 150px;
    width: auto;
    object-fit: contain;
}

.logo-emblem svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a5490;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.company-type {
    font-size: 1rem;
    color: white;
    background: #d4af37;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.partnership-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0 2rem;
    color: #333;
}

.in-text, .with-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: #666;
}

.partnership-bold {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1a5490;
    letter-spacing: 0.1em;
}

.logo-item.ministry .logo-text {
    text-align: right;
}

.ministry-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    display: block;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.ministry-subtitle {
    font-size: 1rem;
    color: #666;
    display: block;
}

/* Responsive Design for Partnership Logos */
@media (max-width: 968px) {
    .logos-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .partnership-text {
        transform: none;
    }
    
    .in-text, .with-text, .partnership-bold {
        font-size: 1rem;
    }
    
    .logo-item {
        justify-content: center;
        text-align: center;
        max-width: 100%;
    }
    
    .logo-item.ministry .logo-text {
        text-align: center;
    }
    
    .logo-item.ministry {
        flex-grow: 1;
        min-width: auto;
    }
    
    .logo-emblem img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .company-name {
        font-size: 1.4rem;
    }
    
    .ministry-title {
        font-size: 1.2rem;
    }
    
    .ministry-subtitle {
        font-size: 0.9rem;
    }
    
    .logo-item {
        min-width: auto;
    }
    
    .logo-item.ministry .logo-emblem img {
        max-height: 120px;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
    margin: 2rem 0;
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: #1a5490;
    padding: 0 1rem;
}

/* About Section */
.about {
    background: #f8f9fa;
    margin-top: 4rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.about-content h3 {
    color: #1a5490;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.about-content ul {
    color: #555;
    line-height: 1.6;
    padding-left: 1.5rem;
}

.about-content li {
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    margin: 1rem 0;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
    color: #1a5490;
}

.stat-label {
    color: #666;
    margin-top: 0.5rem;
    font-weight: 500;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

/* Image Gallery Section */
.image-gallery {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    text-align: center;
}

.slide-caption h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 0.5rem;
}

.slide-caption p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #1a5490;
    transition: all 0.3s;
}

.slider-nav:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #d4af37;
}

/* Coming Soon Badge */
.coming-soon {
    display: block;
    background: linear-gradient(45deg, #d4af37, #f4d03f);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

/* Agenda Section */
.agenda {
    background: white;
    margin-top: 4rem;
}

.agenda-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.agenda-placeholder h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #1a5490;
    margin-bottom: 1rem;
    font-weight: 600;
}

.agenda-placeholder p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.notify-btn {
    background: #d4af37;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.notify-btn:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Teams Section */
.teams {
    background: #f8f9fa;
    margin-top: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    margin: 1rem 0;
    border: 1px solid #f0f0f0;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a5490, #d4af37);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

.team-info h3 {
    color: #1a5490;
    margin-bottom: 0.5rem;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
}

.team-role {
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.team-bio {
    color: #555;
    line-height: 1.6;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

/* Partnership Section */
.partnership {
    background: linear-gradient(135deg, #1a5490 0%, #2a6cb5 100%);
    color: white;
    margin-top: 4rem;
}

.partnership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.partnership-benefits {
    list-style: none;
}

.partnership-benefits li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.partnership-benefits li:before {
    content: "✓";
    background: #d4af37;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.partnership-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
}

.partnership-form h3 {
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
}

.partnership-form input, 
.partnership-form select, 
.partnership-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.partnership .section-title {
    color: white;
}

/* Participants Section */
.participants {
    background: #f8f9fa;
    margin-top: 4rem;
}

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

.participant-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    margin: 1rem 0;
    border: 1px solid #f0f0f0;
}

.participant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.participant-card h3 {
    color: #1a5490;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    margin: 1rem 0;
}

.participant-card p {
    color: #555;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.participant-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a5490, #d4af37);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Registration Section */
.registration {
    background: linear-gradient(135deg, #1a5490 0%, #d4af37 100%);
    color: white;
    text-align: center;
}

.registration-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.registration-form h3 {
    color: white;
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: white;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.form-group input.error {
    border: 2px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0;
}

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

.footer-section h3 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.footer-section p,
.footer-section li {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-info {
    margin-bottom: 0.5rem;
}

/* Floating Countdown Timer */
.floating-countdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a5490 0%, #2c7be5 100%);
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #ffd700;
    font-family: Arial, sans-serif;
}

.floating-countdown.show {
    transform: translateY(0);
}

.countdown-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.countdown-info h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: white;
}

.countdown-display {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.countdown-item {
    text-align: center;
    min-width: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.3rem 0.2rem;
}

.countdown-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    margin-bottom: 0.2rem;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
    color: white;
}

.countdown-message {
    font-size: 0.8rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    color: white;
}

.countdown-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.countdown-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Add padding to body when countdown is shown */
body.countdown-visible {
    padding-bottom: 80px;
}

/* Mobile Responsiveness */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    .about-content, 
    .partnership-content {
        gap: 3rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu {
        display: block !important;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1001;
        background: none;
        border: none;
        color: #1a5490;
        padding: 0.5rem;
        position: relative;
    }

    /* Hide desktop navigation on mobile */
    nav ul {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 84, 144, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        padding: 2rem;
        margin: 0;
        box-sizing: border-box;
    }

    nav ul.active {
        display: flex !important;
    }

    nav ul li {
        margin: 0;
        list-style: none;
        width: 100%;
        text-align: center;
    }

    nav ul a {
        color: white;
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 25px;
        transition: all 0.3s;
        display: block;
        text-decoration: none;
        width: 100%;
        box-sizing: border-box;
    }

    nav ul a:hover {
        background: rgba(212, 175, 55, 0.2);
        color: #d4af37;
    }

    /* Mobile Header Adjustments */
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .logo-text {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    /* Language Switcher Mobile */
    .language-switcher {
        position: absolute;
        top: 50%;
        right: 60px;
        transform: translateY(-50%);
        z-index: 1002;
    }

    .language-switcher select {
        font-size: 0.8rem;
        padding: 0.3rem;
    }

    /* Mobile Hero Section */
    .hero {
        margin-top: 60px;
        padding: 2rem 0;
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        position: relative;
    }

    .hero-content {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        z-index: 2;
        margin: 0;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        line-height: 1.2;
        margin-bottom: 1rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-content p {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        margin-bottom: 1.5rem;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .event-details {
        margin: 1.5rem 0.5rem;
        padding: 1.5rem;
        border-radius: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .event-details h2 {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: 0.8rem;
        word-wrap: break-word;
    }

    .event-details p {
        font-size: clamp(0.8rem, 3vw, 1rem);
        margin-bottom: 0.6rem;
        word-wrap: break-word;
    }

    /* Mobile CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: auto;
        box-sizing: border-box;
        display: block;
        text-align: center;
    }

    /* Mobile Grid Layouts */
    .about-content, 
    .partnership-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .participant-grid, 
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Mobile Section Spacing */
    .section {
        padding: 4rem 0;
        margin: 1rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    /* Mobile Container */
    .container {
        padding: 0 1rem;
    }

    /* Mobile Image Gallery */
    .slider-container {
        margin: 0 0.5rem;
        border-radius: 10px;
    }

    .slide img {
        height: 300px;
    }

    .slide-caption {
        padding: 1.5rem;
    }

    .slide-caption h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .slide-caption p {
        font-size: 0.9rem;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    /* Mobile Forms */
    .registration-form, 
    .partnership-form {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }

    /* Mobile Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        padding: 0 1rem;
    }

    /* Mobile Countdown */
    .floating-countdown {
        padding: 0.8rem;
    }
    
    .countdown-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .countdown-info h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .countdown-display {
        gap: 0.6rem;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 40px;
        padding: 0.4rem 0.3rem;
    }
    
    .countdown-number {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .countdown-message {
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }

    body.countdown-visible {
        padding-bottom: 120px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero {
        margin-top: 50px;
        padding: 1.5rem 0;
        min-height: 90vh;
    }

    .hero-content {
        padding: 0.8rem;
    }

    .hero-content h1 {
        font-size: clamp(1.3rem, 4.5vw, 1.8rem);
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: clamp(0.8rem, 3vw, 1rem);
        margin-bottom: 1.2rem;
    }

    .event-details {
        margin: 1rem 0.3rem;
        padding: 1rem;
    }

    .event-details h2 {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }

    .event-details p {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    }

    .cta-button {
        max-width: 250px;
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 0.8rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
        margin: 0.5rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .team-card, 
    .participant-card {
        padding: 2rem 1.5rem;
        margin: 0.8rem 0;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .participant-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .slider-container {
        margin: 0 0.3rem;
    }

    .slide img {
        height: 250px;
    }

    .slide-caption {
        padding: 1rem;
    }

    .slide-caption h3 {
        font-size: 1rem;
    }

    .slide-caption p {
        font-size: 0.8rem;
    }

    .registration-form, 
    .partnership-form {
        padding: 1.5rem 1rem;
        margin: 0 0.3rem;
    }

    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    /* Ensure Mobile Menu Works on Small Screens */
    .mobile-menu {
        font-size: 1.6rem;
        padding: 0.3rem;
    }

    nav ul {
        padding: 1.5rem;
    }

    nav ul a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }

    /* Language Switcher on Small Mobile */
    .language-switcher {
        right: 50px;
    }

    .language-switcher select {
        font-size: 0.7rem;
        padding: 0.2rem;
    }

    /* Small Mobile Countdown */
    .floating-countdown {
        padding: 0.6rem;
    }
    
    .countdown-display {
        gap: 0.4rem;
    }
    
    .countdown-item {
        min-width: 35px;
        padding: 0.3rem 0.2rem;
    }
    
    .countdown-number {
        font-size: 1rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .countdown-close {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .hero {
        margin-top: 45px;
        padding: 1rem 0;
        min-height: 85vh;
    }

    .hero-content {
        padding: 0.5rem;
    }

    .hero-content h1 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        margin-bottom: 0.6rem;
    }

    .hero-content p {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
        margin-bottom: 1rem;
    }

    .event-details {
        margin: 0.8rem 0.2rem;
        padding: 0.8rem;
    }

    .event-details h2 {
        font-size: clamp(0.8rem, 3vw, 1rem);
    }

    .event-details p {
        font-size: clamp(0.65rem, 2vw, 0.8rem);
    }

    .cta-button {
        max-width: 220px;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .team-card, 
    .participant-card {
        padding: 1.5rem 1rem;
    }

    .team-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }

    .slide img {
        height: 200px;
    }

    .container {
        padding: 0 0.5rem;
    }

    .registration-form, 
    .partnership-form {
        padding: 1rem 0.8rem;
        margin: 0 0.2rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
        margin-top: 50px;
    }

    .hero-content h1 {
        margin-bottom: 0.4rem;
        font-size: clamp(1.5rem, 4vw, 1.6rem);
    }

    .hero-content p {
        margin-bottom: 0.6rem;
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    }

    .event-details {
        padding: 0.8rem;
        margin: 0.6rem auto;
    }

    .cta-buttons {
        margin-top: 0.6rem;
        flex-direction: row;
        gap: 0.6rem;
        justify-content: center;
    }

    .cta-button {
        max-width: 160px;
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }

    .section {
        padding: 2rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-video, 
    .hero-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .hero-video, 
    .cta-buttons, 
    .mobile-menu, 
    .slider-nav {
        display: none !important;
    }

    .hero {
        background: #1a5490 !important;
        color: white !important;
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        page-break-inside: avoid;
        margin: 1rem 0;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Notification Styles */
.mobile-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    text-align: center;
    max-width: 90%;
    word-wrap: break-word;
}

.mobile-notification.success {
    background: #4CAF50;
    color: white;
}

.mobile-notification.error {
    background: #f44336;
    color: white;
}

.mobile-notification.info {
    background: #2196F3;
    color: white;
}

/* Touch Feedback for Mobile */
.touch-active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Mobile Header Scroll Effects */
header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

header.mobile-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Loading Spinner for Mobile */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Countdown Fix - Force Mobile Styles */
@media (max-width: 768px) {
    .floating-countdown {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(135deg, #1a5490 0%, #2c7be5 100%) !important;
        color: white !important;
        padding: 0.8rem !important;
        z-index: 1000 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
        transform: translateY(0) !important;
        display: block !important;
        font-family: Arial, sans-serif !important;
        border-top: 3px solid #ffd700 !important;
    }
    
    .floating-countdown.show {
        transform: translateY(0) !important;
    }
    
    .countdown-content {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.8rem !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .countdown-info h3 {
        color: white !important;
        font-size: 1rem !important;
        margin: 0 0 0.3rem 0 !important;
        font-weight: bold !important;
    }
    
    .countdown-display {
        display: flex !important;
        gap: 0.6rem !important;
        justify-content: center !important;
        margin: 0.5rem 0 !important;
    }
    
    .countdown-item {
        text-align: center !important;
    }
    
    .countdown-number {
        display: block !important;
        font-size: 1.2rem !important;
        font-weight: bold !important;
        color: #ffd700 !important;
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 0.3rem !important;
        border-radius: 5px !important;
        min-width: 40px !important;
    }
    
    .countdown-label {
        font-size: 0.7rem !important;
        color: white !important;
        opacity: 0.9 !important;
        margin-top: 0.2rem !important;
    }
    
    .countdown-message {
        margin: 0 !important;
        font-size: 0.8rem !important;
        color: white !important;
        opacity: 0.9 !important;
    }
    
    .countdown-close {
        background: rgba(255, 255, 255, 0.2) !important;
        border: none !important;
        color: white !important;
        font-size: 1.5rem !important;
        cursor: pointer !important;
        padding: 0.5rem !important;
        border-radius: 50% !important;
        transition: background-color 0.3s !important;
        position: absolute !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
    }
    
    .countdown-close:hover {
        background-color: rgba(255, 255, 255, 0.3) !important;
    }
}

/* Extra Small Mobile Fix */
@media (max-width: 480px) {
    .floating-countdown {
        padding: 0.6rem !important;
    }
    
    .countdown-info h3 {
        font-size: 0.9rem !important;
    }
    
    .countdown-number {
        font-size: 1rem !important;
        min-width: 35px !important;
        padding: 0.2rem !important;
    }
    
    .countdown-label {
        font-size: 0.6rem !important;
    }
    
    .countdown-message {
        font-size: 0.7rem !important;
    }
}

/* Custom Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.custom-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    position: relative;
}

/* Enlarged modal for payment iframe */
.custom-modal-content.payment-iframe-modal {
    max-width: 900px;
    width: 95%;
    max-height: 95vh;
    height: 90vh;
}

/* Close button in modal header */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Payment iframe container */
.iframe-container {
    width: 100%;
    height: 600px;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #1a5490;
}

#paymentIframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Payment container */
.payment-container {
    margin: 20px 0;
}

.payment-message {
    font-size: 1.1rem;
    color: #1a5490;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-header {
    background: linear-gradient(135deg, #1a5490, #d4af37);
    color: white;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.success-icon, .error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-message, .error-message {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.reference-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #1a5490;
}

.reference-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #1a5490;
}

.redirect-info {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid #1a5490;
}

.redirect-info p {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #1a5490;
    font-weight: 600;
}

#countdown {
    font-size: 1.3rem;
    font-weight: bold;
    color: #d4af37;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a5490, #d4af37);
    border-radius: 4px;
    animation: progressCountdown 5s linear forwards;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-payment, .btn-ok, .btn-cancel {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-payment {
    background: linear-gradient(135deg, #1a5490, #d4af37);
    color: white;
}

.btn-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 84, 144, 0.4);
}

.btn-ok {
    background: #28a745;
    color: white;
}

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

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes progressCountdown {
    from { width: 100%; }
    to { width: 0%; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .custom-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    /* Larger modal for payment iframe on mobile */
    .custom-modal-content.payment-iframe-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .payment-iframe-modal .modal-header {
        border-radius: 0;
        padding: 15px 50px 15px 20px;
    }
    
    .payment-iframe-modal .modal-body {
        padding: 15px;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .payment-iframe-modal .iframe-container {
        height: calc(100vh - 250px);
        min-height: 500px;
        margin-top: 10px;
    }
    
    .payment-iframe-modal .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 2.5rem;
        background: rgba(255, 255, 255, 0.3);
        z-index: 100;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .success-icon, .error-icon {
        font-size: 3rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-payment, .btn-ok, .btn-cancel {
        width: 100%;
        margin: 5px 0;
    }
}
