/* ==========================================================================
   JSJ Karate Academy International - Custom CSS
   ========================================================================== */

/* Ordinal suffix (e.g. 7th) – smaller superscript, tight to the number */
sup {
    font-family: var(--font-body);
    font-size: 0.5em;
    font-weight: 700;
    text-transform: lowercase;
    vertical-align: super;
    line-height: 0;
    white-space: nowrap;
}

:root {
    /* Brand Colors */
    --primary: #f0070a;          /* Karate Red */
    --primary-dark: #b30507;
    --primary-light: #ff3a3d;
    --secondary: #0a0a0a;        /* Black */
    --dark: #1a1a1a;
    --dark-2: #222;
    --gold: #d4af37;
    --gold-light: #f5d04a;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --text: #2a2a2a;

    /* Gradients */
    --grad-red: linear-gradient(135deg, #f0070a 0%, #b30507 100%);
    --grad-dark: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    --grad-gold: linear-gradient(135deg, #d4af37 0%, #f5d04a 100%);
    --grad-hero: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(240,7,10,0.65) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 25px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.18);
    --shadow-red: 0 10px 30px rgba(240,7,10,0.35);
    --shadow-on-red: 0 1px 2px rgba(0,0,0,0.35), 0 0 1px rgba(0,0,0,0.25);

    /* Typography */
    --font-heading: 'Bebas Neue', 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing (8px grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 80px;
    --space-9: 96px;

    /* Transitions */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--secondary);
    line-height: 1.2;
}

p { margin-bottom: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

::selection { background: var(--primary); color: white; }

/* Helper Classes */
.text-gradient {
    background: var(--grad-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary) !important; }
.bg-dark-section { background: var(--secondary); color: white; }
.bg-gradient-red { background: var(--grad-red); color: white; text-shadow: var(--shadow-on-red); }

/* Section Padding */
section { position: relative; }
.section-padding { padding: var(--space-9) 0; }
@media (max-width: 768px) {
    .section-padding { padding: var(--space-7) 0; }
}

/* Section Heading */
.section-heading {
    text-align: center;
    margin-bottom: var(--space-6);
}
.section-heading .sub-title {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    margin-bottom: 12px;
    position: relative;
    padding: 0 30px;
}
.section-heading .sub-title::before,
.section-heading .sub-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--primary);
}
.section-heading .sub-title::before { left: 0; }
.section-heading .sub-title::after { right: 0; }

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
}
.section-heading p {
    color: var(--gray);
    max-width: 720px;
    margin: 0 auto;
}
.section-heading.heading-light h2,
.section-heading.heading-light .sub-title { color: white; }
.section-heading.heading-light p { color: rgba(255,255,255,0.85); }

/* Buttons */
.btn {
    padding: 12px 32px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-lg { padding: 16px 40px; font-size: 15px; }

.btn-primary {
    background: var(--grad-red);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-red);
    text-shadow: var(--shadow-on-red);
}
.btn-primary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    text-shadow: none;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: var(--secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}
.btn-primary:hover::before { width: 400px; height: 400px; }

.btn-outline-light {
    border-color: rgba(255,255,255,0.6);
    color: white;
    background: transparent;
}
.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-3px);
}

.btn-outline-dark {
    border-color: var(--secondary);
    color: var(--secondary);
    background: transparent;
}
.btn-outline-dark:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.btn i { margin-right: 6px; }

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
    position: fixed; inset: 0;
    background: var(--secondary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.loader-wrap { text-align: center; }
.loader-logo {
    width: 100px;
    margin-bottom: 25px;
    animation: pulse 1.4s ease infinite;
}
.loader-bar {
    width: 200px; height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
}
.loader-bar span {
    display: block; height: 100%;
    background: var(--grad-red);
    animation: loaderSlide 1.4s ease infinite;
}
@keyframes loaderSlide {
    0% { width: 0; margin-left: 0; }
    50% { width: 70%; margin-left: 15%; }
    100% { width: 0; margin-left: 100%; }
}
@keyframes pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
    background: var(--secondary);
    color: rgba(255,255,255,0.85);
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar i { color: var(--primary); margin-right: 6px; }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--primary); }
.topbar-right a { margin-left: 12px; font-size: 15px; }
.topbar-call { font-weight: 600; }

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.site-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: var(--transition);
}
.site-header.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-md);
}
.navbar { padding: 10px 0; }
.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
}
.navbar-brand img {
    height: 52px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    transition: var(--transition);
}
.site-header.scrolled .navbar-brand img { height: 44px; }

