:root {
    --primary-color: #0b141f;
    --primary-light: #18283b;
    --accent-color: #b8860b;
    --accent-light: #dfc28d;
    --bg-color: #fcfbfa;
    --bg-card: #ffffff;
    --text-color: #1a222c;
    --text-muted: #5e6e82;
    --border-color: #e2e8f0;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --max-width: 1200px;
    --content-width: 800px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.2rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.2s ease;
}

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

.nav-btn {
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 0.4rem 1.1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.nav-btn:hover {
    background-color: var(--accent-color);
}

.language-switcher-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-switcher a {
    color: var(--text-muted);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.lang-switcher a.active {
    color: var(--primary-color);
    background-color: var(--border-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 0 0;
    background: #000000 url('../images/jovana_hero_screaming.jpg') no-repeat center right;
    background-size: cover;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-side {
    max-width: 600px;
    width: 100%;
    padding: 4rem 0;
}

.hero-pretitle {
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #ffffff;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #cbd5e1;
    margin-bottom: 2.2rem;
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.5;
}

.hero-badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    border-color: var(--accent-light);
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.hero-badge i {
    color: var(--accent-light);
}

/* Floating Stats Bar */
.stats-bar-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: rgba(11, 20, 31, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
    position: relative;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.8rem 1.5rem;
    text-align: center;
}

.stat-bar-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-bar-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}

.stat-bar-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-serif);
}

/* Medal CSS Badges (Strictly no emojis) */
.medal {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    font-family: var(--font-sans);
}

.medal i {
    font-size: 0.85rem;
}

.medal-gold {
    background: linear-gradient(135deg, #FFF59D, #FBC02D);
    color: #5D4037;
    border: 1px solid #FBC02D;
}

.medal-silver {
    background: linear-gradient(135deg, #F8FAFC, #CBD5E1);
    color: #334155;
    border: 1px solid #CBD5E1;
}

.medal-bronze {
    background: linear-gradient(135deg, #FFE0B2, #D84315);
    color: #ffffff;
    border: 1px solid #D84315;
}

.medal-small {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    margin-left: 0.35rem;
    vertical-align: middle;
    box-shadow: none;
}

/* Left-aligned Vertical Timeline */
.timeline {
    position: relative;
    max-width: var(--content-width);
    margin: 4rem auto;
    padding: 1rem 0 1rem 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 15px;
    z-index: 1;
}

.timeline-item {
    padding: 1rem 0 2.5rem 2.5rem;
    position: relative;
    background-color: inherit;
    width: 100% !important;
    left: 0 !important;
    text-align: left !important;
    box-sizing: border-box;
}

.timeline-badge {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--accent-color);
    top: 2rem;
    left: 6px !important;
    right: auto !important;
    z-index: 10;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-badge {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-panel {
    padding: 2.2rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(13, 37, 63, 0.07);
    border-color: var(--accent-color);
}

.timeline-year {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: var(--font-sans);
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: -0.5px;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    line-height: 1.3;
}

/* Main Content Container */
.content-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    width: 100%;
    box-sizing: border-box;
}

.content-container > p,
.content-container > h2,
.content-container > h3,
.content-container > h4,
.content-container > ul,
.content-container > ol,
.content-container > .table-container,
.content-container > .timeline {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Embedded Media and Layout elements within Markdown content */
.content-container img:not(.content-img-breakout) {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.03);
}

.image-gallery-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-gallery-split img {
    margin: 0;
    width: 100%;
    height: 350px !important;
    object-fit: cover;
    border-radius: 12px;
}

.image-gallery-three {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto;
}

.image-gallery-three img {
    height: 260px !important;
    width: auto !important;
    flex: 1 1 auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-gallery-three img:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.content-img-breakout {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto;
    height: 480px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease;
}

.content-img-breakout:hover {
    transform: scale(1.01);
}

/* Lists styling */
.content-container ul, .content-container ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

/* Tables styling */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
    background-color: var(--bg-card);
}

th, td {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: rgba(13, 37, 63, 0.03);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) td {
    background-color: rgba(250, 251, 252, 0.5);
}

/* Contact CTA */
.contact-cta {
    background-color: #ffffff;
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-card {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 37, 63, 0.02), rgba(197, 160, 89, 0.05));
    border: 1px solid var(--border-color);
}

.cta-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 0.85rem;
}

.cta-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.85rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(13, 37, 63, 0.15);
    transition: all 0.25s ease;
}

.cta-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.25);
}

/* Footer styling */
.main-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 4.5rem 1.5rem 2.5rem;
    font-size: 0.9rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-olympians {
    margin-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-section-title {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

.olympians-grid a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.olympians-grid a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-langs a {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
}

.footer-langs a:hover {
    color: #ffffff;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .hero-image-side {
        max-width: 450px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .olympians-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .nav-btn {
        display: block;
        text-align: center;
    }
    
    .olympians-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0;
    }
    
    .stat-bar-item {
        border-right: none;
    }
    
    .stat-bar-item:nth-child(odd) {
        border-right: 1px solid var(--border-color);
    }
    
    .image-gallery-three {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
        margin: 2rem 0;
    }
    .image-gallery-three img {
        height: 200px !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
        flex: none !important;
    }
    .image-gallery-three img:first-child {
        height: 200px !important;
    }
    .content-img-breakout {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        left: 0;
        transform: none;
        height: 300px !important;
        border-radius: 8px;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .olympians-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .image-gallery-split, .image-gallery-three {
        grid-template-columns: 1fr !important;
    }
    
    .stats-bar {
        grid-template-columns: 1fr;
        gap: 1.5rem 0;
    }
    
    .stat-bar-item {
        border-right: none !important;
    }

    .timeline {
        padding-left: 2rem;
    }
    .timeline::before {
        left: 10px;
    }
    .timeline-item {
        padding-left: 1rem;
        padding-bottom: 2rem;
    }
    .timeline-badge {
        left: 2px !important;
    }
    .timeline-panel {
        padding: 1.5rem;
    }
    .timeline-year {
        font-size: 1.5rem;
    }
    .timeline-title {
        font-size: 1.25rem;
    }
}
