/* Global Styles */
:root {
    --primary-color: #0099ff;
    --primary-gradient: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    --htprimary-gradient: linear-gradient(135deg, #e4312b 50%, #0062ac 100%);
    --secondary-color: #0066cc;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

/* CSS Reset for better cross-browser compatibility */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Utility class to hide elements */
.hidden {
    display: none !important;
}

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

html {
    scroll-behavior: smooth;
    /* Prevent text size adjustment on mobile */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    /* Improve font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent iOS bounce scrolling */
    -webkit-overflow-scrolling: touch;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Background overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: -1;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 0 20px;*/
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0rem;
    color: var(--dark-color);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    background: var(--primary-gradient);
    background: -webkit-linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    background: -moz-linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.cflag {
    -webkit-text-fill-color: linear-gradient(180deg, #e4312b 100%, #0062ac 10%)    ;
}
.tagline {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 300;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    /*margin-bottom: 2.5rem;*/
}

h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    position: relative;
    z-index: 1001;
    min-height: 60px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
}

nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

/* Mobile Menu Toggle Button - Modern Hamburger Icon */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    margin-left: auto;
    border-radius: 4px;
    transition: all 0.3s ease;
    gap: 4px;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Show hamburger on mobile, hide nav-wrapper */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        margin-left: auto;
        margin-right: 0;
        order: 2;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-wrapper {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        padding: 100px 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-wrapper.open {
        display: flex !important;
        flex-direction: column;
        right: 0;
    }

    nav ul {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        margin: 0 0 3rem 0;
        padding: 0;
        list-style: none;
    }

    nav ul li {
        margin: 0.8rem 0;
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        animation: slideInFromRight 0.5s ease forwards;
    }

    nav ul li:nth-child(1) { animation-delay: 0.1s; }
    nav ul li:nth-child(2) { animation-delay: 0.2s; }
    nav ul li:nth-child(3) { animation-delay: 0.3s; }
    nav ul li:nth-child(4) { animation-delay: 0.4s; }
    nav ul li:nth-child(5) { animation-delay: 0.5s; }

    nav ul li a {
        display: flex;
        align-items: center;
        padding: 1.2rem 1.5rem;
        color: #334155;
        font-size: 1.2rem;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.3s ease;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(226, 232, 240, 0.8);
        margin-bottom: 0.5rem;
    }

    nav ul li a:hover,
    nav ul li a.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transform: translateX(8px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }

    .nav-wrapper .language-selector {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(226, 232, 240, 0.5);
        width: 100%;
    }

    .language-selector .lang-btn {
        padding: 1rem 1.5rem;
        border: 1px solid rgba(226, 232, 240, 0.8);
        background: rgba(255, 255, 255, 0.7);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1.1rem;
        font-weight: 500;
        color: #334155;
    }

    .language-selector .lang-btn:hover,
    .language-selector .lang-btn.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transform: translateX(8px);
        border-color: transparent;
    }

    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: #0066cc;
    }

    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: #0066cc;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .menu-overlay.open {
        display: block;
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hide hamburger on desktop, show nav-wrapper */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    nav ul .mobile-only {
        display: none !important;
    }
    
    .nav-wrapper {
        display: flex !important;
        align-items: center;
        margin-left: auto;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        right: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    nav ul {
        margin-right: 2rem;
        flex-direction: row;
    }

    nav ul li a {
        font-size: 1rem;
    }

    .language-selector {
        margin-left: 2rem;
    }
}

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

/* Desktop language selector (outside nav-wrapper) */
nav > .language-selector {
    margin-left: 1rem;
}

/* Hide desktop language selector on mobile */
@media (max-width: 768px) {
    nav > .language-selector {
        display: none !important;
    }
    
    /* Ensure only nav-wrapper language selector shows on mobile */
    .nav-wrapper .language-selector {
        display: flex !important;
    }
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Safari button fixes */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 1rem;
    line-height: normal;
    text-align: center;
    display: inline-block;
    font-family: inherit;
    /* Ensure minimum touch target size */
    min-height: 44px;
    min-width: 80px;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Button Styles - Cross-browser compatible */
button,
.button,
.button-secondary,
.button-mini,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    /* Remove default browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Base button styles */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    
    /* Ensure minimum touch target size for mobile */
    min-height: 44px;
    min-width: 44px;
    
    /* Fix for Safari */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.button {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.button-mini {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

/* Disabled state */
button:disabled,
.button:disabled,
.button-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Desktop Only */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: flex !important;
    }
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    min-width: 160px;
    max-width: 220px;
    display: flex;
    align-items: center;
}

.logo:hover {
    transform: scale(1.05);
}

/* Logo image styles */
.header-logo {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    min-width: 50px;
    max-width: 160px;
}

@media (max-width: 768px) {
    .header-logo {
        height: 40px;
        max-width: 140px;
    }
    
    nav {
        padding: 0.5rem 1rem;
    }
    
    .logo {
        min-width: 100px;
        max-width: 150px;
    }
}

.logo a:hover .header-logo {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

nav ul li {
    position: relative;
    white-space: nowrap;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(106, 17, 203, 0.05);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    border-radius: 10px;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 70%;
}

/* Active nav link */
nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(106, 17, 203, 0.08);
}

nav ul li a.active::after {
    width: 70%;
}

.admin-link {
    background-color: rgba(230, 126, 34, 0.1);
    color: #e67e22 !important;
    font-weight: bold;
    padding: 0.6rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background-color: rgba(230, 126, 34, 0.2);
    transform: translateY(-2px);
}

/* Removed duplicate mobile-menu-toggle styles - see lines 198-241 for the correct styles */

/* Responsive Design for navigation */
@media (max-width: 768px) {
    /* Mobile menu toggle is already configured above */
    
    nav {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        margin-left: 0;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 1rem;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 150;
        border-radius: 20px 0 0 20px;
    }
    
    nav ul.open {
        right: 0;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        border-radius: 12px;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover {
        background: rgba(106, 17, 203, 0.08);
        transform: translateX(5px);
    }
    
    /* Mobile language selector */
    li.mobile-only {
        width: 100%;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(106, 17, 203, 0.1);
    }
    
    li.mobile-only .language-selector {
        margin: 0;
        padding: 0;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        background: transparent;
        box-shadow: none;
    }
    
    li.mobile-only .language-label {
        font-size: 0.9rem;
        color: var(--gray-color);
        margin-bottom: 0.5rem;
    }
    
    li.mobile-only .lang-btn {
        width: 100%;
        padding: 12px;
        text-align: center;
        font-size: 1rem;
        border-radius: 10px;
        background: rgba(106, 17, 203, 0.05);
    }
    
    li.mobile-only .lang-btn.active {
        background: var(--primary-color);
        color: white;
        transform: scale(1.02);
    }
    
    /* Hide desktop language selector on mobile */
    nav > .language-selector {
        display: none;
    }
    
    /* Transformed hamburger to X */
    .mobile-menu-toggle.open {
        background: rgba(106, 17, 203, 0.08);
    }
    
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Overlay when mobile menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .menu-overlay.open {
        display: block;
        opacity: 1;
    }
}

/* For extra small devices */
@media (max-width: 360px) {
    nav ul {
        width: 90%;
    }
    
    .logo {
        max-width: 180px;
    }
    
    nav ul li a {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
    
    li.mobile-only .lang-btn {
        padding: 10px;
    }
}

/* About Us Page Styles */
.back-icon {
    margin-right: 5px;
    font-weight: bold;
}

/* About Us Section */
.about-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.about-mission, .about-story, .about-team, .about-future {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-mission:hover, .about-story:hover, .about-team:hover, .about-future:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.mission-image, .story-image, .team-image, .future-image {
    margin: -2rem -2rem 1.5rem -2rem;
    height: 200px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.mission-image img, .story-image img, .team-image img, .future-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-mission:hover .mission-image img,
.about-story:hover .story-image img,
.about-team:hover .team-image img,
.about-future:hover .future-image img {
    transform: scale(1.05);
}

.join-team {
    text-align: center;
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--primary-color);
}

.join-team h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.join-team .button {
    margin-top: 1.5rem;
}

/* Responsive design for About page */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-image, .story-image, .team-image, .future-image {
        height: 180px;
    }
    
    .join-team {
        padding: 2rem;
    }
}

/* Team Members List */
.team-members {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-member {
    /* background-color: rgba(106, 17, 203, 0.05); */
    padding: 1.2rem;
    border-radius: 10px;
    /* border-left: 4px solid var(--primary-color); */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

/* .team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
} */

.team-member h4 {
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    font-size: .8rem;
}
.team-member h5 {
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    font-size: 0.8rem;
}
.team-member .role {
    margin-bottom: 0;
    color: var(--gray-color);
    font-size: 0.65rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .team-members {
        grid-template-columns: 1fr;
    }
}

/* Section with more background contrast */
.section-card {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Input with action button */
.input-with-action {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.input-with-action input {
    flex: 1;
}

.input-with-action .button-mini {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
}

.input-with-action .button-mini:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Contributors Page Styles */
.contributors-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.contributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contributor-card {
    position: relative;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.medal {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.contributor-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.5rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.contributor-name {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: var(--color-primary);
    text-align: center;
}

.contributor-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--color-dark-gray);
}

.stat-value {
    font-weight: bold;
    color: var(--color-secondary);
}

.gold-medal {
    border-top: 4px solid gold;
}

.silver-medal {
    border-top: 4px solid silver;
}

.bronze-medal {
    border-top: 4px solid #cd7f32;
}

.top-ten-medal {
    border-top: 4px solid #6f42c1;
}

.medal {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Special styling for numbered medals (4-10) */
.top-ten-medal .medal {
    background-color: #6f42c1;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.contributors-join {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--color-light-gray);
    border-radius: 8px;
}

.contributors-join h2 {
    margin-bottom: 1rem;
}

.contributors-join p {
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--color-light-gray);
    border-top: 5px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.no-contributions {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-light-gray);
    border-radius: 8px;
    margin: 2rem 0;
}

.no-results {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background-color: #fff8f8;
    border: 1px solid #ffdddd;
    border-radius: 8px;
    margin: 2rem 0;
}

.error {
    color: #d9534f;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .contributors-grid {
        grid-template-columns: 1fr;
    }
}

/* Challenge Page Styles */
.challenge-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.challenge-banner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.challenge-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.prizes-section {
    margin: 3rem 0;
}

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

.prize-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.prize-card.grand-prize {
    border-top: 5px solid #FFD700;
}

.prize-card.second-prize {
    border-top: 5px solid #C0C0C0;
}

.prize-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.prize-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.prize-details {
    margin-top: 1.5rem;
}

.prize-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-dark-gray);
    font-style: italic;
}

.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.goal-amount,
.current-amount {
    font-weight: bold;
    color: var(--color-secondary);
    min-width: 60px;
}

.progress-bar {
    flex-grow: 1;
    height: 12px;
    background-color: var(--color-light-gray);
    border-radius: 6px;
    margin: 0 1rem;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 6px;
    transition: width 0.8s ease;
}

.challenge-rules {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.challenge-rules h2 {
    margin-bottom: 1.5rem;
}

.challenge-rules ul {
    list-style-type: none;
    padding-left: 0;
}

.challenge-rules li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 2rem;
}

.challenge-rules li:last-child {
    border-bottom: none;
}

.challenge-rules li:before {
    content: "✓";
    color: var(--color-secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.leaderboard-section {
    margin: 3rem 0;
}

.leaderboard-container {
    margin-top: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.leaderboard-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: var(--color-primary);
}

.rank {
    font-weight: bold;
    width: 60px;
}

.contributor-name {
    font-weight: 500;
}

.contribution-count {
    font-weight: 500;
    color: var(--color-secondary);
}

.progress-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar-small {
    flex-grow: 1;
    height: 8px;
    background-color: var(--color-light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-text {
    min-width: 50px;
    font-size: 0.9rem;
    color: var(--color-dark-gray);
}

.goal-reached {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.laptop-goal {
    background: linear-gradient(90deg, #FFD700, #FFC107);
}

.tshirt-goal {
    background: linear-gradient(90deg, #6f42c1, #007bff);
}

.no-data,
.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--color-dark-gray);
    font-style: italic;
}

.error-message {
    color: #dc3545;
}

.start-challenge {
    text-align: center;
    margin: 3rem 0;
    padding: 2.5rem;
    background-color: var(--color-light-gray);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.start-challenge h2 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.start-challenge p {
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prize-cards {
        grid-template-columns: 1fr;
    }
    
    .progress-indicator {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .goal-amount,
    .current-amount {
        text-align: center;
    }
    
    .progress-bar {
        margin: 0.5rem 0;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .progress-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .progress-text {
        font-size: 0.8rem;
    }
}

.email-prompt {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.email-prompt p {
    margin: 0;
    font-size: 0.9rem;
}

.email-prompt a {
    color: var(--color-primary);
    text-decoration: underline;
}

.congratulations-message {
    margin: 2rem 0;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: bounce 1s ease;
}

.congratulations-message.laptop-eligible {
    border: 3px solid #FFD700;
    background-color: #FFFACD;
}

.congratulations-message.tshirt-eligible {
    border: 3px solid #6f42c1;
    background-color: #F8F4FF;
}

.congrats-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.congratulations-message h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

/* Sponsors Page Styles */
.sponsors-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-categories {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin: 4rem 0;
}

.sponsor-category {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.sponsor-category h2 {
    margin-bottom: 1rem;
}

.sponsor-category p {
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.sponsor-category.founding {
    border-top: 5px solid #6a11cb;
}

.sponsor-category.challenge {
    border-top: 5px solid #FFD700;
}

.sponsor-category.tech {
    border-top: 5px solid #2575fc;
}
.sponsor-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    background-color: rgba(245, 247, 250, 0.7);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
}.sponsor-logos1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    background-color: rgba(245, 247, 250, 0.7);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
}
.sponsor-logos2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    background-color: rgba(245, 247, 250, 0.7);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
}
.sponsor-logos3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    background-color: rgba(3, 37, 41, 0.7);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
}

.sponsor-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.sponsor-logo-item1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
.sponsor-logo-item2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
.sponsor-logo-item3 {
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
.sponsor-logo-item:hover {
    transform: translateY(-5px);
}

.sponsor-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sponsor-logo-item:hover .sponsor-logo {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sponsor-logo-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.sponsor-logo-item p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 0;
}

.individual-donors {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.individual-donors h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.individual-donors > p {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--gray-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.donor-tier {
    padding: 1.5rem;
    border-radius: 10px;
}

.donor-tier h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.donor-tier.platinum {
    background-color: rgba(229, 228, 226, 0.2);
    border-left: 4px solid #E5E4E2;
}

.donor-tier.platinum h3 {
    color: #9A9996;
}

.donor-tier.gold {
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #FFD700;
}

.donor-tier.gold h3 {
    color: #B8860B;
}

.donor-tier.silver {
    background-color: rgba(192, 192, 192, 0.1);
    border-left: 4px solid #C0C0C0;
}

.donor-tier.silver h3 {
    color: #5c5c5c;
}

.donor-tier.community {
    background-color: rgba(106, 17, 203, 0.05);
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.donor-tier.community h3 {
    color: var(--primary-color);
}

.donor-list {
    list-style: none;
    padding-left: 0;
    columns: 2;
    column-gap: 2rem;
}

.donor-list li {
    margin-bottom: 0.8rem;
    break-inside: avoid;
    padding-left: 1.5rem;
    position: relative;
}

.donor-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.donor-tier.community p {
    margin: 0 auto;
    max-width: 600px;
}

.volunteer-thanks {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--secondary-color);
}

.volunteer-thanks h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.volunteer-thanks > p {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--gray-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.volunteer-category {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--secondary-color);
}

.volunteer-category h3 {
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.volunteer-list {
    list-style: none;
    padding-left: 0;
}

.volunteer-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.volunteer-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.become-sponsor {
    text-align: center;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin: 4rem 0 2rem;
}

.become-sponsor h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.become-sponsor p {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for sponsors page */
@media (max-width: 768px) {
    .sponsor-logos {
        grid-template-columns: 1fr;
    }
    
    .donor-list {
        columns: 1;
    }
    
    .donor-tiers {
        grid-template-columns: 1fr;
    }
    
    .volunteer-categories {
        grid-template-columns: 1fr;
    }
    
    .sponsor-category, 
    .individual-donors, 
    .volunteer-thanks, 
    .become-sponsor {
        padding: 1.5rem;
    }
} 

.tbd-placeholder {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    background-color: rgba(245, 247, 250, 0.9);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 2px dashed #ccc;
    font-size: 2.5rem;
    font-weight: bold;
    color: #aaa;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.sponsor-logo-item:hover .tbd-placeholder {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Special styling for numbered medals (4-10) */
.contributor-card.top-ten-medal .medal {
    background-color: #6f42c1;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Challenge Page Styles */
.progress-indicator {
    margin-top: 1.5rem;
    text-align: center;
}

.progress-bar-small {
    height: 8px;
    background-color: rgba(0, 153, 255, 0.1);
    border-radius: 4px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.goal-reached.laptop-goal {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
}

.goal-reached.tshirt-goal {
    background: linear-gradient(135deg, #0080cc 0%, #33adff 100%);
}

.congratulations-message {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(0, 153, 255, 0.05);
    border-radius: 10px;
    border-left: 5px solid #0099ff;
    text-align: center;
}

.congratulations-message.laptop-eligible {
    background-color: rgba(0, 102, 204, 0.1);
    border-left: 5px solid #0066cc;
}

.congratulations-message h3 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.congrats-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Email prompt styling */
.email-prompt {
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: rgba(0, 153, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 3px solid #0099ff;
}

/* Quick buttons container */
.quick-buttons {
    display: flex;
    gap: 5px;
}

/* AI-specific buttons */
#label-generate-gemini,
#label-generate-openai {
    margin-left: 5px;
    background-color: #3a86ff;
}

#label-generate-gemini:hover,
#label-generate-openai:hover {
    background-color: #4361ee;
}

#quick-generate-gemini {
    background-color: #4cc9f0;
}

#quick-generate-openai {
    background-color: #3a86ff;
}

#quick-generate-gemini:hover,
#quick-generate-openai:hover {
    opacity: 0.9;
}

/* Add dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000; /* Ensure high z-index */
    border-radius: 4px;
    right: 0;
    top: 100%;
    margin-top: 5px;
    overflow: visible;
    border: 1px solid #e0e0e0;
    max-height: 300px; /* Prevent too tall dropdown */
    overflow-y: auto; /* Allow scrolling if many items */
}

.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* Show dropdown content only on explicit .show class */
.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* Button hover effect */
.dropdown:hover .button-mini {
    background-color: #0071bc;
}

.hidden-button {
    display: none;
}

.ai-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

#region-select {
  height: 38px;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background-color: #fff;
  min-width: 120px;
  cursor: pointer;
}

#region-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Gender Selection */
.form-group {
    margin-bottom: 2rem;
}

/* Field required visual indicator */
.form-group.field-required select,
.form-group.field-required input {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-color: #fff5f5 !important;
}

.form-group.field-required label {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Required field asterisk */
.required-field {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
    font-size: 1.1em;
}

/* Validation message */
.form-group .validation-message {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group.field-required .validation-message {
    display: block;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

/* Style the region selection dropdown */
#region-selection {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--dark-color);
    background-color: #fff;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
    appearance: none; /* Remove default browser arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

#region-selection:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.audio-controls {
}

/* Video styles */
.video-container {
    margin: 2rem 0;
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-color: #f5f5f5;
    padding-bottom: 1.5rem;
}

.video-caption {
    padding: 1rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

#welcome-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.play-button {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 20px auto 0;
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 1);
}

.play-icon {
    margin-left: 5px;
    margin-bottom: -10px; /* Slight adjustment for centering the play triangle */
}

/* Hide native video controls when our custom button is showing */
#welcome-video::-webkit-media-controls-play-button {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        margin: 1.5rem 0;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .play-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    button, .button, .button-secondary, .button-text, .button-mini {
        forced-color-adjust: none;
    }
    
    /* Ensure links have proper contrast */
    a {
        text-decoration: underline;
    }
    
    /* Ensure focus states are visible */
    *:focus {
        outline: 2px solid;
    }
    
    /* Navigation buttons */
    nav ul li a {
        forced-color-adjust: none;
    }
}

/* ========================================
   Styles from index1.html
   ======================================== */

/* KannadaMN Font */
@font-face {
    font-family: 'KannadaMN';
    src: url('fonts/KannadaMN.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base font for entire document */
body {
    font-family: 'KannadaMN';
}

/* Apply custom fonts */
h1,
h2,
h3,
h4,
h5,
h6,
.header-logo,
nav ul li a,
.button,
.button-secondary,
.option-header h4,
.option-number,
.stat-number,
.stat-label,
.tagline,
.accordion-header,
.footer-logo,
.option-form-fields h4,
.info-popup-header h4,
.donor-tier h3,
.team-member h4 {
    font-family: 'KannadaMN';
}

/* Improve paragraph readability */
p,
li,
textarea,
input,
select,
option,
.field-description,
.note {
    font-family: 'KannadaMN';
}

/* Safari-specific flexbox fixes and vendor prefixes */
/* New contribution options styling */
.user-options {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
}

.option-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 1.5rem;
    width: 100%;
    border-bottom: 4px solid #2b73b6;
    background-color:  #0066cc;;
    /* Safari flexbox fix */
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #0066cc;
}

.option-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #2a69ac;
    padding: 1rem 1.5rem;
    color: #ffffff !important;
    cursor: pointer;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    /* Safari flexbox fix */
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.option-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Safari flexbox fix */
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.option-header::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    /* Safari flexbox fix */
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.option-header.expanded::after {
    transform: rotate(180deg);
}

.option-number {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: #2a69ac;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: bold;
    margin-right: 1rem;
    /* Safari flexbox fix */
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.option-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.option-content.expanded {
    padding: 1.5rem;
    max-height: 2000px;
}

/* Add chevron indicator to option headers */
.option-header {
    position: relative;
    cursor: pointer;
}

.option-header::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 1rem;
    color: white;
}

.option-card.expanded .option-header::after {
    transform: translateY(-50%) rotate(180deg);
}

.option-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.option-image img:hover {
    transform: scale(1.05);
}

.sentence-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.sentence-type-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.sentence-type-btn:hover,
.sentence-type-btn.active {
    background-color: #2a69ac;
    color: white;
    border-color: #2a69ac;
}

.selected-sentence-container,
.random-sentence-container {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.selected-sentence-type {
    font-weight: bold;
    color: #2a69ac;
    margin-bottom: 0.75rem;
}

.selected-sentence {
    background-color: white;
    border-left: 4px solid #2a69ac;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
}

.recording-instruction {
    font-style: italic;
    color: #555;
    margin: 1rem 0;
}

.audio-controls {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.recording-indicator {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    color: #d9534f;
    font-weight: bold;
}

.recording-pulse {
    width: 12px;
    height: 12px;
    background-color: #d9534f;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@media (min-width: 768px) {
    .option-card {
        width: 800px;
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }
}

/* Info Button and Popup Styling - Safari compatible */
.label-with-info {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.info-button {
    background: #f0f7ff;
    border: 1px solid #2a69ac;
    cursor: pointer;
    font-size: 0.8rem;
    color: #2a69ac;
    padding: 2px 8px;
    display: inline-block;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-left: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: underline;
    font-style: italic;
}

.info-button:hover {
    background-color: #e0edff;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.info-button .info-icon {
    display: none;
}

.info-popup {
    display: none;
    position: fixed;
    z-index: 1500;
    width: 400px;
    max-width: 90%;
    background: white;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    top: 50%;
    left: 50%;
    transition: opacity 0.3s, transform 0.3s;
    overflow: hidden;
}

.info-popup.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.info-popup-content {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.info-popup-header {
    background-color: #5a67d8;
    color: #5a67d8;
    padding: 20px 24px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.info-popup-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #5a67d8;
    text-align: left;
}

.info-popup-close {
    color: #eceeef;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    margin-left: auto;
    display: inline-block;
    user-select: none;
}

.info-popup-close:hover {
    color: #4a5568;
}

.info-popup-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
    color: #4a5568;
    line-height: 1.6;
}

    font-size: 0.85rem;
    line-height: 1.4;
}

.dialect-info {
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.dialect-info:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.dialect-info h5 {
    margin: 0 0 6px 0;
    color: #2a69ac;
    font-size: 0.9rem;
    font-weight: 600;
}

.dialect-info ul {
    margin: 0;
    padding-left: 15px;
}

.dialect-info li {
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Option Form Fields Styling - Safari compatible */
.option-form-fields {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2a69ac;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.option-form-fields h4 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #2a69ac;
    font-size: 1.1rem;
}

.form-section {
    padding: 0.5rem;
}

/* Animation for form fields appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-form-fields.show {
    animation: fadeInUp 0.4s ease forwards;
}


/* Mobile responsiveness for contribute section */
@media (max-width: 768px) {
    /* Radio buttons with better touch targets - Safari compatible */
    .radio-group-inline {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .radio-label-inline {
        width: 100%;
        padding: 0.7rem;
    }

    /* Buttons styling */
    .button,
    .button-secondary {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        min-height: 44px;
    }

    /* Info button more prominent on mobile */
    .info-button {
        padding: 3px 10px;
        font-size: 0.75rem;
    }

    .label-with-info {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    /* Audio controls for better mobile interaction - Safari compatible */
    .audio-controls {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -webkit-align-items: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        gap: 0.75rem;
    }

    .recording-indicator {
        -webkit-align-self: center;
        -ms-flex-item-align: center;
        align-self: center;
        margin: 0.5rem 0;
    }
}

/* Mobile Menu & Language Selector Styles */
@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
                 background: rgba(255, 255, 255, 0.98);
         -webkit-backdrop-filter: blur(10px);
         backdrop-filter: blur(10px);
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 999;
    }

    nav ul.open {
        right: 0;
    }

    nav ul li {
        margin: 0;
        padding: 0;
    }

    nav ul li a {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        color: var(--text-color);
        border-radius: 12px;
        margin: 0.5rem 0;
        transition: all 0.3s ease;
    }

    nav ul li a:hover {
        background: var(--primary-gradient);
        color: white;
        transform: translateX(5px);
    }

    li.mobile-only {
        display: block;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    li.mobile-only .language-selector {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 12px;
    }

    li.mobile-only .language-label {
        font-size: 0.9rem;
        color: var(--gray-color);
        margin-bottom: 0.5rem;
    }

    li.mobile-only .lang-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        color: var(--text-color);
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    li.mobile-only .lang-btn:hover {
        background: rgba(0, 0, 0, 0.05);
        transform: translateX(5px);
    }

    li.mobile-only .lang-btn.active {
        background: var(--primary-gradient);
        color: white;
        border-color: transparent;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
                 background: rgba(0, 0, 0, 0.5);
         -webkit-backdrop-filter: blur(4px);
         backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.open {
        display: block;
        opacity: 1;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        background: var(--text-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Desktop Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.lang-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Desktop/Mobile Navigation Visibility */
@media (max-width: 768px) {
    nav > .language-selector {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
        margin-left: auto;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        background: var(--text-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
}

/* Fix hamburger menu visibility - override all conflicting rules */
@media (max-width: 768px) {
    header nav .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        background: transparent !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        padding: 0 !important;
        margin-left: auto !important;
        cursor: pointer !important;
        z-index: 1002 !important;
    }
    
    header nav .mobile-menu-toggle span {
        display: block !important;
        width: 22px !important;
        height: 3px !important;
        background-color: #333 !important;
        border-radius: 2px !important;
        margin: 0 !important;
    }
}

