/* YFS - Yaksha Financial Services CSS */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Top Contact Strip */
.top-strip {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 8px 0;
  font-size: 14px;
}

.top-strip a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

.top-strip a:hover {
  color: #ffd700;
}

/* Main Header */
.main-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.company-logo {
  width: 280px;
  height: auto;
  object-fit: contain;
}

.logo-text h1 {
  color: #2a5298;
  font-weight: 700;
  margin: 0;
  font-size: 2rem;
}

.logo-text .tagline {
  color: #666;
  font-size: 1rem;
  font-style: normal;
  margin: 0;
}

/* Desktop logo layout */
@media (min-width: 768px) {
  .logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .company-logo {
    width: 280px;
    height: auto;
    object-fit: contain;
  }

  .logo-text .tagline {
    color: #2a5298;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    margin: 0;
    margin-left: 25px;
  }
}

.mobile-contact {
  margin-top: 10px;
}

.mobile-contact p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #666;
}

.mobile-contact i {
  color: #2a5298;
  margin-right: 8px;
}

.qr-section {
  text-align: center;
}

.qr-code {
  width: 80px;
  height: 80px;
  background: #f8f9fa;
  border: 2px solid #2a5298;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #2a5298;
  margin-bottom: 5px;
}

/* Navigation */
.navbar {
  background: #2a5298 !important;
  padding: 6px 0;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 8px;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-weight: 600;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Special styling for dropdown toggle */
.navbar-nav .dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-weight: 600;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Active/Current Page Styling */
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  color: white !important;
  font-weight: 600;
}

/* Dropdown Menu Styles */
.navbar-nav .dropdown-menu {
  background: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin-top: 2px;
  min-width: 280px;
}

.navbar-nav .dropdown-item {
  color: #333;
  padding: 12px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f8f9fa;
}

.navbar-nav .dropdown-item:hover {
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
  color: white;
  transform: translateX(5px);
}

.navbar-nav .dropdown-item:last-child {
  border-bottom: none;
}

.navbar-nav .dropdown-divider {
  margin: 5px 0;
  border-color: #e9ecef;
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.navbar-nav .dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Hover Dropdown Functionality */
@media (min-width: 992px) {
  /* Add invisible bridge between nav link and dropdown */
  .navbar-nav .dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 999;
  }

  .navbar-nav .dropdown {
    position: relative;
  }

  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-nav .dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }

  .navbar-nav .dropdown:hover .dropdown-menu {
    pointer-events: auto;
  }

  .navbar-nav .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* Disable Bootstrap click on desktop */
  .navbar-nav .dropdown-toggle {
    pointer-events: auto;
  }

  .navbar-nav .dropdown-toggle[data-bs-toggle="dropdown"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
}

/* Click functionality for mobile/tablet */
@media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    position: static;
    display: none !important;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    background: rgba(42, 82, 152, 0.95);
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    width: 100%;
  }

  .navbar-nav .dropdown.show .dropdown-menu {
    display: block !important;
  }

  .navbar-nav .dropdown-item {
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 15px 20px;
  }

  .navbar-nav .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffd700 !important;
    transform: none;
  }
} /* Desktop/Laptop - Left align navbar */
@media (min-width: 992px) {
  .navbar-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .navbar .btn {
    margin-left: auto;
  }
}

/* Tablet - Center navbar */
@media (min-width: 769px) and (max-width: 991px) {
  .navbar-nav {
    margin: 0 auto;
  }
}

/* Hero Slider */
.hero-slider {
  height: 600px;
  position: relative;
  overflow: hidden;
}

.carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

/* Carousel Indicators */
.carousel-indicators {
  bottom: 20px;
  z-index: 3;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: transparent;
  margin: 0 5px;
}

.carousel-indicators button.active {
  background-color: white;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 20px 20px;
  width: 30px;
  height: 30px;
}

.carousel-item.slide-3 .carousel-overlay {
  background: linear-gradient(
    135deg,
    rgba(188, 78, 156, 0.8) 0%,
    rgba(248, 7, 89, 0.8) 100%
  );
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ensure carousel controls are visible */
.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 20px 20px;
}

/* Cards */
.service-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #2a5298 0%, #1e3a70 100%);
  padding: 15px 30px;
  border-radius: 25px;
  margin: 0 auto 15px auto;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.section-title h2:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
}

.section-title h2::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: left 0.5s;
}

.section-title h2:hover::before {
  left: 100%;
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* NISM Section */
.nism-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
}

.nism-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.highlight-box {
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.exam-highlights {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border-left: 5px solid #2a5298;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: white;
}

/* Home Page About Section */
.home-about-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.home-about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 82, 152, 0.05) 0%,
    rgba(30, 60, 114, 0.05) 100%
  );
  z-index: 1;
}

.home-about-section .container {
  position: relative;
  z-index: 2;
}

.home-about-section .service-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Text Justify for About Us Content */
.text-justify,
.home-about-section .service-card p,
.about-section .service-card p {
  text-align: justify !important;
  text-justify: inter-word;
  line-height: 1.7;
}

/* Why Choose Us */
.why-choose-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
}

