/* style/terms-conditions.css */

/* Custom CSS Variables */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #B22222; /* Deep Red */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-dark: #1a1a1a;
    --background-light: #f5f5f5;
    --border-color: #e0e0e0;
    --card-bg: #2a2a2a;
    --button-hover-bg: #e6c200;
}

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

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

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

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

.page-terms-conditions .hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-color-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-color-dark); /* Ensure contrast */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
}

.page-terms-conditions .cta-button:hover {
    background: var(--button-hover-bg);
    color: var(--background-dark); /* Ensure contrast */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.page-terms-conditions .content-section {
    padding: 60px 20px;
    background-color: var(--background-light);
}

.page-terms-conditions .content-section .container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-terms-conditions .content-section p {
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.page-terms-conditions .content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* FAQ Section */
.page-terms-conditions .faq-section {
    padding: 60px 20px;
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

.page-terms-conditions .faq-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.page-terms-conditions .faq-section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg);
    color: var(--text-color-light);
    border: 1px solid rgba(255, 215, 0, 0.3); /* Lighter border from primary color */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-terms-conditions .faq-question:hover {
    background: #3a3a3a; /* Slightly lighter dark background on hover */
    border-color: var(--primary-color);
}

.page-terms-conditions .faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-color-light);
    font-weight: bold;
}

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

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

.page-terms-conditions .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: #222222;
    color: var(--text-color-light);
    padding: 0 25px; /* Initial padding matches question */
    border-radius: 0 0 8px 8px;
}

.page-terms-conditions .faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 15px 25px 25px 25px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-terms-conditions .faq-answer p {
    margin: 0;
    font-size: 1em;
    color: var(--text-color-light);
}

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

    .page-terms-conditions .hero-content p {
        font-size: 1.1em;
    }

    .page-terms-conditions .content-section .container {
        padding: 30px;
    }

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

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

    .page-terms-conditions .faq-section h2 {
        font-size: 2.2em;
    }

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

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

    .page-terms-conditions .hero-content h1 {
        font-size: 2.2em;
    }

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

    .page-terms-conditions .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }

    .page-terms-conditions .content-section {
        padding: 40px 15px;
    }

    .page-terms-conditions .content-section .container {
        padding: 20px;
    }

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

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

    .page-terms-conditions .faq-section {
        padding: 40px 15px;
    }

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

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

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

    .page-terms-conditions .faq-answer {
        padding: 0 20px;
    }

    .page-terms-conditions .faq-item.active .faq-answer {
        padding: 10px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions .hero-section {
        padding: 40px 10px;
    }

    .page-terms-conditions .hero-content h1 {
        font-size: 1.8em;
    }

    .page-terms-conditions .hero-content p {
        font-size: 0.9em;
    }

    .page-terms-conditions .cta-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }

    .page-terms-conditions .content-section .container {
        padding: 15px;
    }

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

    .page-terms-conditions .faq-question h3 {
        font-size: 0.95em;
    }
}