/* ============================================
   ALMUN Website Stylesheet
   Color Palette: Navy Blue, Gold, White
   Typography: Serif (headings), Sans-serif (body)
   ============================================ */

/* CSS Variables */
:root {
    --navy: #1a2a4a;
    --navy-dark: #0f1a2e;
    --navy-light: #2a3d5f;
    --gold: #d4af37;
    --gold-light: #e8c547;
    --gold-dark: #b8941f;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --gray-dark: #495057;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo {
    margin-bottom: 3rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
}

.logo-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--white);
    letter-spacing: 3px;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.spinner-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    animation: spinnerBounce 1.4s ease-in-out infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-ring:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes spinnerBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-text {
    font-size: 1rem;
    color: var(--white);
    opacity: 0.8;
    letter-spacing: 2px;
    font-weight: 300;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 42, 74, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-logo a {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    opacity: 1;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('ataturk lisesi.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 42, 74, 0.5) 0%, rgba(26, 42, 74, 0.4) 50%, rgba(42, 61, 95, 0.5) 100%);
    z-index: -1;
}

.world-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    opacity: 0.3;
    background-size: 200% 200%;
    animation: mapMove 20s ease-in-out infinite;
}

@keyframes mapMove {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.flags-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(212, 175, 55, 0.05) 2px, rgba(212, 175, 55, 0.05) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(212, 175, 55, 0.05) 2px, rgba(212, 175, 55, 0.05) 4px);
    opacity: 0.4;
}

.diplomatic-silhouettes {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
    clip-path: polygon(0 100%, 100% 100%, 100% 80%, 0 60%);
}

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

.emblem-container {
    margin-bottom: 2rem;
}

.emblem {
    display: inline-block;
    width: 180px;
    height: 180px;
    border: 4px solid var(--gold);
    border-radius: 50%;
    background: rgba(26, 42, 74, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
    animation: emblemGlow 3s ease-in-out infinite;
}

@keyframes emblemGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 60px rgba(212, 175, 55, 0.8); }
}

.emblem-inner {
    text-align: center;
}

.emblem-text {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    letter-spacing: 4px;
}

.emblem-subtitle {
    font-size: 0.7rem;
    color: var(--white);
    letter-spacing: 2px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.8;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--gold);
    margin: 0.5rem auto;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Countdown Section */
.countdown-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    text-align: center;
}

.countdown-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.countdown-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    color: var(--white);
}

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

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    min-width: 120px;
    transition: var(--transition);
}

.countdown-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--off-white);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--navy);
}

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

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--gold);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.feature-card p {
    color: var(--gray-dark);
    line-height: 1.8;
}

/* Letter from Secretary General */
.letter-section {
    padding: 6rem 0;
    background: var(--off-white);
}

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

.letter-header {
    text-align: center;
    margin-bottom: 3rem;
}

.letter-body {
    background: var(--white);
    padding: 4rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--gold);
    position: relative;
}

.letter-quote {
    position: relative;
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 6rem;
    color: var(--gold);
    line-height: 1;
    position: absolute;
    top: -1rem;
    left: -1rem;
    opacity: 0.3;
}

.letter-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    text-align: justify;
    position: relative;
    z-index: 1;
}

.letter-signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-light);
    text-align: right;
    font-style: italic;
    color: var(--navy);
    line-height: 1.8;
}

.letter-signature strong {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--gold);
    font-style: normal;
}

/* Conference Preview */
.conference-preview {
    padding: 6rem 0;
    background: var(--white);
}

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

.section-label {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.conference-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.conference-details {
    list-style: none;
    margin-bottom: 2rem;
}

.conference-details li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray-dark);
}

.conference-details li:last-child {
    border-bottom: none;
}

.conference-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.conference-card {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.1) 10px, rgba(212, 175, 55, 0.1) 20px);
    opacity: 0.5;
}

.card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 2rem;
}

.card-date {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1rem;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 2px;
}

/* Mini MUN Simulator */
.mun-simulator {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
}

