/* Header styles */
.header-main {
    background: #fff;
}

.header-main .main-menu ul li a, #offcanvas-mobile-menu .offcanvas-menu ul li a {
    color: #000;
}

.header-main .main-menu ul li.active a, #offcanvas-mobile-menu .offcanvas-menu ul li.active a {
    color: #8d5a86 !important;
    font-weight: 800;
}

.header-main .main-menu ul li:hover a, #offcanvas-mobile-menu .offcanvas-menu ul li:hover a {
    color: #8d5a86 !important;
    font-weight: 800;
}

.header-actions .header-action-btn {
    color: #8d5a86;
}

/* Hero section */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .hero-slide-content .title-1 {
    font-size: 40px;
  }
}

.hero-slide-content .price {
  font-size: 18px !important;
}

/* Homepage */
.single-banner {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 1/1; /* makes all cards square; adjust ratio if needed */
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.single-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes all thumbnails fill the box uniformly */
  transition: transform 0.3s ease;
}

.single-banner:hover video {
  transform: scale(1.05);
}

/* Play button overlay */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content at bottom */
.banner-content {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 4px;
}
.banner-content .category {
  font-size: 0.8rem;
  display: block;
  opacity: 0.8;
}

.banner-content .title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .single-banner {
    height: 250px;
  }
  .banner-content {padding: 10px;}
  .banner-content .title {font-size: 1rem;}
}

.modal-content.bg-dark {
  background-color: #000;
  border: none;
  border-radius: 0;
}

.modal-content video {
  width: 100%;
  height: 500px;
}

.btn-close {
  filter: invert(1);
}

/* Homepage Crafts section */
.tab-slider .swiper-slide {
  text-align: center;
  transition: transform 0.3s ease;
}

.tab-slider .swiper-slide:hover {
  transform: translateY(4px);
}

.tab-slider img {
  max-width: 100%;
  margin-bottom: 5px;
}

.tab-slider span {
  display: block;
  font-size: 16px;
  color: #333;
}

/* Modal nav buttons styling */
.modal-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  line-height: 1;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1055;
  opacity: 0.95;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* small screens tweak */
@media (max-width: 576px) {
  .modal-nav-btn { width: 36px; height: 36px; font-size: 20px; }
}

.swiper-slide.craft {
  width: 100%;   /* fixed width */
  height: 100%;  /* fixed height */
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  background: #8d5a86;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #8d5a86fc;
}

.swiper-slide.craft img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps aspect ratio while filling */
  display: block;
}

.swiper-slide.craft span {
  position: relative;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 14px;
  margin: 8px 0;
}

/* About Section */
.animated-image-wrapper {
  overflow: hidden;
  border-radius: 12px;
}

.animated-image {
  width: 100%;
  height: auto;
  animation: float 4s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.animated-image:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.custom-kid-image {
  animation: floaty 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.custom-kid-image:hover {
  transform: scale(1.05);
}

@keyframes floaty {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Services Section */
.services-grid {
    justify-content: center;
}

.service-item {
    text-align: center;
    background-color: #fff6f2; 
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.service-item img {
    max-width: 80px;
    height: auto;
    margin: 0 auto 20px;
}

.service-item h4 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}


/* Footer Section */
.footer-area {
    margin-top: 40px;
}

/* Video modal  */
/* Modal background */
#videoModal {
  display:none;
  position:fixed;
  z-index:9999;
  left:0;top:0;width:100%;height:100%;
  background:rgba(0,0,0,0.8);
}

/* Modal content */
#videoModal .video-content {
  position:relative;
  width:80%;
  max-width:800px;
  margin:5% auto;
  background:#000;
  padding:0;
}

/* Close button */
#videoModal .close {
  position:absolute;
  top:10px;right:15px;
  color:#fff;
  font-size:30px;
  cursor:pointer;
}

#videoModal video {
  width:100%;
  /* height:auto; */
  display:block;
}