/* style/terms-conditions.css */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #F39C12;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f4f7f6;
    --background-dark: #1a252f;
    --border-color: #e0e0e0;
}

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

.page-terms-conditions a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: #e67e22; /* Slightly darker orange for hover */
}

.page-terms-conditions .terms-hero {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.page-terms-conditions .terms-hero p {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
    opacity: 0.9;
}

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

.page-terms-conditions .cta-button:hover {
    background: #e67e22; /* Slightly darker orange */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions .terms-section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--text-color-light);
}

.page-terms-conditions .terms-section:last-of-type {
    border-bottom: none;
}

.page-terms-conditions .terms-section.general-introduction {
    background-color: var(--background-light);
}

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

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

.page-terms-conditions .terms-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-terms-conditions .terms-section h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

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

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

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

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

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

.page-terms-conditions .terms-faq h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.page-terms-conditions .terms-faq h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-terms-conditions .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--text-color-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.page-terms-conditions .faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--primary-color);
    flex-grow: 1;
    border-left: none;
    padding-left: 0;
}

.page-terms-conditions .faq-toggle {
    font-size: 2em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

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

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

.page-terms-conditions .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to accommodate content */
    padding: 25px;
    border-top: 1px solid var(--border-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-terms-conditions .terms-hero h1 {
        font-size: 2.5em;
    }
    .page-terms-conditions .terms-hero p {
        font-size: 1em;
    }
    .page-terms-conditions .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-terms-conditions .terms-section {
        padding: 40px 15px;
    }
    .page-terms-conditions .terms-section h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    .page-terms-conditions .terms-section h3 {
        font-size: 1.5em;
        margin-top: 30px;
    }
    .page-terms-conditions .terms-section p,
    .page-terms-conditions .terms-section li {
        font-size: 1em;
    }
    .page-terms-conditions .faq-question {
        padding: 15px 20px;
    }
    .page-terms-conditions .faq-question h3 {
        font-size: 1.1em;
    }
    .page-terms-conditions .faq-toggle {
        font-size: 1.8em;
    }
    .page-terms-conditions .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions .terms-hero h1 {
        font-size: 2em;
    }
    .page-terms-conditions .terms-hero p {
        font-size: 0.9em;
    }
    .page-terms-conditions .cta-button {
        font-size: 0.9em;
        padding: 10px 25px;
    }
    .page-terms-conditions .terms-section h2 {
        font-size: 1.8em;
    }
    .page-terms-conditions .terms-section h3 {
        font-size: 1.3em;
    }
    .page-terms-conditions .faq-question h3 {
        font-size: 1em;
    }
    .page-terms-conditions .faq-toggle {
        font-size: 1.5em;
    }
}