/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFB6C1;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #800020;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Ensure headings are white by default, except in hero white cards */
h1, h2, h3, h4, h5, h6 {
    color: var(--white);
}

/* White cards and containers should have burgundy headings */
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.hero-text h1,
.hero-text h2,
.hero-text h3,
.hero-text h4,
.hero-text h5,
.hero-text h6,
.table-container h1,
.table-container h2,
.table-container h3,
.table-container h4,
.table-container h5,
.table-container h6,
.accordion-item h1,
.accordion-item h2,
.accordion-item h3,
.accordion-item h4,
.accordion-item h5,
.accordion-item h6,
.timeline-item h1,
.timeline-item h2,
.timeline-item h3,
.timeline-item h4,
.timeline-item h5,
.timeline-item h6,
.form-container h1,
.form-container h2,
.form-container h3,
.form-container h4,
.form-container h5,
.form-container h6,
.legal-document h1,
.legal-document h2,
.legal-document h3,
.legal-document h4,
.legal-document h5,
.legal-document h6,
.demo-puzzle h1,
.demo-puzzle h2,
.demo-puzzle h3,
.demo-puzzle h4,
.demo-puzzle h5,
.demo-puzzle h6,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #8B0000;
}

/* Page Load Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    animation: fadeIn 0.6s ease-out;
}

/* Card Lift Animation */
@keyframes cardLift {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: cardLift 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Header and Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeIn 0.5s ease-out;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8B0000;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #800020;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #8B0000;
}

/* Hero Section */
.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
}

.hero-image-container {
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
}

/* Desktop: Image left, Text right */
@media (min-width: 769px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .hero-image-container {
        width: 50%;
        flex-shrink: 0;
    }

    .hero-image {
        height: 500px;
    }

    .hero-text {
        width: 50%;
        flex-shrink: 0;
    }
}

