/* style/cockfighting-rules.css */

/* Biến màu */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --accent-color: #EA7C07; /* Màu cho nút đăng nhập/đăng ký */
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
}

/* Cài đặt chung cho trang */
.page-cockfighting-rules {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Mặc định chữ tối trên nền sáng */
    background-color: var(--secondary-color); /* Nền trắng */
}

.page-cockfighting-rules__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-cockfighting-rules__section-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting-rules__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting-rules__text-center {
    text-align: center;
}

/* Hero Section */
.page-cockfighting-rules__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--primary-color) 0%, #007bb6 100%); /* Màu xanh đậm hơn */
    color: var(--text-light);
    overflow: hidden;
}

.page-cockfighting-rules__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.page-cockfighting-rules__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-cockfighting-rules__hero-image img:hover {
    transform: scale(1.03);
}

.page-cockfighting-rules__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3); /* Lớp phủ nhẹ để chữ nổi bật */
    border-radius: 8px;
}

.page-cockfighting-rules__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-cockfighting-rules__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-cockfighting-rules__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-cockfighting-rules__btn-primary {
    background: var(--accent-color); /* Màu cam cho đăng ký */
    color: var(--text-light);
}

.page-cockfighting-rules__btn-primary:hover {
    background: #e06c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__btn-secondary {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting-rules__btn-secondary:hover {
    background: #1e8ec5;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-cockfighting-rules__introduction-section,
.page-cockfighting-rules__detailed-rules-section,
.page-cockfighting-rules__betting-section,
.page-cockfighting-rules__tips-section,
.page-cockfighting-rules__faq-section,
.page-cockfighting-rules__cta-bottom-section {
    padding: 80px 0;
}

.page-cockfighting-rules__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting-rules__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__section-title {
    color: var(--text-light);
}

/* Image Styling within content */
.page-cockfighting-rules__image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Kích thước tối đa cho ảnh nội dung */
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-cockfighting-rules__image--centered {
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-rules__image--left {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    max-width: 50%;
}

.page-cockfighting-rules__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    max-width: 50%;
}

.page-cockfighting-rules__detailed-rules-section::after,
.page-cockfighting-rules__betting-section::after {
    content: '';
    display: table;
    clear: both;
}

/* Rule and Tip Cards */
.page-cockfighting-rules__rule-card,
.page-cockfighting-rules__tip-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules__light-bg .page-cockfighting-rules__rule-card,
.page-cockfighting-rules__light-bg .page-cockfighting-rules__tip-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-cockfighting-rules__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-cockfighting-rules__light-bg .page-cockfighting-rules__card-title {
    color: var(--primary-color);
}

.page-cockfighting-rules__list {
    list-style: disc;
    margin-left: 25px;
    padding: 0;
}

.page-cockfighting-rules__list li {
    margin-bottom: 10px;
    font-size: 16px;
}

.page-cockfighting-rules__betting-types,
.page-cockfighting-rules__betting-process {
    margin-bottom: 40px;
}

.page-cockfighting-rules__betting-types .page-cockfighting-rules__card-title,
.page-cockfighting-rules__betting-process .page-cockfighting-rules__card-title {
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 20px;
}

.page-cockfighting-rules__cta-area {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: var(--primary-color);
    border-radius: 10px;
    color: var(--text-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__cta-area .page-cockfighting-rules__cta-text {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
}

/* FAQ Section */
.page-cockfighting-rules__faq-section {
    background-color: var(--secondary-color);
}

.page-cockfighting-rules__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting-rules__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 15px;
    opacity: 0;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting-rules__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-cockfighting-rules__faq-question:active {
    background: #eeeeee;
}

.page-cockfighting-rules__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    pointer-events: none;
}

.page-cockfighting-rules__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu trừ */
}

.page-cockfighting-rules__cta-bottom-section {
    background: linear-gradient(135deg, var(--primary-color), #007bb6);
    color: var(--text-light);
    padding: 80px 20px;
}

.page-cockfighting-rules__cta-bottom-section .page-cockfighting-rules__section-title {
    color: var(--text-light);
    font-size: 38px;
}

.page-cockfighting-rules__cta-bottom-section .page-cockfighting-rules__text-block {
    font-size: 18px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting-rules__hero-title {
        font-size: 40px;
    }
    .page-cockfighting-rules__hero-description {
        font-size: 18px;
    }
    .page-cockfighting-rules__section-title {
        font-size: 28px;
    }
    .page-cockfighting-rules__card-title {
        font-size: 22px;
    }
    .page-cockfighting-rules__image--left,
    .page-cockfighting-rules__image--right {
        float: none;
        margin: 40px auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-cockfighting-rules {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting-rules__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting-rules__hero-title {
        font-size: 32px;
    }
    .page-cockfighting-rules__hero-description {
        font-size: 16px;
    }
    .page-cockfighting-rules__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting-rules__cta-button,
    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary,
    .page-cockfighting-rules a[class*="button"],
    .page-cockfighting-rules a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting-rules__hero-image img,
    .page-cockfighting-rules__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting-rules__section,
    .page-cockfighting-rules__card,
    .page-cockfighting-rules__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting-rules__rule-card,
    .page-cockfighting-rules__tip-card {
        padding: 20px;
    }
    .page-cockfighting-rules__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-cockfighting-rules__card-title {
        font-size: 20px;
    }
    .page-cockfighting-rules__list {
        margin-left: 15px;
    }
    .page-cockfighting-rules__list li {
        font-size: 15px;
    }
    .page-cockfighting-rules__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cockfighting-rules__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-cockfighting-rules__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-cockfighting-rules__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
        padding: 15px !important;
    }
    .page-cockfighting-rules__cta-area .page-cockfighting-rules__cta-text {
        font-size: 20px;
    }
    .page-cockfighting-rules__cta-bottom-section .page-cockfighting-rules__section-title {
        font-size: 30px;
    }
    .page-cockfighting-rules__cta-bottom-section .page-cockfighting-rules__text-block {
        font-size: 16px;
    }
}