.mun-simulator .section-header {
    color: var(--white);
}

.mun-simulator .section-title {
    color: var(--white);
}

.mun-simulator .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.simulator-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sim-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.sim-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 3rem;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-header h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

/* How It Works Popup */
.how-it-works-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.how-it-works-modal.show {
    opacity: 1;
}

.how-it-works-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.how-it-works-modal.show .how-it-works-content {
    transform: scale(1);
}

.how-it-works-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.how-it-works-close:hover {
    background: var(--gray-light);
    color: var(--navy);
}

.instruction-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 3rem 2rem 2rem;
    margin: 0;
}

.instruction-box h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.instruction-box ol {
    text-align: left;
    color: var(--navy);
    line-height: 2;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.instruction-box ol li {
    margin-bottom: 0.5rem;
}

.instruction-box ol li strong {
    color: var(--gold);
    font-weight: 600;
}

.instruction-note {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    margin-top: 1rem;
    color: var(--navy);
    font-size: 0.95rem;
    line-height: 1.6;
}

.instruction-actions {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.instruction-actions .btn {
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.step-instruction-message {
    background: var(--gold);
    color: var(--navy);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    display: inline-block;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Scenario Selection */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.scenario-card {
    background: var(--white);
    border: 2px solid var(--navy-light);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.scenario-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.scenario-card h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.scenario-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.scenario-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

/* Country Selection */
.country-selection {
    margin-top: 2rem;
}

.country-search {
    margin-bottom: 2rem;
}

.country-search input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--navy);
    background: var(--white);
}

.country-search input::placeholder {
    color: var(--gray);
}

.country-search input:focus {
    outline: none;
    border-color: var(--gold);
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.country-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.country-card:hover {
    border-color: var(--gold);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.country-flag {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.country-card h4 {
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.country-power {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
}

.country-power.high {
    background: var(--gold);
    color: var(--navy);
}

.country-power.medium {
    background: var(--navy-light);
    color: var(--navy);
}

.country-power.low {
    background: var(--gray-light);
    color: var(--gray-dark);
}

/* Committee Selection */
.committee-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.committee-option {
    background: var(--white);
    border: 2px solid var(--navy-light);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.committee-option:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.committee-option h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.committee-option p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.committee-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--navy);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Debate Phase */
.debate-container {
    margin-top: 2rem;
}

.debate-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 15px;
    color: var(--white);
    margin-bottom: 2rem;
}

.current-delegate {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.delegate-flag {
    font-size: 3rem;
}

.current-delegate h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.current-delegate p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.session-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    background: var(--gold);
    color: var(--navy);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.timer {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: monospace;
}

.debate-chat {
    background: var(--gray-light);
    border-radius: 15px;
    padding: 2rem;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.chat-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-message.system {
    justify-content: center;
    color: var(--navy);
    font-style: italic;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.8rem;
    border-radius: 8px;
}

.chat-message.delegate {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-flag {
    font-size: 2rem;
}

.message-content {
    flex: 1;
}

.message-content strong {
    color: var(--navy);
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.message-content p {
    color: var(--navy);
    margin: 0;
    line-height: 1.6;
}

.message-time {
    font-size: 0.8rem;
    color: var(--gray-dark);
    align-self: flex-start;
    font-weight: 500;
}

.debate-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    background: var(--white);
    border: 2px solid var(--navy-light);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--navy);
}

.action-btn:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

.action-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    z-index: 1000;
    animation: popIn 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.action-feedback.success {
    background: #4CAF50;
    color: var(--white);
}

.action-feedback.info {
    background: #2196F3;
    color: var(--white);
}

.action-feedback.error {
    background: #F44336;
    color: var(--white);
}

.points-display {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--navy);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.points-label {
    opacity: 0.8;
}

.points-value {
    font-size: 1.1rem;
}

.country-position-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.position-content h4 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.position-content p {
    color: var(--gray-dark);
    line-height: 1.6;
}

.feedback-details {
    text-align: left;
}

.feedback-main {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feedback-recommendations {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.feedback-recommendations h5 {
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.feedback-recommendations ul {
    list-style: none;
    padding-left: 0;
}

.feedback-recommendations li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feedback-recommendations li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--gold);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.speech-input {
    margin-top: 2rem;
}

.speech-input textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
    color: var(--navy);
    background: var(--white);
}

.speech-input textarea::placeholder {
    color: var(--gray);
}

.speech-input textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* Resolution Writing */
.resolution-container {
    margin-top: 2rem;
}

.resolution-template {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.resolution-header {
    border-bottom: 2px solid var(--navy);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.resolution-header h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.resolution-header p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.resolution-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.resolution-section label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.resolution-section textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    color: var(--navy);
    background: var(--white);
}

.resolution-section textarea::placeholder {
    color: var(--gray);
}

.resolution-section textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.resolution-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

/* Voting */
.voting-container {
    margin-top: 2rem;
}

.resolution-preview {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.resolution-preview h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.preview-section {
    margin-bottom: 1.5rem;
}

.preview-section h5 {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.preview-section p {
    color: var(--navy);
    line-height: 1.8;
    white-space: pre-line;
    font-size: 0.95rem;
}

.voting-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.vote-btn {
    background: var(--white);
    border: 3px solid var(--gray-light);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.vote-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vote-yes:hover:not(:disabled) {
    border-color: #4CAF50;
    background: #E8F5E9;
}

.vote-no:hover:not(:disabled) {
    border-color: #F44336;
    background: #FFEBEE;
}

.vote-abstain:hover:not(:disabled) {
    border-color: #FF9800;
    background: #FFF3E0;
}

.vote-btn span {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.vote-btn strong {
    display: block;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.vote-btn p {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.voting-results {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.voting-results h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-breakdown {
    margin-bottom: 2rem;
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.result-bar {
    position: relative;
    background: var(--gray-light);
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.result-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    color: var(--white);
    font-weight: 600;
}

.yes-fill {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.no-fill {
    background: linear-gradient(90deg, #F44336, #E57373);
}

.abstain-fill {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.result-count {
    position: absolute;
    right: 1rem;
    font-weight: 700;
    color: var(--navy);
    z-index: 10;
}

.final-result {
    text-align: center;
    margin-top: 2rem;
}

.result-badge {
    display: inline-block;
    padding: 2rem 3rem;
    border-radius: 15px;
    text-align: center;
}

.result-badge.success {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: var(--white);
}

.result-badge.failure {
    background: linear-gradient(135deg, #F44336, #E57373);
    color: var(--white);
}

.result-badge span {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.result-badge h4 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Results */
.results-container {
    margin-top: 2rem;
}

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

.result-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

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

.result-card h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.score-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.result-card p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.stats-list {
    text-align: left;
}

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

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

.stat-item span {
    opacity: 0.9;
}

.stat-item strong {
    color: var(--gold);
    font-size: 1.1rem;
}

.feedback-content {
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.feedback-content p {
    line-height: 1.8;
    margin: 0;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.results-actions .btn-secondary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.results-actions .btn-secondary:hover {
    background: var(--navy-dark);
    color: var(--white);
    border-color: var(--navy-dark);
}

/* Navigation */
.sim-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-light);
}

.sim-navigation .btn-secondary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.sim-navigation .btn-secondary:hover {
    background: var(--navy-dark);
    color: var(--white);
    border-color: var(--navy-dark);
}

.sim-navigation .btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.sim-navigation .btn-primary:hover {
    background: var(--gold-dark);
    color: var(--navy);
    border-color: var(--gold-dark);
}

.step-indicator {
    display: flex;
    gap: 0.5rem;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
    transition: var(--transition);
}

.indicator-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .simulator-container {
        padding: 2rem 1rem;
    }

    .scenario-grid,
    .committee-selection {
        grid-template-columns: 1fr;
    }

    .country-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .debate-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .debate-actions {
        grid-template-columns: 1fr;
    }

    .voting-options {
        grid-template-columns: 1fr;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .sim-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-circle {
        width: 150px;
        height: 150px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    .how-it-works-content {
        max-width: 95%;
        padding: 1.5rem;
    }

    .instruction-box {
        padding: 2rem 1.5rem 1.5rem;
    }

    .instruction-box h4 {
        font-size: 1.1rem;
    }

    .instruction-box ol {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }
}

/* Photo Gallery */
.photo-gallery {
    padding: 6rem 0;
    background: var(--navy);
    color: var(--white);
}

.photo-gallery .section-title {
    color: var(--white);
    text-align: center;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 42, 74, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: var(--white);
}

.gallery-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.gallery-content p {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-section h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gold);
    padding-left: 5px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding-left: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gold);
}

.content-section p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.committee-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    padding: 0;
    transition: var(--transition);
    border-top: 4px solid var(--gold);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.committee-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.committee-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.committee-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.committee-card-content {
    padding: 2rem;
}

.committee-card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.committee-card-image .committee-type {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border-top: 4px solid var(--gold);
}

.team-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.team-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.team-content {
    padding: 2rem;
}

.team-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.team-name {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-description {
    color: var(--gray-dark);
    line-height: 1.8;
    margin: 0;
}

/* Application Form */
.application-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-light);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--gold);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--gray-light);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.form-submit-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gold);
}

.form-submit-section button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-light);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

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

/* Contact Page Enhancements */
.contact-form {
    transition: var(--transition);
}

.contact-form:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
    border-color: var(--gold);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Contact Info Cards Hover */
div[style*="border-left: 4px solid var(--gold)"]:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

/* Social Media Buttons Hover */
a[style*="background: var(--navy)"]:hover {
    background: var(--gold) !important;
    color: var(--navy) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--navy);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .countdown-title {
        font-size: 2rem;
    }

    .countdown-subtitle {
        font-size: 1rem;
    }

    .countdown-container {
        gap: 1rem;
    }

    .countdown-item {
        padding: 1.5rem 1.5rem;
        min-width: 100px;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .countdown-label {
        font-size: 0.85rem;
    }

    .emblem {
        width: 150px;
        height: 150px;
    }

    .emblem-text {
        font-size: 2rem;
    }

    .conference-content {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

    .letter-body {
        padding: 2.5rem;
    }

    .contact-form {
        padding: 2rem !important;
    }

    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .letter-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    .quote-mark {
        font-size: 4rem;
        top: -0.5rem;
        left: -0.5rem;
    }

    .content-section > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .application-form {
        padding: 2rem !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .emblem {
        width: 120px;
        height: 120px;
    }

    .emblem-text {
        font-size: 1.5rem;
    }

    .countdown-title {
        font-size: 1.5rem;
    }

    .countdown-subtitle {
        font-size: 0.9rem;
    }

    .countdown-container {
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 1rem 1rem;
        min-width: 70px;
    }

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

    .countdown-label {
        font-size: 0.75rem;
    }

    .letter-body {
        padding: 2rem;
    }

    .letter-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .quote-mark {
        font-size: 3rem;
    }

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

    .gallery-overlay {
        opacity: 1;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}


/* Admin Panel Styles */
.admin-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 0;
    padding-top: 80px;
}

.admin-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* Admin Hero Section */
.admin-hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
    margin-bottom: 3rem;
    border-radius: 0;
}

.admin-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.admin-hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.admin-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    color: var(--white);
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.admin-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.admin-card h1 {
    font-family: var(--font-serif);
    color: var(--navy);
    text-align: center;
    margin-bottom: 2rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--navy);
    font-weight: 600;
}

.form-group input {
    padding: 0.8rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--navy);
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.error-message {
    color: #F44336;
    text-align: center;
    padding: 0.5rem;
    background: #FFEBEE;
    border-radius: 5px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: var(--navy);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

.back-link:hover {
    opacity: 1;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h1 {
    font-family: var(--font-serif);
    color: var(--white);
    margin: 0;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

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

.stat-card h3 {
    font-family: var(--font-serif);
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.admin-panel {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.admin-panel h2 {
    font-family: var(--font-serif);
    color: var(--navy);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
    font-size: 1.8rem;
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.application-item,
.ip-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--gold);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.app-header,
.ip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.app-header h4 {
    color: var(--navy);
    font-family: var(--font-serif);
    margin: 0;
}

.app-date,
.ip-visits {
    color: var(--gray);
    font-size: 0.9rem;
}

.app-details,
.ip-details {
    color: var(--navy);
    line-height: 1.8;
}

.app-details p,
.ip-details p {
    margin: 0.5rem 0;
}

.ip-address {
    font-family: monospace;
    font-weight: 600;
    color: var(--navy);
    font-size: 1.1rem;
}

/* Enhanced Admin Panel Styles */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-header h2 {
    margin: 0;
    flex: 1;
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.btn-icon:hover {
    background: var(--gold-dark);
    transform: rotate(180deg);
}

.filter-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--navy);
    transition: var(--transition);
    background: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--gray);
    pointer-events: none;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    flex: 1;
    min-width: 150px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--navy);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-clear {
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-clear:hover {
    background: var(--gray-light);
    border-color: var(--navy);
}

.results-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge-country {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.badge-committee {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray);
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

.application-item {
    transition: var(--transition);
    cursor: pointer;
}

.application-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: var(--gold-dark);
}

.stat-card {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

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

.admin-header {
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    border: 1px solid var(--gray-light);
}

.admin-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.admin-panel:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.data-list {
    max-height: 600px;
    padding-right: 0.5rem;
}

.data-list::-webkit-scrollbar {
    width: 8px;
}

.data-list::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

.data-list::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.data-list::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

@media (max-width: 768px) {
    .admin-container {
        padding-top: 70px;
    }

    .admin-hero {
        padding: 2rem 1rem;
    }

    .admin-hero-title {
        font-size: 1.8rem;
    }

    .admin-hero-subtitle {
        font-size: 1rem;
    }

    .admin-header-top {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .admin-header-top .btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .admin-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }

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

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

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

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .panel-header h2 {
        font-size: 1.5rem;
    }

    .filter-section {
        padding: 1rem;
    }

    .filter-controls {
        flex-direction: column;
        gap: 0.8rem;
    }

    .filter-select,
    .btn-clear {
        width: 100%;
    }

    .search-box {
        margin-bottom: 1rem;
    }

    .search-input {
        padding: 0.8rem 1rem 0.8rem 2.5rem;
        font-size: 0.95rem;
    }

    .admin-panel {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .admin-panel h2 {
        font-size: 1.5rem;
    }

    .data-list {
        max-height: 400px;
    }

    .application-item,
    .ip-item {
        padding: 1rem;
    }

    .app-header,
    .ip-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .app-header h4 {
        font-size: 1rem;
    }

    .app-date,
    .ip-visits {
        font-size: 0.85rem;
    }

    .app-details p,
    .ip-details p {
        font-size: 0.9rem;
        margin: 0.4rem 0;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .btn-icon {
        min-width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .results-info {
        font-size: 0.85rem;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state p {
        font-size: 1rem;
    }

    .footer {
        padding: 3rem 1rem 1.5rem;
    }

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

    .footer-section {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .admin-hero-title {
        font-size: 1.5rem;
    }

    .admin-hero-subtitle {
        font-size: 0.9rem;
    }

    .admin-card {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }

    .form-group input {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

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

    .admin-panel {
        padding: 1rem;
    }

    .filter-section {
        padding: 0.8rem;
    }

    .search-input {
        padding: 0.7rem 0.9rem 0.7rem 2.3rem;
        font-size: 0.9rem;
    }

    .application-item,
    .ip-item {
        padding: 0.8rem;
    }

    .app-details p,
    .ip-details p {
        font-size: 0.85rem;
    }
}
