/* Hero Section */
.hero-section {
  min-height: 40vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 50%;
  width: auto;
  height: 100%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(254, 114, 0, 0.8) 0%,
    rgba(243, 111, 3, 0.799) 100%
  );
  z-index: 2;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 3;
  position: relative;
  padding-top: 80px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Floating Elements */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Main Content Styles */
.service-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.service-wrapper {
  display: flex;
  gap: 30px;
  padding: 60px 0;
}

.sidebar-section {
  flex: 0 0 300px;
}

.content-section {
  flex: 1;
}

.sidebar-box,
.content-box {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
}

.shadow-custom {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rounded-custom {
  border-radius: 10px;
}

.sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid #ff6b6b;
  padding-bottom: 10px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  margin-bottom: 10px;
}

.menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  color: #555;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.menu-list a:hover {
  background: #f8f9fa;
  color: #ff6b6b;
}

.menu-list .active a {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  color: white;
}

.content-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.blockquote-custom {
  background: linear-gradient(135deg, #ff6b6b10, #4ecdc410);
  border-left: 4px solid #ff6b6b;
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
  border-radius: 5px;
}

.blockquote-custom h1 {
  font-size: 1rem;
  color: #ff6b6b;
  margin: 10px 0 0 0;
  font-weight: 600;
}

.section-heading {
  color: #333;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 2px;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 70%; /* Reduced from 200px */
  object-fit: initial;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
}

.card-title {
  color: #333;
  font-weight: 600;
  margin-bottom: 15px;
}

.card-text {
  color: #666;
  line-height: 1.6;
}

.read-more-btn {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border: none;
  color: white;
  padding: 8px 20px; /* Reduced padding */
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.read-more-btn:hover {
  background: linear-gradient(45deg, #e55a5a, #3bb5b0);
  color: white;
  transform: translateY(-2px);
}

.service-cards-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0;
}

/* Content Styling */
.content-section h2,
.content-section h3,
.content-section h4 {
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.content-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

.content-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.content-section h4 {
  font-size: 1.3rem;
  font-weight: 500;
}

.content-section p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.content-section ul,
.content-section ol {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.content-section li {
  margin-bottom: 8px;
}

.content-section strong {
  color: #ff6b6b;
}

.content-section em {
  color: #4ecdc4;
}

/* Breadcrumb */
.breadcrumb-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 0;
  border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: #ff6b6b;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .service-wrapper {
    flex-direction: column;
  }

  .sidebar-section {
    flex: 0 0 auto;
  }

  .card-img-top {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .content-title {
    font-size: 1.5rem;
  }

  .sidebar-box,
  .content-box {
    padding: 20px;
  }

  .card-img-top {
    height: 140px;
  }

  .card-body {
    padding: 15px;
  }
  /* Image fix for card line 249 */
  .card-img-top {
    height: 180px;
    width: 100%;
    object-fit: contain; /* Changed from cover to show full image */
    padding: 10px;
  }

  /* Hide by default */
  .popup-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Darken background */
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }

  /* Layout for the content inside */
  .popup-content {
    background: #fff;
    width: 90%;
    max-width: 850px;
    max-height: 80vh;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    overflow-y: auto; /* Allows scrolling the rasi list */
  }

  .popup-grid {
    display: flex;
    gap: 25px;
  }

  .popup-img img {
    width: 250px;
    height: auto;
    border-radius: 8px;
  }

  .rashi-list {
    list-style: none;
    padding: 0;
  }

  .rashi-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
  }

  .close-popup {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
  }
}
