/*
Theme Name: KarateKick Academy
Theme URI: https://yourwebsite.com
Author: Your Name
Description: A responsive one-page WordPress theme for Karate & Kickboxing Academies using Bootstrap 5.3 and AOS animations.
Version: 1.0
License: GPLv2 or later
Text Domain: karatekicktheme
*/
html {
  scroll-behavior: smooth;
}

#about,#classes {
	padding-top:7rem !important;
}

/* Carousel full height */
.carousel-item {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Background slides in from right */
.carousel-bg {
  position: absolute;
  top: 0;
  left: 0; /* fix alignment */
  width: 100%; /* full width */
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: bgSlideIn 2s ease forwards;
  z-index: 0;
}

/* Animation (slide from right) */
@keyframes bgSlideIn {
  from {
    transform: translateX(20%);
    opacity: 0.5;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* Text slides in from left */
.caption-text {
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  max-width: 500px;
  color: #fff;
  opacity: 0; /* will fade in */
}

/* Text “join in” animation */
@keyframes textJoin {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translateX(0); opacity: 1; }
}
/* Background slide-in keyframes */
@keyframes bgSlideIn {
  0% { right: -20%; opacity: 0; }
  50% { opacity: 0.7; }
  100% { right: 0; opacity: 1; }
}

/* Apply animation with JS delay */
.animate__textJoin {
  animation-name: textJoin;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  animation-delay: 0.5s;
}

.navbar-contact a {
  font-size: 1rem;
  color: #fff;
}

.navbar-contact i {
  font-size: 1.1rem;
}

.navbar-contact a:hover {
  color: #ffc107;
}

.navbar-contact i.text-success {
  color: #25D366; /* WhatsApp green */
}

.navbar-contact i.text-warning {
  color: #ffc107;
}
/* Ensure uploaded logo fits neatly inside header */
.custom-logo,
.default-logo {
  height: 55px;           /* fits neatly inside navbar */
  width: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

/* Keep logo vertically aligned with menu */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Navbar overall height */
header.nav {
  height: 70px;
  display: flex;
  align-items: center;
}

/* On smaller screens */
@media (max-width: 768px) {
  .custom-logo,
  .default-logo {
    height: 45px;
  }
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007bff;
}

/* Our classes Start */
.class-card {
  position: relative;
  border: none;
  background: transparent;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.class-image-wrapper {
  position: relative;
  height: 50vh; /* consistent space for image */
  display: flex;
  justify-content: center;
  align-items: flex-end;  
  z-index: 1;
}
.class-image-wrapper.no-image {
  background: transparent;
}

.class-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain; /* ensures full image visible */
  transition: transform 0.3s ease;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.25));
  transform: translateY(-20px);
}


/* On smaller screens */
@media (max-width: 768px) {
  .class-image-wrapper {
    height: 50vh;
    align-items: center; /* center on mobile */
  }

  .class-img {
    height: 100%;
    max-height: 50vh;
    width: auto;
    object-fit: contain;
    transform: translateY(-40px); /* subtle lift only */
  }
	
.card-body {
    padding: 1rem 0.75rem;
  }
}




.class-card:hover .class-img {
  transform: translateY(-30px);
}

.class-body {
  position: relative;
  z-index: 1;
  margin-top: -150px;
  background: rgba(255, 255, 255, 1);
  border-top: 4px solid #000; /* or match card bg color */
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  padding: 30px 20px 20px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  /* min-height: 180px; */
}

.class-card:hover .class-body {
  transform: translateY(-5px);
  /* box-shadow: 0 8px 25px rgba(0,0,0,0.18); */
}

.class-body h5 {
  font-weight: 700;
  margin-bottom: 10px;
}

.class-body p {
  /* color: #555; */
  margin: 0;
  font-size: 0.95rem;
}


/* Our classes End */