/* Terms & Conditions Page Styles - Egyptra Travel */
/* Matches legal.css design patterns */

:root {
    --primary-color: #1e88e5;
    --secondary-color: #f5a623;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --text-color: #4a4a4a;
    --green-color: #28a745;
    --gold-color: #f5a623;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
}

/* Hero Section */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 120px 0;
    margin-bottom: 0;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

.hero__text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* Trust Badges */
.trust-badges {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
}

.trust-badge i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.trust-badge span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
}

/* Section Title (matching legal.css) */
.section__title {
    text-align: center;
    margin-bottom: 50px;
}

.section__heading {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section__heading:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section__subheading {
    font-size: 1.2rem;
    color: #777;
}

/* Terms Content */
.terms-content {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.last-updated {
    text-align: center;
    color: #888;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
}

.last-updated i {
    margin-right: 6px;
}

.section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-content h2 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.terms-content h2 i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1.3rem;
}

.terms-content h3 {
    font-size: 1.15rem;
    color: var(--dark-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.terms-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.terms-content ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.terms-content ul li {
    margin-bottom: 0.6rem;
    padding-left: 1.6rem;
    position: relative;
    line-height: 1.6;
}

.terms-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.terms-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.terms-content a:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* Highlight Boxes */
.highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #e8f4fd;
    border-left: 4px solid var(--primary-color);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.highlight-box > i {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.highlight-box p {
    margin: 0;
}

.highlight-box--green {
    background-color: #e8f5e9;
    border-left-color: var(--green-color);
}

.highlight-box--green > i {
    color: var(--green-color);
}

.highlight-box--gold {
    background-color: #fff8e1;
    border-left-color: var(--gold-color);
}

.highlight-box--gold > i {
    color: var(--gold-color);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn--primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.btn--outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn--outline-light:hover {
    background-color: white;
    color: var(--dark-color);
    text-decoration: none;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #1a237e 0%, #1565c0 50%, #0d47a1 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta__text {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta__buttons {
    margin-bottom: 35px;
}

.cta__buttons .btn {
    margin: 5px 8px;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.contact-item i {
    font-size: 1.2rem;
}

/* Company Stats in CTA */
.company-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-item strong {
    font-size: 1.3rem;
}

.stat-item span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .terms-content {
        padding: 1.5rem;
    }

    .terms-content h2 {
        font-size: 1.35rem;
    }

    .section__heading {
        font-size: 2rem;
    }

    .cta__title {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .company-stats {
        gap: 20px;
    }

    .cta__buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    .highlight-box {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 1.8rem;
    }

    .section__heading {
        font-size: 1.6rem;
    }

    .terms-content {
        padding: 1.2rem;
        border-radius: 8px;
    }

    .terms-content h2 {
        font-size: 1.2rem;
    }
}

/* ── Container (replaces Bootstrap) ── */
.terms-page .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .terms-page .container { padding: 0 20px; }
}

/* ── Trust Badges Grid (replaces Bootstrap row/col) ── */
.trust-badges__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}
@media (max-width: 768px) {
    .trust-badges__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Section spacing (replaces Bootstrap py-4/py-5) ── */
.trust-badges { padding: 1.5rem 0; }
.terms-main { padding: 3rem 0; }

/* ── RTL Support ── */
[dir="rtl"] .highlight-box {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}
[dir="rtl"] .highlight-box--green {
    border-right-color: var(--green-color);
}
[dir="rtl"] .highlight-box--gold {
    border-right-color: var(--gold-color);
}
[dir="rtl"] .terms-content ul li {
    padding-left: 0;
    padding-right: 1.6rem;
}
[dir="rtl"] .terms-content ul li::before {
    left: auto;
    right: 0;
}
[dir="rtl"] .terms-content h2 i {
    margin-right: 0;
    margin-left: 8px;
}
[dir="rtl"] .last-updated i {
    margin-right: 0;
    margin-left: 6px;
}
