/* style/cockfighting.css */
/* 
  Màu sắc chính: #0A1931 (Deep Blue)
  Màu phụ: #FFD700 (Gold/Bright Yellow)
  Body background từ shared.css: #0a0a0a (dark) -> Sử dụng chữ màu sáng #ffffff
*/

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Sáng màu chữ cho nền tối */
    background-color: transparent; /* Body background từ shared.css */
    line-height: 1.6;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    min-height: 70vh; /* Đảm bảo chiều cao tối thiểu */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header che */
    background-color: #0A1931; /* Nền hero */
}

.page-cockfighting__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-cockfighting__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Làm tối video để chữ nổi bật */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Nền mờ cho chữ dễ đọc */
    border-radius: 10px;
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 30px;
}

.page-cockfighting__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 80px 20px;
    background-color: #0d0d0d; /* Hơi sáng hơn body background để tạo sự khác biệt */
    color: #ffffff;
}

.page-cockfighting__section:nth-of-type(even) {
    background-color: #1a1a1a;
}

.page-cockfighting__dark-bg {
    background-color: #0A1931;
    color: #ffffff;
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Thêm padding ngang cho container */
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center; /* Đảm bảo text căn giữa */
    box-sizing: border-box; /* Đảm bảo padding không làm tràn */
    white-space: normal; /* Cho phép text xuống dòng */
    word-wrap: break-word; /* Ngắt từ khi cần */
}

.page-cockfighting__btn-primary {
    background-color: #FFD700;
    color: #0A1931;
    border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A1931;
}

.page-cockfighting__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 300px;
}

.page-cockfighting__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Image styles */
.page-cockfighting__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Đảm bảo kích thước tối thiểu */
    min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-cockfighting__image-center {
    display: block;
    margin: 30px auto;
    max-width: 100%; /* Đảm bảo responsive */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Đảm bảo kích thước tối thiểu */
    min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

/* Grid Layouts */
.page-cockfighting__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.1); /* Nền hơi trong suốt */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 200px; /* Đảm bảo chiều cao tối thiểu cho card */
    color: #ffffff; /* Chữ màu sáng */
}

.page-cockfighting__card-title {
    color: #FFD700;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-cockfighting__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-cockfighting__grid-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__advantage-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-cockfighting__advantage-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__advantage-title {
    color: #FFD700;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-cockfighting__advantage-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-cockfighting__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__guide-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-cockfighting__guide-title {
    color: #FFD700;
    font-size: 1.6em;
    margin-bottom: 15px;
    text-align: center;
}

.page-cockfighting__guide-text {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: justify;
}

.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-cockfighting__promo-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__promo-item strong {
    color: #FFD700;
}

.page-cockfighting__grid-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__responsibility-buttons {
    display: flex;
    flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #0A1931;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #1a2b4b;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em; /* Đảm bảo kích thước chữ phù hợp */
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Đảm bảo đủ cao để hiển thị nội dung */
    padding: 20px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #f0f0f0;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        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__hero-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__section {
        padding: 50px 15px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block {
        font-size: 1em;
    }

    .page-cockfighting__container {
        padding: 0; /* Remove horizontal padding, let section handle it */
    }

    /* Images responsiveness for mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    
    /* Ensure video is responsive */
    .page-cockfighting video,
    .page-cockfighting__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__hero-video-wrapper,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__card,
    .page-cockfighting__advantage-item,
    .page-cockfighting__guide-item,
    .page-cockfighting__promo-item,
    .page-cockfighting__faq-item {
        padding: 20px;
        margin-bottom: 10px;
    }

    .page-cockfighting__card-title,
    .page-cockfighting__advantage-title,
    .page-cockfighting__guide-title {
        font-size: 1.3em;
    }
    
    .page-cockfighting__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }
    
    .page-cockfighting__faq-question h3 {
        font-size: 1.1em;
    }

    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
    
    .page-cockfighting__responsibility-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .page-cockfighting__responsibility-buttons .page-cockfighting__btn-primary,
    .page-cockfighting__responsibility-buttons .page-cockfighting__btn-secondary {
        max-width: 300px !important; /* Giới hạn chiều rộng nút trên mobile */
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
}