/* CSS Variables for Design System */
:root {
    --primary-blue: #0c4c9c;
    --secondary-blue: #1565c0;
    --light-blue: #e3f2fd;
    --dark-blue: #0d47a1;
    --accent-blue: #2196f3;
    
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #ffffff;
    
    --surface-white: #ffffff;
    --surface-light: #f5f5f5;
    --surface-dark: #fafafa;
    
    --border-light: #e0e0e0;
    --border-medium: #bdbdbd;
    
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-large: 0 8px 16px rgba(0,0,0,0.15);
    
    --border-radius: 8px;
    --border-radius-large: 16px;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Skip to main content link for accessibility */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: var(--text-light);
    padding: 8px;
    border-radius: 4px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-to-main:focus {
    top: 6px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface-white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
    margin-bottom: 1rem;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-blue);
    border: 2px solid white;
}

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

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

/* Header */
.header {
    background-color: var(--surface-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 156px;
    height: 52px;
    object-fit: contain;
}

.logo-text {
    display: block;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--text-light);
    white-space: nowrap;
}

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

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-blue);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface-white);
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--surface-white) 100%);
    padding: 4rem 0;
    overflow: hidden;
}

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

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--primary-blue);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Hero with background image - white text */
.hero[style*="background-image"] .hero-title,
.hero[style*="background-image"] .hero-subtitle {
    color: var(--text-light);
}

/* Hero with background image - white button styling */
.hero[style*="background-image"] .btn-secondary {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background-color: transparent;
}

.hero[style*="background-image"] .btn-secondary:hover {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero .btn-secondary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
}

.hero .btn-secondary:hover {
    border: 2px solid white;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

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

.globe-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.globe {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-large);
    animation: pulse 3s ease-in-out infinite;
}

.orbit {
    position: absolute;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    top: 50px;
    left: 50px;
}

.orbit-2 {
    width: 250px;
    height: 250px;
    top: 25px;
    left: 25px;
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 300px;
    height: 300px;
    top: 0;
    left: 0;
    animation-duration: 40s;
}

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

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

/* Updates Section */
.updates-section {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 4rem 0;
}

.updates-section .section-title {
    color: var(--text-light);
}

.updates-section .section-subtitle {
    color: var(--text-light);
}

.updates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

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

.updates-header h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.updates-header .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
}

.update-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
}

.update-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.update-text {
    flex: 1;
}

.update-date {
    color: #ffa64d;
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-title {
    color: #ffa64d;
    font-weight: 600;
    margin: 0.5rem 0;
    font-size: var(--font-size-xl);
}

.update-description {
    color: var(--text-light);
    line-height: 1.6;
    margin: 1rem 0 1.5rem;
}

/* Markdown content styling within update description */
.update-description.markdown-content {
    color: var(--text-light);
}

.update-description.markdown-content h1,
.update-description.markdown-content h2,
.update-description.markdown-content h3,
.update-description.markdown-content h4,
.update-description.markdown-content h5,
.update-description.markdown-content h6 {
    color: #ffa64d;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    line-height: 1.3;
}

.update-description.markdown-content h1 { font-size: 1.5rem; }
.update-description.markdown-content h2 { font-size: 1.375rem; }
.update-description.markdown-content h3 { font-size: 1.25rem; }
.update-description.markdown-content h4 { font-size: 1.125rem; }
.update-description.markdown-content h5 { font-size: 1rem; }
.update-description.markdown-content h6 { font-size: 0.875rem; }

.update-description.markdown-content p {
    margin: 0.75rem 0;
    color: var(--text-light);
}

.update-description.markdown-content ul,
.update-description.markdown-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.update-description.markdown-content li {
    margin: 0.5rem 0;
    color: var(--text-light);
}

.update-description.markdown-content a {
    color: #ffa64d;
    text-decoration: underline;
    transition: var(--transition);
}

.update-description.markdown-content a:hover {
    color: #ffcc99;
}

.update-description.markdown-content strong,
.update-description.markdown-content b {
    font-weight: 600;
    color: var(--text-light);
}

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

.update-description.markdown-content code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.update-description.markdown-content pre {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1rem 0;
}

.update-description.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.update-description.markdown-content blockquote {
    border-left: 3px solid #ffa64d;
    padding-left: 1rem;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.update-description.markdown-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0;
}

.update-image-wrapper {
    flex-shrink: 0;
    width: 300px;
    max-width: 40%;
}

.update-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
}

@media (max-width: 768px) {
    .update-content {
        flex-direction: column;
    }
    
    .update-image-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

.update-link {
    color: var(--text-light);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition);
}

.update-link:hover {
    color: #ffa64d;
}


.update-date {
    font-weight: 600;
    background-color: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
}

.update-text {
    flex: 1;
}

.update-link {
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.update-link:hover {
    border-bottom-color: var(--text-light);
    color: var(--text-light);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.mission-content {
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--light-blue);
    border-radius: var(--border-radius-large);
    text-align: center;
}

.mission-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.mission-description {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
}

/* What We Do Section */
.what-we-do-section {
    padding: 4rem 0;
    background-color: var(--surface-light);
}

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

.about-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--surface-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--primary-blue);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.about-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Countries Section */
.countries-section {
    padding: 4rem 0;
    background-color: var(--surface-light);
}

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

