:root {
    --primary-color: #68963c;
    --secondary-color: #963c72;
    --accent-color: #006d77;
    --text-color: #333;
    --background-color: #f8f8f8;
    --button-color: #d62828;
    --hover-color: #5a2e7a;
}

/* GLOBAL ELEMENTS */
body {
    background: var(--background-color);
    color: var(--text-color);
    margin: 0; /* remove default browser margin */
}
h1, h2, h3 {
    color: var(--primary-color);
}
a {
    color: var(--button-color);
    text-decoration: none;
    font-weight: bold;
}
a:hover,
a:focus {
    color: var(--hover-color);
    text-decoration: underline;

}
:focus {
    outline: 3px solid #FFA500; /* or another brand-friendly, highly visible color */
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* TOP BAR */
.top-bar {
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 0.9rem;
}
.top-bar .phone-link {
    margin-right: 1rem;
    color: #fff;
    text-decoration: none;
}
.top-bar .phone-link:hover {
    text-decoration: underline;
}

/* HERO SECTION */
.hero-section {
    background: url('https://senseisandy.com/assets/images/hero.jpg') no-repeat center center/cover;
    position: relative;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(104, 150, 60, 0.59);
}
.hero-content {
    position: relative;
    z-index: 1;
    color: #000;
    text-align: center;
}

/* BUTTONS */

.btn {
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--button-color);
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    padding: 12px 20px;
    text-transform: uppercase;
    border: none;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--hover-color);
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* TESTIMONIALS */
.testimonials-section {
    background-color: #f8f9fa;
}
.testimonial {
    color: var(--text-color);
    font-style: italic;
}

/* GALLERY */
.gallery-grid img {
    border-radius: 0.25rem;
    transition: transform 0.3s;
}
.gallery-grid img:hover {
    transform: scale(1.05);
}

/* JOIN SECTION */
.join-club-section {
    background: url('https://senseisandy.com/assets/images/join.jpg') no-repeat center center/cover;
    position: relative;
    min-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #000;
}
.join-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(104, 150, 60, 0.59);
}
.join-content {
    position: relative;
    z-index: 1;
}

/* FOOTER */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem 0;
}
.site-footer a {
    color: #fff;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* PROGRESS BAR */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--primary-color);
    z-index: 9999;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.modal-content {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    max-width: 500px;
    margin: 1rem;
    position: relative;
}
.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}
.close-btn:hover {
    color: #000;
}

/* SKIP LINK */
.skip-link {
    position: absolute;
    left: 0;
    top: -40px;
    background: var(--primary-color);
    color: #000;
    padding: 8px;
    z-index: 100;
}
.skip-link:focus {
    top: 0;
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    border: none;
    background-color: var(--button-color);
    color: #fff;
}

/* EMAIL / EXIT POPUP */
.email-capture {
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}
.email-capture input {
    width: 60%;
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.email-capture button {
    padding: 10px;
    border-radius: 5px;
    background: var(--button-color);
    color: white;
    font-weight: bold;
    border: none;
}
.email-capture button:hover {
    background: var(--hover-color);
}

.exit-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.exit-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 400px;
    max-width: 90%;
}
.exit-popup h2 {
    color: var(--primary-color);
}
.exit-popup input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.exit-popup button {
    background: var(--button-color);
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
}
.exit-popup button:hover {
    background: var(--hover-color);
}
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* VIDEO WRAPPER */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* SCHEDULE */
.schedule-details {
    background: #fff;
    color: var(--text-color);
    padding: 10px;
    border-radius: 5px;
}

/* STICKY CTA BUTTON */
.sticky-cta {
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 999;
    font-weight: bold;
}

.sticky-cta, .hero-content .btn, .email-capture button, .exit-popup button {
    width: auto;
    min-width: 200px; /* consistent minimum width */
}

/* Darken the overlay for both hero and join sections */
.hero-section .hero-overlay,
.join-club-section .join-overlay {
    background-color: rgba(0, 0, 0, 0.55); /* Increase the 0.55 for a darker overlay */
}

/* Make the heading & paragraph text white + a subtle text shadow */
.hero-section .hero-content h2,
.hero-section .hero-content p,
.join-club-section .join-content h2,
.join-club-section .join-content p,
.modal-content h2,
.modal-content p ,
.close-btn {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* Strengthen as needed */
}

