/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(145deg, #e0e7ff 0%, #c7d2fe 30%, #ddd6fe 70%, #f3e8ff 100%);
    min-height: 100vh;
    color: #1e293b;
    overflow-x: hidden;
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Navigation Bar */
.top-bar {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navigation-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand-section {
    display: flex;
    align-items: center;
}

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

.brand-image {
    height: 50px;
    width: auto;
}

.search-section {
    flex: 1;
    max-width: 520px;
    margin: 0 45px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-field {
    width: 100%;
    padding: 14px 55px 14px 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.search-field:focus {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.18);
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.search-trigger {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 17px;
    padding: 6px;
}

.action-section {
    display: flex;
    gap: 14px;
    align-items: center;
}

.action-btn {
    padding: 12px 26px;
    border: none;
    border-radius: 22px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secondary-btn {
    background: transparent;
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.secondary-btn:hover {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    transform: translateY(-1px);
}

.primary-btn {
    background: linear-gradient(50deg, #fbbf24, #f59e0b);
    color: #1f2937;
    font-weight: 700;
    border: none;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(251, 191, 36, 0.45);
}

/* Category Navigation */
.category-bar {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-wrapper {
    display: flex;
    align-items: center;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-wrapper::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.8);
    border: none;
    border-radius: 22px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin: 10px 5px;
}

.category-item:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.9);
}

.category-item.active-category {
    color: #ffffff;
    background: rgba(51, 65, 85, 1);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.category-symbol {
    font-size: 17px;
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.6px;
}

/* Main Content Area */
.content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Banner Section */
.banner-zone {
    margin: 35px 0;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 22px;
}

.slide-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    display: flex;
    align-items: center;
}

.banner-slide.active-slide {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.35) 0%, rgba(30, 41, 59, 0.25) 50%, rgba(71, 85, 105, 0.15) 100%);
}

.slide-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    max-width: 100%;
}

.slide-action {
    background: linear-gradient(50deg, #f97316, #ea580c);
    color: #ffffff;
    border: none;
    padding: 18px 42px;
    border-radius: 28px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 18px rgba(249, 115, 22, 0.45);
    letter-spacing: 1.2px;
}

.slide-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(249, 115, 22, 0.65);
}

/* Slide Navigation */
.slide-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-control:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.12);
}

.prev-control {
    left: 22px;
}