.country-item {
    background-color: var(--surface-white);
    padding: 1rem;
    text-align: left;
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.flag-img {
    width: 2.5rem;
    height: auto;
    margin-right: 0.5rem;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.country-item:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--text-light);
    text-align: center;
}

.cta-content h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: var(--text-light);
    color: var(--primary-blue);
}

.cta-section .btn-primary:hover {
    background-color: var(--surface-light);
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: var(--text-light);
    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 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.footer-logo .logo {
    width: 156px;
    height: 52px;
    object-fit: contain;
}

.footer-logo .logo-text {
    display: block;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--text-light);
    white-space: nowrap;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
    text-align: left;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

.contact-info a {
    color: var(--text-light);
    opacity: 0.8;
    transition: var(--transition);
}

.contact-info a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .globe-container {
        width: 250px;
        height: 250px;
    }
    
    .globe {
        width: 120px;
        height: 120px;
    }
    
    .orbit-1 {
        width: 170px;
        height: 170px;
        top: 40px;
        left: 40px;
    }
    
    .orbit-2 {
        width: 210px;
        height: 210px;
        top: 20px;
        left: 20px;
    }
    
    .orbit-3 {
        width: 250px;
        height: 250px;
        top: 0;
        left: 0;
    }
    
    .update-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .countries-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 2023 IBO Page Specific Styles */
.summary-section {
    padding: 6rem 0;
}

.summary-content {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.summary-card {
    background-color: var(--surface-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-align: center;
    max-width: 600px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.summary-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.summary-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

.format-section {
    padding: 6rem 0;
}

.subjects-section {
    padding: 6rem 0;
    background-color: #e0e0e0;
}

.participation-section {
    padding: 6rem 0;
}

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

.module-card {
    background-color: var(--surface-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.module-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.module-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.module-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.module-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.module-details {
    color: var(--text-secondary);
}

.module-time {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

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

.subject-card {
    background-color: var(--surface-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.subject-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.subject-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.subject-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.subject-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.subject-description {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* 2025 IBO Page Specific Styles */
.dates-section {
    padding: 6rem 0;
    background-color: var(--surface-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-blue);
    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-date {
    flex: 0 0 200px;
    text-align: center;
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-sm);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background-color: var(--surface-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin: 0 2rem;
}

.timeline-content h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.structure-section {
    padding: 4rem 0;
}

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

.structure-card {
    background-color: var(--surface-white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.structure-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.card-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    background-color: var(--primary-blue);
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.structure-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.card-details {
    margin-bottom: 1rem;
}

.detail-item {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.detail-item strong {
    color: var(--text-primary);
}

.awards-section {
    padding: 4rem 0;
    background-color: var(--surface-light);
}

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

.award-category {
    background-color: var(--surface-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
}

.award-category:not(:first-of-type) {
    margin-top: 150px !important;
}

.award-category:first-of-type {
    margin-bottom: 150px !important;
}

.award-category h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.award-card {
    background-color: var(--surface-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.award-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.award-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: var(--surface-light);
}

.award-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.award-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin: 1rem 1rem 0.5rem;
    font-size: var(--font-size-lg);
}

.award-description {
    color: var(--text-secondary);
    margin: 0 1rem 1rem;
    line-height: 1.6;
    font-size: var(--font-size-base);
}

.award-tiers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.award-tier {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.tier-gold {
    background-color: #fff8e1;
    border: 1px solid #ffc107;
}

.tier-silver {
    background-color: #f5f5f5;
    border: 1px solid #9e9e9e;
}

.tier-bronze {
    background-color: #efebe9;
    border: 1px solid #8d6e63;
}

.tier-excellence {
    background-color: var(--light-blue);
    border: 1px solid var(--primary-blue);
}

.tier-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.award-tier h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.award-tier p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.special-honors {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.honor-item {
    padding: 1rem;
    background-color: var(--light-blue);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.honor-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.honor-item p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.eligibility-section {
    padding: 4rem 0;
}

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

.eligibility-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--surface-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    transition: var(--transition);
}

.eligibility-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.registration-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--text-light);
    text-align: center;
}

.registration-content h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.registration-content p {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.registration-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    background-color: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: left;
}

.info-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.registration-section .btn-primary {
    background-color: var(--text-light);
    color: var(--primary-blue);
    margin-top: 1rem;
}

.registration-section .btn-primary:hover {
    background-color: var(--surface-light);
    color: var(--primary-blue);
}

.registration-section .btn-secondary {
    border: 2px solid white;
    color: white;
    background-color: transparent;
}

.registration-section .btn-secondary:hover {
    border: 2px solid white;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
    }
    
    .timeline-date {
        position: absolute;
        left: 0;
        flex: none;
        width: auto;
        min-width: 120px;
    }
    
    .timeline-content {
        margin: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .structure-grid {
        grid-template-columns: 1fr;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .eligibility-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-date {
        font-size: var(--font-size-xs);
        padding: 0.5rem;
        min-width: 100px;
    }
}

/* How to Prepare Page Specific Styles */
.preparation-section {
    padding: 4rem 0;
}

.preparation-section.alt {
    background-color: var(--surface-light);
}

.prep-content {
    display: grid;
    gap: 3rem;
}

.prep-overview {
    text-align: center;
}

.overview-card {
    background-color: var(--surface-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    max-width: 600px;
    margin: 0 auto;
}

.overview-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.overview-card ul {
    list-style: none;
    text-align: left;
}

.overview-card li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.prep-steps h3 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

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

.step-card {
    background-color: var(--surface-white);
    padding: 3rem 2rem 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.step-card h4 {
    color: var(--primary-blue);
    margin: 1rem 0;
}

.step-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

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

.final-prep-card {
    background-color: var(--surface-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    transition: var(--transition);
}

.final-prep-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.final-prep-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.exam-details {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light-blue);
    border-radius: var(--border-radius);
}

.prep-tips h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.prep-tips ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.prep-tips li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.reading-section {
    padding: 4rem 0;
    background-color: var(--surface-light);
}

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

.reading-category {
    background-color: var(--surface-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
}

.reading-category h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
}

.book-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.book-item {
    padding: 1rem;
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.book-item:hover {
    background-color: var(--light-blue);
    transform: translateX(4px);
}

.book-cover {
    flex-shrink: 0;
    width: 80px;
    height: auto;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    object-fit: cover;
}

.book-info {
    flex: 1;
    min-width: 0;
}

.book-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
    font-size: var(--font-size-lg);
}

.author {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
}

.description {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.tips-section {
    padding: 4rem 0;
}

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

.tip-card {
    background-color: var(--surface-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.tip-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.tip-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--primary-blue);
}

.tip-icon svg {
    width: 100%;
    height: 100%;
}

.tip-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.tip-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .final-prep-grid {
        grid-template-columns: 1fr;
    }
    
    .reading-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .book-item {
        flex-direction: column;
        text-align: center;
    }
    
    .book-cover {
        width: 120px;
        align-self: center;
    }
}

/* Past IBO Pages Specific Styles */
.completion-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--surface-white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 2px solid var(--primary-blue);
    margin-top: 1rem;
}

.badge-text {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: var(--font-size-lg);
}

.badge-date {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-top: 0.25rem;
}

.theme-section {
    padding: 4rem 0;
    background-color: var(--surface-light);
}

.theme-content {
    display: flex;
    justify-content: center;
}

.theme-card {
    background-color: var(--surface-white);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    text-align: center;
    max-width: 600px;
    border: 2px solid var(--primary-blue);
}

.theme-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.theme-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: var(--font-size-2xl);
}

.timeline-section {
    padding: 4rem 0;
}

.format-section {
    padding: 4rem 0;
    background-color: var(--surface-white);
}

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

.format-card {
    background-color: var(--surface-white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.format-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.format-details {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--light-blue);
    border-radius: var(--border-radius);
}

.areas-section {
    padding: 4rem 0;
}

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

.area-card {
    background-color: var(--surface-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.area-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.area-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--primary-blue);
}

.area-icon svg {
    width: 100%;
    height: 100%;
}

.area-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.area-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.awards-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.award-tiers .award-tier {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tier-content {
    flex: 1;
}

.tier-content h4 {
    margin-bottom: 0.25rem;
}

.tier-content p {
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}

.team-awards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-award-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background-color: var(--light-blue);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.award-position {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 50px;
    text-align: center;
}

.award-details h4 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.award-details p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}

.stats-section {
    padding: 4rem 0;
    background-color: var(--surface-light);
}

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

.stat-card {
    background-color: var(--surface-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

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

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.stats-infographic {
    max-width: 100%;
    height: auto;
    display: block;
}

.legacy-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--text-light);
    text-align: center;
}

.legacy-content h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.legacy-content p {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.legacy-section .btn-primary {
    background-color: var(--text-light);
    color: var(--primary-blue);
}

.legacy-section .btn-primary:hover {
    background-color: var(--surface-light);
    color: var(--primary-blue);
}

.legacy-section .btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.legacy-section .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-blue);
}

/* Contact Page Specific Styles */
.contact-section {
    padding: 4rem 0;
}

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

.contact-info h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.method-icon svg {
    width: 100%;
    height: 100%;
}

.method-details h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.method-details p {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.method-details a {
    color: var(--primary-blue);
    font-weight: 500;
}

.response-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light-blue);
    border-radius: var(--border-radius);
}

.response-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.form-container {
    background-color: var(--surface-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

.form-container h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

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

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

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(12, 76, 156, 0.1);
}

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

.faq-section {
    padding: 4rem 0;
    background-color: var(--surface-light);
}

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

.faq-item {
    background-color: var(--surface-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-blue);
}

.faq-item h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .format-grid {
        grid-template-columns: 1fr;
    }
    
    .areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .awards-info {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .legacy-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}