/* Updated Adventure-Themed CSS for Bodywise Gym */

body {
margin: 0;
font-family: Arial, sans-serif;
background: #f5f7fa;
color: #0a1a3c;
}

/* Header */
header {
display: flex;
justify-content: space-between;
padding: 20px;
background: #0053a6;
color: #fff;
position: sticky;
top: 0;
z-index: 100;
}

header .logo {
font-size: 24px;
font-weight: bold;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.logo-img {
    height: 65px;
    width: 65px;
    object-fit: contain;
}
nav{
    margin: 0 3%;
}
nav ul {
list-style: none;
display: flex;
gap: 20px;
flex-wrap: wrap;
}

nav ul li a {
color: white;
text-decoration: none;
font-weight: bold;
transition: 0.3s;
}

nav ul li a:hover {
color: #ffb347; /* Adventure accent */
}
/* ============================
   DROPDOWN MENU (DESKTOP)
============================ */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    padding: 10px 0;
    min-width: 180px;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
    z-index: 20;
}

.nav-links .dropdown-menu li {
    width: 100%;
}

.nav-links .dropdown-menu a {
    padding: 10px 15px;
    display: block;
    color: #fff;
    transition: 0.3s;
}

.nav-links .dropdown-menu a:hover {
    background: #333;
}

/* Hover on desktop */
@media (min-width: 900px) {
    .nav-links .dropdown:hover .dropdown-menu {
        display: flex;
    }
}

/* ============================
   MOBILE DROPDOWNS
============================ */
nav ul.nav-links.show {
    display: flex;
    flex-direction: column;
}

.nav-links .dropdown-menu.mobile-open {
    display: flex !important;
}

/* Dropdown buttons on mobile */
.drop-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Optional dropdown arrow animation */
.drop-btn.active {
    color: #ffcc00;
}

/* Hamburger styling (if not done) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    display: block;
    margin: 5px 0;
    transition: 0.4s;
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
        z-index: 2000;
    }

    nav ul.nav-links {
        display: none;
        position: absolute;
        right: 0;
        top: 70px;
        background: #111;
        width: 240px;
        flex-direction: column;
        padding: 20px;
        border-radius: 10px;
    }
}

/* Hero Section 
.hero {
    position: relative;
    height: 80vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(rgba(0, 83, 166, 0.7), rgba(0, 83, 166, 0.7)), url('assets/gym.jpg') center/cover no-repeat;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: brightness(0.45);
}
*/
/* Hero Section */ 
/* =========================================================
   BODYWISE HERO VIDEO - FINAL VERSION
   ========================================================= */

.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: #fff;

    overflow: hidden;
    isolation: isolate;

    /* Fallback if video cannot load */
    background: #000;
}

/* HERO VIDEO */
.hero-video {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    min-width: 100%;
    min-height: 100%;

    display: block;

    object-fit: cover;

    /* This controls CROPPING, not whether it fills the section */
    object-position: center center;

    z-index: 0;

    filter: brightness(0.45);
}

/* DARK/BLUE OVERLAY */
.hero::after {
    content: "";
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0, 83, 166, 0.35);

    z-index: 1;
    pointer-events: none;
}

/* HERO CONTENT */
.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1000px;

    padding: 20px;

    margin: 0 auto;
}

