*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
}

:root {
  --primary-color: #0a7852;
  --secondary-color: #45bb70;
  --hover-color: #279961;
  --text-color: #161a19;
  --white: #f6f6f6;
  --background: #ffffff;
  --off-white: #ccc;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 30;
  position: relative; /* <--- This is the missing piece */
}
.container-heading {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 30;
  position: relative; /* <--- This is the missing piece */
}

header {
  background-color: var(--background);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

header.scrolled {
  padding: 15px 0;
}

.logo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

/* Mobile menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

/* Default: hide both variants */
.hamburger,
nav ul li.mobile-only {
  display: none;
}

.desktop-contact,
.mobile-contact {
  display: none;
}

/* Show on desktop */
@media screen and (min-width: 769px) {
  .desktop-contact {
    display: inline-block;
  }

  .mobile-contact {
    display: none;
  }
}

/* Show on mobile */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .desktop-contact {
    display: none;
  }

  .mobile-contact {
    display: block;
  }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav ul li.mobile-only {
    display: block;
  }

  .contact-btn.desktop-only {
    display: none;
  }
}

/* Desktop styles */
@media screen and (min-width: 800px) {
  .hamburger {
    display: none;
  }

  .contact-btn.desktop-only {
    display: inline-block;
  }

  nav ul li.mobile-only {
    display: none;
  }
}

nav {
  transition: var(--transition);
  z-index: 1000;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin: 0 12px;
  position: relative;
}

nav ul li::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li:hover::after {
  width: 100%;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
  transition: var(--transition);
  padding: 5px 0;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.contact-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 25px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: var(--transition);
  font-size: 14px;
}

.contact-btn:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(45, 122, 79, 0.2);
}

/* Hero section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero > .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 0;
  flex-wrap: wrap;
}
.hero > .container .content-left {
  flex: 1 1 0%;
  margin-left: 3%;
}

.hero > .container .content-right {
  flex: 1 1 0%;
}

.hero > .container .content-right img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* .hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-color: rgba(45, 122, 79, 0.05);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
} */

.hero h1 {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  max-width: 800px;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.hero h2 {
  font-size: 2em;
  color: var(--text-color);
  margin-bottom: 50px;
  max-width: 700px;
  position: relative;
  z-index: 2;
  opacity: 0.9;
}

.cta-button {
  /* display: inline-block; */
  background-color: var(--primary-color);
  color: var(--white);
  padding: 16px 35px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 3px;
  transition: var(--transition);
  /* position: relative;
  z-index: 2;
  overflow: hidden; */
  border: none;
  cursor: pointer;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  ); */
  /* transition: 0.5s; */
}

.cta-button:hover {
  /* background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(45, 122, 79, 0.3); */
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(45, 122, 79, 0.3);
}

.cta-button:hover::before {
  left: 100%;
}

/* Content section */
.content-section {
  background-color: var(--background);
  padding: 50px 40px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  z-index: 1; /* Ensure it's above the default */
  flex-direction: row;
}

.content-section > .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.content-section > .container .content-left,
.content-section > .container .content-right {
  flex: 1 1 45%;
  max-width: 45%;
  box-sizing: border-box;
}
.content-section > .container .content-left-size-30 {
  position: relative;
  z-index: 1;
  background-color: transparent !important;
  flex: 0 0 30%; /* Used flex: 0 0 to prevent shrinking/growing */
  max-width: 30%;
  box-sizing: border-box;
  padding-left: 20px;
}

.content-section > .container .content-left-size-30::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;

  background-color: var(--text-color);

  left: -20px;
  width: calc(100% + 20px);

  z-index: -1; /* Must be behind the content */
}

.content-section > .container .content-right-size-60 {
  flex: 1 1 65%;
  max-width: 65%;
  box-sizing: border-box;
  padding: 60px;
}

.content-left,
.content-right {
  flex: 1 1 45%;
  max-width: 45%;
  box-sizing: border-box;
}

.content-section.single-column > .container .content-left {
  max-width: 100%;
  flex: 1 1 100%;
}

.content-section > .single-column .container .content-left {
  max-width: 100%;
  flex: 1 1 100%;
}