.navbar-nav .nav-link {
    color: var(--secondary);
    font-weight: 500;
    font-size: 14.5px;
    padding: 8px 14px !important;
    position: relative;
    transition: var(--transition-fast);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s, left 0.3s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 20px;
    left: calc(50% - 10px);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary); }

.btn-join {
    padding: 10px 22px !important;
    font-size: 13px !important;
}

/* Desktop dropdown */
.navbar-nav .nav-item.dropdown .dropdown-toggle::after {
    margin-left: 4px;
    vertical-align: 2px;
    border-top-width: 5px;
}
.site-dropdown {
    border: none;
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px !important;
    box-shadow: var(--shadow-md);
    min-width: 220px;
    border-top: 3px solid var(--primary);
    animation: dropdownFade 0.25s ease;
}
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.site-dropdown .dropdown-item {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-dropdown .dropdown-item i {
    color: var(--primary);
    font-size: 16px;
    width: 20px;
}
.site-dropdown .dropdown-item:hover,
.site-dropdown .dropdown-item.active {
    background: rgba(240,7,10,0.08);
    color: var(--primary);
}
.site-dropdown .dropdown-item.active { font-weight: 600; }

.navbar-toggler {
    border: none;
    color: var(--primary);
    font-size: 28px;
    padding: 4px 10px;
    background: transparent;
}
.navbar-toggler:focus { box-shadow: none; }

/* Mobile Offcanvas */
.mobile-offcanvas { width: 320px !important; background: var(--secondary); color: white; }
.mobile-offcanvas .btn-close { filter: invert(1); }
.mobile-offcanvas .navbar-brand img.mobile-brand-logo {
    height: 42px;
    width: auto;
    max-width: 200px;
    background: white;
    padding: 6px 10px;
    border-radius: 8px;
    object-fit: contain;
}
.mobile-nav { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a {
    display: block;
    padding: 14px 8px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    transition: var(--transition-fast);
}
.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--primary);
    padding-left: 16px;
}
.mobile-nav-has-sub > .mobile-nav-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav-has-sub > .mobile-nav-toggle i {
    transition: transform 0.3s;
    font-size: 14px;
}
.mobile-nav-has-sub.open > .mobile-nav-toggle i { transform: rotate(180deg); }
.mobile-nav-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}
.mobile-nav-has-sub.open > .mobile-nav-sub { max-height: 300px; }
.mobile-nav-sub li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-nav-sub li:last-child { border-bottom: none; }
.mobile-nav-sub a {
    padding: 12px 8px 12px 24px !important;
    font-size: 13.5px;
    color: rgba(255,255,255,0.75);
}
.mobile-nav-sub a::before {
    content: '\F285';
    font-family: 'bootstrap-icons';
    margin-right: 8px;
    color: var(--primary);
    font-size: 11px;
}
.mobile-nav-sub a:hover, .mobile-nav-sub a.active { padding-left: 30px !important; }
.mobile-contact p { margin-bottom: 8px; color: rgba(255,255,255,0.85); font-size: 14px; }
.mobile-contact i { color: var(--primary); margin-right: 8px; }
.mobile-contact a { color: rgba(255,255,255,0.85); }
.mobile-socials { display: flex; gap: 10px; margin-top: 16px; }
.mobile-socials a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: white;
    font-size: 15px;
    transition: var(--transition-fast);
}
.mobile-socials a:hover { background: var(--primary); transform: translateY(-3px); }

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider { position: relative; }
.heroSwiper { height: 100vh; min-height: 600px; max-height: 850px; }
.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(240,7,10,0.15) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 760px;
    padding: 40px 0;
}
.hero-tag {
    display: inline-block;
    background: rgba(240,7,10,0.85);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    animation: fadeInDown 1s;
    text-shadow: var(--shadow-on-red);
}
.hero-heading {
    font-family: var(--font-heading);
    color: white;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: 2px;
    margin-bottom: 20px;
    animation: fadeInUp 1s 0.2s both;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.hero-content .text-gradient {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #f0070a;
    color: #f0070a;
    text-shadow: 0 2px 6px rgba(0,0,0,0.55);
}
.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    margin-bottom: 32px;
    color: rgba(255,255,255,0.92);
    animation: fadeInUp 1s 0.4s both;
    max-width: 620px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 1s 0.6s both;
}
.hero-stats {
    margin-top: 56px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s 0.8s both;
}
.hero-stats .stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stats .stat span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.8);
}

.heroSwiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 12px; height: 12px;
}
.heroSwiper .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
    width: 32px;
    border-radius: 6px;
}
.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next {
    color: white;
    width: 50px; height: 50px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    transition: var(--transition);
}
.heroSwiper .swiper-button-prev:hover,
.heroSwiper .swiper-button-next:hover {
    background: var(--primary);
}
.heroSwiper .swiper-button-prev::after,
.heroSwiper .swiper-button-next::after { font-size: 18px; font-weight: 700; }

.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.85;
}
.hero-scroll-indicator span {
    width: 24px; height: 38px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}
.hero-scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollDown 1.6s ease infinite;
}
@keyframes scrollDown {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 14px); opacity: 0; }
}

@media (max-width: 768px) {
    .heroSwiper { height: 90vh; min-height: 540px; }
    .hero-stats { gap: 24px; margin-top: 36px; }
    .hero-stats .stat strong { font-size: 2rem; }
    .heroSwiper .swiper-button-prev, .heroSwiper .swiper-button-next { display: none; }
}

/* ==========================================================================
   Page Title (Inner pages)
   ========================================================================== */
.page-title-section {
    padding: 140px 0 90px;
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    color: white;
}
.page-title-overlay-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 25% 50%, rgba(240,7,10,0.18), transparent 50%);
    pointer-events: none;
}
.page-title-heading {
    font-family: var(--font-heading);
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.page-title-sub {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto 20px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,0.85); }
.breadcrumb-item a:hover { color: var(--primary-light); }
.breadcrumb-item.active { color: var(--primary-light); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Welcome / About Preview
   ========================================================================== */
.about-preview { padding: var(--space-4) 0 var(--space-9); }
.about-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
    width: 100%;
    transition: transform 0.6s;
}
.about-img-wrap:hover img { transform: scale(1.05); }
.about-img-wrap img.about-img-floating {
    position: absolute;
    bottom: 16px; right: 16px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 6px solid white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s;
}
.about-img-wrap:hover img.about-img-floating { transform: none; }
.about-experience-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--grad-red);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-red);
}
.about-experience-badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    line-height: 1;
}
.about-experience-badge span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

.about-content h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.about-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.about-features i {
    color: var(--primary);
    background: rgba(240,7,10,0.1);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
}
@media (max-width: 576px) { .about-features { grid-template-columns: 1fr; } }

/* ==========================================================================
   Master Preview (Home Page)
   ========================================================================== */
.master-preview {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 60%, #2a0608 100%);
    color: white;
    overflow: hidden;
}
.master-preview-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(240,7,10,0.22), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(240,7,10,0.14), transparent 50%);
    pointer-events: none;
}
.master-preview h2 { color: white; font-size: clamp(2rem, 4vw, 3rem); }
.master-preview .master-highlights { padding: 0; list-style: none; }
.master-preview .master-highlights li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
}
.master-preview .master-highlights i { color: var(--primary-light); font-size: 20px; }

