
/* Custom CSS Overrides & Fixes */

/* Force white background container badge on header logo across static-sticky and floating modes */
#header.header-floating-bar-static-sticky .header-logo a,
#header.header-floating-bar .header-logo a,
#header .header-logo a,
.header-logo a {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#header.header-floating-bar-static-sticky .header-logo a img,
#header.header-floating-bar .header-logo a img,
#header .header-logo a img,
.header-logo a img {
    background: #ffffff !important;
    background-color: #ffffff !important;
    height: 42px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* Hero Section Slider Fixes & Clean Responsive Layout */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 75px);
    min-height: 520px;
    max-height: 720px;
    overflow: hidden;
    background-color: #0b0b0b;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.04);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 2;
}

.hero-slide-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 950px !important;
    text-align: center !important;
    color: #ffffff !important;
    z-index: 100 !important;
    display: block !important;
}

.hero-slide-title {
    font-size: clamp(34px, 5.5vw, 68px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: -1px !important;
    margin-bottom: 15px !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.hero-slide-subtitle {
    font-size: clamp(15px, 2.2vw, 22px) !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
    color: #f1f5f9 !important;
    text-transform: uppercase !important;
    margin-bottom: 30px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.hero-slide-btn {
    display: inline-block !important;
    padding: 14px 34px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

.hero-slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #e36159;
    transform: scale(1.25);
    border-color: #ffffff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 18px;
}

.hero-arrow:hover {
    background: #e36159;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev {
    left: 20px;
}

.hero-arrow-next {
    right: 20px;
}

/* Ensure no blank space margin on main container and section */
.main {
    margin: 0 !important;
    padding: 0 !important;
}

section.section-light {
    margin-top: 0 !important;
    padding-top: 65px !important;
    padding-bottom: 65px !important;
}

/* Fix header overlap and add clean top margin on all inner pages (Classes, About Us, Staff, Pricing, Contact) */
.custom-padding-top-1,
section.custom-padding-top-1,
div.main > section:first-child:not(.hero-slider-section) {
    padding-top: 150px !important;
    margin-top: 0 !important;
}

/* Footer Social Icons Styling & Visibility Fix */
.social-icons,
.custom-social-icons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
}

.social-icons li,
.custom-social-icons li {
    display: inline-flex !important;
    margin: 0 4px !important;
}

.social-icons li a,
.custom-social-icons li a {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.social-icons li.social-icons-facebook a:hover,
.custom-social-icons li.social-icons-facebook a:hover {
    background: #1877f2 !important;
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.5) !important;
}

.social-icons li.social-icons-instagram a:hover,
.custom-social-icons li.social-icons-instagram a:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.5) !important;
}

.social-icons li.social-icons-linkedin a:hover,
.custom-social-icons li.social-icons-linkedin a:hover {
    background: #0a66c2 !important;
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.5) !important;
}

/* Page Header Banners for Inner Pages */
section.page-header {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    padding: 70px 0 !important;
}

/* Fixed Parallax Background for Why Us Section */
.custom-why-us-parallax,
section.custom-why-us-parallax {
    position: relative !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    padding: 110px 0 !important;
    min-height: 420px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
}

.custom-why-us-parallax::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 1 !important;
}

.custom-why-us-parallax > .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Contact Us & Home Page Bottom Cards (Packages, Classes, Resources, Working Hours) Equal Height & Background Fitting */
.container-fluid .col-lg-4 section.custom-squared-section,
.container-fluid .col-lg-6 section.custom-wide-section,
section.packages,
section.classes,
section.resources,
section.working-hours {
    min-height: 380px !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 45px !important;
}

section.packages {
    background-image: url('../img/demos/gym/carousels/packages.jpg') !important;
}

section.classes {
    background-image: url('../img/demos/gym/carousels/classes.jpg') !important;
}

section.resources {
    background-image: url('../img/demos/gym/carousels/resources.jpg') !important;
}

section.working-hours {
    background-image: url('../img/demos/gym/carousels/working-hours.jpg') !important;
}
