/* F1 Serbia — Style Guide and Premium Layout CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --text-primary: #1f1f1f;
    --text-secondary: #495057;
    --text-muted: #868e96;
    --brand-red: #e10600; /* Formula 1 Red */
    --brand-red-dark: #b30500;
    --brand-black: #000000;
    --gradient-red-black: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-black) 100%);
    --gradient-light-gray: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-width: 1200px;
}

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

html, body {
    height: auto !important;
    min-height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-black);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
}

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

a:hover {
    color: var(--brand-black);
}

/* Layout Elements */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    background-color: var(--bg-primary);
    border-bottom: 3px solid var(--brand-black);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    color: var(--brand-black);
    text-transform: uppercase;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    font-style: italic; /* Elegant Italic Logo */
}

/* Animated F1 Car in Logo */
.f1-car-anim {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    animation: f1-vibrate 0.1s linear infinite alternate, f1-drive 2s ease-in-out infinite alternate;
}

.f1-car-anim .wheel-back {
    transform-origin: 22px 27px;
    animation: f1-wheel-spin 0.25s linear infinite;
}

.f1-car-anim .wheel-front {
    transform-origin: 78px 27px;
    animation: f1-wheel-spin 0.25s linear infinite;
}

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

@keyframes f1-vibrate {
    0% { transform: translateY(0); }
    100% { transform: translateY(0.7px); }
}

@keyframes f1-drive {
    0% { transform: translateX(0); }
    100% { transform: translateX(4px); }
}

.logo span {
    color: var(--brand-red);
    margin-left: 2px;
}

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

.nav-links a {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-red);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--brand-red);
}

/* Main Layout Grid */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
}

.main-layout > * {
    min-width: 0; /* Prevents nested tables or pre blocks from stretching grid columns on mobile */
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 8fr 4fr;
    }
}

/* Article Styling */
.article-header {
    margin-bottom: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--gradient-red-black);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.article-title-large {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .article-title-large {
        font-size: 3.2rem;
    }
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article-meta strong {
    color: var(--text-primary);
}

.cover-image-container {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--bg-secondary);
    aspect-ratio: 16/9;
}

.cover-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.cover-image-container img:hover {
    transform: scale(1.02);
}

/* Article Content Elements */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-left: 0;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-left: 5px solid var(--brand-red);
    padding-left: 1rem;
    font-weight: 800;
    font-style: italic;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Alert Boxes / Blockquotes */
blockquote {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--brand-black);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-sm);
}

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

/* Tables in Content */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2.5rem 0;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background-color: var(--bg-primary);
}



.article-content th {
    background-color: var(--brand-black);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    font-size: 0.95rem;
}

.article-content td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.article-content tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfd 100%);
    border: 2px solid var(--brand-black);
    padding: 1.75rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.summary-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-box ul {
    list-style: none;
}

.summary-box li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.summary-box li:last-child {
    margin-bottom: 0;
}

.summary-box li::before {
    content: '—'; /* Flat dash bullet */
    position: absolute;
    left: 0;
    top: 0px;
    font-size: 1rem;
    color: var(--brand-red);
    font-weight: bold;
}

/* Accordion FAQs */
.faq-section-title {
    margin-top: 3.5rem;
    border-bottom: 2px solid var(--brand-black);
    padding-bottom: 0.5rem;
}

.faq-accordion {
    margin: 1.5rem 0 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-primary);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--brand-red);
}

.faq-trigger {
    background-color: var(--bg-secondary);
    padding: 1.25rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--brand-black);
    transition: var(--transition);
}

.faq-trigger:hover {
    background-color: var(--bg-tertiary);
}

.faq-trigger::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    transition: var(--transition);
    color: var(--brand-red);
}

.faq-item.active .faq-trigger::after {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--bg-primary);
}