.feature-card {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.contact-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* height: 100%; */
}

.contact-info {
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
  color: white;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background: #1e3c72;
  color: white;
  padding: 40px 0 20px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
  border: 2px solid white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: #ffd700;
  color: #2a5298 !important;
  border-color: #ffd700;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-slider {
    height: 450px;
  }

  .carousel-item {
    height: 450px;
    background-attachment: scroll;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.4rem;
    padding: 12px 20px;
    border-radius: 20px;
    letter-spacing: 0.5px;
  }

  .top-strip {
    text-align: center;
  }

  .top-strip .social-links {
    margin-top: 5px;
  }

  .logo-section {
    text-align: center;
    flex-direction: column;
    gap: 15px;
  }

  .company-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .logo-text {
    text-align: center;
    width: 100%;
  }

  .logo-text .tagline {
    font-weight: bold;
    font-size: 1.4rem;
    color: #2a5298;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2a5298;
    display: block;
    width: 100%;
    position: relative;
  }

  .mobile-contact {
    text-align: left;
    margin-top: 20px;
    padding-left: 15px;
  }

  .mobile-contact p {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #555;
  }

  .logo-text h1 {
    font-size: 1.5rem;
  }

  .qr-code {
    width: 60px;
    height: 60px;
  }

  /* Center navbar items on mobile */
  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    margin: 8px 15px;
  }

  /* Mobile nav link styling */
  .navbar-nav .nav-link {
    margin: 0 5px;
    padding: 10px 20px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background-color: rgba(255, 215, 0, 0.3);
    color: #ffd700 !important;
    font-weight: 600;
  }

  .navbar-nav .dropdown-toggle:hover,
  .navbar-nav .dropdown:hover .dropdown-toggle {
    background-color: rgba(255, 215, 0, 0.3);
    color: #ffd700 !important;
    font-weight: 600;
  }

  /* Service cards margin for mobile */
  .service-card {
    margin-bottom: 40px;
  }

  /* Add spacing between service columns on mobile */
  .col-lg-4.col-md-6 {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .hero-slider {
    height: 400px;
  }

  .carousel-item {
    height: 400px;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }

  /* Smaller mobile logo adjustments */
  .logo-section {
    text-align: center;
  }

  .company-logo {
    width: 60%;
    max-width: 260px;
    display: block;
    margin: 0 auto;
  }

  .logo-text {
    text-align: center;
  }

  .logo-text .tagline {
    font-size: 1.2rem;
    padding-bottom: 18px;
    border-bottom: 3px solid #2a5298;
    width: 100%;
    display: block;
  }

  .mobile-contact p {
    font-size: 1rem;
  }

  /* Enhanced service card spacing for small mobile */
  .service-card {
    margin-bottom: 30px;
    padding: 25px;
  }

  /* Better service column spacing on small mobile */
  .col-lg-4.col-md-6 {
    margin-bottom: 25px;
    padding: 0 10px;
  }
} /* PDF Optimization */
.container-fluid,
.container {
  max-width: 1200px;
}

section {
  page-break-inside: avoid;
}

/* Equal Height for Testimonials and Enquiry Form Section */
.py-5.bg-light .row.align-items-center {
  align-items: stretch !important;
}

.py-5.bg-light .row.align-items-center .col-lg-6 {
  display: flex;
  flex-direction: column;
}

/* Quick Enquiry Form Styles */
.quick-enquiry-form {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.quick-enquiry-form form {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.quick-enquiry-form .text-center:last-child {
  margin-top: auto;
  padding-top: 20px;
}

.quick-enquiry-form .section-title {
  margin-bottom: 30px;
}

.quick-enquiry-form .section-title h2 {
  font-size: 1.4rem;
  padding: 12px 25px;
  border-radius: 20px;
}

.quick-enquiry-form .form-label {
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
}

.quick-enquiry-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.quick-enquiry-form .form-control:focus {
  border-color: #2a5298;
  box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.25);
}

.quick-enquiry-form .form-control.is-invalid {
  border-color: #dc3545;
}

.quick-enquiry-form .form-control.is-valid {
  border-color: #28a745;
}

.quick-enquiry-form .invalid-feedback {
  display: block;
  font-size: 13px;
  margin-top: 5px;
}

.quick-enquiry-form .btn {
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.quick-enquiry-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42, 82, 152, 0.3);
}

/* Mobile responsive for quick enquiry form */
@media (max-width: 768px) {
  .quick-enquiry-form {
    padding: 20px;
    margin-top: 30px;
  }

  .quick-enquiry-form .section-title h2 {
    font-size: 1.2rem;
    padding: 10px 20px;
  }
}

/* Compact Testimonials Section Styles */
.testimonials-section {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonials-section .section-title {
  margin-bottom: 30px;
}

.testimonials-section .section-title h2 {
  font-size: 1.4rem;
  padding: 12px 25px;
  border-radius: 20px;
}

#testimonialsCarousel {
  flex-grow: 1;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#testimonialsCarousel .carousel-inner {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#testimonialsCarousel .carousel-item {
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(42, 82, 152, 0.1);
  margin: 15px 0;
  position: relative;
  border-left: 5px solid #2a5298;
  transition: all 0.4s ease;
  width: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(42, 82, 152, 0.2);
  border-left-color: #1e3f73;
}