/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 900px) {

    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero-video {
        width: 100%;
        height: 100%;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .hero {
        width: 100%;
        height: 62vh;
        min-height: 420px;
        padding: 20px 15px;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .hero-content {
        width: 100%;
        padding: 15px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .hero {
        height: 55vh;
        min-height: 380px;
    }

    .hero-video {
        object-position: center center;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.88rem;
    }
}

.cta-btn {
background: #ffb347; /* Adventure accent */
color: white;
padding: 12px 25px;
border-radius: 5px;
text-decoration: none;
margin-top: 20px;
font-weight: bold;
transition: 0.3s;
}

.cta-btn:hover {
background: #ff7e5f;
}

/* Sections */
section {
padding: 60px 20px;
text-align: center;
}

/* Cards */
.services .service-cards,
.trainers .trainer-cards,
.testimonials .testimonial-cards,
.gallery .gallery-grid,
.adventures .challenge-cards {
display: grid;
gap: 20px;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card, .trainer, .testimonial {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
transition: 0.3s;
}

.card:hover, .trainer:hover, .testimonial:hover {
transform: translateY(-5px);
box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.gallery img {
width: 100%;
border-radius: 10px;
transition: 0.3s;
}

.gallery img:hover {
transform: scale(1.05);
}

/* Forms */
form input, form textarea, form select {
width: 100%;
padding: 12px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 5px;
}

.btn {
background: #ffb347; /* Adventure accent */
color: #fff;
padding: 12px 20px;
border: none;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
transition: 0.3s;
}

.btn:hover {
background: #ff7e5f;
}

/* FOOTER */
.gym-footer {
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a, #111111);
    color: #fff;
    padding: 60px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Titles */
.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: gold;
}

/* Map Section */
.map-section iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0 15px #000;
}

/* Reach Us Wrapper */
.reach_us {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-between;
}

/* Cards */
.box3 {
    flex: 1;
    min-width: 250px;
    background: #0f0f0f;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.3s ease;
}

.box3:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

/* Hours & Contacts */
.hours-section ul,
.contact-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-section li,
.contact-section li {
    margin: 8px 0;
    opacity: 0.85;
    font-size: 15px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.icon svg {
    width: 36px;
    height: 36px;
    fill: #ffffffcc;
    transition: transform .3s ease, fill .3s ease;
}

.icon:hover svg {
    transform: scale(1.3);
    fill: gold;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
}
.footer-bottom a {
    color: gold;
    text-decoration: none;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 900px) {
    .reach_us {
        gap: 20px;
    }

    .box3 {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Phones */
@media (max-width: 600px) {

    .gym-footer {
        padding: 45px 15px;
    }

    .map-section iframe {
        height: 260px;
    }

    .icon svg {
        width: 30px;
        height: 30px;
    }

    .reach_us {
        flex-direction: column;
    }

    .box3 {
        width: 90%;
        min-width: 90%;
    }
}

/* Extra Small Phones */
@media (max-width: 400px) {
    .map-section iframe {
        height: 230px;
    }
}







/*WHATSAPP*/

















/* 
HERO VIDEO ON MOBILE DEVICES
Adjust hero height for smaller devices */
@media (max-width: 768px) {
    .hero {
        height: 60vh; /* shorter hero on mobile */
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh; /* even shorter for very small screens */
    }
}

/* Index / Adventures responsive tweaks */
.adventures .challenge-cards {
    padding: 0 10px;
}

.adventures .card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px;
    gap: 12px;
}

.adventures .card .adventure-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.adventures .card .adventure-body {
    text-align: left;
}

.adventures .card h3 {
    font-size: 1.05rem;
    margin: 0 0 6px 0;
    color: #072146;
}

.adventures .card p {
    margin: 0 0 10px 0;
    color: #33475b;
    font-size: 0.95rem;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .adventures .card .adventure-img {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .adventures .challenge-cards {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .adventures .card .adventure-img {
        height: 140px;
    }
    .adventures .card h3 { font-size: 1rem; }
    .adventures .card p { font-size: 0.92rem; }
}

/* Small polish for touch targets */
.adventures .card { cursor: pointer; }

/* Carousel arrow overlay styles */
.video-carousel, .blog-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 30;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: transform 0.18s ease, background 0.18s ease;
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-arrow:hover { transform: translateY(-50%) scale(1.06); background: rgba(0,0,0,0.6); }

/* Video card thumbnail adjustments */
.video-card { overflow: hidden; border-radius: 10px; }
.video-thumb { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 8px; }
.video-card .play-icon { position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%); background: rgba(0,0,0,0.6); color:#fff; padding:10px 12px; border-radius:50%; font-size:20px; }
.video-card p { margin: 8px 0 0 0; font-weight:700; color:#072146; }
.video-card .social-links { margin-top:8px; display:flex; gap:8px; }
.video-card .icon { padding:6px 8px; background:#f4f4f4; border-radius:6px; color:#222; text-decoration:none; font-weight:700; }
.video-card .icon:hover { transform: translateY(-2px); }

/* Subtle card animation when shown */
.video-card { opacity: 0; transform: translateY(6px); transition: opacity 280ms ease, transform 280ms ease; }
.video-card.show { opacity:1; transform: translateY(0); }

/* Blog image tweaks for responsiveness and lazy-loading */
.blog-card img.blog-img { width:100%; height:auto; max-height:320px; object-fit:cover; border-radius:10px; }


/* =========================================================
   BODYWISE HOMEPAGE - RESPONSIVE & MODERN DESIGN
   Add this at the VERY END of style.css
========================================================= */

/* -----------------------------
   GLOBAL HOMEPAGE SETTINGS
------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

section {
    width: 100%;
    padding: 60px 20px;
}

section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   MEMBERSHIP PLANS
========================================================= */

.service-cards {
    width: 100%;
    max-width: 1200px;
    margin: 25px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 0 10px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 22px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #edf0f5;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.service-card .icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #0053a6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.service-card h3 {
    margin: 0 0 12px;
    color: #072146;
    font-size: 1.35rem;
    line-height: 1.3;
}

.service-card p {
    color: #566575;
    line-height: 1.6;
    margin: 6px 0;
    font-size: 0.95rem;
}

.service-card p strong {
    color: #072146;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.plan-features li {
    position: relative;
    padding: 7px 0 7px 25px;
    color: #4c5a68;
    font-size: 0.94rem;
    line-height: 1.4;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 7px;
    color: #0053a6;
    font-weight: bold;
}


/* =========================================================
   LATEST UPDATES / VIDEO CAROUSEL
========================================================= */

.trainer {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
}

.trainer > h3 {
    color: #072146;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.video-carousel {
    width: 100%;
    position: relative;
    padding: 0 50px;
}

.video-cards {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card {
    position: relative;
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.10);
}

.video-thumb {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.video-card .play-icon {
    top: 43%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 22px;
}

.video-card p {
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 14px 0 8px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-card .icon {
    min-width: 40px;
    text-align: center;
}


/* =========================================================
   CAROUSEL ARROWS
========================================================= */

.carousel-arrow {
    width: 42px;
    height: 42px;
    background: rgba(0, 83, 166, 0.85);
}

.carousel-arrow:hover {
    background: #0053a6;
}

.carousel-arrow.prev {
    left: 5px;
}

.carousel-arrow.next {
    right: 5px;
}


/* =========================================================
   BLOG
========================================================= */

.blog-carousel {
    width: 100%;
    position: relative;
    padding: 0 50px;
}

.trainer .blog-card {
    width: 100%;
    max-width: 900px;
    margin: 20px auto 0;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(0,0,0,0.10);
}

.blog-content {
    width: 100%;
}

.blog-card img.blog-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.blog-card h4 {
    color: #072146;
    font-size: 1.45rem;
    line-height: 1.35;
    margin: 18px 0 10px;
}

.blog-card p {
    color: #596777;
    line-height: 1.65;
    font-size: 0.98rem;
    margin-bottom: 18px;
}

.blog-card a {
    display: inline-block;
    background: #0053a6;
    color: #fff;
    padding: 10px 18px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
}

.blog-card a:hover {
    background: #003d7a;
    text-decoration: none;
}


/* =========================================================
   WEEKLY CLASS SCHEDULE
========================================================= */

.week-tabs-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-bottom: 20px;
}

.week-tabs {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 5px;
    margin: 0 auto;
    min-width: max-content;
    max-width: 1200px;
}

.day-tab {
    flex: 0 0 auto;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 30px;
    color: #26384c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.day-tab:hover {
    background: #eef5fb;
}

.day-tab.active {
    background: #0053a6;
    color: #ffffff;
    border-color: #0053a6;
}

.day-table {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.day-table.show {
    display: block;
}

.class-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.class-table th {
    background: #0053a6;
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-size: 0.9rem;
}

.class-table td {
    padding: 15px;
    border-bottom: 1px solid #edf0f4;
    color: #4a5968;
    line-height: 1.5;
    vertical-align: top;
}

.class-table tr:last-child td {
    border-bottom: none;
}

.class-table tr:hover td {
    background: #f7faff;
}

.no-class {
    text-align: center;
    padding: 30px 15px;
    background: #ffffff;
    border-radius: 12px;
    color: #687686;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}


/* =========================================================
   ADVENTURES / CHALLENGES
========================================================= */

.challenge-cards {
    width: 100%;
    max-width: 1200px;
    margin: 25px auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 0 10px;
}

.adventures .card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.09);
    border: 1px solid #edf0f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.adventures .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.adventures .card .adventure-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.adventure-body {
    padding: 20px;
}

.adventure-body h3 {
    margin: 0 0 10px;
    color: #072146;
    font-size: 1.2rem;
    line-height: 1.35;
}

.adventure-body p {
    color: #5a6876;
    line-height: 1.55;
    margin: 0 0 15px;
}

.adventure-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 13px;
    color: #0053a6;
    font-weight: 600;
    font-size: 0.88rem;
}


/* =========================================================
   GALLERY FILTERS
========================================================= */

.gallery-filters {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 25px;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid #d6dde5;
    background: #ffffff;
    color: #33475b;
    padding: 9px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: #0053a6;
    color: #0053a6;
}

.filter-btn.active {
    background: #0053a6;
    color: #ffffff;
    border-color: #0053a6;
}

.gallery-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    padding: 0 10px;
}

.gallery-grid img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 1000px) {

    .service-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .challenge-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .video-thumb,
    .blog-card img.blog-img {
        height: 300px;
    }

}


/* =========================================================
   MOBILE DEVICES
========================================================= */

@media (max-width: 700px) {

    /* General */
    section {
        padding: 40px 12px;
    }

    section h2 {
        font-size: 1.65rem;
    }

    section h3 {
        font-size: 1.4rem;
    }


    /* Header */
    header {
        min-height: 70px;
        padding: 10px 15px;
        align-items: center;
    }

    .logo {
        font-size: 18px;
        gap: 7px;
    }

    .logo-img {
        width: 48px;
        height: 48px;
    }

    nav {
        margin: 0;
    }

    nav ul.nav-links {
        top: 70px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 320px;
        padding: 15px;
        gap: 0;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }

    nav ul.nav-links li {
        width: 100%;
    }

    nav ul.nav-links li a {
        display: block;
        width: 100%;
        padding: 12px 8px;
    }


    /* Hero */
    .hero {
        height: 62vh;
        min-height: 420px;
        padding: 20px 15px;
    }

    .hero-content {
        width: 100%;
        padding: 15px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .cta-btn {
        display: inline-block;
        padding: 11px 18px;
    }


    /* Membership */
    .service-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }

    .service-card {
        padding: 20px;
        border-radius: 14px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }


    /* Latest Updates */
    .trainer {
        margin: 25px auto;
    }

    .video-carousel,
    .blog-carousel {
        padding: 0;
    }

    .video-cards {
        min-height: 0;
    }

    .video-card {
        padding: 10px;
        border-radius: 12px;
    }

    .video-thumb {
        height: 210px;
        border-radius: 8px;
    }

    .video-card .play-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .video-card p {
        font-size: 0.95rem;
    }


    /* Move carousel buttons slightly outside content */
    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .carousel-arrow.prev {
        left: -5px;
    }

    .carousel-arrow.next {
        right: -5px;
    }


    /* Blog */
    .trainer .blog-card {
        padding: 12px;
        margin-top: 15px;
        border-radius: 12px;
    }

    .blog-card img.blog-img {
        height: 210px;
        object-fit: cover;
        border-radius: 9px;
    }

    .blog-card h4 {
        font-size: 1.2rem;
        margin-top: 14px;
    }

    .blog-card p {
        font-size: 0.92rem;
        line-height: 1.55;
    }


    /* Schedule */
    .week-tabs-wrapper {
        margin-left: -2px;
        margin-right: -2px;
    }

    .week-tabs {
        gap: 7px;
        padding: 4px 2px;
    }

    .day-tab {
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    /*
       Convert schedule table into mobile cards
    */
    .class-table,
    .class-table tbody,
    .class-table tr,
    .class-table td {
        display: block;
        width: 100%;
    }

    .class-table {
        background: transparent;
        box-shadow: none;
    }

    .class-table thead {
        display: none;
    }

    .class-table tr {
        background: #ffffff;
        margin-bottom: 14px;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    }

    .class-table td {
        border: none;
        padding: 8px 8px 8px 105px;
        position: relative;
        min-height: 38px;
        font-size: 0.9rem;
    }

    .class-table td::before {
        position: absolute;
        left: 8px;
        top: 8px;
        width: 90px;
        font-weight: 700;
        color: #072146;
    }

    .class-table td:nth-child(1)::before {
        content: "Class";
    }

    .class-table td:nth-child(2)::before {
        content: "Trainer";
    }

    .class-table td:nth-child(3)::before {
        content: "Time";
    }

    .class-table td:nth-child(4)::before {
        content: "Details";
    }


    /* Adventures */
    .challenge-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }

    .adventures .card {
        border-radius: 14px;
    }

    .adventures .card .adventure-img {
        height: 190px;
    }

    .adventure-body {
        padding: 16px;
    }

    .adventure-body h3 {
        font-size: 1.1rem;
    }

    .adventure-body p {
        font-size: 0.9rem;
    }

    .adventure-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }


    /* Gallery */
    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 5px 2px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0;
    }

    .gallery-grid img {
        height: 150px;
        border-radius: 8px;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    section {
        padding: 32px 10px;
    }

    .hero {
        height: 55vh;
        min-height: 380px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.88rem;
    }

    .service-card {
        padding: 17px;
    }

    .video-thumb {
        height: 180px;
    }

    .blog-card img.blog-img {
        height: 180px;
    }

    .gallery-grid img {
        height: 130px;
    }

    .class-table td {
        padding-left: 90px;
    }

    .class-table td::before {
        width: 78px;
        font-size: 0.82rem;
    }

}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .service-card:hover,
    .adventures .card:hover,
    .card:hover,
    .trainer:hover,
    .testimonial:hover {
        transform: none;
    }

    .gallery-grid img:hover {
        transform: none;
    }

    .cta-btn,
    .filter-btn,
    .day-tab,
    .carousel-arrow,
    .blog-card a {
        -webkit-tap-highlight-color: transparent;
    }
}


/* =========================================================
   LATEST UPDATES - FINAL FIX
========================================================= */

.latest-updates-section {
    width: 100%;
    padding: 55px 20px;
    background: #f5f7fa;
}

.latest-updates {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.latest-updates > h3 {
    margin: 0 0 8px;
    color: #072146;
    font-size: 30px;
    font-weight: 700;
}

.latest-updates-intro {
    max-width: 650px;
    margin: 0 auto 25px;
    color: #647383;
    line-height: 1.6;
}


/* CAROUSEL */

.latest-updates .video-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 45px;
}


/* CARD CONTAINER */

.latest-updates .video-cards {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* CARD */

.latest-updates .video-card {
    position: relative;
    display: none;
    width: 100%;
    max-width: 780px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(10px);
}


/*
 * IMPORTANT:
 * Only the active card is displayed.
 */
.latest-updates .video-card.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* MEDIA */

.latest-updates .video-media {
    position: relative;
    width: 100%;
    background: #111;
    overflow: hidden;
}


.latest-updates .video-thumb {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #111;
}


/* PLAY BUTTON */

.latest-updates .play-icon {
    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    font-size: 25px;

    pointer-events: none;

    box-shadow: 0 5px 20px rgba(0,0,0,0.35);
}


/* CONTENT */

.latest-updates .video-card-content {
    padding: 18px 20px 20px;
    text-align: left;
}


.latest-updates .video-card-content h4 {
    margin: 0 0 13px;

    color: #072146;

    font-size: 20px;

    line-height: 1.4;
}


/* SOCIAL LINKS */

.latest-updates .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.latest-updates .social-links .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 11px;

    border-radius: 7px;

    background: #f1f4f7;

    color: #25384c;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: 0.25s ease;
}


.latest-updates .social-links .icon:hover {
    transform: translateY(-2px);
    background: #0053a6;
    color: #fff;
}


/* ARROWS */

.latest-updates .carousel-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 20;

    width: 44px;
    height: 44px;

    border: none;

    border-radius: 50%;

    background: #0053a6;

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(0,0,0,0.20);

    transition: 0.25s ease;
}


.latest-updates .carousel-arrow:hover {
    background: #003d7a;
    transform: translateY(-50%) scale(1.06);
}


.latest-updates .carousel-arrow.prev {
    left: 0;
}


.latest-updates .carousel-arrow.next {
    right: 0;
}


/* EMPTY STATE */

.no-updates {
    background: #fff;
    max-width: 700px;
    margin: 20px auto;
    padding: 40px 20px;
    border-radius: 14px;
    color: #687686;
    box-shadow: 0 5px 18px rgba(0,0,0,0.07);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .latest-updates-section {
        padding: 40px 10px;
    }

    .latest-updates > h3 {
        font-size: 24px;
    }

    .latest-updates-intro {
        font-size: 14px;
        padding: 0 10px;
    }

    .latest-updates .video-carousel {
        padding: 0 30px;
    }

    .latest-updates .video-cards {
        min-height: 0;
    }

    .latest-updates .video-card {
        border-radius: 12px;
    }

    .latest-updates .video-thumb {
        height: 220px;
        object-fit: cover;
    }

    .latest-updates .play-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .latest-updates .video-card-content {
        padding: 14px;
    }

    .latest-updates .video-card-content h4 {
        font-size: 17px;
    }

    .latest-updates .social-links {
        gap: 6px;
    }

    .latest-updates .social-links .icon {
        padding: 6px 9px;
        font-size: 12px;
    }

    .latest-updates .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }

    .latest-updates .carousel-arrow.prev {
        left: -2px;
    }

    .latest-updates .carousel-arrow.next {
        right: -2px;
    }
}


/* SMALL PHONES */

@media (max-width: 400px) {

    .latest-updates .video-carousel {
        padding: 0 25px;
    }

    .latest-updates .video-thumb {
        height: 190px;
    }

    .latest-updates .video-card-content h4 {
        font-size: 16px;
    }

}