.modal-content {
    background-color: #963c72; /* or a darker shade for more contrast */
    color: #fff;              /* ensures bright text on a dark background */
}
.map-container {
    /* Allows full width on smaller screens and up to 800px on larger ones */
    width: 100%;
    max-width: 800px;

    /* Centers the map container horizontally when there's extra space */
    margin: 0 auto;

    /* Optional: centers any inline elements or text within the container */
    text-align: center;
}

.map {
    /* Makes the iframe behave like a block element, so auto margins apply */
    display: block;

    /* Fill the containerâ€™s width, preserving a 450px height */
    width: 100%;
    height: 450px;

    /* Removes the default iframe border */
    border: 0;
}
@media (prefers-reduced-motion: reduce) {
    /* Limit or disable animations / transitions here */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Ensure the Header is Centered */
.site-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Center Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 0;
    width: 100%;
}

/* Ensure Navbar is Centered */
.navbar {
    width: 100%;
    max-width: 1200px; /* Adjust width to match main content */
    display: flex;
    justify-content: center;
    padding: 10px 15px;
}

/* Ensure Navbar Content is Centered */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px; /* Adjust width to match main content */
    width: 100%;
}

/* Center the Logo */
.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Center Navigation Links */
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Ensure CTA Button is Aligned */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-weight: bold;
}

/* Center Footer Content */
.site-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem 0;
}

/* Center Footer Container */
.site-footer .container {
    max-width: 1100px; /* Match main content width */
    width: 100%;
    text-align: center;
}

/* Center Footer Columns */
.site-footer .row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Footer Contact Section */
.footer-contact {
    text-align: center;
}

/* Footer Links */
.footer-contact a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Make top bar content centered */
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 5px 0;
}

/* Center the phone number */
.top-bar .phone-link {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Stack header elements vertically */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
    background: white;
}

/* Center the logo */
.site-header .logo {
    margin-bottom: 10px; /* Adds spacing between logo and navbar */
}

/* Center navbar */
.navbar {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Ensure navbar items are centered */
.navbar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Center navbar links */
.navbar-nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Center CTA Button */
.nav-item .btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/* ðŸ“Œ Center the Top Bar */
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 8px 0; /* Slightly increased padding for spacing */
    text-align: center;
}

/* Center the phone number */
.top-bar .phone-link {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* ðŸ“Œ Make "LET'S DO IT!" button same size as "GET 'JIU JITSU IS FUN'" */
.btn-primary, .btn-danger {
    font-size: 1rem;
    padding: 12px 20px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
}

/* Make sure both buttons have the same width */
.btn-danger {
    width: 100%;
    max-width: 250px; /* Adjust based on design */
}

/* Ensure "LET'S DO IT" button is the same */
#letsDoItBtn {
    width: 100%;
    max-width: 250px; /* Adjust to match other buttons */
}

/* ðŸ“Œ Remove Overlay from Hero and Join Sections */
.hero-overlay, .join-overlay {
    display: none !important;
}

/* Ensure text in hero & join sections is still readable */
.hero-section, .join-club-section {
    color: white; /* Ensures contrast */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* Adds readability */
}

.hero-content {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    text-align: right;
    max-width: 40%;
}

.hero-section {
    position: relative;
    padding: 100px 20px; /* Adjust padding for spacing */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Darker overlay for better contrast */
}

.hero-content {
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Strong text shadow for clarity */
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-primary {
    background-color: #d62828;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    padding: 12px 20px;
}

.btn-primary:hover {
    background-color: #b71c1c;
}


/* Private Class Section */
.private-class-section {
    background-color: #f8f9fa; /* Light gray background */
    padding: 10px 0;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center;
    min-height: 1000px; /* Ensures no scroll */
}

/* Calendly Container */
.calendly-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Align vertically */
    width: 100%;
    min-height: 1000px; /* Ensures no scroll */
    overflow: hidden; /* Hides any overflow */
    height: auto; /* Allows dynamic resizing */
}


/* Calendly Widget */
.calendly-inline-widget {
    width: 100%;
    max-width: 800px; /* Adjust width for responsiveness */
    height: 700px; /* Ensures all content fits */
    border: none; /* Removes unwanted borders */
}

.join-club-section {
    position: relative;
    text-align: center;
    padding: 60px 20px;
}

.join-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay to improve contrast */
}

.join-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Strong text shadow for contrast */
}

.join-content p {
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
}