.hero.single-column > .container .content-left {
  max-width: 100%;
  flex: 1 1 100%;
}

.content-section h2 {
  font-size: 2.5em;
  color: var(--text-color);
  margin-bottom: 40px;
  position: relative;
}

.content-section h3 {
  font-size: 1.5em;
  color: var(--text-color);
  margin-bottom: 20px;
  margin-top: 60px;
  position: relative;
}

.kanji-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden; /* Prevent overflow */
}

.kanji-container img {
  max-width: 50%; /* Limit image width on desktop */
  height: auto;
  object-fit: contain;
  flex-shrink: 1; /* Allow image to shrink */
}

.dojo-kun-text {
  text-align: left;
  font-size: large;
  font-style: italic;
  font-weight: 700;
  flex-shrink: 0; /* Prevent text from shrinking too much */
  min-width: 0; /* Allow flex item to shrink below content size */
}

.dojo-kun-principles {
  line-height: 1.6;
}

@media screen and (max-width: 992px) {
  .kanji-container {
    flex-direction: column;
    gap: 20px;
  }

  .kanji-container img {
    max-width: 80%; /* Larger on mobile when stacked */
  }

  .dojo-kun-text {
    font-size: large;
  }
}

@media screen and (max-width: 480px) {
  .content-right.mobile {
    display: block;
  }
  .kanji-container img {
    max-width: 100%;
  }

  .dojo-kun-text {
    font-size: medium;
  }
}

.kanji-text {
  display: flex;
  flex-direction: column;
}

.kanji-h3 {
  color: var(--primary-color) !important;
  margin-bottom: 10px !important;
  margin-top: 20px !important;
}

.content-section h2::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -15px;
  left: 0;
}

.content-section p {
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 1.05em;
  color: rgba(17, 17, 17, 0.9);
}

.more-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 16px 35px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 3px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: 0.5s;
}

