/* FAQ Page Styles - Knowledge Center for Digitalindians */

/* CSS Variables */
:root {
    --primary-color: #FF6B47;
    --primary-gradient: linear-gradient(135deg, #FF6B47 0%, #FF8E53 100%);
    --secondary-color: #2c3e50;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', sans-serif;
}

/* FAQ Hero Section */
.faq-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0 100px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.faq-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.faq-hero-content {
    z-index: 2;
}

.faq-hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.faq-brand-highlight {
    color: var(--primary-color);
    font-style: italic;
}

.faq-cta-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    font-family: var(--font-primary);
}

.faq-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* FAQ Illustration */
.faq-hero-illustration {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-illustration-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* FAQ Letters */
.faq-letter {
    position: relative;
    width: 80px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    animation: float 3s ease-in-out infinite;
}

.faq-letter-f {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    animation-delay: 0s;
}

.faq-letter-a {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
    animation-delay: 0.5s;
}

.faq-letter-q {
    background: linear-gradient(135deg, #00b894, #00cec9);
    animation-delay: 1s;
}

.faq-letter-text {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    font-family: var(--font-primary);
}

/* Animated People */
.faq-person {
    position: absolute;
    width: 40px;
    height: 60px;
    border-radius: 20px 20px 5px 5px;
    animation: bounce 2s ease-in-out infinite;
}

.faq-person::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffdbcb;
}

.faq-person::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    border-radius: 10px;
    background: inherit;
}

.faq-person-1 {
    background: var(--primary-color);
    top: 20%;
    left: -20px;
    animation-delay: 0.2s;
}

.faq-person-2 {
    background: #6c5ce7;
    top: 60%;
    right: -30px;
    animation-delay: 0.8s;
}

.faq-person-3 {
    background: #00b894;
    top: 10%;
    right: -15px;
    animation-delay: 1.2s;
}

.faq-person-4 {
    background: #fd79a8;
    bottom: 20%;
    left: -25px;
    animation-delay: 0.6s;
}

.faq-person-5 {
    background: #fdcb6e;
    bottom: 10%;
    right: -20px;
    animation-delay: 1.4s;
}

/* FAQ Content Section */
.faq-content {
    padding: 80px 0;
    background: var(--white);
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.faq-category {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.faq-category-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.faq-category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 20px;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question.active {
    background: var(--primary-color);
    color: white;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.faq-answer.active {
    padding: 20px;
    max-height: 200px;
}

.faq-answer p {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .faq-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .faq-hero-title {
        font-size: 3rem;
    }
    
    .faq-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 60px 0 80px;
    }
    
    .faq-hero-title {
        font-size: 2.5rem;
    }
    
    .faq-hero-illustration {
        height: 300px;
    }
    
    .faq-letter {
        width: 60px;
        height: 90px;
    }
    
    .faq-letter-text {
        font-size: 2.2rem;
    }
    
    .faq-person {
        width: 30px;
        height: 45px;
    }
    
    .faq-content {
        padding: 60px 0;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .faq-category {
        padding: 25px;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    
    .faq-answer.active {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .faq-hero-container {
        padding: 0 15px;
    }
    
    .faq-hero-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .faq-cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .faq-container {
        padding: 0 15px;
    }
    
    .faq-category {
        padding: 20px;
    }
    
    .faq-category-title {
        font-size: 1.3rem;
    }
    
    .faq-question {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .faq-answer.active {
        padding: 12px;
    }
}

/* Enhanced Visual Effects */
.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 71, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(108, 92, 231, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Loading Animation for FAQ Items */
.faq-category {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.faq-category:nth-child(1) { animation-delay: 0.1s; }
.faq-category:nth-child(2) { animation-delay: 0.2s; }
.faq-category:nth-child(3) { animation-delay: 0.3s; }
.faq-category:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility Improvements */
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .faq-hero {
        background: white !important;
        color: black !important;
    }
    
    .faq-hero-illustration {
        display: none;
    }
    
    .faq-answer {
        max-height: none !important;
        padding: 10px 20px !important;
        display: block !important;
    }
    
    .faq-question {
        background: white !important;
        color: black !important;
    }
    
    .faq-icon {
        display: none;
    }
}
