/* CSS Custom Properties (Variables) */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --font-family: 'Josefin Sans', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    background: linear-gradient(135deg, #e6fbff 0%, #f0f8ff 100%) !important;
}

h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
h1::after {
    content: "";
    display: block;
    height: 5px;
    width: 100%;
    margin: 0 auto;
    border-radius: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #f59e0b 100%);
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
      background: linear-gradient(135deg, #e6fbff 0%, #f0f8ff 100%);
    /* color: white; */
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.faq-section .container {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding-top: 100px;
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 60px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-background);
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: var(--background-color);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-background);
    opacity: 0;
}

.faq-answer.active {
    max-height: 1000px;
    opacity: 1;
    padding-top: 0;
}

.faq-answer-content {
    padding: 25px 30px 30px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.faq-answer.active .faq-answer-content {
    transform: translateY(0);
}

.faq-answer-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact CTA */
.contact-cta {
    text-align: center;
    background: rgba(66, 98, 161, 0.496);
    padding: 40px;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, var(--accent-color));
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2.2rem;
        padding-top: 120px; 
        position: relative;
        z-index: 1;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 20px 20px 25px;
        font-size: 0.95rem;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }

    .contact-cta {
        padding: 30px 20px;
    }

    .contact-cta h3 {
        font-size: 1.6rem;
    }

    .contact-cta p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
        padding-top: 120px; 
        position: relative;
        z-index: 1;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .faq-icon {
        align-self: flex-end;
        margin-left: 0;
    }

    .faq-answer-content {
        padding: 15px 15px 20px;
        font-size: 0.9rem;
    }

    .contact-cta h3 {
        font-size: 1.4rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Animation for smooth accordion */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active .faq-answer-content {
    animation: fadeIn 0.3s ease;
}

/* Loading animation */
.faq-item {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for FAQ items */
.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }