/* CSS Variables */
:root {
    /* Colors */
    --color-btn-orange-clubfr8: #e64b35;
}

/* Pure CSS Shimmer Loading Effect for Hero Sections */
/* Hide all images initially when loading */
.hero-section-clubfr8.loading {
    background-image: none !important;
}

/* Ensure background image is hidden on mobile too */
@media (max-width: 767px) {
    .hero-section-clubfr8.loading {
        background-image: none !important;
    }
}

.hero-section-clubfr8.loading .hero-loading-img {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

/* Show shimmer when loading */
.hero-section-clubfr8.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* When loaded: show images and hide shimmer */
.hero-section-clubfr8.loaded::before {
    opacity: 0;
    pointer-events: none;
}

.hero-section-clubfr8.loaded .hero-loading-img {
    opacity: 1;
    visibility: visible;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.hero-section-clubfr8 {
    position: relative;
    overflow: hidden;
}

.hero-section-clubfr8.loading {
    min-height: 400px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-section-clubfr8.loading {
        min-height: 250px;
    }
}

html {
    scroll-behavior: smooth;
}

.clubfr8-layout .navbar-expand-lg {
    height: 100px;
}

.get-deals-btn {
    background-color: #ffffff;
    border: 1px solid var(--color-btn-orange-clubfr8);
    color: var(--color-btn-orange-clubfr8);
    border-radius: 6px;
    padding: 17px 27px 15px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.get-deals-btn:hover {
    background-color: var(--color-btn-orange-clubfr8);
    color: #ffffff;
    text-decoration: none;
}

.get-deals-btn::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url('../images/redirect-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 7px;
    display: inline-block;
}

.get-deals-btn:hover::after {
    filter: brightness(0) invert(1);
}

.get-deals-btn-primary {
    background-color: var(--color-btn-orange-clubfr8);
    border: none;
    color: #ffffff;
    border-radius: 6px;
    padding: 13px 86px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.get-deals-btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    text-decoration: none;
}

.get-deals-btn-primary::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url('../images/redirect-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 7px;
    display: inline-block;
    filter: brightness(0) invert(1);
}

.get-deals-btn-primary:hover::after {
    filter: brightness(0) invert(1);
}

@media only screen and (max-width: 768px) {
    .get-deals-btn-primary {
        background-color: var(--color-btn-orange-clubfr8);
        border: none;
        color: #ffffff;
        border-radius: 6px;
        padding: 13px 40px;
        font-size: 14px;
        font-weight: 500;
        transition: background-color 0.3s ease, transform 0.3s ease;
        width: 100%;
        text-align: center;
    }
   
}

@media only screen and (max-width: 991px) {
    .clubfr8-layout .navbar-expand-lg{
        height: 70px;
    }
}

/* Newsletter Signup Section */
.newsletter-signup {
    background-color: #fff7f1;
    padding: 30px 25px;
    border-radius: 6px;
    margin-top: 20px;
}

.newsletter-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 8px;
    padding: 0;
    margin-left: -25px;
    margin-right: -25px;
}

.newsletter-label {
    display: inline-block;
    color: #e64b35;
    font-size: 14px;
    letter-spacing: 2.63px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.newsletter-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.newsletter-description {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.newsletter-benefits {
    margin: 24px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    color: #1a1a1a;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

/* Check icon as image */
.benefit-check-icon {
    width: 32px;
    height: 32px;
    margin-right: 14px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Fallback Font Awesome icon styling */
.benefit-item .fas.fa-check-circle {
    width: 32px;
    height: 32px;
    font-size: 32px;
    color: #d84315;
    margin-right: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item span {
    line-height: 2;
    font-size: 14px;
}

/* Newsletter Form */
.newsletter-form {
    margin-top: 24px;
}

/* Remove background color for clubfr8 newsletter error messages */
.newsletter-error-message.message-box.background-none,
.newsletter-error-message.message-box {
    background-color: transparent !important;
    background: none !important;
    padding: 0 !important;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background-color: #fff;
    color: #2d3748;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: #a0aec0;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #d84315;
    box-shadow: 0 0 0 3px rgba(216, 67, 21, 0.1);
}

/* Red border for invalid email input on homepage newsletter */
.newsletter-form input[type="email"].is-invalid,
.newsletter-form input[type="email"].is-invalid:focus {
    border: 1px solid #dc3545 !important;
    border-width: 1px;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Green border for valid email input on homepage newsletter */
.newsletter-form input[type="email"].is-valid,
.newsletter-form input[type="email"].is-valid:focus {
    border: 1px solid #cbd5e0 !important;
    border-width: 1px;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.newsletter-form button[type="submit"] {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: #d84315;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}


.newsletter-form button[type="submit"]:active {
    transform: translateY(0);
}


/**
 * ClubFR8 Search Modal - Centered Layout
 * Only applies to ClubFR8 pages
 */

/* Override search modal positioning for ClubFR8 */
body.clubfr8-layout .search-modal-overlay {
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

body.clubfr8-layout .search-modal-box {
    max-height: 70vh;
    margin: 20px;
}

/* Ensure search box is centered */
body.clubfr8-layout .search-modal-body {
    max-height: 50vh;
    overflow-y: auto;
}

/* Mobile adjustments for ClubFR8 */
@media (max-width: 768px) {
    body.clubfr8-layout .search-modal-box {
        width: 95%;
        max-height: 80vh;
        margin: 10px;
    }
}
