:root {
    /* Updated Theme Colors */
    --body-font: "Jost", sans-serif;
    --body-color: #070044;
    --bg-color: #edb606;
    --para-color: #f7f4ff;
    --para-alt-color: #b2b4e1;
    --hover-color: #edb606;
    --hover-alt-color: #5ac4ff;
    --bs-primary: #4f46e5;
    --bg-nav: #2d0572;
    --alt-blue: #273579;

    /* Legacy variables for compatibility */
    --primary: #edb606;
    --secondary: #4f46e5;
    --dark: #070044;
    --light: #f7f4ff;
    --success: #2ecc71;
    --info: #5ac4ff;
    --warning: #edb606;
    --danger: #e74c3c;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--body-color) 0%, var(--bg-nav) 100%);
    padding: 80px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 30%, rgba(237, 182, 6, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(79, 70, 229, 0.15) 0%, transparent 40%);
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var( --para-color);
}

.hero-content .highlight {
    color: var( --para-color);
    display: inline-block;
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--para-alt-color);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(45deg, var(--bg-color),var(--bg-color));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;

    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(237, 182, 6, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--para-color);
    padding: 1rem 2.5rem;
    border: 2px solid rgba(247, 244, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(247, 244, 255, 0.1);
    border-color: rgba(247, 244, 255, 0.5);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: rgba(247, 244, 255, 0.2);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var( --para-color);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--para-alt-color);
    margin-top: 0.5rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-card {
    background: rgba(247, 244, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(247, 244, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);

    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 400px;
}

.hero-card:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(247, 244, 255, 0.1);
}

.card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--para-color);
    margin: 0;
}

.confidence {


    padding-left:0.2rem;
    color: var(--success);

    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.match {
    background: rgba(247, 244, 255, 0.05);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.match:hover {
    background: rgba(247, 244, 255, 0.1);
    transform: translateY(-3px);
}

.teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.team {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--para-color);
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.vs {
    font-size: 0.8rem;
    color: var(--para-alt-color);
    margin: 0 0.5rem;
}

.prediction {
    color: var(--bg-color);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prediction-badge {
    background: rgba(237, 182, 6, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--bg-color);
}

/* Features Section */
/* Features Section - Compact Version */
.features {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--para-color);
}

.section-title p {
    font-size: 1rem;
    color: var(--para-alt-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(247, 244, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(247, 244, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--bs-primary), var(--bg-color));
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(247, 244, 255, 0.2);
}

.feature-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--bs-primary), #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--para-color);
}

.feature-card p {
    color: var(--para-alt-color);
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 576px) {
    .features {
        padding: 2rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .section-title p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }
}

/* Animation delays for staggered effect */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Bet Converter Section */
.converter-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--body-color) 0%, var(--alt-blue) 100%);
    position: relative;
}

.converter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 70% 30%, rgba(237, 182, 6, 0.1) 0%, transparent 30%),
            radial-gradient(circle at 30% 70%, rgba(90, 196, 255, 0.1) 0%, transparent 30%);
    z-index: 0;
}

.value-card {
    background: rgba(247, 244, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(247, 244, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(247, 244, 255, 0.2);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(237, 182, 6, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--para-color);
}

.value-card p {
    color: var(--para-alt-color);
    line-height: 1.6;
    margin-bottom: 0;
}

.converter-demo {
    background: rgba(247, 244, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(247, 244, 255, 0.1);
    border-radius: 15px;
    height: 100%;
}

.converter-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, var(--bs-primary), var(--bg-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.converter-step h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--para-color);
}

.converter-step p {
    color: var(--para-alt-color);
    margin-bottom: 0.5rem;
}

.bookmaker-logos img {
    transition: all 0.3s ease;
}

.bookmaker-logos img:hover {
    transform: scale(1.1);
}

.converter-benefits {
    background: rgba(247, 244, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(247, 244, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
}

.converter-benefit {
    margin-bottom: 1.5rem;
}

.converter-benefit h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--para-color);
    display: flex;
    align-items: center;
}

.converter-benefit p {
    color: var(--para-alt-color);
    margin-bottom: 0;
    padding-left: 1.8rem;
}

/* App CTA Section */
.app-cta {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bs-primary) 100%);
    padding: 3rem 0;
    border-radius: 20px;
    margin: 4rem auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.app-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('<?= BASE_URL ?>assets/images/pattern.png') center/cover;
    opacity: 0.1;
}

.app-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

.app-cta-text {
    flex: 1;
    max-width: 600px;
}

.app-cta-text h3 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.app-cta-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.app-cta-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-cta-image img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Dark/Frosted Pricing Section */
.pricing-section {
    /* background: linear-gradient(135deg, var(--body-color) 0%, var(--bg-nav) 100%); */
    padding: 80px 0;
    color: var(--para-color);
}

.pricing-card {
    background: rgba(45, 5, 114, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(247, 244, 255, 0.1);
    margin-bottom: 30px;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bg-color));
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(247, 244, 255, 0.2);
}

