/* style/sports.css */

/* Global Page Styles */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
    line-height: 1.6;
    padding-bottom: 60px; /* Space for footer */
}

.page-sports__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold color for main titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-sports__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Video Section */
.page-sports__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #000000, #333333); /* Dark gradient background */
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-sports__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.page-sports__video-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid #FFD700;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: none; /* Prevents video controls from blocking click event */
}

.page-sports__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-sports__video-link:hover .page-sports__video-overlay {
    opacity: 1;
}

.page-sports__video-click-hint {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    padding: 12px 25px;
    background: rgba(255, 215, 0, 0.8); /* Gold with transparency */
    border-radius: 30px;
    white-space: nowrap;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.page-sports__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.page-sports__play-now-button {
    display: inline-block;
    padding: 18px 50px;
    background: #FFD700; /* Gold */
    color: #000000; /* Black text */
    text-decoration: none;
    border-radius: 40px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-sports__play-now-button:hover {
    background: #e6c200; /* Darker gold */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.page-sports__play-now-button:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Module 1: H1 Title + Promotion Buttons */
.page-sports__title-section {
    background: linear-gradient(to bottom, #1a1a1a, #000000);
    padding: 80px 20px 60px;
    text-align: center;
    color: #f0f0f0;
}

.page-sports__title-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-sports__main-title {
    font-size: 48px;
    color: #FFD700; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.page-sports__title-description {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-sports__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
    box-sizing: border-box;
}

.page-sports__cta-button--primary {
    background: #FFD700; /* Gold */
    color: #000000; /* Black text */
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.page-sports__cta-button--primary:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.page-sports__cta-button--secondary {
    background: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.page-sports__cta-button--secondary:hover {
    background: #FFD700;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

/* Module 2: FAQ Section */
.page-sports__faq-section {
    padding: 60px 20px;
    background-color: #121212; /* Dark background */
    color: #f0f0f0;
}

.page-sports__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-sports__faq-list {
    margin-top: 30px;
}

.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #222222; /* Darker background for items */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #2c2c2c; /* Slightly lighter dark for question */
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #FFD700; /* Gold for questions */
}

.page-sports__faq-question:hover {
    background: #3a3a3a;
    border-color: #FFD700;
}

.page-sports__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevents h3 from blocking click event */
    color: inherit; /* Inherit color from parent */
}

.page-sports__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevents icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    color: #ffffff; /* White when active */
    transform: rotate(45deg); /* Plus to X for active */
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #e0e0e0; /* Light grey for answer text */
    background-color: #1a1a1a; /* Dark background for answer */
    border-top: 1px dashed #3a3a3a;
    border-radius: 0 0 8px 8px;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
}

/* Module 3: Brand Introduction */
.page-sports__brand-section {
    padding: 60px 20px;
    background-color: #000000; /* Black background */
    color: #f0f0f0;
}

.page-sports__brand-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-sports__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__brand-item {
    background-color: #1a1a1a; /* Dark background for brand items */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-sports__brand-item-title {
    font-size: 24px;
    color: #FFD700; /* Gold title */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-sports__brand-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

/* Module 4: Blog List Display */
.page-sports__blog-section {
    padding: 60px 20px;
    background-color: #121212; /* Dark background */
    color: #f0f0f0;
}

.page-sports__blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-sports__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__blog-item {
    background-color: #1a1a1a; /* Dark background for blog items */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-sports__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-sports__blog-item-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #333333;
    /* No filter allowed */
}

.page-sports__blog-item-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-sports__blog-link {
    text-decoration: none;
    color: inherit;
}

.page-sports__blog-item-title {
    font-size: 20px;
    color: #FFD700; /* Gold title */
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.page-sports__blog-link:hover .page-sports__blog-item-title {
    color: #ffffff; /* White on hover */
}

.page-sports__blog-item-excerpt {
    font-size: 15px;
    color: #b0b0b0; /* Lighter grey for excerpt */
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-sports__blog-item-date {
    font-size: 13px;
    color: #888888; /* Even lighter grey for date */
    display: block;
    margin-top: auto;
}

.page-sports__view-more-container {
    text-align: center;
    margin-top: 50px;
}

.page-sports__view-more-button {
    display: inline-block;
    padding: 14px 30px;
    background: #FFD700; /* Gold */
    color: #000000; /* Black text */
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-sports__view-more-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__main-title {
        font-size: 40px;
    }
    .page-sports__section-title {
        font-size: 32px;
    }
    .page-sports__play-now-button {
        padding: 15px 40px;
        font-size: 18px;
    }
    .page-sports__cta-button {
        padding: 14px 30px;
        font-size: 16px;
    }
    .page-sports__brand-item-title {
        font-size: 22px;
    }
    .page-sports__blog-item-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header spacing for mobile */
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-sports__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    .page-sports__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 8px;
        overflow: hidden !important;
    }

    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        object-fit: contain; /* Use contain to ensure video fits within frame */
    }

    .page-sports__video-click-hint {
        font-size: 16px;
        padding: 10px 20px;
    }

    .page-sports__video-cta {
        margin-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-sports__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px 30px !important;
        font-size: 17px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__title-section {
        padding: 50px 15px 40px;
    }

    .page-sports__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-sports__title-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-sports__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px;
        font-size: 16px;
        white-space: normal;
        word-wrap: break-word;
    }

    .page-sports__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-top: 40px;
    }

    .page-sports__faq-section,
    .page-sports__brand-section,
    .page-sports__blog-section {
        padding: 40px 15px;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
    }

    .page-sports__faq-question h3 {
        font-size: 16px;
    }

    .page-sports__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }

    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px !important;
    }

    .page-sports__brand-content,
    .page-sports__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-sports__brand-item {
        padding: 25px;
    }

    .page-sports__brand-item-title {
        font-size: 20px;
    }

    .page-sports__blog-item-image {
        height: 180px;
    }

    .page-sports__blog-item-content {
        padding: 20px;
    }

    .page-sports__blog-item-title {
        font-size: 17px;
    }

    .page-sports__view-more-container {
        margin-top: 40px;
    }

    .page-sports__view-more-button {
        padding: 12px 25px;
        font-size: 15px;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__blog-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0px; /* Reset padding and apply to inner elements if needed */
        padding-right: 0px; /* Reset padding and apply to inner elements if needed */
        overflow: hidden !important;
    }
    .page-sports__blog-item-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-sports__main-title {
        font-size: 28px;
    }
    .page-sports__section-title {
        font-size: 24px;
    }
    .page-sports__play-now-button {
        font-size: 16px;
        padding: 14px 25px !important;
    }
    .page-sports__cta-button {
        font-size: 15px;
        padding: 13px 20px;
    }
    .page-sports__faq-question h3 {
        font-size: 15px;
    }
    .page-sports__brand-item-title {
        font-size: 18px;
    }
    .page-sports__blog-item-title {
        font-size: 16px;
    }
    .page-sports__blog-item-image {
        height: 150px;
    }
}