.faq-content-inner {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footnotes */
.footnotes {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footnotes ol {
    padding-left: 1.5rem;
}

.footnotes li {
    margin-bottom: 0.75rem;
}

.footnote-ref {
    font-size: 0.75rem;
    vertical-align: super;
    line-height: 0;
    margin-left: 1px;
    font-weight: 600;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--brand-black);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-list a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
}

.toc-list a:hover {
    color: var(--brand-red);
    padding-left: 4px;
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recent-post-card {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.recent-post-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--bg-tertiary);
}

.recent-post-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.recent-post-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Home / Grid Pages Layout */
.hero-section {
    background: var(--gradient-light-gray);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 3px solid var(--brand-black);
    padding-bottom: 0.75rem;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-weight: 800;
    font-style: italic;
}

.section-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--brand-red);
}

/* Section Footer and Buttons */
.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2.25rem;
    background-color: var(--brand-black);
    color: var(--bg-primary) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    border: 2px solid var(--brand-black);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-view-all:hover {
    background-color: transparent;
    color: var(--brand-black) !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-view-all i {
    transition: transform 0.2s ease;
}

.btn-view-all:hover i {
    transform: translateX(4px);
}


.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 576px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-red);
}

.card-img-container {
    aspect-ratio: 16/9;
    background-color: var(--bg-tertiary);
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.grid-card:hover .card-img-container img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--brand-red);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Related articles section inside article details */
.read-next-section {
    margin-top: 4rem;
    border-top: 2px solid var(--brand-black);
    padding-top: 2rem;
}

.read-next-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.read-next-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .read-next-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer & Sponsors */
.partner-widgets-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
}

.partner-widgets-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
}

.partner-widgets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .partner-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .partner-widgets-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.partner-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.partner-card:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
}

.partner-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.partner-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--brand-black);
}

.partner-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.partner-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.partner-card:hover .partner-btn {
    color: var(--brand-black);
}

/* Sponsors flat link buttons grid instead of table */
.sponsors-links-container {
    margin-top: 3rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.sponsors-links-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--brand-black);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-black);
}

.sponsors-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .sponsors-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .sponsors-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.flat-sponsor-link {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.flat-sponsor-link i {
    color: var(--brand-red);
    font-size: 1.15rem;
    transition: var(--transition);
}

.flat-sponsor-link:hover {
    border-color: var(--brand-red);
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.flat-sponsor-link:hover i {
    transform: scale(1.15);
}

/* Site Footer */
.site-footer {
    background-color: var(--brand-black);
    color: #ced4da;
    padding: 4rem 0 2rem 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand h2 {
    color: var(--bg-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.footer-brand span {
    color: var(--brand-red);
}

.footer-brand p {
    line-height: 1.6;
    color: #adb5bd;
}

.footer-title {
    color: var(--bg-primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list a {
    color: #ced4da;
}

.footer-links-list a:hover {
    color: var(--bg-primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #343a40;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #868e96;
}

/* Interactive elements / Search */
.search-container {
    position: relative;
}

.search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 200px;
    transition: var(--transition);
}

.search-input:focus {
    width: 280px;
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.15);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Airport Cards styling */
.airport-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.airport-card:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
}

.airport-card .partner-icon {
    font-size: 2rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    color: var(--brand-red);
}

.airport-card .partner-title {
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
    color: var(--brand-black);
    font-weight: 700;
}

.airport-card .partner-desc {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.airport-card .partner-btn {
    white-space: nowrap;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.airport-card:hover .partner-btn {
    color: var(--brand-black);
}

@media (min-width: 768px) {
    .airport-card {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
    
    .airport-card .partner-btn {
        margin-left: auto;
        margin-top: 0;
    }
}

/* Responsive Header and Mobile Fixes */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1.25rem 1rem;
        gap: 1.25rem;
        align-items: center;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1.25rem;
        flex-wrap: wrap;
        padding: 0;
    }
    
    .nav-links a {
        font-size: 0.95rem;
        padding: 0.25rem 0;
    }
    
    .search-container {
        width: 100%;
        max-width: 320px;
    }
    
    .search-input {
        width: 100% !important;
        max-width: 100%;
    }
    
    /* Make article title text fit and wrap properly on small mobile viewports */
    .article-title-large {
        font-size: 2rem !important;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
}