.next-control {
    right: 22px;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot-indicator.active-dot {
    background: #fbbf24;
    border-color: #fbbf24;
}

.dot-indicator:hover {
    border-color: #ffffff;
    transform: scale(1.25);
}

/* Games Showcase Section */
.showcase-zone {
    margin: 45px 0;
}

.showcase-heading {
    font-size: 34px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 35px;
    text-align: left;
}

.games-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

/* two-rows container for Nuovi giochi */
.games-rows {
    display: grid;
    grid-template-rows: repeat(2, auto);
    gap: 18px;
}

.games-rows .games-matrix {
    grid-template-columns: repeat(6, 1fr);
}

.game-tile {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.game-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
    background: #ffffff;
}

.tile-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(50deg, #ef4444, #dc2626);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.6px;
}

.tile-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-tile:hover .tile-image {
    transform: scale(1.06);
}

.tile-title {
    padding: 18px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    letter-spacing: 0.6px;
    background: #ffffff;
}

/* Categories Section */
.categories-zone {
    margin: 20px 0 60px;
}

.categories-heading {
    font-size: 30px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 18px;
}

.categories-root {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
}

.category-block {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 18px 18px 6px;
}

.category-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.category-title .emoji {
    font-size: 20px;
}

.category-more {
    font-size: 13px;
    color: #475569;
    text-decoration: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.category-grid .game-tile .tile-image {
    height: 130px;
}

/* 2 rows fixed visually by container height with wrap */
.category-grid-wrap {
    display: grid;
    grid-template-rows: repeat(2, auto);
    gap: 18px;
}

@media (max-width: 1200px) {
    .category-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 992px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
}

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

@media (max-width: 540px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Prize Pool Section */
.prize-zone {
    margin: 70px 0;
    position: relative;
}

.prize-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 55px;
    border-radius: 28px;
    background: 
        linear-gradient(140deg, rgba(30, 27, 75, 0.88) 0%, rgba(49, 46, 129, 0.82) 25%, rgba(124, 58, 237, 0.78) 50%, rgba(192, 38, 211, 0.82) 75%, rgba(245, 158, 11, 0.88) 100%),
        url('media/gp-images.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    min-height: 420px;
}

/* Animated background overlay */
.prize-container::before { content: none; }

/* Floating particles effect */
.prize-container::after { content: none; }

.prize-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 850px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.prize-header {
    font-size: 45px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.35);
    background: linear-gradient(50deg, #ffffff, #fbbf24, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 2.5s ease-in-out infinite;
}

.prize-amount {
    font-size: clamp(44px, 8.2vw, 95px);
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 
        0 0 12px rgba(251, 191, 36, 0.55),
        0 0 24px rgba(251, 191, 36, 0.35),
        0 0 35px rgba(251, 191, 36, 0.25),
        0 5px 10px rgba(0, 0, 0, 0.35);
    letter-spacing: 2.2px;
    animation: glow-effect 2.5s ease-in-out infinite alternate;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prize-amount::before { content: none; }

.prize-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.6px;
}

.prize-button {
    align-self: center;
    background: linear-gradient(50deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% 200%;
    color: #1f2937;
    border: none;
    padding: 22px 45px;
    border-radius: 22px;
    font-weight: 900;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 18px 40px rgba(251, 191, 36, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    overflow: hidden;
    animation: button-shimmer 3.5s ease-in-out infinite;
}

.prize-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: left 0.6s ease;
}

.prize-button:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 
        0 22px 45px rgba(251, 191, 36, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.prize-button:hover::before {
    left: 100%;
}

/* Keyframe animations */
@keyframes shimmer-effect {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.75; }
}

@keyframes float-particles {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(180deg); }
}

@keyframes text-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes glow-effect {
    0% { 
        text-shadow: 
            0 0 12px rgba(251, 191, 36, 0.55),
            0 0 24px rgba(251, 191, 36, 0.35),
            0 0 35px rgba(251, 191, 36, 0.25),
            0 5px 10px rgba(0, 0, 0, 0.35);
    }
    100% { 
        text-shadow: 
            0 0 18px rgba(251, 191, 36, 0.85),
            0 0 30px rgba(251, 191, 36, 0.55),
            0 0 40px rgba(251, 191, 36, 0.35),
            0 5px 10px rgba(0, 0, 0, 0.35);
    }
}

@keyframes pulse-effect {
    0%, 100% { opacity: 0.35; transform: translate(3px, 3px) scale(1); }
    50% { opacity: 0.65; transform: translate(4px, 4px) scale(1.03); }
}

@keyframes button-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Bottom Section */
.bottom-bar {
    margin-top: 70px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
}

.footer-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px 0;
    gap: 25px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-image {
    height: 30px;
    width: auto;
}

.footer-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.footer-navigation {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-item {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-item:hover {
    color: #fbbf24;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .games-matrix {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 18px;
    }
    
    /* Ensure Nuovi giochi rows scale to 4 columns on large tablets */
    .games-rows .games-matrix {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .slide-content {
        padding: 35px 45px;
    }
}

@media (max-width: 768px) {
    .navigation-wrapper {
        flex-wrap: wrap;
        gap: 18px;
    }
    
    .brand-image {
        height: 46px;
    }
    
    .search-section {
        order: 3;
        width: 100%;
        margin: 0;
        max-width: none;
    }
    
    .category-wrapper {
        padding: 0 12px;
    }
    
    .category-item {
        padding: 14px 18px;
    }
    
    .category-label {
        font-size: 13px;
    }
    
    .slideshow-container {
        height: 320px;
    }
    
    .slide-image {
        object-fit: contain;
        background-color: transparent;
    }
    
    .slide-overlay {
        align-items: flex-end;
        background: linear-gradient(180deg, rgba(31, 41, 55, 0) 55%, rgba(31, 41, 55, 0.78) 100%);
    }
    
    .slide-content {
        padding: 18px 22px 26px;
        text-align: center;
        max-width: 100%;
    }
    
    .slide-control {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }
    
    .prev-control {
        left: 12px;
    }
    
    .next-control {
        right: 12px;
    }
    
    .showcase-heading {
        font-size: 30px;
        text-align: left;
    }
    
    .games-matrix {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 14px;
    }
    
    /* Nuovi giochi: 2 columns on mobile/tablet */
    .games-rows .games-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .footer-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    
    .footer-navigation {
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .banner-zone { margin: 0; }
    .content-area {
        padding: 0 18px;
    }
    
    .navigation-wrapper {
        padding: 12px 0;
    }
    
    .brand-image {
        height: 42px;
    }
    
    .action-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .slide-overlay {
        align-items: flex-end;
        background: linear-gradient(180deg, rgba(31, 41, 55, 0) 55%, rgba(31, 41, 55, 0.88) 100%);
    }
    
    .slide-content {
        padding: 16px 18px 24px;
    }
    
    .slide-action {
        padding: 14px 32px;
        font-size: 17px;
    }
    
    .slide-image {
        object-fit: contain;
        background-color: transparent;
    }
    
    .games-matrix {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    /* Nuovi giochi: keep 2 columns on small phones */
    .games-rows .games-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .tile-image {
        height: 130px;
    }
    
    .tile-title {
        padding: 12px;
        font-size: 12px;
    }
}

/* Prize Pool responsive tweaks */
@media (max-width: 1200px) {
    .prize-container { 
        padding: 70px 45px; 
        min-height: 370px;
    }
    .prize-content { gap: 22px; max-width: 750px; }
    .prize-header { font-size: 40px; }
    .prize-amount { font-size: 80px; }
    .prize-subtitle { font-size: 26px; }
    .prize-button { font-size: 22px; padding: 20px 40px; }
}

@media (max-width: 992px) {
    .prize-container { 
        padding: 55px 40px; 
        min-height: 340px;
    }
    .prize-content { gap: 20px; max-width: 650px; }
    .prize-header { font-size: 36px; }
    .prize-amount { font-size: 72px; }
    .prize-subtitle { font-size: 24px; }
    .prize-button { font-size: 20px; padding: 18px 36px; }
}

@media (max-width: 768px) {
    .prize-container { 
        padding: 45px 35px; 
        min-height: 300px;
        border-radius: 22px;
        background-size: contain;
        background-position: center center;
    }
    .prize-content { 
        gap: 22px; 
        max-width: 100%;
    }
    .prize-header { font-size: 32px; }
    .prize-amount { font-size: clamp(36px, 8.5vw, 58px); letter-spacing: 1.4px; }
    .prize-subtitle { font-size: 22px; }
    .prize-button { 
        font-size: 19px; 
        padding: 17px 32px;
    }
}

@media (max-width: 480px) {
    .prize-zone { margin: 45px 0; }
    .prize-container { 
        padding: 35px 30px; 
        min-height: 270px;
        background-size: contain;
        background-position: center center;
    }
    .prize-content { gap: 18px; }
    .prize-header { font-size: 28px; }
    .prize-amount { font-size: clamp(32px, 9.2vw, 50px); letter-spacing: 1px; }
    .prize-subtitle { font-size: 20px; }
    .prize-button { 
        font-size: 18px; 
        padding: 16px 28px;
        border-radius: 18px;
    }
    
    /* Reduce animation intensity on mobile */
    .prize-container::before,
    .prize-container::after {
        animation-duration: 4.5s;
    }
    
    .prize-amount {
        animation-duration: 3.5s;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.12);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.55);
}

/* Animations */
@keyframes fade-in-animation {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    animation: fade-in-animation 0.7s ease-out forwards;
}

/* Article Content (Markdown-like) */
.content-section {
    margin: 45px 0;
}

.article-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #0f172a;
    line-height: 1.25;
    margin: 24px 0 14px;
}

.article-content h1 { font-size: 34px; font-weight: 900; letter-spacing: 0.2px; }
.article-content h2 { font-size: 28px; font-weight: 800; }
.article-content h3 { font-size: 22px; font-weight: 800; }
.article-content h4 { font-size: 18px; font-weight: 700; }
.article-content h5 { font-size: 16px; font-weight: 700; }
.article-content h6 { font-size: 14px; font-weight: 700; }

.article-content p {
    margin: 12px 0 14px;
    line-height: 1.75;
    color: #334155;
}

.article-content ul,
.article-content ol {
    margin: 12px 0 16px 20px;
    padding-left: 20px;
}

.article-content li { margin: 6px 0; }

.article-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(37, 99, 235, 0.4);
}

.article-content a:hover {
    color: #1d4ed8;
    text-decoration-color: rgba(29, 78, 216, 0.6);
}

.article-content hr {
    height: 1px;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    margin: 26px 0;
}

.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    overflow: hidden;
    display: block; /* horizontal scroll on mobile */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    margin: 16px 0 22px;
}

.article-content thead th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
}

.article-content th,
.article-content td {
    padding: 12px 14px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article-content tbody tr:nth-child(even) {
    background: #f9fafb;
}

@media (max-width: 768px) {
    .article-content {
        padding: 22px;
        border-radius: 14px;
    }
    .article-content h1 { font-size: 28px; }
    .article-content h2 { font-size: 24px; }
    .article-content h3 { font-size: 20px; }
}

@media (max-width: 480px) {
    .article-content th,
    .article-content td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