.master-preview-imgs {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 1 / 1.05;
}
.master-preview-main {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background:
        radial-gradient(circle at center 70%, rgba(240,7,10,0.55) 0%, rgba(240,7,10,0.15) 50%, transparent 75%),
        linear-gradient(160deg, rgba(255,255,255,0.05), rgba(0,0,0,0.5));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 0 60px rgba(240,7,10,0.15);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.master-preview-main img {
    height: 96%;
    width: auto;
    max-width: 95%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    transition: transform 0.6s;
}
.master-preview-imgs:hover .master-preview-main img { transform: translateY(-6px) scale(1.02); }

.master-preview-float {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 0 6px rgba(255,255,255,0.08);
    background: var(--dark);
    z-index: 2;
}
.master-preview-float img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.master-preview-badge {
    position: absolute;
    top: 20px;
    left: -10px;
    background: var(--grad-gold);
    color: var(--secondary);
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 3;
}
.master-preview-badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
}
.master-preview-badge span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .master-preview-imgs { max-width: 380px; }
    .master-preview-float { width: 130px; height: 130px; }
}
@media (max-width: 576px) {
    .master-preview-imgs { max-width: 320px; aspect-ratio: 1 / 1.1; }
    .master-preview-float { width: 110px; height: 110px; bottom: -5px; right: -5px; }
    .master-preview-badge { padding: 10px 14px; }
    .master-preview-badge strong { font-size: 1.5rem; }
}

/* ==========================================================================
   Yoga Logo Treatments
   ========================================================================== */
.yoga-heading { position: relative; }
.yoga-heading .yoga-logo {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 auto 18px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
    animation: yogaFloat 4s ease-in-out infinite;
}
@keyframes yogaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.service-icon-img {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
}
.service-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.service-card:hover .service-icon-img {
    transform: rotateY(360deg) scale(1.1);
}
@media (max-width: 576px) {
    .yoga-heading .yoga-logo { width: 90px; margin-bottom: 14px; }
}

/* ==========================================================================
   Instructors Grid
   ========================================================================== */
.instructors-section { background: var(--light); }
.instructor-card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
}
.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(240,7,10,0.15);
}
.instructor-img-wrap {
    position: relative;
    aspect-ratio: 3 / 5;
    overflow: hidden;
    background: var(--gray-light);
}
.instructor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}
.instructor-card:hover .instructor-img-wrap img { transform: scale(1.06); }
.instructor-zoom {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.3s ease;
}
.instructor-card:hover .instructor-zoom {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   Service / Program Cards
   ========================================================================== */
.services-section { background: var(--light); padding: var(--space-9) 0; position: relative; }
.service-card {
    background: white;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid transparent;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--grad-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(240,7,10,0.1);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--grad-red);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-red);
    text-shadow: var(--shadow-on-red);
}
.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.1);
}
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
.service-card p { color: var(--gray); margin-bottom: 16px; }
.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.service-link i { transition: transform 0.3s; }
.service-link:hover i { transform: translateX(5px); }

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-section {
    background: var(--secondary);
    color: white;
    position: relative;
    overflow: hidden;
    padding: var(--space-9) 0;
}
.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../images/karate-students (3).jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}
.why-section .section-heading h2 { color: white; }
.why-card {
    padding: 24px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    height: 100%;
    transition: var(--transition);
}
.why-card:hover {
    background: rgba(240,7,10,0.15);
    border-color: var(--primary);
    transform: translateY(-5px);
}
.why-icon {
    width: 60px; height: 60px;
    border-radius: 12px;
    background: var(--grad-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    margin-bottom: 18px;
    text-shadow: var(--shadow-on-red);
}
.why-card h4 { color: white; font-size: 1.2rem; margin-bottom: 10px; font-family: var(--font-heading); letter-spacing: 1px; }
.why-card p { color: rgba(255,255,255,0.78); font-size: 14.5px; margin: 0; }

/* ==========================================================================
   Counter / Achievement Stats
   ========================================================================== */
.counter-section {
    background: var(--grad-red);
    color: white;
    padding: var(--space-7) 0;
    position: relative;
    overflow: hidden;
    text-shadow: var(--shadow-on-red);
}
.counter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../images/master best movements (2).jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
}
.counter-box { text-align: center; position: relative; }
.counter-box i {
    font-size: 44px;
    margin-bottom: 12px;
    color: white;
    opacity: 0.95;
}
.counter-num {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: 2px;
    color: white;
}
.counter-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.9);
    margin-top: 8px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-section { padding: var(--space-9) 0; }
