/* style/terms-conditions.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #F9F9F9;
    --bg-dark: #2C2C2C;
    --border-color: #E0E0E0;
    --accent-color: #FFA500; /* Orange for highlights */
}

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

.page-terms-conditions .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-terms-conditions h1,
.page-terms-conditions h2,
.page-terms-conditions h3 {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.page-terms-conditions h1 {
    font-size: 3.2em;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-terms-conditions h3 {
    font-size: 1.8em;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 30px;
}

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

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

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

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

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

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

.page-terms-conditions-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
    z-index: 0;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.page-terms-conditions-hero h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions-hero p {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

.page-terms-conditions .cta-button:hover {
    background: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-terms-conditions-intro {
    background-color: var(--bg-light);
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.page-terms-conditions-intro .section-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-terms-conditions-intro h2 {
    color: var(--secondary-color);
    font-size: 2.8em;
    margin-bottom: 30px;
}

.page-terms-conditions-intro p {
    font-size: 1.15em;
    max-width: 900px;
    margin: 0 auto 15px auto;
    color: var(--text-dark);
}

/* Details Section */
.page-terms-conditions-details {
    background-color: #FFFFFF;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-terms-conditions-details .detail-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
}

.page-terms-conditions-details .detail-item h3 {
    color: var(--secondary-color);
    font-size: 1.9em;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

.page-terms-conditions-details .detail-item p {
    font-size: 1.05em;
    color: var(--text-dark);
}

.page-terms-conditions-details .detail-item ul {
    list-style: none;
    padding-left: 0;
}

.page-terms-conditions-details .detail-item ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-terms-conditions-details .detail-item ul li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* FAQ Section */
.page-terms-conditions-faq {
    background-color: var(--bg-dark);
    padding-top: 80px;
    padding-bottom: 80px;
    color: var(--text-light);
}

.page-terms-conditions-faq h2 {
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 2.8em;
}

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

.page-terms-conditions-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--secondary-color);
    color: var(--text-light);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-terms-conditions-faq .faq-question:hover {
    background: #a00000;
    border-color: var(--primary-color);
}

.page-terms-conditions-faq .faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--text-light);
    border-bottom: none;
    padding-bottom: 0;
}

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

.page-terms-conditions-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 0 0 8px 8px;
}

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-terms-conditions-hero h1 {
        font-size: 3em;
    }
    .page-terms-conditions-hero p {
        font-size: 1.2em;
    }
    .page-terms-conditions h2 {
        font-size: 2.2em;
    }
    .page-terms-conditions h3 {
        font-size: 1.6em;
    }
    .page-terms-conditions .cta-button {
        padding: 12px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions-hero {
        padding: 80px 15px;
    }
    .page-terms-conditions-hero h1 {
        font-size: 2.5em;
    }
    .page-terms-conditions-hero p {
        font-size: 1em;
    }
    .page-terms-conditions h2 {
        font-size: 1.8em;
    }
    .page-terms-conditions h3 {
        font-size: 1.4em;
    }
    .page-terms-conditions p {
        font-size: 1em;
    }
    .page-terms-conditions .content-section {
        padding: 40px 0;
    }
    .page-terms-conditions-intro .section-image {
        border-radius: 8px;
    }
    .page-terms-conditions-details .detail-item {
        padding: 20px;
    }
    .page-terms-conditions-faq .faq-question {
        padding: 15px;
    }
    .page-terms-conditions-faq .faq-question h3 {
        font-size: 1.1em;
    }
    .page-terms-conditions-faq .faq-toggle {
        font-size: 1.5em;
    }
    .page-terms-conditions-faq .faq-answer {
        padding: 0 15px;
    }
    .page-terms-conditions-faq .faq-item.active .faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions-hero h1 {
        font-size: 2em;
    }
    .page-terms-conditions-hero p {
        font-size: 0.9em;
    }
    .page-terms-conditions h2 {
        font-size: 1.5em;
    }
    .page-terms-conditions h3 {
        font-size: 1.2em;
    }
    .page-terms-conditions .cta-button {
        padding: 10px 25px;
        font-size: 1em;
    }
    .page-terms-conditions-details .detail-item {
        padding: 15px;
    }
    .page-terms-conditions-details .detail-item ul li {
        padding-left: 20px;
    }
    .page-terms-conditions-details .detail-item ul li::before {
        font-size: 0.9em;
    }
}