/* Base styles for the entire page scope */
.page-su-kien {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Assuming default body background is light for content sections */
}

/* Dark section for contrast */
.page-su-kien__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
    padding: 60px 0;
}

.page-su-kien__light-bg {
    background-color: #f8f8f8; /* Light grey for subtle contrast */
    color: #333333;
    padding: 60px 0;
}

.page-su-kien__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-su-kien__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    background-color: #017439; /* Dark background for the hero section */
    color: #ffffff;
    text-align: center;
    position: relative;
}

.page-su-kien__hero-image {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-su-kien__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-su-kien__hero-content {
    padding-bottom: 60px;
}

.page-su-kien__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Custom color for main title on dark background */
}

.page-su-kien__description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Call to Action Buttons */
.page-su-kien__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 15px; /* Add padding for small screens */
}

.page-su-kien__btn-primary,
.page-su-kien__btn-secondary,
.page-su-kien__card-button,
.page-su-kien__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-su-kien__btn-primary {
    background-color: #C30808; /* Custom Register/Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}

.page-su-kien__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-su-kien__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-su-kien__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-su-kien__btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Section Titles */
.page-su-kien__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-su-kien__dark-section .page-su-kien__section-title {
    color: #FFFF00; /* Yellow for titles on dark background */
}

.page-su-kien__light-bg .page-su-kien__section-title {
    color: #017439; /* Brand primary color for titles on light background */
}

/* Text Blocks */
.page-su-kien__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* Event Cards Grid */
.page-su-kien__event-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-su-kien__card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333; /* Dark text for light card background */
}

.page-su-kien__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-su-kien__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency, will be responsive */
    overflow: hidden;
}

.page-su-kien__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-su-kien__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 20px 20px 10px;
    color: #017439; /* Brand primary color for card titles */
}

.page-su-kien__card-text {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.page-su-kien__card-button {
    margin: 0 20px 20px;
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.page-su-kien__card-button:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* Event Table */
.page-su-kien__event-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-su-kien__event-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Ensure table is wide enough for content */
    background-color: #ffffff;
    color: #333333;
}

.page-su-kien__event-table th,
.page-su-kien__event-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.page-su-kien__event-table th {
    background-color: #017439;
    color: #ffffff;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.page-su-kien__event-table tbody tr:last-child td {
    border-bottom: none;
}

.page-su-kien__event-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* How to Join Steps */
.page-su-kien__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-su-kien__step-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-su-kien__step-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: #e0f2f1; /* Light background for icons */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure image fits inside circle */
}

.page-su-kien__step-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-su-kien__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #017439;
}

.page-su-kien__step-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Benefits List */
.page-su-kien__benefits-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-su-kien__benefits-list li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.page-su-kien__benefits-list li::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2rem;
}

.page-su-kien__benefit-highlight {
    color: #FFFF00; /* Yellow highlight on dark background */
}

/* FAQ Section */
.page-su-kien__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

.page-su-kien__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-su-kien__faq-item[open] .page-su-kien__faq-question {
    background-color: #f0f0f0;
}

.page-su-kien__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #017439;
    user-select: none;
    list-style: none; /* Hide default marker */
}

.page-su-kien__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-su-kien__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-su-kien__faq-item[open] .page-su-kien__faq-toggle {
    transform: rotate(45deg);
}

.page-su-kien__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
}

.page-su-kien__faq-answer p {
    margin-bottom: 0;
}

/* Bottom CTA */
.page-su-kien__cta-bottom {
    padding-bottom: 60px;
}

/* --- Responsive Styles (Mobile First Approach) --- */

/* All images responsive */
.page-su-kien img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* All button containers responsive */
.page-su-kien__cta-buttons,
.page-su-kien__button-group, /* If any */
.page-su-kien__btn-container, /* If any */
.page-su-kien__container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

    /* HERO 主图区域 */
    .page-su-kien__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-su-kien__hero-content {
        padding-bottom: 40px;
    }
    .page-su-kien__main-title {
        font-size: 2rem;
    }
    .page-su-kien__description {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Long Text Area (General sections) */
    .page-su-kien__dark-section,
    .page-su-kien__light-bg {
        padding: 40px 0;
    }
    .page-su-kien__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-su-kien__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-su-kien__text-block {
        font-size: 0.95rem;
        text-align: left; /* Adjust for better readability on mobile */
    }

    /* Blog Card Grid (Used for Event Types) */
    .page-su-kien__event-cards-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-su-kien__card {
        padding-bottom: 10px; /* Adjust padding */
    }
    .page-su-kien__card-image {
        height: 180px; /* Smaller height for card images on mobile */
    }
    .page-su-kien__card-image img {
        height: auto !important; /* Allow card images to scale proportionally */
    }

    /* General Images */
    .page-su-kien img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-su-kien__step-icon img { /* Specific adjustment for step icons */
        
        
        object-fit: contain;
    }

    /* Buttons and Button Containers */
    .page-su-kien__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-su-kien__btn-primary,
    .page-su-kien__btn-secondary,
    .page-su-kien__card-button,
    .page-su-kien__btn-small {
        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-su-kien__steps-grid .page-su-kien__btn-small {
        margin-top: auto; /* Push button to bottom */
    }


    /* Event Table */
    .page-su-kien__event-table-wrapper {
        margin-left: -15px; /* Adjust for container padding */
        margin-right: -15px;
        width: calc(100% + 30px); /* Extend to full width */
        border-radius: 0;
    }
    .page-su-kien__event-table {
        min-width: 600px; /* Maintain minimum width for table content */
    }
    .page-su-kien__event-table th,
    .page-su-kien__event-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* How to Join Steps */
    .page-su-kien__steps-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-su-kien__step-item {
        padding: 20px;
    }
    .page-su-kien__step-title {
        font-size: 1.2rem;
    }

    /* Benefits List */
    .page-su-kien__benefits-list li {
        font-size: 1rem;
        padding: 12px 15px;
    }

    /* FAQ Section */
    .page-su-kien__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-su-kien__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95rem;
    }
}