/* =============================================
   ROOT VARIABLES & GLOBAL STYLES
   ============================================= */

:root {
    /* Color Variables */
    --primary-color: #007C91; 
    --secondary-color: #6c757d; 
    --dark-color: #343a40; 
    --light-color: #f8f9fa; 
    --testimonial-bg: #007C91; 
}

/* Base Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.page-header {
    background-color: var(--light-color);
    padding: 4rem 0;
}

/* =============================================
   NAVIGATION STYLES
   ============================================= */

/* Active navigation link */
.navbar .nav-link.active {
    color: #007C91;
    font-weight: bold;
}

/* Navigation link hover state */
.navbar .nav-link:hover {
    color: #007C91;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/*--------------------------------------------------------------
# Sign In Button Style
--------------------------------------------------------------*/
.btn-outline-gray {
    --custom-green: #8AC926; 
    border-color: #ced4da;
}

.btn-outline-gray:hover {
    color: #ffffff !important;
    background-color: #8AC926;
}

/* =============================================
   HERO SECTIONS
   ============================================= */

/* Homepage hero section */
#hero-home {
    background: linear-gradient(rgba(255, 255, 255, 0.147), rgba(255, 255, 255, 0.179)), 
                url('../images/home_burner_photo.jpg') no-repeat center center/cover;
    padding: 15rem 0;
}

/* Membership page hero section */
#hero-membership {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/membership-hero-bg.jpg') no-repeat center center/cover;
    padding: 6rem 0;
}

/* =============================================
   FEATURED PROGRAMS SECTION
   ============================================= */

#featured-programs {
    background-color: #fff;
}

/* Program card styling */
.program-card {
    background-color: #F5F5F5;
    border: 1px solid #E5E5E5;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Program card hover effect */
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Custom outline button style */
.btn-outline-green {
    --custom-green: #8AC926;
    color: #000000;
    border-color: var(--custom-green);
    font-weight: 500;
}

.btn-outline-green:hover {
    color: #000000;
    background-color: var(--custom-green);
    border-color: #FFFFFF;
}

/* =============================================
   TESTIMONIAL & CTA SECTIONS
   ============================================= */

#testimonial {
    background-color: var(--testimonial-bg);
}

/* This is the new block */
#cta {
    background-color: #fff;
}

.cta-inner {
    background-color: var(--primary-teal, #007C91); 
    padding: 3rem;
    border-radius: 0;
}

/* =============================================
   PRICING CARDS (MEMBERSHIP PAGE)
   ============================================= */

.pricing-card {
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.pricing-card .card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid #ddd;
    padding: 1.5rem;
}

.pricing-card ul li {
    padding-bottom: 1rem;
}

/* Popular pricing card styling */
.card-popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
}

.card-popular .card-header {
    background-color: var(--primary-color);
    color: #fff;
    border-bottom: 1px solid var(--primary-color);
}

/* "Most Popular" badge */
.card-popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* =============================================
   FOOTER STYLES
   ============================================= */

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer {
    background-color: #333333;
}

/* =============================================
   PROGRAMS PAGE SPECIFIC STYLES
   ============================================= */

#hero-programs {
    background: url('../images/programs_photo.jpg') no-repeat center center/cover;
    padding: 7rem 0;
}

/* Filter dropdown styles */
.dropdown-menu {
    width: 100%;
    padding: 0;
    border: 1px solid #D4D4D4;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.dropdown-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: #000000;
}

.dropdown-item {
    color: #007C91;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #A3A3A3;
    font-weight: 500;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #8ac926c9;
    color: #007C91;
}

/* Filter bar */
#filters {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Program listing section */
#program-listing-section {
    background: linear-gradient(rgba(243, 239, 239, 0.152), rgba(243, 239, 239, 0.152)), 
                url('../images/dhats.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

/* Individual program items */
.program-item.card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #E5E5E5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    border-radius: 0; 
}

/* Program badge styling */
.program-badge {
    border-radius: 0; 
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    background-color: #007C91;
}

