/* ============================================
   REDDY BOOK FAQ PAGE STYLES
   Red & White Theme - Consistent with Casino Page
   ============================================ */

/* FAQ Page Specific Styles */
.rb-faq-page {
    background: linear-gradient(135deg, #f9f9f9 0%, #fff5f7 100%);
    min-height: 100vh;
}

/* 1. HERO SECTION */
.rb-faq-hero {
    background: linear-gradient(rgba(193, 9, 48, 0.9), rgba(156, 7, 39, 0.95)), 
                url('../assets/faq-bg.jpg') center/cover no-repeat;
    padding: 100px 0 60px;
    color: #ffffff;
    text-align: center;
}

.rb-faq-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.rb-faq-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rb-faq-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.rb-faq-hero-subtitle strong {
    color: #ffcc00;
}

.rb-faq-hero-keywords {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.rb-faq-keyword-badge {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.rb-faq-search {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.rb-faq-search input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #1c2b36;
}

.rb-faq-search input::placeholder {
    color: #7a2a3c;
    opacity: 0.7;
}

.rb-faq-search input:focus {
    outline: none;
    box-shadow: 0 10px 30px rgba(193, 9, 48, 0.3);
}

.rb-faq-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #c10930;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-faq-search button:hover {
    background-color: #9e0726;
    transform: translateY(-50%) scale(1.1);
}

/* 2. CATEGORIES SECTION */
.rb-faq-categories {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    margin-top: -40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.rb-faq-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.rb-faq-category-card {
    background-color: #fff5f7;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rb-faq-category-card:hover {
    border-color: #c10930;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(193, 9, 48, 0.1);
}

.rb-faq-category-card.active {
    border-color: #c10930;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe6ea 100%);
}

.rb-faq-category-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(193, 9, 48, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.rb-faq-category-icon i {
    color: #c10930;
    font-size: 28px;
}

.rb-faq-category-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1c2b36;
    margin-bottom: 10px;
}

.rb-faq-category-count {
    font-size: 14px;
    color: #7a2a3c;
    background-color: rgba(193, 9, 48, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
}

/* 3. FAQ CONTENT SECTION */
.rb-faq-content {
    padding: 80px 0;
}

.rb-faq-section {
    margin-bottom: 60px;
}

.rb-faq-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c10930;
}

.rb-faq-section-icon {
    width: 50px;
    height: 50px;
    background-color: #c10930;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-faq-section-icon i {
    font-size: 24px;
}

.rb-faq-section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1c2b36;
    margin: 0;
}

.rb-faq-section-subtitle {
    font-size: 16px;
    color: #7a2a3c;
    margin-top: 5px;
}

.rb-faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 4. FAQ ITEMS */
.rb-faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.rb-faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.rb-faq-item[open] {
    border-color: #c10930;
    box-shadow: 0 10px 30px rgba(193, 9, 48, 0.1);
}

.rb-faq-item summary {
    padding: 25px 70px 25px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #1c2b36;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.rb-faq-item summary:hover {
    background-color: #f9f9f9;
}

.rb-faq-item summary::-webkit-details-marker {
    display: none;
}

.rb-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #c10930;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.rb-faq-item[open] summary::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}

.rb-faq-answer {
    padding: 0 25px 25px;
    font-size: 16px;
    line-height: 1.7;
    color: #4a1c28;
    animation: fadeIn 0.3s ease-out;
}

.rb-faq-answer strong {
    color: #c10930;
}

.rb-faq-answer p {
    margin-bottom: 15px;
}

.rb-faq-answer p:last-child {
    margin-bottom: 0;
}

.rb-faq-answer ul, .rb-faq-answer ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.rb-faq-answer li {
    margin-bottom: 8px;
}

/* 5. POPULAR QUESTIONS */
.rb-faq-popular {
    background-color: #fff5f7;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    border: 2px solid #c10930;
}

.rb-faq-popular-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.rb-faq-popular-header i {
    color: #ffcc00;
    font-size: 32px;
}

.rb-faq-popular-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1c2b36;
    margin: 0;
}

.rb-faq-popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rb-faq-popular-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 5px solid #c10930;
}

.rb-faq-popular-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.rb-faq-popular-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1c2b36;
    margin-bottom: 10px;
}

