:root {
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --secondary-color: #1f2937;
    --accent-color: #fbbf24;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-light: #f9fafb;
    --background-dark: #111827;
    --border-color: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #374151 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #f59e0b 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--background-light);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 2px 8px;
}

.dropdown-link:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: #d1d5db;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

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

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

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.hero-dates {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #d1d5db;
}

.date-item i {
    color: var(--primary-light);
}

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

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-item {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.float-item.chart {
    top: 20%;
    left: 10%;
    width: 60px;
    height: 40px;
    background: var(--primary-light);
    clip-path: polygon(0 100%, 20% 60%, 40% 80%, 60% 40%, 80% 20%, 100% 0%, 100% 100%);
    animation-delay: 0s;
}

.float-item.graph {
    top: 60%;
    right: 15%;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    animation-delay: 2s;
}

.float-item.currency {
    top: 40%;
    left: 70%;
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    transform: rotate(45deg);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

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

.about-text .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.feature-list i {
    color: var(--primary-color);
    width: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.competition-structure {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.round-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.round-card:hover {
    transform: translateY(-5px);
}

.round-header {
    margin-bottom: 2rem;
    text-align: center;
}

.round-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.round-date {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.round-details, .round-modules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

.detail-item i {
    color: var(--primary-color);
    width: 20px;
}

.module {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.module h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.module-details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.module-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.module-details i {
    color: var(--primary-color);
}

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

.requirement-card {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.requirement-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.requirement-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.requirement-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.application-timeline {
    position: relative;
    margin: 3rem 0;
}

.application-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    margin: 0 2rem;
}

.timeline-content {
    flex: 1;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.deadline-notice {
    text-align: center;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--error);
    border-radius: 12px;
    margin-top: 2rem;
    color: var(--error);
    font-weight: 600;
    font-size: 1.1rem;
}

.deadline-notice i {
    margin-right: 0.5rem;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    max-width: 200px;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.process-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Enhanced Timeline Chart Styles */
.timeline-chart {
    position: relative;
    margin: 3rem 0;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.timeline-axis {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
    transform: translateY(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    z-index: 1;
}

.timeline-axis::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.timeline-axis::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 12px solid var(--accent-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transform: translateY(-50%);
    filter: drop-shadow(2px 2px 4px rgba(251, 191, 36, 0.3));
}

.timeline-grid {
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 100%;
    z-index: 0;
}

.grid-months {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    padding-bottom: 20px;
}

.month-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.month-label::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 2px;
    height: 10px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-events {
    position: relative;
    z-index: 2;
    padding: 2rem 5%;
}

.timeline-event {
    position: relative;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-event:nth-child(1) { animation-delay: 0.1s; }
.timeline-event:nth-child(2) { animation-delay: 0.2s; }
.timeline-event:nth-child(3) { animation-delay: 0.3s; }
.timeline-event:nth-child(4) { animation-delay: 0.4s; }
.timeline-event:nth-child(5) { animation-delay: 0.5s; }
.timeline-event:nth-child(6) { animation-delay: 0.6s; }
.timeline-event:nth-child(7) { animation-delay: 0.7s; }
.timeline-event:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-event {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.timeline-event:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.timeline-event.major-event {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border-color: var(--primary-color);
}

.timeline-event.major-event:hover {
    background: linear-gradient(135deg, #fecaca 0%, #ffffff 100%);
}

.timeline-event.final-event {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border-color: var(--accent-color);
}

.timeline-event.final-event:hover {
    background: linear-gradient(135deg, #fde68a 0%, #ffffff 100%);
}

.event-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.timeline-event:hover .event-marker {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.timeline-event.major-event .event-marker {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.timeline-event.final-event .event-marker {
    background: var(--gradient-accent);
}

.marker-icon {
    position: absolute;
    font-size: 1.8rem;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.timeline-event:hover .marker-icon {
    opacity: 1;
    transform: scale(1.1);
}

.marker-number {
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.timeline-event:hover .marker-number {
    opacity: 0;
    transform: scale(0.8);
}

.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.event-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.event-deadline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.event-deadline i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.event-deadline strong {
    color: var(--primary-color);
    font-weight: 600;
}

.event-deadline span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.event-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--background-light);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
}

.event-connection {
    position: absolute;
    top: 100%;
    left: 40px;
    width: 2px;
    height: 20px;
    background: var(--primary-color);
    opacity: 0.3;
}

.timeline-event:last-child .event-connection {
    display: none;
}

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid;
}

.legend-marker.major {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.legend-marker.regular {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.legend-marker.final {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Responsive Timeline Chart */
@media (max-width: 768px) {
    .timeline-chart {
        margin: 2rem 0;
        padding: 1rem 0;
    }
    
    .timeline-axis {
        display: none;
    }
    
    .grid-months {
        padding-bottom: 10px;
    }
    
    .month-label {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
    
    .timeline-events {
        padding: 1rem 3%;
    }
    
    .timeline-event {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .event-marker {
        min-width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .marker-icon {
        font-size: 1.4rem;
    }
    
    .marker-number {
        font-size: 1.2rem;
    }
    
    .event-title {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .event-deadline {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    
    .event-connection {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-legend {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .timeline-chart {
        border-radius: 12px;
        margin: 1rem 0;
    }
    
    .timeline-event {
        padding: 1rem;
    }
    
    .event-marker {
        min-width: 50px;
        height: 50px;
    }
    
    .marker-icon {
        font-size: 1.2rem;
    }
    
    .marker-number {
        font-size: 1rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-description {
        font-size: 0.9rem;
    }
}

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

.reward-category {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.reward-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.reward-list {
    list-style: none;
    padding: 0;
}

.reward-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: var(--background-light);
    border-radius: 8px;
}

.reward-list i {
    color: var(--accent-color);
}

.award-tier {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tier {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.tier.gold {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.tier.silver {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #9ca3af;
}

.tier.bronze {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border: 2px solid #ea580c;
}

.tier i {
    font-size: 2rem;
}

.tier span {
    font-weight: 600;
    font-size: 1.1rem;
}

.tier small {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.resource-card {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.resource-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.resource-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.resource-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.resource-card li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2rem;
    text-align: left;
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-left: 0;
}

.resource-card li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.faq-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--background-light);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.footer {
    background: var(--background-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--background-light);
        margin: 0.5rem 0;
        border-radius: 8px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        justify-content: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-toggle:hover::after {
        width: 0;
    }

    .dropdown-link {
        padding: 8px 20px;
        margin: 0;
        text-align: center;
    }

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

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .competition-structure {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .application-timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-left: 60px;
    }

    .timeline-marker {
        position: absolute;
        left: -90px;
        margin: 0;
    }

    .process-flow {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 60px 0;
    }

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

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

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

    .hero-dates {
        flex-direction: column;
        gap: 1rem;
    }

    .round-card,
    .requirement-card,
    .resource-card {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

.smooth-scroll {
    scroll-behavior: smooth;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Registration Announcement Styles */
.registration-announcement {
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border-bottom: 3px solid var(--primary-color);
    padding: 60px 0;
}

.announcement-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

.announcement-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.announcement-header i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.announcement-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.announcement-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.announcement-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.deadline-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--warning);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.deadline-alert i {
    font-size: 1.5rem;
    color: var(--warning);
}

.deadline-info {
    flex: 1;
}

.deadline-info strong {
    color: var(--text-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.deadline-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.registration-process {
    margin-bottom: 2.5rem;
}

.process-note,
.eligibility-note {
    background: var(--background-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 4px solid var(--primary-color);
}

.process-note i,
.eligibility-note i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.process-note p,
.eligibility-note p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

.registration-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 200px;
    justify-content: center;
    transition: all 0.3s ease;
}

.registration-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.registration-buttons .btn i {
    font-size: 1.2rem;
}

/* Mobile responsiveness for registration announcement */
@media (max-width: 768px) {
    .registration-announcement {
        padding: 40px 0;
    }
    
    .announcement-card {
        padding: 2rem;
    }
    
    .announcement-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .announcement-header h2 {
        font-size: 1.8rem;
    }
    
    .announcement-content h3 {
        font-size: 1.5rem;
    }
    
    .deadline-alert {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .registration-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .registration-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .announcement-header h2 {
        font-size: 1.6rem;
    }
    
    .announcement-content h3 {
        font-size: 1.3rem;
    }
    
    .deadline-info strong {
        font-size: 1rem;
    }
    
    .deadline-date {
        font-size: 1.1rem;
    }
}

/* Process Introduction Styles */
.process-intro {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.intro-main {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.intro-main i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(220, 38, 38, 0.1);
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.intro-main h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.timing-info {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.timing-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    justify-content: center;
}

.timing-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(220, 38, 38, 0.1);
    padding: 0.8rem;
    border-radius: 50%;
}

.timing-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.timing-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timing-note {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

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

.timezone-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.timezone-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.timezone-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.continent {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    font-size: 1rem;
}

.time {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.important-note {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--warning);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

.important-note i {
    font-size: 1.5rem;
    color: var(--warning);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.important-note p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 1rem;
}

.important-note strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Mobile responsiveness for process intro */
@media (max-width: 768px) {
    .process-intro {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .intro-main h3 {
        font-size: 1.5rem;
    }
    
    .timing-info {
        padding: 1.5rem;
    }
    
    .timing-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timing-header h4 {
        font-size: 1.3rem;
    }
    
    .timezone-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .timezone-item {
        padding: 1rem;
        text-align: center;
        justify-content: center;
    }
    
    .important-note {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .process-intro {
        padding: 1.5rem;
    }
    
    .intro-main i {
        font-size: 2rem;
        padding: 0.8rem;
    }
    
    .intro-main h3 {
        font-size: 1.3rem;
    }
    
    .timing-header i {
        font-size: 1.5rem;
        padding: 0.6rem;
    }
    
    .timing-header h4 {
        font-size: 1.2rem;
    }
    
    .timezone-item {
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .continent {
        font-size: 0.9rem;
    }
    
    .time {
        font-size: 1rem;
    }
}

/* Preparation Section Enhancement */
.preparation-content {
    max-width: 1000px;
    margin: 0 auto;
}

.round-prep {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.round-prep::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.round-prep h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.round-prep p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.round-prep p strong {
    background: linear-gradient(135deg, var(--accent-color) 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    padding: 0 4px;
}

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

.resource-item {
    border-radius: 16px;
    padding: 2.5rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.resource-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Different color themes for each resource */
.resource-item:nth-child(1) {
    background: linear-gradient(135deg, #8b5a2b 0%, #6b4423 100%);
}

.resource-item:nth-child(2) {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.resource-item:nth-child(3) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.resource-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.resource-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.resource-info i {
    font-size: 3rem;
    opacity: 0.9;
}

.resource-info span {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.01em;
}

.resource-item .btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.resource-item .btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.resource-item .btn i {
    font-size: 1rem;
}

/* Mobile responsiveness for preparation section */
@media (max-width: 768px) {
    .preparation-content {
        padding: 0;
    }
    
    .round-prep {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .round-prep h3 {
        font-size: 1.5rem;
    }
    
    .round-prep p {
        font-size: 1rem;
    }
    
    .download-resources {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .resource-item {
        padding: 2rem;
        min-height: 160px;
    }
    
    .resource-info span {
        font-size: 1.3rem;
    }
    
    .resource-info i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .round-prep {
        padding: 1.5rem;
    }
    
    .round-prep h3 {
        font-size: 1.3rem;
    }
    
    .resource-item {
        padding: 1.5rem;
        min-height: 140px;
    }
    
    .resource-info span {
        font-size: 1.2rem;
    }
    
    .resource-info i {
        font-size: 2rem;
    }
}

/* News & Updates Styles */
.news-pulses-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-article {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.news-article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-content-wrapper {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allows text to wrap properly */
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.news-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.news-updated {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.markdown-content {
    color: var(--text-primary);
    line-height: 1.8;
    word-wrap: break-word;
}

/* Headings */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.markdown-content h1:first-child,
.markdown-content h2:first-child,
.markdown-content h3:first-child,
.markdown-content h4:first-child,
.markdown-content h5:first-child,
.markdown-content h6:first-child {
    margin-top: 0;
}

.markdown-content h1 { font-size: 2rem; }
.markdown-content h2 { font-size: 1.75rem; }
.markdown-content h3 { font-size: 1.5rem; }
.markdown-content h4 { font-size: 1.25rem; }
.markdown-content h5 { font-size: 1.1rem; }
.markdown-content h6 { font-size: 1rem; }

/* Paragraphs */
.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content p:last-child {
    margin-bottom: 0;
}

/* Lists */
.markdown-content ul,
.markdown-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content li > p {
    margin-bottom: 0.5rem;
}

.markdown-content ul {
    list-style-type: disc;
}

.markdown-content ol {
    list-style-type: decimal;
}

.markdown-content ul ul,
.markdown-content ol ol,
.markdown-content ul ol,
.markdown-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Links */
.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.markdown-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Images */
.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

/* Blockquotes */
.markdown-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--background-light);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.markdown-content blockquote p {
    margin-bottom: 0.5rem;
}

.markdown-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.markdown-content code {
    background: var(--background-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.markdown-content pre {
    background: var(--background-dark);
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.5;
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.9em;
}

/* Text formatting */
.markdown-content strong,
.markdown-content b {
    font-weight: 700;
    color: var(--text-primary);
}

.markdown-content em,
.markdown-content i {
    font-style: italic;
}

.markdown-content del,
.markdown-content s {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Horizontal rules */
.markdown-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 2rem 0;
}

/* Tables */
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow-x: auto;
    display: block;
}

.markdown-content table thead {
    background: var(--background-light);
}

.markdown-content table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.markdown-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.markdown-content table tbody tr:hover {
    background: var(--background-light);
}

.markdown-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Task lists (GitHub Flavored Markdown) */
.markdown-content input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Nested content */
.markdown-content > *:first-child {
    margin-top: 0;
}

.markdown-content > *:last-child {
    margin-bottom: 0;
}

.news-image-wrapper {
    position: relative;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-count-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pulse-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pulse-tag {
    background: var(--background-light);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Loading State */
.loading-news {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.loading-news p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Error State */
.error-news {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.error-news p {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.error-details {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

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

/* News Modal */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.news-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.news-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.news-modal-close:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

.news-modal-body {
    padding: 2rem;
}

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

.news-modal-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Past IFOs Section */
.past-ifos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.past-ifo-item {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.past-ifo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.past-ifo-content {
    padding: 2rem;
}

.past-ifo-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.past-ifo-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.past-ifo-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.past-ifo-content .btn i {
    font-size: 1.1rem;
}

/* Responsive Design for Past IFOs */
@media (max-width: 768px) {
    .past-ifos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .past-ifo-content {
        padding: 1.5rem;
    }
    
    .past-ifo-content h3 {
        font-size: 1.3rem;
    }
}

/* Responsive Design for News */
@media (max-width: 768px) {
    .news-article {
        flex-direction: column;
    }
    
    .news-content-wrapper {
        padding: 1.5rem;
    }
    
    .news-image-wrapper {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        max-height: 300px;
        order: -1; /* Image appears first on mobile */
    }
    
    .news-modal {
        padding: 1rem;
    }
    
    .news-modal-content {
        max-height: 95vh;
    }
    
    .news-modal-header,
    .news-modal-body {
        padding: 1.5rem;
    }
    
    .news-modal-images {
        grid-template-columns: 1fr;
    }
    
    .markdown-content h1 { font-size: 1.75rem; }
    .markdown-content h2 { font-size: 1.5rem; }
    .markdown-content h3 { font-size: 1.25rem; }
}