/* style/terms-conditions.css */
:root {
    --primary-color: #E44D26; /* Cam đỏ */
    --secondary-color: #FFB800; /* Vàng sáng */
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
}

.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.page-terms-conditions__hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: var(--text-light);
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button:hover {
    background-color: #f0f0f0;
    color: #c73e1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-button--small {
    padding: 10px 25px;
    font-size: 1em;
    margin-top: 20px;
}

.page-terms-conditions__faq-cta {
    margin-top: 40px;
}

.page-terms-conditions__content-section {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.page-terms-conditions__content-section article {
    flex: 3;
}

.page-terms-conditions__content-section h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.page-terms-conditions__content-section h3 {
    font-size: 1.6em;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions__content-section p {
    margin-bottom: 15px;
    color: #333;
}

.page-terms-conditions__content-section ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-terms-conditions__content-section li {
    margin-bottom: 8px;
    color: #333;
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-terms-conditions__image--large {
    max-height: 450px;
}

.page-terms-conditions__image--medium {
    max-height: 350px;
}

.page-terms-conditions__sidebar {
    flex: 1;
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
    position: sticky;
    top: 100px; /* Adjust based on header height */
}

.page-terms-conditions__sidebar h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.page-terms-conditions__sidebar nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.page-terms-conditions__sidebar nav li {
    margin-bottom: 10px;
}

.page-terms-conditions__sidebar nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.05em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    padding: 5px 0;
}

.page-terms-conditions__sidebar nav a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.page-terms-conditions__faq-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.page-terms-conditions__faq-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-terms-conditions__faq-section p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555;
}

/* FAQ default state - answer hidden */
.faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 15px;
    background: var(--bg-white);
    color: #444;
}

/* FAQ expanded state */
.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 15px;
    border-radius: 0 0 5px 5px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Question style */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-dark);
}

.faq-question:hover {
    background: #f5f5f5;
}

/* Toggle icon */
.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* Responsive design */
@media (max-width: 992px) {
    .page-terms-conditions__container {
        flex-direction: column;
    }

    .page-terms-conditions__sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-banner {
        padding: 60px 15px;
    }

    .page-terms-conditions__hero-content h1 {
        font-size: 2.5em;
    }

    .page-terms-conditions__hero-content p {
        font-size: 1em;
    }

    .page-terms-conditions__content-section {
        padding: 40px 0;
    }

    .page-terms-conditions__content-section h2 {
        font-size: 1.8em;
    }

    .page-terms-conditions__content-section h3 {
        font-size: 1.4em;
    }

    .page-terms-conditions__image {
        margin: 20px 0;
    }

    .page-terms-conditions__image--large {
        max-height: 300px;
    }
    
    .page-terms-conditions__image--medium {
        max-height: 250px;
    }

    .page-terms-conditions__faq-section h2 {
        font-size: 2em;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-question h3 {
        font-size: 1.1em;
    }

    .faq-toggle {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-content h1 {
        font-size: 2em;
    }

    .page-terms-conditions__cta-button {
        padding: 12px 25px;
        font-size: 0.95em;
    }

    .page-terms-conditions__content-section h2 {
        font-size: 1.6em;
    }

    .page-terms-conditions__content-section h3 {
        font-size: 1.2em;
    }

    .page-terms-conditions__sidebar {
        padding: 15px;
    }

    .page-terms-conditions__sidebar h3 {
        font-size: 1.3em;
    }
}