:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy-color: #08162B;
}

.page-the-thao {
    color: var(--text-main);
    background-color: var(--deep-navy-color);
    font-family: 'Arial', sans-serif;
}

.page-the-thao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Hero Section */
.page-the-thao__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    background-color: var(--deep-navy-color);
    color: var(--text-main);
    overflow: hidden;
}

.page-the-thao__hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.page-the-thao__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-the-thao__hero-text-container {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-the-thao__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-the-thao__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-the-thao__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-the-thao__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
    background: var(--primary-color);
    color: var(--text-main);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-secondary:hover {
    background: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Sports Guide Section */
.page-the-thao__sports-guide-section {
    padding: 60px 0;
    background-color: var(--deep-navy-color);
    color: var(--text-main);
    text-align: center;
}

.page-the-thao__section-title {
    font-size: 2.2em;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.6);
}

.page-the-thao__section-description {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-the-thao__guide-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.page-the-thao__guide-card {
    flex: 0 0 calc(20% - 16px); /* 5 cards per row */
    max-width: calc(20% - 16px);
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-the-thao__guide-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical images */
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* Detailed Content Section */
.page-the-thao__detailed-content-section {
    padding: 60px 0;
    background-color: var(--deep-navy-color);
    color: var(--text-main);
}

.page-the-thao__home-content-box {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 16px;
    border: 5px solid var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(29, 95, 209, 0.7);
    height: 700px; /* Fixed height for desktop */
    box-sizing: border-box;
}

.page-the-thao__home-content-inner {
    height: 100%;
    overflow-y: auto; /* Scrollable content for desktop */
    padding-right: 10px; /* Space for scrollbar */
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05em;
}

.page-the-thao__home-content-inner::-webkit-scrollbar {
    width: 8px;
}

.page-the-thao__home-content-inner::-webkit-scrollbar-track {
    background: var(--deep-navy-color);
    border-radius: 10px;
}

.page-the-thao__home-content-inner::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.page-the-thao__home-content-inner h3 {
    font-size: 1.7em;
    color: var(--gold-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-the-thao__home-content-inner p {
    margin-bottom: 15px;
}

.page-the-thao__home-content-inner ul,
.page-the-thao__home-content-inner ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.page-the-thao__home-content-inner li {
    margin-bottom: 8px;
}

.page-the-thao__home-content-inner strong {
    color: var(--text-main);
}

.page-the-thao__image-figure {
    margin: 30px 0;
    text-align: center;
}

.page-the-thao__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__image-figure figcaption {
    margin-top: 10px;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* News/Blog Section */
.page-the-thao__news-blog-section {
    padding: 60px 0;
    background-color: var(--deep-navy-color);
    color: var(--text-main);
    text-align: center;
}

.page-the-thao__news-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-the-thao__news-blog-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-the-thao__news-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-the-thao__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card visuals */
    object-fit: cover;
    display: block;
}

.page-the-thao__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-the-thao__card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-the-thao__card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-the-thao__card-title a:hover {
    color: var(--gold-color);
}

.page-the-thao__card-date {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-the-thao__card-excerpt {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-the-thao__card-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-the-thao__card-link:hover {
    color: var(--glow-color);
}

.page-the-thao__view-all-button-container {
    margin-top: 50px;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-the-thao__hero-image {
        width: 90%;
        height: auto;
    }

    .page-the-thao__guide-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
        max-width: calc(33.333% - 14px);
    }

    .page-the-thao__news-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* General */
    .page-the-thao__container {
        padding: 15px !important;
    }

    .page-the-thao__section-title {
        font-size: 1.8em !important;
    }

    .page-the-thao__section-description {
        font-size: 1em !important;
    }

    /* Hero Section */
    .page-the-thao__hero-section {
        padding-top: 10px !important;
    }

    .page-the-thao__main-title {
        font-size: 2em !important;
        margin-bottom: 15px !important;
    }

    .page-the-thao__description {
        font-size: 1em !important;
        margin-bottom: 25px !important;
    }

    .page-the-thao__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-the-thao__btn-primary,
    .page-the-thao__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Sports Guide Section */
    .page-the-thao__sports-guide-section {
        padding: 40px 0 !important;
    }

    .page-the-thao__guide-grid {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important; /* Base for flexible layout */
        gap: 15px !important;
        margin-top: 20px !important;
    }

    .page-the-thao__guide-card {
        padding-top: 0 !important; /* Reset specific desktop padding */
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Specific layout for 5 cards: 2 on top row, 3 on bottom row */
    .page-the-thao__guide-card:nth-child(1),
    .page-the-thao__guide-card:nth-child(2) {
        grid-column: span 3 !important; /* First two cards take 3 columns each (half width) */
    }

    .page-the-thao__guide-card:nth-child(3),
    .page-the-thao__guide-card:nth-child(4),
    .page-the-thao__guide-card:nth-child(5) {
        grid-column: span 2 !important; /* Next three cards take 2 columns each (third width) */
    }

    .page-the-thao__guide-card img {
        aspect-ratio: 250 / 350 !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Detailed Content Section */
    .page-the-thao__detailed-content-section {
        padding: 40px 0 !important;
    }

    .page-the-thao__home-content-box {
        height: auto !important; /* Auto height for mobile */
        overflow: visible !important; /* Make content visible */
        padding: 15px !important;
        border-width: 3px !important;
        box-shadow: 0 0 10px rgba(29, 95, 209, 0.5) !important;
    }

    .page-the-thao__home-content-inner {
        height: auto !important;
        overflow: visible !important;
        padding-right: 0 !important;
        font-size: 1em !important;
    }

    .page-the-thao__home-content-inner h3 {
        font-size: 1.5em !important;
    }

    .page-the-thao__content-image {
        max-width: 100% !important;
        height: auto !important;
    }

    /* News/Blog Section */
    .page-the-thao__news-blog-section {
        padding: 40px 0 !important;
    }

    .page-the-thao__news-blog-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }

    .page-the-thao__news-blog-card {
        max-width: 100% !important;
    }

    .page-the-thao__card-image {
        height: 180px !important;
    }

    .page-the-thao__card-title {
        font-size: 1.2em !important;
    }

    .page-the-thao__card-excerpt {
        font-size: 0.9em !important;
    }

    /* Universal Image and Button Adapters */
    .page-the-thao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-the-thao__section,
    .page-the-thao__card,
    .page-the-thao__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}