.testimonial-quote {
  font-size: 2.5rem;
  color: #2a5298;
  opacity: 0.2;
  position: absolute;
  top: 20px;
  right: 25px;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin: 25px 0 20px 0;
  font-style: italic;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.testimonial-author {
  border-top: 2px solid #e9ecef;
  padding-top: 20px;
  margin-top: auto;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2a5298;
  margin-bottom: 5px;
}

.author-designation {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.testimonial-rating {
  color: #ffc107;
  font-size: 1rem;
}

.testimonial-rating i {
  margin-right: 3px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

/* Improved Carousel Controls */
#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #2a5298 0%, #1e3f73 100%);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(42, 82, 152, 0.4);
}

#testimonialsCarousel .carousel-control-prev {
  left: -20px;
}

#testimonialsCarousel .carousel-control-next {
  right: -20px;
}

#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
}

/* Mobile responsive for compact testimonials */
@media (max-width: 768px) {
  /* Disable equal height on mobile */
  .py-5.bg-light .row.align-items-center {
    align-items: center !important;
  }

  .py-5.bg-light .row.align-items-center .col-lg-6 {
    display: block;
  }

  .testimonials-section {
    height: auto;
    min-height: 350px;
    display: block;
    margin-bottom: 30px;
  }

  .testimonials-section .section-title h2 {
    font-size: 1.2rem;
    padding: 10px 20px;
  }

  #testimonialsCarousel {
    height: 320px;
  }

  .quick-enquiry-form {
    height: auto;
    display: block;
  }

  .quick-enquiry-form form {
    display: block;
  }

  .testimonial-card {
    padding: 25px 20px;
    margin: 10px 0;
    min-height: 260px;
  }

  .testimonial-quote {
    font-size: 2rem;
    top: 15px;
    right: 20px;
  }

  .testimonial-text {
    font-size: 0.95rem;
    margin: 20px 0 15px 0;
  }

  .author-name {
    font-size: 1rem;
  }

  .author-designation {
    font-size: 0.85rem;
  }

  #testimonialsCarousel .carousel-control-prev,
  #testimonialsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  #testimonialsCarousel .carousel-control-prev {
    left: -15px;
  }

  #testimonialsCarousel .carousel-control-next {
    right: -15px;
  }

  #testimonialsCarousel .carousel-control-prev-icon,
  #testimonialsCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
  }

  /* Mobile indicators adjustment */
  #testimonialsCarousel .carousel-indicators {
    bottom: -25px;
  }

  #testimonialsCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }

  .testimonials-section {
    padding-bottom: 40px;
  }
}

/* Carousel Indicators */
#testimonialsCarousel .carousel-indicators {
  bottom: -30px;
  margin-bottom: 0;
}

#testimonialsCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: rgba(42, 82, 152, 0.3);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-indicators button.active {
  background-color: #2a5298;
  transform: scale(1.2);
  border-color: rgba(42, 82, 152, 0.2);
}

#testimonialsCarousel .carousel-indicators button:hover {
  background-color: rgba(42, 82, 152, 0.6);
  transform: scale(1.1);
}

/* Smooth Carousel Transitions - Fixed */
#testimonialsCarousel .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
}

/* Ensure only active item is visible */
#testimonialsCarousel .carousel-item.active {
  opacity: 1;
  position: relative;
}

/* Form Validation Styles */
.quick-enquiry-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.quick-enquiry-form .form-control:focus {
  border-color: #2a5298;
  box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.25);
  outline: none;
}

/* Hide validation messages by default */
.quick-enquiry-form .invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

/* Show validation messages only when form has been validated */
.quick-enquiry-form.was-validated .form-control:invalid ~ .invalid-feedback,
.quick-enquiry-form .form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Valid field styling */
.quick-enquiry-form .form-control.is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.8-.77.79.77 2.96-2.77-.79-.79L3.09 5.84 2.3 5.06z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Invalid field styling */
.quick-enquiry-form .form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4M8.2 4.6l-2.4 2.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Form label styling */
.quick-enquiry-form .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}

/* Submit button hover effect */
.quick-enquiry-form .btn-primary {
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.quick-enquiry-form .btn-primary:hover {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42, 82, 152, 0.3);
}

/* Prevent overlapping during transitions */
#testimonialsCarousel .carousel-item-next,
#testimonialsCarousel .carousel-item-prev {
  opacity: 0;
}

#testimonialsCarousel .carousel-item-next.carousel-item-start,
#testimonialsCarousel .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

/* Testimonials section bottom spacing for indicators */
.testimonials-section {
  padding-bottom: 50px;
}

/* Extra Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
  .logo-section {
    text-align: center;
  }

  .company-logo {
    width: 50%;
    max-width: 160px;
    display: block;
    margin: 0 auto;
  }

  .logo-text {
    text-align: center;
  }

  .logo-text .tagline {
    font-size: 1rem;
  }

  .mobile-contact p {
    font-size: 0.9rem;
  }
}