.more-btn:hover {
  background-color: var(--hover-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(45, 122, 79, 0.3);
}

.more-btn:hover::before {
  left: 100%;
}

/* Responsive design */
@media screen and (max-width: 992px) {
  .content-section > .container .content-left-size-30,
  .content-section > .container .content-right-size-60 {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  /* Add space below the image column */
  .content-section > .container .content-left-size-30 {
    margin-bottom: 30px;
  }
  .hero {
    padding: 80px 30px;
    flex-direction: column;
    text-align: center;
  }
  .hero > .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero .content-left,
  .hero .content-right {
    max-width: 100%;
    flex: 1 1 100%;
    margin-left: 3%;
  }

  .hero .content-right img {
    width: 100%;
    max-width: 400px;
  }

  .hero h1 {
    font-size: 2.5em;
    white-space: nowrap;
  }

  .hero h2 {
    font-size: 1.6em;
  }

  .content-section {
    padding: 70px 30px;
  }

  .content-section > .container {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
  }

  .content-section > .container .content-left {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .content-section > .container .content-right {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .content-left {
    text-align: center;
  }

  .content-right {
    text-align: center;
  }

  .content-section h2 {
    font-size: 2.2em;
  }
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--background);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    padding: 80px 20px 20px;
    z-index: 1000;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li {
    margin: 15px 0;
    width: 100%;
  }

  nav ul li::after {
    display: none;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 8px 0;
    font-size: 16px;
  }

  .hero {
    padding: 60px 20px 0px;
    min-height: 70vh;
    text-align: center;
  }
  .hero > .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero .content-left,
  .hero .content-right {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .hero .content-right img {
    width: 100%;
    max-width: 400px;
  }

  .hero h1 {
    font-size: 2.2em;
    white-space: wrap;
  }

  .hero h2 {
    font-size: 1.4em;
    margin-bottom: 30px;
  }

  .content-section {
    padding: 20px 20px;
  }

  .content-left,
  .content-right {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .content-left {
    text-align: center;
  }

  .content-right {
    text-align: center;
  }

  .content-section h2 {
    font-size: 2em;
  }
}

@media screen and (max-width: 480px) {
  .content-section > .container .content-left-size-30::before {
    left: -15px; /* Adjust for 15px container padding */
    width: calc(100% + 15px);
  }
  .content-section > .container .content-left-size-30 .photo-wrapper {
    padding-left: 15px; /* Adjust content alignment for 15px */
  }

  .container {
    padding: 0 15px;
    flex-direction: column;
  }

  .hero > .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero .content-left,
  .hero .content-right {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .hero .content-right img {
    width: 100%;
    max-width: 400px;
  }
  .hero h1 {
    font-size: 2em;
    white-space: wrap;
  }

  .hero h2 {
    font-size: 1.3em;
  }

  .cta-button,
  .more-btn {
    padding: 14px 25px;
    font-size: 13px;
  }

  .content-section {
    padding: 50px 15px;
  }

  .content-left,
  .content-right {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .content-left {
    text-align: center;
  }

  .content-right {
    text-align: center;
  }
  .content-section h2 {
    font-size: 1.7em;
    margin-bottom: 25px;
  }

  .content-section p {
    font-size: 1em;
  }

  .kanji-container {
    flex-direction: column;
    gap: 20px;
  }

  .kanji-text {
    text-align: center;
  }
}

/* Overlay for mobile menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Animation classes for AOS */
[data-aos] {
  visibility: hidden;
}

.aos-animate {
  visibility: visible;
}

.grid-item {
  padding: 20px;
  border-radius: 5px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
  overflow: hidden;
}

.grid-section .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media screen and (max-width: 768px) {
  .grid-section .container {
    grid-template-columns: 1fr;
  }
  .content-section h3 {
    margin-top: 0px;
  }
}

.grid-section-triple .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media screen and (max-width: 768px) {
  .grid-section-triple .container {
    grid-template-columns: 1fr;
  }
}

.grid-section-five .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

th,
td {
  border: 1px solid black;
}

.begin_cell {
  border: none;
  text-align: right;
}

.table-container {
  width: 100%;
}

.table-container table {
  width: 100%; /* Make the table take full width of its container */
  border: 1px solid var(--border-color);
  border-collapse: collapse;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.table-container th,
.table-container td {
  padding: 10px;
  white-space: nowrap; /* Prevent text from wrapping to keep columns narrow */
  border: 1px solid var(--border-color);
}

.popup {
  display: none;
  position: absolute;
  background-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 4px;
  z-index: 9999;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  min-width: 200px;
  top: calc(100% + 10px);

  left: 50%;
  transform: translateX(-50%) translateY(5px);
}
.popup p {
  color: var(--white);
  border-bottom: 1px solid;
  border-color: var(--secondary-color);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.popup p:last-child {
  border-bottom: none; /* remove line from the last one */
}

.hover-trigger {
  position: relative;
}

/* Style the link inside the <th> */
td .th-link {
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

/* Add arrow on hover and change color */
td .th-link:hover {
  color: var(--primary-color); /* New color on hover */
}

td .th-link::after {
  content: "";
  position: absolute;
  right: -1.2em;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, right 0.3s ease;
}

/* Show arrow on hover */
td .th-link:hover::after {
  content: ">";
  opacity: 1;
  right: -1.5em;
}

.hover-trigger:hover .popup,
.hover-trigger .popup:hover {
  display: block;
  z-index: 999;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0); /* Move popup to its original position on hover */
}

.time-slot {
  padding: 10px;
  border-bottom: 1px solid var(--white);
  position: relative;
}
.time-slot-text {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .table-container table,
  .table-container thead,
  .table-container tbody,
  .table-container th,
  .table-container td,
  .table-container tr {
    display: block;
    width: 100%;
  }

  .popup {
    pointer-events: none; /* optional to prevent accidental touches */
  }

  .popup.active {
    display: block;
  }

  .table-container thead {
    display: none; /* Hide the header */
  }

  .table-container tr {
    margin-bottom: 1rem;
    border: 1px solid var(--off-white);
    padding: 0.5rem;
    border-radius: 8px;
  }

  .table-container td {
    text-align: left;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid var(--off-white);
  }

  .table-container td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 10px;
    font-weight: bold;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 10px;
    flex-direction: column;
    align-content: center;
    text-align: center;
  }
}

.dojo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border: 1px solid #e0e0e0;
}

.dojo-card {
  padding: 30px 20px;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dojo-card-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}

.dojo-card:hover {
  background-color: var(--background);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

/* Ensure all elements within the card are above the link layer */
.dojo-card > * {
  position: relative;
  z-index: 2;
}

/* Specific z-index for actual links within the card */
.program-link {
  z-index: 3;
  position: relative;
}

/* Accessibility enhancements for keyboard navigation */
.dojo-card-link:focus {
  outline: 2px solid #4d90fe;
  outline-offset: -2px;
}

/* Add focus styles for the program links */
.program-link:focus {
  outline: 2px solid #4d90fe;
  outline-offset: 2px;
}

/* Visual indication when clicking */
.dojo-card:active {
  background-color: #f0f0f0;
}

/* Responsive styles for smaller screens */
@media (max-width: 1024px) {
  .dojo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dojo-card:nth-child(2n) {
    border-right: none;
  }

  .dojo-card:nth-child(1),
  .dojo-card:nth-child(2) {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .dojo-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dojo-card {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 30px 15px;
  }

  .dojo-card:last-child {
    border-bottom: none;
  }
}

.dojo-card:last-child {
  border-right: none;
}

.logo {
  display: flex;
  justify-content: center;
  height: 80px;
}

.logo img {
  max-height: 100%;
  max-width: 100%;
}

.dojo-type {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.dojo-name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.instructor-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.instructor-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.instructor-rank {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 30px;
}

.location {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 25px;
}

.arrow {
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 15px;
}

.program-link {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
  margin-top: auto;
  text-decoration: none;
  color: #000;
}

footer {
  background-color: var(--background);
  border-top: 1px solid var(--border-color);
  z-index: 0;
}

.sensei-img {
  background-color: var(--text-color); /* Adjust darkness (0.3–0.7) */

  width: 15em;
  height: 23em;
}

iframe {
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: 8px;
}

/* Dark background image section */
.content-section.dark-bg {
  position: relative;
  background-image: url("./images/bg-picture-index-bottom.jpg");
  background-size: cover; /* scales the image inside */
  background-repeat: no-repeat;
  background-position: center;
  height: 80vh; /* section height shows 80% of the viewport */
  background-repeat: no-repeat;
  color: white;
  overflow: hidden; /* Prevents scrollbars caused by overlay */
}
.hero.dark-bg {
  position: relative;
  background-image: url("./images/bg-picture-index-bottom.jpg");
  background-size: cover; /* scales the image inside */
  background-repeat: no-repeat;
  background-position: center;
  height: 80vh; /* section height shows 80% of the viewport */
  background-repeat: no-repeat;
  color: white;
  overflow: hidden; /* Prevents scrollbars caused by overlay */
}

.hero.dark-bg.shotokan {
  background-image: url("./images/gichin-karate-hero.jpg");
}
.hero.dark-bg.index {
  background-position: 70% left;
  background-image: url("./images/home_tab.jpg");
}

.hero.dark-bg.sensei {
  background-image: url("./images/ekip_tab.jpg");
}
.hero.dark-bg.dodjo {
  background-image: url("./images/drone-hero.jpg");
}
.content-section.dark-bg .overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Adjust for more/less darkness */
  z-index: 2;
}

.hero.dark-bg .overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Adjust for more/less darkness */
  z-index: 2;
}

.hero.hero.dark-bg.dodjo .overlay-bg {
  background-color: rgba(0, 0, 0, 0.78); /* Adjust for more/less darkness */
}

.content-section.dark-bg .container {
  position: relative;
  z-index: 3;
}

.hero.dark-bg .container {
  position: relative;
  z-index: 3;
}

/* Optional: adjust text styles for better contrast */
.content-section.dark-bg h2,
.content-section.dark-bg p {
  color: white;
}

.hero.dark-bg h2,
.hero.dark-bg h1 {
  color: white;
}

.content-right.mobile {
  display: none;
}

/* Or only on phones */
@media (max-width: 576px) {
  .hero.dark-bg.index {
    background-position: left;
  }
  .content-right.mobile {
    display: block;
  }
  .hero.dark-bg.shotokan {
    background-position: 68% center;
  }
  .hero.dark-bg.sensei {
    background-position: left;
    background-color: var(--text-color);
    background-image: none;
  }
}