.hero-text {
    background: rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #8B0000;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #800020;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

.container:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cards-grid.cards-grid-2x2 {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-flow: row;
}

@media (min-width: 769px) {
    .cards-grid.cards-grid-2x2 {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Daily Brainteasers - Vertical Layout */
.daily-brainteasers {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.daily-brainteasers .card {
    width: 100%;
    max-width: 100%;
}

/* New Releases - Vertical Layout */
.new-releases {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.new-releases .card {
    width: 100%;
    max-width: 100%;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    color: #8B0000 !important;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: #8B0000 !important;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #8B0000 !important;
}

.card p {
    margin-bottom: 1rem;
    color: #8B0000 !important;
}

.card table td,
.card table th {
    color: #8B0000 !important;
}

.card ul,
.card li,
.card ol {
    color: #8B0000 !important;
}

.card strong,
.card b,
.card span,
.card em,
.card i,
.card a:not(.btn):not(.btn-primary):not(.btn-secondary),
.card div:not(.btn):not(.btn-primary):not(.btn-secondary) {
    color: #8B0000 !important;
}

.card label {
    color: #8B0000 !important;
}

/* Universal rule for all text elements in cards - ensure everything is burgundy */
.card *:not(.btn):not(.btn-primary):not(.btn-secondary):not(input):not(textarea):not(select):not(button):not(.card-image):not(img) {
    color: #8B0000 !important;
}

/* Step Card Styles - Override white color from two-column-grid and body */
.step-card {
    color: #8b0000 !important;
}

.step-card *:not(.btn):not(.btn-primary):not(.btn-secondary):not(input):not(textarea):not(select):not(button):not(img) {
    color: #8b0000 !important;
}

.step-card h4,
.step-card h3,
.step-card h2,
.step-card h1,
.step-card p,
.step-card li,
.step-card span,
.step-card strong,
.step-card em {
    color: #8b0000 !important;
}

/* Info Card Styles - Override white color from two-column-grid and body */
.info-card {
    color: #8b0000 !important;
}

.info-card *:not(.btn):not(.btn-primary):not(.btn-secondary):not(input):not(textarea):not(select):not(button):not(img) {
    color: #8b0000 !important;
}

.info-card h4,
.info-card h3,
.info-card h2,
.info-card h1,
.info-card p,
.info-card li,
.info-card span,
.info-card strong,
.info-card em,
.info-card ul,
.info-card ol {
    color: #8b0000 !important;
}

/* Two Column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.two-column-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.two-column-grid {
    color: var(--white);
}

.two-column-grid h3,
.two-column-grid h4 {
    color: var(--white);
}

.two-column-grid p,
.two-column-grid li {
    color: var(--white);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: #800020;
}

table th {
    background: var(--light-bg);
    font-weight: 600;
    color: #8B0000;
}

table tr:hover {
    background: var(--light-bg);
}

/* Accordion */
.accordion {
    margin: 2rem 0;
}

.accordion-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
    transition: background 0.3s ease;
    color: #800020;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 1000px;
}

.accordion-body {
    padding: 1.5rem;
    color: #800020;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    color: #800020;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd)::before {
    right: -30px;
}

.timeline-item:nth-child(even)::before {
    left: -30px;
}

.timeline-item h3 {
    color: #8B0000;
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    color: #800020;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #8B0000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: cardLift 0.3s ease;
    color: #800020;
}

.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4,
.modal-content h5,
.modal-content h6 {
    color: #8B0000;
}

.modal-close {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
}

/* Demo Puzzle */
.demo-puzzle {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    color: #800020;
}

.demo-puzzle h1,
.demo-puzzle h2,
.demo-puzzle h3,
.demo-puzzle h4,
.demo-puzzle h5,
.demo-puzzle h6 {
    color: #8B0000;
}

.demo-puzzle .puzzle-message {
    color: #8B0000;
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 2rem auto;
}

.puzzle-cell {
    aspect-ratio: 1;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.puzzle-cell:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.puzzle-cell.matched {
    background: #d4edda;
    border-color: #28a745;
}

.puzzle-message {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #8B0000;
    display: none;
}

.puzzle-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Legal Documents */
.legal-document {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    color: #800020;
}

.legal-document h1 {
    color: #8B0000;
    margin-bottom: 1rem;
}

.legal-document h2 {
    color: #8B0000;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-document p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #800020;
}

.legal-document ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: #800020;
}

.legal-document li {
    color: #800020;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .container {
        padding: 2rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content {
        padding: 2rem 1rem;
        gap: 1.5rem;
        flex-direction: column;
    }

    .hero-image-container {
        width: 100%;
    }

    .hero-text {
        width: 100%;
    }

    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid.cards-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 3rem;
    }

    .timeline-item::before {
        left: 10px !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    /* Mobile Table Styles - No Scrollbars, Fully Visible */
    .table-container {
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        padding: 0.75rem;
        margin: 1rem auto;
        width: 100%;
        max-width: 100%;
        display: block;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    .table-container table {
        width: 100% !important;
        max-width: 100%;
        font-size: 0.7rem;
        display: table;
        table-layout: fixed;
        word-wrap: break-word;
        margin: 0 auto;
        border-collapse: collapse;
    }

    .table-container table th,
    .table-container table td {
        padding: 0.5rem 0.35rem;
        font-size: 0.65rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        box-sizing: border-box;
        overflow: hidden;
    }

    .table-container table th {
        font-size: 0.7rem;
        font-weight: 600;
    }

    /* Tables inside cards */
    .card .table-container,
    .two-column-grid .table-container {
        width: 100%;
        max-width: 100%;
    }
}

/* Stagger Animation for Cards */
.cards-grid .card:nth-child(1) { animation-delay: 0.1s; }
.cards-grid .card:nth-child(2) { animation-delay: 0.2s; }
.cards-grid .card:nth-child(3) { animation-delay: 0.3s; }
.cards-grid .card:nth-child(4) { animation-delay: 0.4s; }

/* Image Placeholder Styles */
.image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--light-bg);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #800020;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.image-placeholder.large {
    height: 300px;
}

/* Progress Map Styles */
.progress-map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.progress-map-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.progress-map-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.progress-map-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.progress-map-intro h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.progress-map-intro p {
    color: var(--white);
    font-size: 1.1rem;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 1rem;
}

.progress-step-card:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 400px;
}

.progress-step-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.progress-step-card {
    color: #800020;
}

.progress-step-card h4 {
    color: #8B0000;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.progress-step-card p {
    color: #800020;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .progress-map-image {
        max-width: 100%;
    }
    
    .progress-map-intro h3 {
        font-size: 1.5rem;
    }
    
    .progress-steps {
        grid-template-columns: 1fr;
    }
}

/* Why Join Section Styles */
.why-join-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.why-join-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.why-join-intro h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.why-join-intro p {
    color: var(--white);
    font-size: 1.1rem;
}

.why-join-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.why-join-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    object-fit: cover;
}

.why-join-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 1rem;
}

.why-join-cards .card {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .why-join-intro h3 {
        font-size: 1.5rem;
    }
    
    .why-join-intro p {
        font-size: 1rem;
    }
}

/* Article Styles */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    color: #800020;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.article-title {
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: #800020;
    font-size: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-image-container {
    margin: 2rem 0;
    text-align: center;
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.article-body {
    margin-top: 2rem;
    color: #800020;
    line-height: 1.8;
}

.article-body h2 {
    color: #8B0000;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h2:first-of-type {
    margin-top: 0;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article-body ul,
.article-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    color: #800020;
}

.article-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

@media (max-width: 768px) {
    .article-content {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body p,
    .article-body ul,
    .article-body ol {
        font-size: 1rem;
    }
}

/* Extra Small Mobile Screens */
@media (max-width: 480px) {
    /* Even more compact tables for very small screens */
    .table-container {
        padding: 0.5rem;
        margin: 0.75rem auto;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }

    .table-container table {
        font-size: 0.6rem;
        width: 100% !important;
        max-width: 100%;
    }

    .table-container table th,
    .table-container table td {
        padding: 0.4rem 0.25rem;
        font-size: 0.55rem;
        line-height: 1.1;
        overflow: hidden;
    }

    .table-container table th {
        font-size: 0.6rem;
    }
}

