/* ===== Typography Styles ===== */
.section-header h2,
.custom-heading {
  text-align: center;
  color: #05395b;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 49px;
}

.custom-heading {
  margin-top: 20px;
  font-size: 45px;
}

.main-heading,
.intro-text {
  text-align: justify;
  font-size: 28px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  color: black;
  line-height: 1.6;
}

.main-heading {
  margin-top: -50px;
  line-height: 1.5;
}

.intro-text {
  margin: 0 0 30px;
}

.category-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin: 20px 0;
}

.highlight-text {
  font-weight: bold;
  color: black;
  font-size: 22px;
}

/* ===== Flip Cards Container ===== */
.banner .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== Card Wrapper Styles ===== */
.banner .card-wrapper {
  flex: 0 0 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
  min-width: 250px;
  box-sizing: border-box;
  text-align: center;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-top: 10px;
}

/* ===== Flip Card Core Styles ===== */
.banner .flip-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1200px;
  position: relative;
  cursor: pointer;
}

.banner .flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  border-radius: 50%;
}

.banner .flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.banner .flip-card-front,
.banner .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 20px;
  box-sizing: border-box;
}

.banner .flip-card-front {
  background: #ffffff;
  border: 3px solid #007BFF;
}

.banner .flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.banner .flip-card-back {
  background: #007BFF;
  color: white;
  transform: rotateY(180deg);
}

.banner .flip-card-back p {
  background: #007BFF;
  color: white;
  /* display: none; */
}


/* ===== Button Styles ===== */
.flip-card-back button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
}

.click-here {
  background-color: #4CAF50;
  color: white;
}

.show-more {
  background-color: #2196F3;
  color: white;
}

/* ===== Subcategory Styles ===== */
.subcategory-section {
  margin-top: 50px;
}

.subcategory-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  width: 100%;
}

.centered-row {
  justify-content: center !important;
}

/* ===== Nested Subcategories Styles ===== */
.nested-subcategories-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease-out;
}

.nested-card {
  width: 200px;
  height: 250px;
  margin: 0 10px;
}

.nested-card .flip-card,
.nested-card .flip-card-inner,
.nested-card .flip-card-front,
.nested-card .flip-card-back {
  width: 100%;
  height: 100%;
}

.nested-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subcategory.expanded {
  margin-bottom: 40px;
  transition: margin-bottom 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-products {
  background-color: #FF5722;
  color: white;
}

.flip-card-back button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.flip-card-back button:hover {
  opacity: 0.9;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
  .banner .card-wrapper {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .banner .card-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .section-header h2 {
    font-size: 36px;
  }
  
  .custom-heading {
    font-size: 32px;
  }
}