.gallery-filter {
    text-align: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.gallery-filter button {
    background: transparent;
    border: 2px solid var(--gray-light);
    color: var(--text);
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}
.gallery-filter button:hover,
.gallery-filter button.active {
    background: var(--grad-red);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
/* Master's Journey: portrait images of the master — anchor to top so face stays visible */
.master-journey-grid { grid-template-columns: repeat(4, 1fr); }
.master-journey-grid .gallery-item { aspect-ratio: 3 / 4; }
.master-journey-grid .gallery-item img { object-position: center 15%; }
@media (max-width: 991px) {
    .master-journey-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .master-journey-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(240,7,10,0.7) 0%, rgba(0,0,0,0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}
.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.4s;
    color: white;
}
.gallery-item .gallery-overlay i {
    font-size: 32px;
    background: rgba(255,255,255,0.15);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 2px solid white;
}
.gallery-item:hover img { transform: scale(1.15); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-section {
    background: var(--light);
    padding: var(--space-9) 0;
    position: relative;
}
.testimonial-card {
    background: white;
    padding: 36px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 100%;
    transition: var(--transition);
    border-top: 4px solid transparent;
}
.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-top-color: var(--primary);
}
.testimonial-card .quote-icon {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 52px;
    color: rgba(240,7,10,0.15);
    line-height: 1;
}
.testimonial-stars { color: var(--gold); margin-bottom: 12px; }
.testimonial-stars i { margin-right: 2px; }
.testimonial-text {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.7;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author .author-img {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--grad-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}
.testimonial-author h5 { margin: 0; font-size: 16px; font-family: var(--font-body); font-weight: 700; }
.testimonial-author span { font-size: 13px; color: var(--gray); }

/* ==========================================================================
   Achievements (cards)
   ========================================================================== */
.achievement-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}
.achievement-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.achievement-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.achievement-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.achievement-card:hover .achievement-img img { transform: scale(1.1); }
.achievement-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--grad-gold);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}
.achievement-cat {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--grad-red);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: var(--shadow-on-red);
}
.achievement-body { padding: 24px; }
.achievement-body h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
.achievement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}
.achievement-meta i { color: var(--primary); margin-right: 4px; }
.achievement-body p { font-size: 14px; color: var(--gray); margin-bottom: 0; }

/* ==========================================================================
   Master Profile
   ========================================================================== */
.master-profile {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark-2) 100%);
    color: white;
    padding: var(--space-9) 0;
    position: relative;
    overflow: hidden;
}
.master-profile::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: var(--grad-red);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}
.master-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--primary);
}
.master-img-wrap img { width: 100%; display: block; }
.master-badge {
    position: absolute;
    bottom: 20px; right: 20px;
    background: var(--grad-gold);
    color: var(--secondary);
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.master-badge strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; line-height: 1; }
.master-badge span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

.master-info h2 { color: white; font-size: clamp(2rem, 4vw, 3rem); }
.master-info .role {
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}
.master-info p { color: rgba(255,255,255,0.85); }
.master-highlights {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.master-highlights li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 12px;
}
.master-highlights i { color: var(--primary-light); font-size: 20px; }

.master-quote {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(240,7,10,0.1));
    border-left: 4px solid var(--primary);
    padding: 30px;
    border-radius: 12px;
    margin-top: 32px;
    font-style: italic;
    font-size: 1.1rem;
    color: white;
    position: relative;
}
.master-quote::before {
    content: '"';
    position: absolute;
    top: -10px; left: 16px;
    font-size: 80px;
    color: var(--primary);
    font-family: serif;
    opacity: 0.4;
    line-height: 1;
}

/* ==========================================================================
   Founder Highlight Box (Master Page)
   ========================================================================== */