.pricing-card.featured {
    background: rgba(39, 53, 121, 0.8);
    border: 1px solid var(--bs-primary);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.25);
}

.pricing-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bg-color));
    color: white;
    padding: 5px 30px;
    font-size: 14px;
    font-weight: 600;
    transform: rotate(45deg);
    width: 120px;
    text-align: center;
    z-index: 1;
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(247, 244, 255, 0.1);
}

.pricing-header h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--para-color);
    letter-spacing: 0.5px;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 5px;
}

.currency {
    font-size: 20px;
    font-weight: 600;
    margin-right: 5px;
    color: var(--para-alt-color);
}

.amount {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: var(--para-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.period {
    align-self: flex-end;
    font-size: 14px;
    color: var(--para-alt-color);
    margin-left: 5px;
    margin-bottom: 5px;
}

.pricing-features {
    padding: 30px;
    flex-grow: 1;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 12px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed rgba(247, 244, 255, 0.05);
    color: var(--para-alt-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    margin-right: 10px;
    font-size: 18px;
}

.pricing-features .text-success {
    color: #10b981 !important;
}

.pricing-features .text-danger {
    color: #ef4444 !important;
}

.pricing-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.pricing-footer .btn {
    width: 100%;
    padding: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.pricing-footer .btn-primary {
    background: linear-gradient(90deg, var(--bs-primary), var(--bg-color));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.pricing-footer .btn-primary:hover {
    background: linear-gradient(90deg, #4338ca, var(--hover-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.pricing-footer .btn-outline-primary {
    color: var(--para-alt-color);
    border: 2px solid var(--bs-primary);
    background: transparent;
}

.pricing-footer .btn-outline-primary:hover {
    background: rgba(79, 70, 229, 0.2);
    color: var(--para-color);
    border-color: var(--bs-primary);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-container {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-buttons, .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .app-cta-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .app-cta-text {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2.25rem;
    }

    .stat:not(:last-child)::after {
        display: none;
    }

    .hero-stats {
        gap: 1.5rem;
        justify-content: space-around;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.2s;
}
.delay-2 {
    animation-delay: 0.4s;
}
.delay-3 {
    animation-delay: 0.6s;
}

/* Glow Animation */
@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(79, 70, 229, 0.3); }
    50% { box-shadow: 0 0 20px rgba(79, 70, 229, 0.5); }
    100% { box-shadow: 0 0 10px rgba(79, 70, 229, 0.3); }
}

.pricing-card.featured {
    animation: glow 3s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .pricing-card.featured {
        transform: scale(1.03);
    }
}

@media (max-width: 767px) {
    .pricing-card {
        margin-bottom: 30px;
    }

    .pricing-card.featured {
        transform: none;
        animation: none;
    }

    .price {
        flex-direction: column;
        align-items: center;
    }

    .currency {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .period {
        align-self: center;
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Entry Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}


.match-news-carousel-section {
    margin: 40px 0;
    padding: 0 15px;
    font-family: var(--body-font);
}

.match-news-carousel-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--para-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-news-carousel-section .section-title i {
    color: var(--bg-color);
    font-size: 24px;
}

.match-news-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.match-news-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 0 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-color) rgba(255, 255, 255, 0.1);
    /* Prevent flex items from shrinking */
    align-items: stretch;
}

.match-news-carousel::-webkit-scrollbar {
    height: 8px;
}

.match-news-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.match-news-carousel::-webkit-scrollbar-thumb {
    background: var(--bg-color);
    border-radius: 10px;
}

.match-news-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

/* Desktop/Large Screen - Square Cards */
.match-news-card {
    flex: 0 0 190px;
    min-width: 0; /* Important: prevents flex items from overflowing */
    scroll-snap-align: start;
    background: linear-gradient(135deg, var(--bg-nav) 0%, var(--alt-blue) 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(237, 182, 6, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 240px;
    /* Fix for smooth transitions */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.match-news-card:hover {
    transform: translateY(-8px);
    border-color: var(--bg-color);
    box-shadow: 0 20px 40px rgba(237, 182, 6, 0.3);
}

.match-news-image-wrapper {
    position: relative;
    width: 100%;
    height: 95px;
    overflow: hidden;
    flex-shrink: 0;
}

.match-news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.match-news-card:hover .match-news-image-wrapper img {
    transform: scale(1.1);
}

.match-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(7, 0, 68, 0.9), transparent);
    pointer-events: none;
}

.match-news-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    background: linear-gradient(135deg, var(--bg-nav) 0%, var(--alt-blue) 100%);
    /* Ensure content doesn't overflow */
    overflow: hidden;
}

.match-news-category {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-color);
    color: var(--body-color);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    width: fit-content;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.match-news-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--para-color);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
}

.match-news-preview {
    font-size: 11px;
    color: var(--para-alt-color);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.match-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(237, 182, 6, 0.2);
    flex-shrink: 0;
}

.match-news-views {
    font-size: 10px;
    color: var(--para-alt-color);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.match-news-views i {
    color: var(--bg-color);
    font-size: 10px;
}

.match-news-cta {
    font-size: 11px;
    font-weight: 600;
    color: var(--bg-color);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
    flex-shrink: 0;
}

.match-news-card:hover .match-news-cta {
    gap: 6px;
    color: var(--hover-alt-color);
}

.match-news-cta i {
    font-size: 10px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-color);
    border: 1px solid var(--bg-color);
    color: var(--body-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 14px;
}

.carousel-nav:hover {
    background: var(--hover-alt-color);
    color: var(--para-color);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--hover-alt-color);
}

.prev-match-news {
    left: 0;
}

.next-match-news {
    right: 0;
}

/* Tablet View */
@media (max-width: 992px) {
    .match-news-card {
        flex: 0 0 170px;
        height: 220px;
    }

    .match-news-image-wrapper {
        height: 170px;
    }
}

/* Mobile - Snapchat Story Style */
@media (max-width: 768px) {
    .match-news-carousel-section {
        margin: 30px 0;
        padding: 0;
    }

    .match-news-carousel-section .section-title {
        font-size: 22px;
        padding: 0 15px;
        margin-bottom: 18px;
    }

    .match-news-carousel-wrapper {
        padding: 0 10px;
    }

    .carousel-nav {
        display: none;
    }

    .match-news-carousel {
        gap: 10px;
        padding: 10px 0;
        scrollbar-width: none;
    }

    .match-news-carousel::-webkit-scrollbar {
        display: none;
    }

    /* Snapchat Story Card Style */
    .match-news-card {
        flex: 0 0 130px;
        height: 230px;
        border-radius: 16px;
        position: relative;
        background: var(--body-color);
        /* Reset animation for mobile */
        animation: none !important;
    }

    /* Full height image background */
    .match-news-image-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        z-index: 1;
    }

    .match-news-image-wrapper img {
        object-position: center;
    }

    /* Gradient overlay for readability */
    .match-news-overlay {
        height: 100%;
        background: linear-gradient(
                to bottom,
                rgba(7, 0, 68, 0.3) 0%,
                rgba(7, 0, 68, 0.4) 40%,
                rgba(7, 0, 68, 0.8) 70%,
                rgba(7, 0, 68, 0.95) 100%
        );
        z-index: 2;
    }

    /* Content overlay at bottom */
    .match-news-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px 12px;
        background: transparent;
        z-index: 3;
        gap: 8px;
    }

    .match-news-category {
        background: var(--bg-color);
        color: var(--body-color);
        padding: 4px 10px;
        font-size: 9px;
        border-radius: 12px;
    }

    .match-news-title {
        font-size: 12px;
        font-weight: 700;
        color: var(--para-color);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
        -webkit-line-clamp: 3;
        letter-spacing: -0.2px;
        line-height: 1.3;
    }

    .match-news-preview {
        font-size: 10px;
        line-height: 1.4;
        color: var(--para-alt-color);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
        -webkit-line-clamp: 2;
    }

    .match-news-meta {
        border-top-color: rgba(237, 182, 6, 0.3);
        padding-top: 8px;
        margin-top: 6px;
    }

    .match-news-views {
        font-size: 9px;
        color: var(--para-alt-color);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }

    .match-news-views i {
        font-size: 9px;
    }

    .match-news-cta {
        font-size: 10px;
        font-weight: 700;
        color: var(--bg-color);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        background: rgba(237, 182, 6, 0.2);
        padding: 4px 10px;
        border-radius: 12px;
    }

    .match-news-cta i {
        font-size: 9px;
    }

    /* Story progress indicator */
    .match-news-card::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        height: 2px;
        background: rgba(237, 182, 6, 0.3);
        border-radius: 2px;
        z-index: 4;
    }

    .match-news-card::after {
        content: '';
        position: absolute;
        top: 10px;
        left: 10px;
        width: 0;
        height: 2px;
        background: var(--bg-color);
        border-radius: 2px;
        z-index: 5;
        transition: width 0.3s ease;
    }

    .match-news-card:hover::after {
        width: calc(100% - 20px);
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .match-news-card {
        flex: 0 0 120px;
        height: 220px;
    }

    .match-news-content {
        padding: 12px 10px;
    }

    .match-news-title {
        font-size: 11px;
    }

    .match-news-preview {
        font-size: 9px;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .match-news-card {
        flex: 0 0 110px;
        height: 210px;
        border-radius: 14px;
    }

    .match-news-content {
        padding: 10px 8px;
    }

    .match-news-title {
        font-size: 10px;
    }

    .match-news-preview {
        font-size: 8px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .match-news-card {
        flex: 0 0 100px;
        height: 170px;
    }

    .match-news-content {
        padding: 10px;
    }

    .match-news-title {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }

    .match-news-preview {
        display: none;
    }
}

/* Animation for card entrance - UPDATED */
@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animation only to desktop */
@media (min-width: 769px) {
    .match-news-card {
        animation: slideInCard 0.4s ease forwards;
        animation-delay: calc(var(--index, 0) * 0.1s);
    }
}