.btn-secondary {
    background-color: #d62828;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    padding: 12px 20px;
}

.btn-secondary:hover {
    background-color: #b71c1c;
}

/* Map Container */
.map-container {
    width: 100%;
    max-width: 800px; /* Limits max width for larger screens */
    margin: 0 auto; /* Centers horizontally */
    text-align: center;
}

/* Map Styling */
.map {
    width: 100%;
    height: 450px;
    border: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .map {
        height: 350px; /* Slightly smaller for better fit on mobile */
    }
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* Footer Links */
.site-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .site-footer .row > div {
        text-align: center;
    }
}

/* Container that holds all the schedule cards */
.schedule-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space between cards */
}

/* Each individual card (box) */
.schedule-card {
    color: #fff;
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 5px;
    text-align: left; /* or center if you prefer */
}

/* Adjust background colors for variety */
.schedule-card.monday    { background-color: #963C72; }
.schedule-card.tuesday   { background-color: #896279; }
.schedule-card.thursday  { background-color: #DE54A7; }
.schedule-card.saturday  { background-color: #5E535A; }

/* Titles & text styling */
.schedule-title {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: bold;
}
.schedule-time {
    margin-bottom: 0.25rem;
}
.schedule-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* spacing between cards */
}

/* Card styling (the 'header' portion) */
.schedule-card {
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;  /* indicates it's clickable */
    margin: 0 auto;
    max-width: 400px; /* ensures consistent width if you want */
    text-align: left; /* keep text aligned left or center, your choice */
}

/* Different background colors per day */
.schedule-card.monday    { background-color: #a21875; } /* e.g. pinkish/purple */
.schedule-card.tuesday   { background-color: #96556b; }
.schedule-card.thursday  { background-color: #f06ac7; }
.schedule-card.saturday  { background-color: #4c4344; }

/* Title & Time styling */
.schedule-title {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    color: #b7e27e; /* green text like your example */
}
.schedule-time {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0;
}

/* Collapsed content styling */
.schedule-collapse-content .card-body {
    background: #f8f8f8;  /* or keep it white/gray */
    border-radius: 0 0 5px 5px;
    margin-top: -8px;     /* overlap effect if you want */
}

/* Toggle Icon rotates when expanded */
.schedule-card[aria-expanded="true"] .toggle-icon i {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

/* Cards Hover Effect */
.schedule-card, .testimonial-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-card:hover, .testimonial-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.toggle-icon i {
    transition: transform 0.3s;
}

/* Basic styling for mega dropdown */
.mega-dropdown .dropdown-menu.mega-menu {
    width: auto; /* or set a fixed width like 800px if you want it larger */
    /* optional: background-color: #f8f8f8; */
    border: 1px solid #ccc;
}

.mega-dropdown .dropdown-header {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.mega-dropdown .dropdown-item {
    white-space: nowrap; /* prevent text wrapping if desired */
}

/* If columns are too tight, add a bit more spacing */
.mega-dropdown .col-md-3 {
    margin-bottom: 1rem; /* vertical spacing for smaller screens */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-animated {
    animation: pulse 2s infinite;
}

/* Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
/* HERO SECTION */
.hero-section{
    position:relative;
    width:100%;
    height:100vh;           /* keep it full-screen */
    overflow:hidden;        /* crop overflow from 16:9 video on tall screens */
}
/* remove the static background image line (or leave as backup poster) */

/* Video fills the frame */
.hero-video{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;       /* like background-size:cover */
    z-index:0;
}

/* keep overlay & text above video */
.hero-overlay{ z-index:1; }
.hero-content{ z-index:2; position:relative; }

/* =========  Viewport-bounded video  ========= */
video,
iframe[src*="youtube"],
iframe[src*="youtu"],
iframe[src*="vimeo"],
embed[type*="video"] {
    /* Hard limits */
    max-width: 100vw;      /* never wider than the viewport */
    max-height: 100vh;     /* never taller than the viewport */

    /* Responsive scaling */
    width: 100%;           /* grow to the container’s width */
    height: auto;          /* keep proportion unless constrained by max-height */

    /* Ensures the video letter-boxes instead of cropping if it hits a limit */
    object-fit: contain;   /* swap for `cover` if you’d rather crop & fill */
}

/* Optional: if you usually wrap players */
.video-wrapper {
    position: relative;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;      /* prevent accidental scrollbars */
}