.rb-faq-popular-item p {
    font-size: 14px;
    color: #7a2a3c;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 6. CONTACT SECTION */
.rb-faq-contact {
    background: linear-gradient(135deg, #c10930 0%, #9e0726 100%);
    color: white;
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    margin: 60px 0;
}

.rb-faq-contact h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.rb-faq-contact p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rb-faq-contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.rb-faq-contact-method {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    min-width: 250px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rb-faq-contact-method:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.rb-faq-contact-method i {
    font-size: 40px;
    color: #ffcc00;
    margin-bottom: 20px;
}

.rb-faq-contact-method h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.rb-faq-contact-method p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.rb-faq-contact-method a {
    color: #ffcc00;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

.rb-faq-contact-method a:hover {
    text-decoration: underline;
}

/* 7. KEYWORD CLOUD */
.rb-faq-keyword-cloud {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.rb-faq-keyword-cloud h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1c2b36;
    text-align: center;
    margin-bottom: 30px;
}

.rb-faq-cloud-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.rb-faq-cloud-tag {
    padding: 10px 25px;
    background-color: #fff5f7;
    border-radius: 25px;
    font-size: 16px;
    color: #7a2a3c;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.rb-faq-cloud-tag:hover {
    background-color: #c10930;
    color: white;
    transform: scale(1.05);
}

.rb-faq-cloud-tag.level-1 { font-size: 14px; padding: 8px 20px; }
.rb-faq-cloud-tag.level-2 { font-size: 16px; padding: 10px 25px; background-color: #ffe6ea; }
.rb-faq-cloud-tag.level-3 { font-size: 18px; padding: 12px 30px; background-color: #ffccd5; font-weight: 600; }
.rb-faq-cloud-tag.level-4 { font-size: 20px; padding: 14px 35px; background-color: #ff99aa; font-weight: 700; }
.rb-faq-cloud-tag.level-5 { font-size: 22px; padding: 16px 40px; background-color: #ff6677; font-weight: 800; color: white; }

/* 8. ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 9. BACK TO TOP BUTTON */
.rb-faq-back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #c10930;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(193, 9, 48, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-faq-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.rb-faq-back-to-top:hover {
    background-color: #9e0726;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(193, 9, 48, 0.4);
}

/* 10. PRINT BUTTON */
.rb-faq-print-btn {
    background-color: #ffcc00;
    color: #1c2b36;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rb-faq-print-btn:hover {
    background-color: #ff9900;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
}

/* 11. SEARCH HIGHLIGHT */
.search-highlight {
    background-color: #ffcc00;
    color: #1c2b36;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* 12. RESPONSIVE STYLES */
@media (max-width: 1200px) {
    .rb-faq-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rb-faq-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .rb-faq-hero {
        padding: 80px 0 40px;
    }
    
    .rb-faq-hero h1 {
        font-size: 36px;
    }
    
    .rb-faq-hero-subtitle {
        font-size: 18px;
    }
    
    .rb-faq-categories {
        padding: 30px;
    }
    
    .rb-faq-section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .rb-faq-hero h1 {
        font-size: 32px;
    }
    
    .rb-faq-hero-subtitle {
        font-size: 16px;
    }
    
    .rb-faq-category-grid,
    .rb-faq-popular-grid {
        grid-template-columns: 1fr;
    }
    
    .rb-faq-contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .rb-faq-contact-method {
        width: 100%;
        max-width: 350px;
    }
    
    .rb-faq-contact {
        padding: 30px;
    }
    
    .rb-faq-contact h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .rb-faq-hero h1 {
        font-size: 28px;
    }
    
    .rb-faq-hero-subtitle {
        font-size: 14px;
    }
    
    .rb-faq-categories {
        padding: 20px;
        margin-top: -30px;
    }
    
    .rb-faq-item summary {
        padding: 20px 60px 20px 20px;
        font-size: 16px;
    }
    
    .rb-faq-answer {
        padding: 0 20px 20px;
        font-size: 15px;
    }
    
    .rb-faq-popular {
        padding: 30px 20px;
    }
    
    .rb-faq-keyword-cloud {
        padding: 30px 20px;
    }
}

/* 13. PRINT STYLES */
@media print {
    .site-header, .site-footer, .rb-faq-categories, 
    .rb-faq-search, .rb-faq-popular, .rb-faq-contact,
    .rb-faq-keyword-cloud, .rb-faq-print-btn,
    .reddybook-whatsapp-float, .rb-faq-back-to-top {
        display: none !important;
    }
    
    .rb-faq-item[open] summary::after {
        display: none;
    }
    
    .rb-faq-item {
        page-break-inside: avoid;
    }
    
    .rb-faq-hero {
        background: #c10930 !important;
        padding: 50px 0 !important;
    }
}