/* style/terms-conditions.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #dc3545;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #212529;
    --border-color: #e0e0e0;
}

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

.page-terms-conditions a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-terms-conditions a:hover {
    text-decoration: underline;
}

.page-terms-conditions .link-unstyled {
    color: inherit;
    text-decoration: none;
}

.page-terms-conditions .link-unstyled:hover {
    text-decoration: underline;
}

.page-terms-conditions__hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 20px;
    color: var(--text-color-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-terms-conditions__hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: hero-glow 15s infinite alternate;
}

@keyframes hero-glow {
    from { transform: rotate(0deg) scale(1); opacity: 0.8; }
    to { transform: rotate(360deg) scale(1.2); opacity: 1; }
}

.page-terms-conditions__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-terms-conditions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero-title .highlight {
    color: #ffeb3b; /* A contrasting yellow for emphasis */
}

.page-terms-conditions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.page-terms-conditions__cta-button:hover {
    background-color: #c82333; /* Darker red */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

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

.page-terms-conditions__section:nth-of-type(even) {
    background-color: #f1f1f1;
}

.page-terms-conditions__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-terms-conditions__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.page-terms-conditions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-terms-conditions__sub-title {
    font-size: 1.8em;
    color: var(--text-color-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-terms-conditions ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-terms-conditions ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-terms-conditions .keyword {
    font-weight: bold;
    color: var(--primary-color);
}

/* FAQ Section Specific Styles */
.page-terms-conditions__faq-section {
    background-color: #ffffff;
}

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

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

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

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed to fit content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin: 0;
    font-size: 1.05em;
    color: #555;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-terms-conditions__hero-title {
        font-size: 2.8em;
    }

    .page-terms-conditions__hero-description {
        font-size: 1.1em;
    }

    .page-terms-conditions__section-title {
        font-size: 2em;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.5em;
    }

    .page-terms-conditions p,
    .page-terms-conditions ul li,
    .faq-question h3,
    .faq-answer p {
        font-size: 1em;
    }
}

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

    .page-terms-conditions__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-terms-conditions__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

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

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

    .page-terms-conditions__container {
        padding: 0 15px;
    }

    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.3em;
        margin-top: 30px;
    }

    .faq-question {
        padding: 15px 20px;
    }

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

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

    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

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

    .page-terms-conditions__section-title {
        font-size: 1.5em;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.2em;
    }

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