/* CSS Variables */
:root {
    --primary-color: #055902;
    --secondary-color: #3C8C03;
    --accent-color: #A9BF04;
    --accent-yellow: #D9CB04;
    --dark-color: #0D0D0D;
    --light-bg: #ffffff;
    --gradient-primary: linear-gradient(135deg, #055902 0%, #3C8C03 100%);
    --gradient-secondary: linear-gradient(135deg, #3C8C03 0%, #A9BF04 100%);
    --gradient-accent: linear-gradient(135deg, #A9BF04 0%, #D9CB04 100%);
}

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

/* Body Styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.6) 0%, rgba(20, 50, 80, 0.5) 50%, rgba(10, 40, 70, 0.65) 100%);
    z-index: -1;
}

/* Navigation - Updated for transparency and FULL brand text visibility */
.navbar {
    background: rgba(255, 255, 255, 0.1); /* More transparent */
    backdrop-filter: blur(15px); /* Increased blur for better readability */
    -webkit-backdrop-filter: blur(15px); /* Safari support */
    box-shadow: 0 2px 20px rgba(5, 89, 2, 0.05); /* Lighter shadow */
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

.navbar-brand {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: white !important; /* White text for transparent header */
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Text shadow for readability */
    flex: 0 0 auto;
    margin-right: auto;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

/* Brand Text - FULL VISIBILITY - NO TRUNCATION */
.navbar-brand .brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: inherit;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: 8px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: inherit;
    font-family: 'Roboto', sans-serif;
    vertical-align: middle;
    /* REMOVE ALL TRUNCATION */
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: auto !important;
    width: auto !important;
    flex-shrink: 0;
}

.navbar-nav .nav-link {
    color: white !important; /* White text for transparent header */
    font-weight: 500;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Text shadow for readability */
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-accent);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Navbar toggler for better visibility on transparent background */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Scrolled navbar state */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95)!important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(5, 89, 2, 0.1);
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-color) !important;
    text-shadow: none;
}

.navbar.scrolled .navbar-brand .brand-text {
    color: var(--primary-color) !important;
    text-shadow: none !important;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--dark-color) !important;
    text-shadow: none;
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Brand text hover effects */
.navbar-brand:hover .brand-text {
    color: var(--accent-color);
    transform: translateX(2px);
}

/* Focus states for accessibility */
.navbar-brand:focus .brand-text {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    background: transparent;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-section h4, .hero-section h5 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Hero Video Container Specific Styles */
.hero-video-container {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-video {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 15px;
    object-fit: cover;
    display: block;
}

.hero-video-caption {
    margin-top: 1rem;
    margin-bottom: 0;
    color: white;
    font-size: 1rem;
    line-height: 1.3;
}

.btn-primary-custom {
    background: var(--gradient-accent);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--dark-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(169, 191, 4, 0.4);
    color: var(--dark-color);
}

.btn-secondary-custom {
    background: transparent;
    border: 2px solid white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-custom:hover {
    background: white;
    color: var(--primary-color);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

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

/* Package Cards */
.package-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(5, 89, 2, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(169, 191, 4, 0.2);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(5, 89, 2, 0.15);
}

.package-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.package-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
}

.package-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(169, 191, 4, 0.2);
}

.package-features li:before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Sponsor Cards */
.sponsor-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(169,191,4,0.1) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    border: 2px solid rgba(60, 140, 3, 0.2);
    transition: all 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(5, 89, 2, 0.15);
}

.sponsor-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sponsor-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Team Avatar Styling */
.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

/* Fallback for missing images */
.team-avatar i {
    font-size: 4rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(169, 191, 4, 0.1);
}

.team-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.team-card h4 {
    color: var(--primary-color);
    margin: 15px 0 5px;
    font-weight: 600;
}

/* Info Section */
.info-section {
    background: linear-gradient(135deg, rgba(169, 191, 4, 0.1) 0%, rgba(217, 203, 4, 0.1) 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0d1b1e 0%, #1a2f35 25%, #2c4a52 50%, #1e3a42 75%, #0f1419 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--dark-color);
}

/* Inner Header Styles - UPDATED FOR TRANSPARENT NAVBAR COMPATIBILITY */
.img-section {
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0; /* Remove margin-top to allow navbar transparency */
    z-index: 1; /* Ensure it's below the navbar */
}

.img-section .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.img-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 89, 2, 0.8) 0%, rgba(60, 140, 3, 0.7) 50%, rgba(169, 191, 4, 0.6) 100%);
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
    /* Add padding-top to account for transparent navbar */
    padding-top: 80px;
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto', sans-serif;
}