.founder-highlight-section { background: var(--light); }
.founder-highlight-box {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 48px 48px;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--primary);
    overflow: hidden;
}
.founder-highlight-box::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(240,7,10,0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(40%, -40%);
    pointer-events: none;
}
.founder-highlight-badge {
    position: relative;
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    background: var(--grad-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    box-shadow: var(--shadow-red);
    text-shadow: var(--shadow-on-red);
    z-index: 2;
}
.founder-highlight-badge i { line-height: 1; }
.founder-highlight-head {
    text-align: center;
    margin: 0 0 32px;
    position: relative;
}
.founder-eyebrow {
    display: inline-block;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 10px;
}
.founder-highlight-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: 1.5px;
    margin: 0 0 6px;
}
.founder-role {
    color: var(--gray);
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
    letter-spacing: 0.5px;
}
.founder-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    position: relative;
}
.founder-highlight-list li {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(240,7,10,0.04), rgba(0,0,0,0.02));
    border-radius: 12px;
    font-size: 15.5px;
    color: var(--text);
    font-weight: 500;
    border-left: 3px solid var(--primary);
    transition: var(--transition-fast);
}
.founder-highlight-list li:hover {
    background: linear-gradient(135deg, rgba(240,7,10,0.08), rgba(0,0,0,0.04));
    transform: translateX(4px);
}
.founder-highlight-list i {
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.3;
}
@media (max-width: 576px) {
    .founder-highlight-box { padding: 48px 24px; border-radius: 16px; }
    .founder-highlight-list li { padding: 14px 16px; font-size: 14.5px; }
}

/* ==========================================================================
   Classes / Programs Detail
   ========================================================================== */
.class-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.class-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.class-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}
.class-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 22%;
    transition: transform 0.6s;
}
.class-img.portrait img { object-position: center 15%; }
.class-card:hover .class-img img { transform: scale(1.1); }
.class-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
}
.class-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.class-tag {
    display: inline-block;
    background: rgba(240,7,10,0.08);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    width: fit-content;
}
.class-body h3 { font-size: 1.4rem; margin-bottom: 12px; font-family: var(--font-heading); letter-spacing: 1px; }
.class-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0 16px;
    font-size: 13px;
    color: var(--gray);
}
.class-meta i { color: var(--primary); margin-right: 4px; }
.class-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex: 1;
}
.class-features li {
    padding: 5px 0 5px 26px;
    position: relative;
    font-size: 14.5px;
    color: var(--text);
}
.class-features li::before {
    content: '\F26B';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-section { padding: var(--space-9) 0; }
.contact-info-card {
    background: var(--grad-red);
    color: white;
    padding: 40px 32px;
    border-radius: 20px;
    height: 100%;
    box-shadow: var(--shadow-red);
    position: relative;
    overflow: hidden;
    text-shadow: var(--shadow-on-red);
}
.contact-info-card::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.contact-info-card h3 { color: white; margin-bottom: 24px; }
.contact-info-list { list-style: none; padding: 0; margin: 0; position: relative; }
.contact-info-list li {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list .ci-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.contact-info-list h6 { color: white; font-family: var(--font-body); font-weight: 600; margin: 0 0 4px; font-size: 14px; }
.contact-info-list p, .contact-info-list a {
    color: rgba(255,255,255,0.92);
    font-size: 15px;
    margin: 0;
}
.contact-info-list a:hover { color: white; }

.contact-form-card {
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}
.contact-form-card h3 { margin-bottom: 24px; }
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 10px;
    padding: 14px 18px;
    border: 1.5px solid var(--gray-light);
    font-size: 15px;
    transition: var(--transition-fast);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(240,7,10,0.1);
}
.contact-form .form-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; }

.map-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0a0a0a; color: rgba(255,255,255,0.75); }

.footer-cta {
    background: var(--secondary);
    padding: 40px 0;
}
.cta-box {
    background: var(--grad-red);
    color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-red);
    position: relative;
    overflow: hidden;
    text-shadow: var(--shadow-on-red);
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.cta-box h2 { color: white; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-box p { color: rgba(255,255,255,0.9); }

.footer-main { padding: 60px 0 40px; }
.footer-brand { display: block; margin-bottom: 18px; }
.footer-brand img {
    height: 64px;
    width: auto;
    max-width: 280px;
    background: white;
    padding: 10px 14px;
    border-radius: 10px;
    object-fit: contain;
}
@media (max-width: 576px) {
    .footer-brand img { height: 54px; max-width: 240px; }
}

.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.footer-socials a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 2px;
    background: var(--primary);
}

.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14.5px;
    transition: var(--transition-fast);
    display: inline-block;
}
.footer-links a:hover { color: var(--primary-light); padding-left: 6px; }

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14.5px;
}
.footer-contact i { color: var(--primary); margin-top: 4px; }
.footer-contact a { color: rgba(255,255,255,0.75); }
.footer-contact a:hover { color: white; }

