/* style/terms-conditions.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --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 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

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

.page-terms-conditions .terms-hero-title {
    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 .terms-hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-terms-conditions .terms-hero-image {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions .terms-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-terms-conditions .cta-button:hover {
    background: #ffda6a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-terms-conditions .terms-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--text-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions .section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 15px;
}

.page-terms-conditions .subsection-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

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

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

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

.page-terms-conditions .inline-link {
    font-weight: bold;
}

.page-terms-conditions .terms-image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-terms-conditions .terms-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* FAQ Section */
.page-terms-conditions .faq-section {
    padding: 60px 20px;
    background-color: #f0f4f8;
}

.page-terms-conditions .faq-list {
    margin-top: 30px;
}

.page-terms-conditions .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--text-light);
    transition: box-shadow 0.3s ease;
}

.page-terms-conditions .faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--text-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.15em;
    color: var(--primary-color);
    flex-grow: 1;
}

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

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

.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: #f9f9f9;
    color: var(--text-dark);
}

.page-terms-conditions .faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px 25px;
}

.page-terms-conditions .faq-answer p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-terms-conditions .terms-hero-title {
        font-size: 2.8em;
    }
    .page-terms-conditions .terms-hero-subtitle {
        font-size: 1.2em;
    }
    .page-terms-conditions .section-title {
        font-size: 2em;
    }
    .page-terms-conditions .subsection-title {
        font-size: 1.6em;
    }
    .page-terms-conditions .terms-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions .terms-hero-title {
        font-size: 2.2em;
    }
    .page-terms-conditions .terms-hero-subtitle {
        font-size: 1em;
    }
    .page-terms-conditions .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-terms-conditions .terms-content-section, .page-terms-conditions .faq-section {
        padding: 40px 15px;
    }
    .page-terms-conditions .terms-container {
        padding: 20px;
    }
    .page-terms-conditions .section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-terms-conditions .subsection-title {
        font-size: 1.4em;
        margin-top: 30px;
    }
    .page-terms-conditions p, .page-terms-conditions li {
        font-size: 0.95em;
    }
    .page-terms-conditions .faq-question {
        padding: 15px 20px;
    }
    .page-terms-conditions .faq-question h3 {
        font-size: 1em;
    }
    .page-terms-conditions .faq-toggle {
        font-size: 20px;
    }
    .page-terms-conditions .faq-answer {
        padding: 0 20px;
    }
    .page-terms-conditions .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions .terms-hero-title {
        font-size: 1.8em;
    }
    .page-terms-conditions .terms-hero-subtitle {
        font-size: 0.9em;
    }
    .page-terms-conditions .cta-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    .page-terms-conditions .section-title {
        font-size: 1.6em;
    }
    .page-terms-conditions .subsection-title {
        font-size: 1.2em;
    }
    .page-terms-conditions .faq-question h3 {
        font-size: 0.9em;
    }
}