/* FAQs Page Specific Styles - Matching Original Design */

body {
    background: url('../images/back.jpg') center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

/* Main Section - Matching Original Layout */
.page-content {
    min-height: auto; /* Changed from fixed 1806px to auto */
    position: relative;
}

.faqs-section {
    position: relative;
    text-align: center;
}

/* Logo - Matching Original u-image-1 */
.progressive-logo {
    width: 269px;
    height: 32px;
    margin: 30px auto 0;
    display: block;
}

/* Background Shape - Matching Original u-shape-1 and u-custom-color-3 */
.background-shape {
    width: 882px;
    height: auto; /* Changed from fixed 1417px to auto */
    min-height: auto; /* Remove minimum height constraint */
    background-color: #f2fafc;
    margin: 30px auto 0 auto; /* Reduced from 60px */
    position: relative;
    z-index: 1;
    padding: 20px 58px 10px; /* Reduced bottom from 20px */
    box-sizing: border-box;
}

/* Content inside background shape */
.background-shape-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* RV Icon - Positioned within background */
.rv-icon {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

/* Drink Play Win Logo - Positioned within background */
.drink-play-win-logo {
    width: 140px;
    height: 146px;
    margin: 20px auto 20px;
    position: relative;
    z-index: 3;
    display: block;
}

/* Page Title - Positioned within background */
.page-title {
    font-family: 'Brother1816Bold', sans-serif;
    font-size: 2.8125rem;
    color: #111111;
    margin: 0 auto 20px; /* Reduced bottom margin from 40px */
    position: relative;
    z-index: 3;
}

/* FAQs Container - Positioned within background */
.faqs-container {
    width: 766px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    text-align: left;
}

/* FAQ Items - Simple styling matching original */
.faq-item {
    margin-bottom: 20px;
}

/* FAQ Questions - Matching Original accordion-link styling */
.faq-question {
    width: 100%;
    background: transparent;
    border: 1px solid #3272ba;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 15px 30px;
    text-align: left;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Brother1816Bold', sans-serif;
    text-transform: uppercase;
    color: #495057;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    background-image: none;
}

.faq-question:hover {
    border-color: #3272ba;
}

.faq-question[aria-expanded="true"] {
    border-color: #3272ba;
}

.question-text {
    flex: 1;
    margin-right: 20px;
    line-height: 1.4;
}

/* FAQ Icons - Matching Original u-icon styling */
.faq-icon {
    height: 20px;
    width: 20px;
    background-image: none;
    font-size: 1rem;
    font-weight: bold;
    color: #007BFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
}

/* FAQ Answers - Matching Original accordion-pane styling */
.faq-answer {
    background: white;
    background-image: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
}

.faq-answer.active {
    max-height: 500px;
    padding: 20px 30px 10px;
}

.faq-answer p {
    font-family: 'Brother1816PrintedRegular', sans-serif;
    font-size: 1rem;
    color: #111111;
    line-height: 1.5;
    margin: 0;
}

.faq-answer a {
    color: #007BFF;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section - Simple styling to match theme */
.cta-section {
    margin-top: 40px;
    padding: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    position: relative;
    z-index: 3;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #111111;
}

.cta-button {
    display: inline-block;
    background: #007BFF;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #0056B3;
    transform: translateY(-1px);
}

/* Responsive Design - Matching Original Breakpoints */
@media (max-width: 1199px) {
    .page-content {
        min-height: auto; /* Changed from fixed 1716px to auto */
    }
    
    .background-shape {
        margin-right: 58px;
        margin-left: auto;
    }
}

@media (max-width: 991px) {
    .page-content {
        min-height: auto; /* Changed from fixed 1812px to auto */
    }
    
    .background-shape {
        height: auto; /* Changed from fixed 1489px to auto */
        margin-right: auto;
        margin-left: auto;
        width: auto;
        padding: 94px 40px 60px;
    }
    
    .rv-icon {
        top: 10px;
        right: 10px;
        width: 150px;
        height: 150px;
    }
    
    .faqs-container {
        width: 720px;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .page-content {
        min-height: auto; /* Changed from fixed 1359px to auto */
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .faqs-container {
        width: 540px;
        max-width: 100%;
    }
    
    .faq-answer.active {
        padding: 20px 10px 10px;
    }
}

@media (max-width: 575px) {
    .page-content {
        min-height: auto; /* Changed from fixed 1982px to auto */
    }
    
    .background-shape {
        height: auto; /* Changed from fixed 1718px to auto */
        width: auto;
        margin-right: 20px;
        margin-left: 20px;
        padding: 94px 20px 60px;
    }
    
    .faqs-container {
        width: auto;
        max-width: 100%;
    }
    
    .rv-icon {
        width: 120px;
        height: 120px;
        top: 5px;
        right: 5px;
    }
    
    .drink-play-win-logo {
        width: 120px;
        height: 125px;
    }
}

/* ==========================================
   RULES PAGE SPECIFIC STYLES
   ========================================== */

/* Override the fixed height for rules page to accommodate longer content */
.rules-container ~ .cta-section {
    /* This selector targets pages with rules-container (rules page) */
}

/* Rules page background shape adjustments */
body:has(.rules-container) .background-shape,
.rules-container ~ * .background-shape {
    height: auto !important;
    min-height: 1417px;
    padding-bottom: 20px; /* Reduced from 80px */
}

/* Rules page content adjustments */
body:has(.rules-container) .page-content {
    min-height: auto !important;
}

/* Fallback for browsers that don't support :has() */
.background-shape.rules-page {
    height: auto !important;
    min-height: 1417px;
    padding-bottom: 20px; /* Reduced from 80px */
}

.page-content.rules-page {
    min-height: auto !important;
}

/* Style the rules container - Single white box with blue left border */
.rules-container {
    width: 766px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border-left: 6px solid #007BFF;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Rules intro section */
.rules-intro {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

/* Individual rules sections - No individual boxes */
.rules-section {
    margin-bottom: 40px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

/* Rules section headings */
.rules-section h2 {
    font-family: 'Brother1816Bold', sans-serif;
    font-size: 1.3rem;
    color: #2B5A87;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Rules section paragraphs */
.rules-section p {
    font-family: 'Brother1816PrintedRegular', sans-serif;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Rules section lists */
.rules-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.rules-section li {
    font-family: 'Brother1816PrintedRegular', sans-serif;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Rules section links */
.rules-section a {
    color: #007BFF;
    text-decoration: none;
}

.rules-section a:hover {
    text-decoration: underline;
}

/* Rules page responsive adjustments */
@media (max-width: 991px) {
    .rules-container {
        width: 720px;
        max-width: 100%;
        padding: 35px;
    }
}

@media (max-width: 767px) {
    .rules-container {
        width: 540px;
        max-width: 100%;
        padding: 30px;
    }
    
    .rules-section {
        margin-bottom: 35px;
    }
    
    .rules-intro {
        padding: 15px;
        margin-bottom: 35px;
    }
}

@media (max-width: 575px) {
    .rules-container {
        width: auto;
        max-width: 100%;
        padding: 20px;
        border-left-width: 4px;
    }
    
    .rules-section {
        margin-bottom: 30px;
    }
    
    .rules-section h2 {
        font-size: 1.1rem;
    }
    
    .rules-section p,
    .rules-section li {
        font-size: 0.9rem;
    }
    
    .rules-intro {
        padding: 12px;
        margin-bottom: 30px;
    }
    
    /* Override the fixed height for rules page on mobile */
    body:has(.rules-container) .background-shape,
    .background-shape.rules-page {
        height: auto !important;
        min-height: 1417px;
    }
    
    body:has(.rules-container) .page-content,
    .page-content.rules-page {
        min-height: auto !important;
    }
}