.footer-bottom {
    background: #050505;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}
.footer-bottom a { color: var(--primary-light); font-weight: 600; }
.footer-bottom a:hover { color: white; }

/* ==========================================================================
   Floating Elements
   ========================================================================== */
.float-whatsapp, .float-call {
    position: fixed;
    z-index: 999;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
}
.float-whatsapp {
    background: #25D366;
    bottom: 24px; right: 24px;
    animation: pulseRing 2s infinite;
}
.float-call {
    background: var(--primary);
    bottom: 92px; right: 24px;
    text-shadow: var(--shadow-on-red);
}
.float-whatsapp:hover, .float-call:hover {
    transform: scale(1.1);
    color: white;
}
.float-tooltip {
    position: absolute;
    right: 70px;
    background: var(--secondary);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.float-whatsapp:hover .float-tooltip { opacity: 1; }
@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.back-to-top {
    position: fixed;
    bottom: 24px; left: 24px;
    width: 46px; height: 46px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--primary); transform: translateY(-4px); }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .navbar-brand img { height: 58px; max-width: 240px; }
    .site-header.scrolled .navbar-brand img { height: 52px; max-width: 220px; }
    .about-img-floating { display: none; }
}
@media (max-width: 576px) {
    .navbar { padding: 10px 0; }
    .navbar-brand img { height: 52px; max-width: 215px; }
    .site-header.scrolled .navbar-brand img { height: 46px; max-width: 200px; }
    .navbar-toggler { font-size: 26px; padding: 2px 8px; }
}
@media (max-width: 380px) {
    .navbar-brand img { height: 46px; max-width: 185px; }
    .site-header.scrolled .navbar-brand img { height: 42px; max-width: 170px; }
}
@media (max-width: 768px) {
    .page-title-section { padding: 100px 0 70px; }
    .cta-box { padding: 28px 20px; text-align: center; }
    .float-whatsapp, .float-call { width: 50px; height: 50px; font-size: 22px; }
    .back-to-top { width: 42px; height: 42px; }
    .hero-stats { gap: 18px; }
}

/* ==========================================================================
   Branches Page
   ========================================================================== */
.branch-contact-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    background: var(--grad-dark);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.branch-contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(240,7,10,0.25), transparent 55%);
    pointer-events: none;
}
.branch-contact-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--grad-red);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 30px;
    box-shadow: var(--shadow-red);
}
.branch-contact-info { flex: 1 1 220px; }
.branch-contact-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 4px;
}
.branch-contact-info h4 {
    color: #fff;
    margin: 0 0 4px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 1.7rem;
}
.branch-contact-info p { color: rgba(255,255,255,0.7); margin: 0; font-size: 14.5px; }
.branch-contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}
.branch-contact-actions .btn-outline-primary {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.branch-contact-actions .btn-outline-primary:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.branch-card {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gray-light);
    border-radius: 14px;
    padding: 18px 18px 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
}
.branch-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--grad-red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .3s ease;
}
.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.branch-card:hover::before { transform: scaleY(1); }
.branch-num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(240,7,10,0.08);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    display: grid;
    place-items: center;
    margin-right: 14px;
    transition: background .3s ease, color .3s ease;
}
.branch-card:hover .branch-num { background: var(--grad-red); color: #fff; }
.branch-card-body {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.branch-card-body i { color: var(--primary); font-size: 16px; flex: 0 0 auto; }
.branch-name {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.3;
}

@media (max-width: 575px) {
    .branch-contact-card { padding: 22px; }
    .branch-contact-actions { width: 100%; }
    .branch-contact-actions .btn { flex: 1 1 auto; }
}

/* Home – Japan Shito-Ryu emblem beside the About sub-title */
.about-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.about-affiliation-logo {
    width: 84px;
    height: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.15));
}
@media (max-width: 575px) {
    .about-affiliation-logo { width: 66px; }
}

/* Home – JSJ Karate Academy emblem above a section heading */
.section-brand-logo {
    display: block;
    width: 90px;
    height: auto;
    margin: 0 auto 16px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.25));
}
