/* White Header Styles */
.white-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #8B0000;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-logo {
    height: 60px;
    width: auto;
    margin-right: 20px;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-buttons {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.nav-button {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid rgba(139, 0, 0, 0.1);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    background: linear-gradient(135deg, #8B0000 0%, #A00000 100%);
    color: white;
    border-color: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
}

/* FAQ default active state */
.faq-btn {
    background: linear-gradient(135deg, #8B0000 0%, #A00000 100%);
    color: white;
    border-color: #8B0000;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    position: relative;
}

.faq-btn::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
    border-radius: 2px;
}

/* When hovering over other buttons, FAQ becomes inactive */
.nav-button:not(.faq-btn):hover ~ .faq-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    border-color: rgba(139, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* When hovering over FAQ itself, keep it red but darker */
.faq-btn:hover {
    background: linear-gradient(135deg, #7A0000 0%, #8B0000 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
}

/* Main container for content area */
.main-container {
    display: flex;
    min-height: calc(100vh - 140px);
}

.content-area {
    flex: 1;
    position: relative;
}

.content-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 249, 250, 0.9) 50%,
        rgba(255, 255, 255, 0.85) 100%);
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(139, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
}

.welcome-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #8B0000 50%, #A00000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #8B0000, #A00000, #FF6B35);
    border-radius: 2px;
}

/* FAQ Content Styles */
.faq-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Section Styles */
.faq-section,
.faq-categories-section,
.popular-questions-section,
.contact-cta-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(139, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(139, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.faq-section::before,
.faq-categories-section::before,
.popular-questions-section::before,
.contact-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B0000, #A00000, #FF6B35);
    border-radius: 20px 20px 0 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8B0000, #A00000);
    border-radius: 2px;
}

.section-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #8B0000, #A00000, #FF6B35);
    border-radius: 2px;
    margin: 0 auto;
}

/* FAQ Intro Section */
.faq-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #34495e;
    font-weight: 400;
}

.contact-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #34495e;
    font-weight: 500;
}

.contact-text a {
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #A00000;
    text-decoration: underline;
}

/* FAQ Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-item {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid rgba(139, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.1);
    border-color: rgba(139, 0, 0, 0.2);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-item h3 {
    color: #8B0000;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.category-item p {
    color: #34495e;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Popular Questions Section */
.questions-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid rgba(139, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.1);
    border-color: rgba(139, 0, 0, 0.15);
}

.question {
    background: linear-gradient(135deg, #8B0000 0%, #A00000 100%);
    color: white;
    padding: 20px 25px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.question:hover {
    background: linear-gradient(135deg, #7A0000 0%, #8B0000 100%);
}

.question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.answer.active {
    padding: 20px 25px;
    max-height: 200px;
}

.answer p {
    color: #34495e;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.answer a {
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.answer a:hover {
    color: #A00000;
    text-decoration: underline;
}

/* Contact CTA Section */
.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.email-btn {
    background: linear-gradient(135deg, #8B0000 0%, #A00000 100%);
    color: white;
    border: 2px solid #8B0000;
}

.email-btn:hover {
    background: linear-gradient(135deg, #7A0000 0%, #8B0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
}

.contact-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #8B0000;
    border: 2px solid #8B0000;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #8B0000 0%, #A00000 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
}

/* Social Sharing Section */
.social-section {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 20px;
    border: 1px solid rgba(139, 0, 0, 0.1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.social-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.social-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #8B0000, #A00000);
    border-radius: 1px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 26px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
    color: white;
}

.social-icon.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #166fe5 100%);
    color: white;
}

.social-icon.draugiem {
    background: linear-gradient(135deg, #FF6B35 0%, #e55a2b 100%);
    color: white;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-icon:active {
    transform: translateY(-2px) scale(1.05);
}

/* Additional styling for better appearance */
body {
    margin: 0;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: 
        linear-gradient(135deg, 
            rgba(139, 0, 0, 0.03) 0%, 
            rgba(248, 249, 250, 0.05) 50%,
            rgba(139, 0, 0, 0.02) 100%),
        url('cdn/images/latvebg.png');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(160, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 107, 53, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-content {
        gap: 30px;
    }
    
    .faq-section,
    .faq-categories-section,
    .popular-questions-section,
    .contact-cta-section {
        padding: 25px;
    }
    
    .welcome-text {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .nav-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .social-icons {
        gap: 20px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .question::after {
        right: 20px;
    }

    .answer.active {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .content-overlay {
        padding: 20px;
    }
    
    .faq-section,
    .faq-categories-section,
    .popular-questions-section,
    .contact-cta-section {
        padding: 20px;
    }
    
    .welcome-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .nav-buttons {
        gap: 6px;
    }
    
    .nav-button {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .category-item {
        padding: 20px;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .category-item h3 {
        font-size: 1.2rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}