.program-badge:hover {
    background-color: #97d4dfe1;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Program info sidebar */
.program-info-card {
    background-color: var(--testimonial-teal, #007b91ea);
    border-radius: 0; 
}

/* Join class button */
.btn-join {
    background-color: #8AC926;
    color: #fff;
    font-weight: 500;
    border: #fff;
    border-radius: 0 !important; 
}

.btn-join:hover {
    background-color: #fff;
    color: #000000;
    border: 1px solid var(--primary-teal, #007C91); 
}

/* Register button */
.btn-register {
    background-color: #8AC926;
    color: #fff;
    font-weight: 500;
    border: none;
    border-radius: 0 !important; 
}

.btn-register:hover {
    background-color: #fff;
    color: #000000;
    border: 1px solid var(--primary-teal, #007C91); 
}

/*--------------------------------------------------------------
# Custom Badge Button Style
--------------------------------------------------------------*/
.btn-badge-outline {
    background-color: #fff; 
    color: var(--text-dark, #212529); 
    border: 1px solid var(--primary-teal, #007C91); 
    transition: all 0.3s ease;
}

.btn-badge-outline:hover {
    background-color: var(--primary-teal, #007C91); 
    color: #fff; 
}

/* =============================================
   MEMBERSHIP PAGE SPECIFIC STYLES
   ============================================= */

#hero-membership {
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), 
                url('../images/membership_photo.jpg') no-repeat center center/cover;
    padding: 3rem 0;
}

#membership-plans {
    background: url('../images/tennis.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

/* =============================================
   PRICING CARDS (MEMBERSHIP PAGE)
   ============================================= */

.pricing-card {
    background-color: #ffffffee;
    text-align: center;
    position: relative;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Pricing card header */
.pricing-card .card-header {
    background: none;
    border-bottom: none;
    padding: 2rem;
    font-size: 1.25rem;
}

/* Pricing card body */
.pricing-card .card-body {
    padding: 1.5rem;
}

/* Pricing card footer */
.pricing-card .card-footer {
    background: none;
    border: none;
    padding: 2.5rem;
    padding-top: 0;
}

/* Pricing card list items */
.pricing-card ul li {
    padding-bottom: 1rem;
    color: #000000;
}

/* Checkmark icons in pricing cards */
.pricing-card ul .fa-check {
    color: #000000;
}

/* Most Popular card styling */
.card-popular {
    border: 2px solid #007C91;
    transform: scale(1.02);
    z-index: 10;
    border-radius: 0;
}

/* Premium card styling */
.card-premium {
    border: 2px solid #8AC926;
    transform: scale(1.02);
    z-index: 10;
    border-radius: 0;
}

/* Most Popular banner */
.card-popular::before {
    content: 'Most Popular';
    background-color: #007C91;
    color: white;
    border-radius: 1px;
}

/* Standard price text color */
.text-standard-price {
    color: #007C91;
}

/* =============================================
   MEMBERSHIP BUTTON STYLES
   ============================================= */

/* Base button styles */
.btn {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.375rem;
}

/* Basic and Premium plan buttons */
.btn-choose-basic,
.btn-choose-premium {
    background-color: #ffffffca;
    border: 2px solid #8AC926;
    color: #8AC926;
}

/* Basic and Premium button hover states */
.btn-choose-basic:hover,
.btn-choose-premium:hover {
    background-color: #8AC926;
    color: #fff;
}

/* Standard plan button */
.btn-choose-standard {
    background-color: #007C91;
    color: #fff;
}

/* Standard button hover state */
.btn-choose-standard:hover {
    background-color: #ffffff;
    border-color: #005f70;
    color: #000000;
}

/* =============================================
   MEMBER BENEFITS SECTION
   ============================================= */

#member-benefits {
    background-color: #FAFAFA;
}

.member-benefits-inner {
    background-color: var(--light-grey, #FAFAFA); 
    padding: 3rem;
    border-radius: 0;
}

/* Benefit icon styling */
.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-color: var(--testimonial-teal, #0d828e);
    color: #fff;
    border-radius: 0.5rem;
    font-size: 1.5rem;
}

.benefit-icon + div h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

/*--------------------------------------------------------------
# CTA Button Hover Style
--------------------------------------------------------------*/
#cta .btn-light:hover {
    background-color: var(--light-green, #8AC926);
    border-color: var(--light-green, #8AC926);
    color: #fff;
}

/* =============================================
   BUTTON STYLES
   ============================================= */

.btn {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.375rem;
}

/* Basic membership button */
.btn-choose-basic,
.btn-choose-premium {
    background-color: #ffffffca;
    border: 2px solid #8AC926;
    color: #8AC926;
}

.btn-choose-basic:hover,
.btn-choose-premium:hover {
    background-color: #8AC926;
    color: #fff;
}

/* Standard membership button */
.btn-choose-standard {
    background-color: #007C91;
    color: #fff;
}

.btn-choose-standard:hover {
    background-color: #ffffff;
    border-color: #005f70;
    color: #000000;
}

/*--------------------------------------------------------------
# Mobile Navigation
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        text-align: center;
        padding: 8px 0;
    }

    .navbar-collapse {
        padding-top: 15px;
    }

    .navbar-toggler {
    border: none;
    }

    .navbar-toggler:focus {
    box-shadow: none;
    }

    /* Styles the Sign In / Join Now buttons on mobile */
    .auth-buttons {
    display: flex; /* Add this line */
    justify-content: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    /* margin-top: 1px; */
    }

/*--------------------------------------------------------------
# Animated Hamburger Icon
--------------------------------------------------------------*/
.navbar-toggler {
    border: none;
    background: transparent !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Style for the three lines (bars) of the hamburger icon */
.navbar-toggler .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* Rotate the top bar */
.navbar-toggler:not(.collapsed) .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

/* Fade out the middle bar */
.navbar-toggler:not(.collapsed) .bar:nth-child(2) {
    opacity: 0;
}

/* Rotate the bottom bar */
.navbar-toggler:not(.collapsed) .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
}