/* NAVBAR SCROLLED STATE FOR INNER PAGES */
/* When inner pages are loaded, navbar should become solid after a short scroll */
body:not(.homepage) .navbar {
    /* Start slightly more opaque on inner pages since there's content immediately below */
    background: rgba(255, 255, 255, 0.15);
}

/* Faster transition to solid navbar on inner pages */
body:not(.homepage) .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(5, 89, 2, 0.15);
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, rgba(169, 191, 4, 0.1) 0%, rgba(217, 203, 4, 0.1) 100%);
    padding: 20px 0;
    border-bottom: 1px solid rgba(169, 191, 4, 0.2);
    /* Add top margin to account for transparent navbar */
    /* margin-top: 80px; */
}

.support-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.support-content i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.support-content p {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Page Section */
.page-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.page-title {
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

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

.page-section h2.section-heading,.page-section2 h2.section-heading {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  line-height: 1.2;
  font-size: 14px!important;
}

.page-section p, .page-section2 p {
font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight:400;
  line-height: 1.5;
  color: #212529;
}

/* Form Styles */
.form-note {
    background: rgba(169, 191, 4, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 2rem;
}

.mandatory {
    color: #dc3545;
    font-weight: bold;
}

.form-control {
     width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: var(--font-base);
    font-family: inherit;
    background-color: #fff;
    color: var(--dark-color);
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    padding: 12px 15px;
    
    
}
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 40px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 8px 12px !important;
    line-height: 1.2 !important;
}

input.form-control {
    font-size: max(16px, var(--font-base));
}

textarea.form-control {
    height: auto !important;
    min-height: 88px !important;
    max-height: none !important;
    align-items: flex-start !important;
    padding-top: 8px !important;
    resize: vertical;
}
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(169, 191, 4, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Enhanced Form Check Radio Button Styling */
.form-check-input[type="radio"] {
    width: 1.2em !important;
    height: 1.2em !important;
    margin-top: 0.25em !important;
    margin-right: 0.75em !important;
    background-color: #fff !important;
    border: 2px solid #000 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    opacity: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.form-check-input[type="radio"]:hover {
    border-color: var(--accent-color, #A9BF04) !important;
    transform: scale(1.05) !important;
}

.form-check-input[type="radio"]:checked {
    background-color: var(--primary-color, #055902) !important;
    border-color: var(--primary-color, #055902) !important;
}

.form-check-input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.form-check-input[type="radio"]:focus {
    border-color: var(--accent-color, #A9BF04) !important;
    box-shadow: 0 0 0 0.2rem rgba(169, 191, 4, 0.25) !important;
    outline: none !important;
}
.form-check-label {
    font-weight: 500;
    cursor: pointer !important;
}

/* Payment Method Sections */
.paymentmethod {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(169, 191, 4, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.payment-info {
    background: rgba(169, 191, 4, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.payment-info h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.payment-info p {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Button Styles */
.btnsave {
    background: var(--gradient-accent);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--dark-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btnsave:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(169, 191, 4, 0.4);
    color: var(--dark-color);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(5, 89, 2, 0.3);
}

/* Registration Closed */
.registration-closed {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(5, 89, 2, 0.1);
}

.registration-closed i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

/* HOMEPAGE CLASS - for identifying homepage */
body.homepage .navbar {
    /* Homepage keeps the original transparent settings */
    background: rgba(255, 255, 255, 0.1);
}

body.homepage .support-section {
    /* Homepage support section doesn't need top margin */
    margin-top: 0;
}

/* Mobile optimizations for hero video */
@media (max-width: 575.98px) {
    .hero-video-container {
        padding: 10px;
        margin: 0 5px;
        max-height: 230px;
        border-radius: 15px;
    }
    
    .hero-video {
        max-height: 160px;
        border-radius: 10px;
    }
    
    .hero-video-caption {
        margin-top: 0.5rem;
        font-size: 0.85rem;
        line-height: 1.2;
        padding: 0 5px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-video-container {
        padding: 15px;
        margin: 0 10px;
        max-height: 260px;
    }
    
    .hero-video {
        max-height: 200px;
    }
    
    .hero-video-caption {
        margin-top: 0.5rem;
        font-size: 0.9rem;
        padding: 0 5px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-video-container {
        padding: 20px;
        margin: 0 15px;
        max-height: 300px;
    }
    
    .hero-video {
        max-height: 220px;
        border-radius: 15px;
    }
    
    .hero-video-caption {
        margin-top: 1rem;
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-video-container {
        padding: 8px;
        margin: 0 10px;
        max-height: 180px;
    }
    
    .hero-video {
        max-height: 120px;
        border-radius: 10px;
    }
    
    .hero-video-caption {
        margin-top: 0.5rem;
        font-size: 0.8rem;
        line-height: 1.1;
        padding: 0 5px;
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .hero-video-container {
        max-height: 180px;
        padding: 8px;
        margin: 0 5px;
    }
    
    .hero-video {
        max-height: 130px;
    }
}

/* Ensure the hero video column doesn't overflow */
@media (max-width: 991.98px) {
    .hero-section .col-lg-6:last-child {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .hero-section .col-lg-6:last-child .text-center {
        width: 100%;
        max-width: 100%;
    }
}

/* RESPONSIVE DESIGN - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Enhanced Mobile Hero Section Video Fix */
    .hero-section {
        min-height: 100vh;
        max-height: 100vh; /* Prevent overflow */
        overflow: hidden; /* Contain all content */
        padding: 70px 0 15px 0; /* Reduce bottom padding */
        display: flex;
        align-items: center;
    }
    
    .hero-section .container {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .hero-section .row {
        width: 100%;
        margin: 0;
        height: auto;
        max-height: calc(100vh - 85px); /* Account for navbar and padding */
    }
    
    .hero-section .col-lg-6 {
        padding: 0 15px;
    }
    
    /* First column - content */
    .hero-section .col-lg-6:first-child {
        margin-bottom: 1rem;
    }
    
    /* Second column - video */
    .hero-section .col-lg-6:last-child {
        margin-top: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        max-height: 250px; /* Limit video container height */
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand .brand-text {
        font-size: 0.85rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
    
    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        text-align: center;
        padding: 0.5rem 1rem;
    }
    
    /* Make navbar collapse background slightly more opaque on mobile */
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 10px;
        padding: 15px;
    }
    
    .hero-content {
        padding: 0 10px;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 10px;
    }
    
    .hero-content .mb-4 {
        margin-bottom: 1.5rem !important;
        padding: 0 10px;
    }
    
    .hero-content h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .hero-content h5 {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
        margin: 0.3rem 5px !important;
        width: auto !important;
        display: inline-block !important;
        border-radius: 25px !important;
    }
    
    .d-flex.flex-wrap.gap-3 {
        justify-content: center;
        gap: 0.5rem !important;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .package-card {
        padding: 25px 20px;
        margin-bottom: 1.5rem;
    }
    
    .package-title {
        font-size: 1.4rem;
    }
    
    .package-price {
        font-size: 2.2rem;
    }
    
    .sponsor-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .sponsor-title {
        font-size: 1.3rem;
    }
    
    .sponsor-price {
        font-size: 1.8rem;
    }
    
    .team-card {
        padding: 20px;
        margin-bottom: 1.5rem;
    }
    
    .team-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .info-section {
        padding: 25px 20px;
        margin: 20px 0;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        margin: 0 5px;
    }
    
    iframe {
        height: 200px !important;
    }
    
    .img-section {
        height: 180px;
        margin-top: 0; /* Keep 0 for transparency */
    }
    
    .hero-text {
        padding-top: 60px; /* Adjust for mobile navbar height */
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
        padding: 0 10px;
    }
    
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .payment-info {
        padding: 15px;
    }
    
    .paymentmethod {
        padding: 15px;
    }
    
    .btnsave {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .support-content {
        flex-direction: column;
        gap: 5px;
    }
    
    .support-content p {
        font-size: 1rem;
        text-align: center;
    }
    
    .form-note {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Enhanced Mobile Hero Section Video Fix */
    .hero-section {
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        padding: 80px 0 20px 0;
        display: flex;
        align-items: center;
    }
    
    .hero-section .container {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .hero-section .row {
        width: 100%;
        margin: 0;
        height: auto;
        max-height: calc(100vh - 100px);
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        max-height: 280px;
    }
    
    .navbar-brand .brand-text {
        font-size: 1rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-content .mb-4 {
        margin-bottom: 2rem !important;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 16px 35px;
        font-size: 1.05rem;
        margin: 0.5rem;
        width: auto;
        min-width: 180px;
    }
    
    .hero-section iframe {
        height: 250px !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .package-title {
        font-size: 1.6rem;
    }
    
    .package-price {
        font-size: 2.5rem;
    }
    
    .sponsor-title {
        font-size: 1.4rem;
    }
    
    .sponsor-price {
        font-size: 1.9rem;
    }
    
    .team-avatar {
        width: 110px;
        height: 110px;
    }
    
    iframe {
        height: 250px !important;
    }
    
    .img-section {
        height: 200px;
        margin-top: 0;
    }
    
    .hero-text {
        padding-top: 70px;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Enhanced Mobile Hero Section Video Fix */
    .hero-section {
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        padding: 90px 0 30px 0;
        display: flex;
        align-items: center;
    }
    
    .hero-section .container {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .hero-section .row {
        width: 100%;
        margin: 0;
        height: auto;
        max-height: calc(100vh - 120px);
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        max-height: 320px;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.1rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
    
    .navbar-brand img {
        height: 38px !important;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    .hero-content .mb-4 {
        margin-bottom: 2.5rem !important;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 16px 40px;
        font-size: 1.1rem;
        margin: 0.5rem;
    }
    
    .hero-section iframe {
        height: 300px !important;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .package-card {
        margin-bottom: 2rem;
    }
    
    .sponsor-card {
        margin-bottom: 1.5rem;
    }
    
    iframe {
        height: 280px !important;
    }
    
    .img-section {
        height: 250px;
        margin-top: 0;
    }
    
    .hero-text {
        padding-top: 80px;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand .brand-text {
        font-size: 1.15rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .img-section {
        height: 300px;
        margin-top: 0;
    }
    
    .hero-text {
        padding-top: 80px;
    }
    
    .hero-text h2 {
        font-size: 3rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .navbar-brand .brand-text {
        font-size: 1.2rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .img-section {
        margin-top: 0;
    }
    
    .hero-text {
        padding-top: 80px;
    }
}

/* Ultra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .navbar-brand .brand-text {
        font-size: 1.3rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
    
    .navbar-brand img {
        height: 42px !important;
    }
    
    .hero-title {
        font-size: 3.8rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .container {
        max-width: 1320px;
    }
}

/* Landscape Orientation Fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        padding: 60px 0 10px 0;
        display: flex;
        align-items: center;
    }
    
    .hero-section .container {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .hero-section .row {
        width: 100%;
        margin: 0;
        height: auto;
        max-height: calc(100vh - 70px);
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        max-height: 200px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .mb-4 {
        margin-bottom: 2rem !important;
    }
    
    .hero-content h4 {
        font-size: 1rem;
    }
    
    .hero-content h5 {
        font-size: 0.9rem;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 12px 30px;
        font-size: 1rem;
        margin: 0.3rem;
    }
    
    .hero-section iframe {
        height: 200px !important;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .navbar-brand .brand-text {
        font-size: 0.9rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
    
    .img-section {
        height: 200px;
        margin-top: 0;
    }
    
    .hero-text {
        padding-top: 60px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .navbar-brand .brand-text {
        font-size: 0.85rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
}

/* Extra Mobile Optimizations for Very Small Screens */
@media (max-width: 375px) {
    .hero-section {
        padding: 60px 0 10px 0;
        max-height: 100vh;
        overflow: hidden;
    }
    
    .hero-section .col-lg-6:last-child {
        max-height: 200px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        padding: 0 5px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    .hero-content .mb-4 {
        padding: 0 5px;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin: 0.3rem 5px;
        width: calc(100% - 10px);
    }
    
    .navbar-brand .brand-text {
        font-size: 0.8rem;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
    
    .navbar-brand img {
        height: 28px !important;
    }
    
    .hero-text {
        padding-top: 55px;
    }
}

/* For extremely small screens - stack vertically if needed */
@media (max-width: 320px) {
    .navbar-brand {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0;
    }
    
    .navbar-brand .brand-text {
        margin-left: 0;
        margin-top: 2px;
        font-size: 0.75rem;
        line-height: 1.1;
        white-space: normal !important;
        word-break: keep-all;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
    
    .navbar-brand img {
        height: 26px !important;
    }
}

/* For ultra-small screens - center stack */
@media (max-width: 280px) {
    .navbar-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.3rem 0;
    }
    
    .navbar-brand .brand-text {
        margin-left: 0;
        margin-top: 3px;
        font-size: 0.7rem;
        line-height: 1;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
    
    .navbar-brand img {
        height: 24px !important;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 767.98px) {
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .flex-fill {
        width: 100%;
    }
    
    .text-md-end {
        text-align: center !important;
    }
    
    .col-md-6.text-md-end a {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Container adjustments for navbar */
@media (max-width: 991.98px) {
    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .section-title,
    .navbar-brand,
    .navbar-nav .nav-link {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem;
    }
    
    .package-card,
    .sponsor-card,
    .team-card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand .brand-text {
        padding: 2px 0;
    }
}

/* Ensure text is always visible in all states */
.navbar-brand .brand-text:not(.d-none):not(.visually-hidden) {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* Ensure video never breaks out of container */
.hero-section .text-center video {
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

/* Container overflow protection */
.hero-section .container,
.hero-section .row,
.hero-section .col-lg-6 {
    overflow: visible; /* Allow content to flow naturally but within bounds */
}

/* Additional safety for video containers */
.hero-section .text-center {
    width: 100%;
    overflow: hidden;
}

/* Print styles */
@media print {
    .navbar-brand .brand-text {
        color: black !important;
        text-shadow: none !important;
        font-size: 12pt !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .navbar-brand .brand-text {
        transition: none;
        animation: none;
    }
}

/* Dark mode support (if you implement it later) */
@media (prefers-color-scheme: dark) {
    .navbar-brand .brand-text {
        color: #ffffff;
    }
    
    .navbar.scrolled .brand-text {
        color: #055902 !important;
    }
}

/* Animation for brand text appearance */
@keyframes brandTextFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.navbar-brand .brand-text {
    animation: brandTextFadeIn 0.3s ease-out;
}

/* Fallback for browsers that don't support CSS custom properties */
.no-cssvar .navbar-brand .brand-text {
    color: white;
}