/* === GLOBAL STYLES (FINAL & STABLE) === */
html {
  font-size: 100%; /* Normal, readable font size base */
  scroll-behavior: smooth;
}

body{
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: #0e0e0e;
  color: #fff;
  box-sizing: border-box;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  /* Removed complex flex properties for maximum stability */
}

section {
  scroll-margin-top: 100px; /* adjust according to your navbar height */
}


h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
}

nav{
  font-family: 'poppins', sans-serif;
}

/* === SCROLLING FIX FOR FIXED NAVBAR === */
section[id] {
  scroll-margin-top: 420px; /* Adjust this value if needed */
}

.blog-post {
  margin-bottom: 2rem;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
}

.blog-post h2 {
  font-size: 1.8rem;
}

.blog-post a {
  color: #2c7a7b;
  text-decoration: underline;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  box-shadow: 0 5px 10px rgba(255, 215, 0, 0.1);
  min-height: 6.23rem;
  z-index: 999;
  font-size: 1rem;
}

.nav-link {
  color: #fff !important;
  margin-inline-start: 15px;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: gold !important;
}
#home {
  color: #ebc138 !important;
}
#home:hover {
  color: white !important;
}

.navbar-toggler {
  border: none;
  background: transparent;
}

.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 25px;
  height: 2px;
  background-color: gold;
  box-shadow: 0 6px gold, 0 -6px gold;
}

.brand-logo {
  max-height: 200px;
  object-fit: contain;
  filter: brightness(100);
  transition: transform 0.3s ease;
  text-decoration: none;
}
.brand-logo:hover {
  transform: scale(1.1);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #000;
    padding: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid #333;
    border-radius: 0 0 8px 8px;
  }
  .navbar-nav {
    width: 100%;
    text-align: center;
  }
  .nav-item {
    margin-bottom: 0.5rem;
  }
  .nav-link {
    margin-left: 0;
    padding: 0.75rem 0;
    display: block;
  }
}

@media (max-width: 499.98px) {
  .brand-logo img {
    width: 50px;
    height: 50px;
  }
  .brand-logo span {
    font-size: 1rem;
  }
}


/* === HERO SECTION === */
.hero-video-container {
  position: relative;
  /* REMOVE THE MARGIN-TOP, IT'S NO LONGER NEEDED */
  min-height: 100vh;
  min-height: 100dvh;
}
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* THE CORRECTED CSS */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 6.23rem 1rem 1rem 1rem; /* MODIFIED: Added top padding equal to navbar height */
  box-sizing: border-box; /* ADDED: Ensures padding is included within the element's height */
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (max-width: 767.98px) {
  .hero-overlay h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  .hero-overlay .lead {
    font-size: 1rem;
  }
  .hero-overlay .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

.btn-outline-light:hover {
  background-color: #e6b800;
  color: black;
}
 .text-gold {
  color: #e6b800;
}

.btn-gold {
  background: linear-gradient(90deg, #e6b800, #b88a00);
  color: black;
  font-weight: bold;
  border: none;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: #fff;
  color: black;
}

/* === WHY CHOOSE US SECTION === */
.why-box {
    background: #181713ad;
    color: white;
    border-radius: 15px;
    box-shadow: 2px 2px 18px #b88a00;
    padding: 1rem;
}

.why-box h2 {
    color: #d4af37;
}

.why-box i {
    color: #d4af37;
}

.why-box .row {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .why-box .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 499px) {
    .why-box .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* === ABOUT SECTION === */
.about-section {
  padding: 40px 10px;
  text-align: center;
  background: linear-gradient(rgba(196, 164, 57, 0.221) 50%, #6260602f 80%, #2d2c2cc5 100%);
  /* border: 2px solid #d8b74c; */
  /* border-radius: 12px; */
}

.container1{
  text-align: left;
}

.section-title {
  color: #d4af37 !important;
  font-size: 2.6rem;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.section-description {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
  text-align: justify;
}
.about-section {
    /* background-color: #353333; */
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* === STATS SECTION === */
.stats-section {
  background-color: #000 !important;
  text-align: center;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
}

.stat-box {
  flex: 1 1 200px;
  max-width: 240px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #d4af37;
}

.stat-label {
  font-size: 1rem;
  color: #ccc;
  margin-top: 5px;
}


 /* === JANATHA GROUP LEGACY (FINAL REVERSED LAYOUT VERSION) === */
.janatha-legacy-final {
  background-color: #0a0a0a;
  display: flex;
  justify-content: center;  /* Centers horizontally */
  align-items: center;      
}


.carousel-wrapper {
  position: relative;
  padding: 0 60px; /* Make space for the external arrows */
}

.wow-carousel-box {
  position: relative;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, #3e3e3e 50%, #111111d2 100%);
  border-radius: 20px;
  border: 2px solid rgb(131, 109, 2);
  box-shadow: 0 9px 8px 3px rgba(180, 135, 12, 0.6);
  padding: 30px;
  overflow: hidden;
  height: 200px;
  width: 100%;
}


/* Force equal height for all slides */
#legacyWowCarousel .carousel-inner {
  min-height: 100px; /* adjust as you want */
  position: relative;
}

#legacyWowCarousel .carousel-item.active {
  opacity: 1;
  position: relative;
}
#legacyWowCarousel .carousel-item {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80%;
  opacity: 0;
  transition: opacity;
  object-fit: cover; 
  margin-top:0.1rem;
}
.carousel-wrapper .section-title{
  color: whitesmoke !important;
}
/* --- THE BUG FIX FOR OVERLAPPING TEXT --- */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
  position: absolute;
  display: flex;
  align-items: center;
  width: calc(100% - 60px);
  height: 100%;
  left: 30px;
}


.carousel-header .section-subheading {
    /* font-family: 'Montserrat', sans-serif; A clean, modern sans-serif font */
    font-size: 2.4rem;                     /* Slightly larger for more presence */
    font-weight: 600;                      /* Semi-bold for clear emphasis */
    color:#d3b521;                        /* The recommended gold accent color */
    text-transform: uppercase;             /* As seen in your design */
    letter-spacing: 2px;                   /* Adds a refined, spaced-out look */
    margin-top: -1.6rem;                /*Space between this and the main title*/
}
.carousel-fade .carousel-item.active {
  opacity: 1;
  position: relative;
}
/* --- END OF BUG FIX --- */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #d4af37;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.section-title{
  color: #f0f0f0;
  margin-top: 0.5rem;
}

.carousel-arrow:hover {
  background: rgba(218, 168, 5, 0.833);
  color: #fff;
  border-color: rgba(212, 175, 55, 0.655);
}

 .carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; } 

/* .carousel-arrow.prev { inset-inline-start: 0; } */
/* .carousel-arrow.next { inset-inline-end: 0; }  */

.wow-carousel-box .spotlight {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at var(--x) var(--y), rgba(181, 142, 12, 0.511), transparent 40%);
  opacity: 0; transition: opacity 0.4s ease-out; pointer-events: none; z-index: 2;
}

.wow-carousel-box:hover .spotlight { opacity: 1; }

.slide-logo {
  max-width: 70%;
  max-height: 60px;
  filter: drop-shadow(0 4px 15px rgba(170, 182, 7, 0.4));
  border: 3px solid #b88a00;
  border-radius: 15px;
  padding: 10px;
  background: rgba(10,10,10,0.5);
  box-shadow: inset 0px 2px 2px 4px rgba(231, 177, 29, 0.377);
}

.slide-logo :hover{
  border: 4px solid whitesmoke;
}
.slide-subtitle { color: #d4af37; font-size:1.4rem;font-weight:200; text-transform: uppercase; letter-spacing: 1px; }
.slide-title { color: #fff; font-size: 2.8rem; font-weight: 700; }
.slide-text { color: #ada6a6; font-size: 1rem;letter-spacing: 1px; }

.cta-button-wrapper { 
  margin-top: 4.5rem;
}
.cta-link-button { color: #d4af37; font-size: 1.2rem; font-weight: bold; text-decoration: none; padding-bottom: 5px; position: relative; transition: color 0.3s ease;
  display: inline-flex; /* Button ko inline rakhta hai lekin uske andar ke items (text, icon) ko flex banata hai */
  align-items: center;  /* Yahi sabse important hai: Text aur icon ko vertically center karta hai */
  gap: 8px;             /* Text aur icon ke beech thodi si jagah deta hai (optional, par accha dikhta hai) */
}
.cta-link-button i { margin-left: 8px; transition: transform 0.3s ease; }
.cta-link-button::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: #d4af37; transition: width 0.3s ease; }
.cta-link-button:hover { color: #fff; }
.cta-link-button:hover::after { width: 100%; }
.cta-link-button:hover i { transform: translateX(5px); }
/* === JANATHA GROUP LEGACY (FINAL RESPONSIVE VERSION) === */

/* --- Mobile-First Base Styles (for screens up to 767px) --- */
.janatha-legacy-final {
  background-color: #0a0a0a;
}
.carousel-wrapper {
  position: relative;
  padding: 0 15px; /* Mobile default padding */
}
.wow-carousel-box {
  position: relative;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, #3e3e3e 50%, #111111d2 100%);
  border-radius: 20px;
  border: 2px solid rgb(131, 109, 2);
  box-shadow: 0 9px 8px 3px rgba(180, 135, 12, 0.6);
  padding: 20px; /* Reduced padding on mobile */
  overflow: hidden;
  /* MOBILE MIN-HEIGHT: Yahan mobile ki height set hogi */
  height: 55.3rem; /* Mobile par yeh height dikhegi. Ise adjust kar sakte ho. */
}

/* Hide arrows on mobile screens */
.carousel-arrow {
  display: none;
}

/* Show indicators on mobile */
.carousel-indicators {
  display: flex; 
  justify-content: center;
  position: absolute; 
  right: 0; 
  bottom: 10px; 
  left: 0;
  z-index: 2; 
  margin-bottom: 0;
}
.carousel-indicators button {
  width: 9px; 
  height: 9px; 
  border-radius: 50%;
  background-color: #666; 
  border: none; 
  margin: 0 5px;
}
.carousel-indicators button.active { 
  background-color: #d4af37;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.carousel-fade .carousel-item.active {
  opacity: 1;
  position: relative;
}

/* --- Content Styling on Mobile --- */
.slide-logo{
  max-width: 90%;
  max-height: 180px; 
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
  border: 2px solid #b88a00;
  border-radius: 20px;
  padding: 5px;
  background: rgba(10,10,10,0.5);
  text-align: center;
}

.slide-subtitle { 
  font-size: 1.2rem;
  color: #d4af37; 
  font-weight: 200; 
  text-transform: uppercase; 
  letter-spacing: normal; 
  text-align: center;

}
.slide-title { 
  font-size: 1.8rem;
  font-weight: 600; 
  color: #fff; 
  text-align: center;

}
.slide-text { 
  font-size: 0.9rem;
  color: #ada6a6; 
  letter-spacing: normal; 
  text-align: center;

}
.cta-button-wrapper { 
  margin-top: 7rem; 
}
.cta-link-button { 
  color: #d4af37; 
  font-size: 1rem; 
  font-weight: bold; 
  text-decoration: none; 
  padding-bottom: 5px; 
  position: relative; 
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-link-button i { margin-left: 8px; transition: transform 0.3s ease; }
.cta-link-button::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: #d4af37; transition: width 0.3s ease; }
.cta-link-button:hover { color: #fff; }
.cta-link-button:hover::after { width: 100%; }
.cta-link-button:hover i { transform: translateX(5px); }

/* --- Desktop & Tablet Styles (for screens 768px and up) --- */
@media (min-width: 768px) {
  .carousel-wrapper {
    padding: 0 60px; /* Restore padding for external arrows on laptops */
  }
  .wow-carousel-box {
    padding: 40px; 
    /* LAPTOP MIN-HEIGHT: Yahan laptop ki height set hogi */
    height:30rem !important; 
    /* display: flex; */
    justify-content: center;  /* Centers horizontally */
    align-items: center;      /* Laptop par yeh height dikhegi. Ise adjust kar sakte ho. */
  }

  /* Hide indicators on laptops */
  .carousel-indicators {
    display: none;
  }
  /* Show arrows on laptops */
  .carousel-arrow {
    display: flex;
  }
  
  .slide-logo {
    max-height: 180px;
    border: 4px solid #b88a00;
    padding: 10px;
  }
  .slide-subtitle { 
    font-size: 1.4rem;
    letter-spacing: 1px;
  }
  .slide-title { 
    font-size: 2.8rem;
  }
  .slide-text { 
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .cta-button-wrapper { 
    margin-top: 4.5rem;
  }
  .cta-link-button {
    font-size: 1.2rem;
  }
}
/* === OUR JOURNEY SECTION === */
.journey-wrapper {
  background: #0e0e0e;
  padding: 40px 20px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}
.journey-wrapper h2 {
  text-align: center;
  font-size: 42px;
  color: #ffd700;
  margin-bottom: 50px;
}
.phase-title {
  font-size: 29px;
  color: #f1f1f1;
  margin: 50px 0 20px;
  /* border-left: 5px solid #ffd700;
  padding-left: 15px;
  text-align: left; */
  border-inline-start: 5px solid #ffd700;
  padding-inline-start: 15px;
  text-align: start;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.journey-card {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border: 2px solid #b88a00;
}
.journey-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}
.journey-card h3 {
  font-size: 23px;
  color: #ffd700;
  margin-bottom: 10px;
}
.journey-card h4 {
  font-size: 19px;
  color: #eee;
  margin-bottom: 10px;
}
.journey-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
}


/* === PRODUCTS SECTION === */
.products-section {
  background-color: #111;
  color: #fff;
  padding: 60px 0;
}
.products-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #d4af37;
  text-align: center;
}
.products-section p.text-muted {
  color: #ccc !important;
  max-width: 650px;
  margin: auto;
}
.products-section .card {
  background-color: #000;
  border: 2px solid #d4af37;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.products-section .card img {
  height: 220px;
  object-fit: cover;
}
.products-section .card-body {
  padding: 15px;
  text-align: center;
}
.products-section .card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}
.products-section .card-text {
  font-size: 0.95rem;
  color: #ddd;
}
.products-section .card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 8px 20px rgba(212, 175, 55, 0.5);
}
@media (max-width: 768px) {
  .products-section .section-title { font-size: 2rem; }
  .products-section p.text-muted { font-size: 0.9rem; }
  .products-section .card img { height: 180px; }
}
@media (max-width: 576px) {
  .products-section { padding: 40px 0; }
  .products-section .section-title { font-size: 1.8rem; }
  .products-section .card img { height: 160px; }
}

/* === PRODUCTS SECTION MOBILE IMAGE FIX === */
/* === PRODUCTS SECTION - FINAL MOBILE FIX FOR UNIFORM CARDS === */
@media (max-width: 576px) {
  
  /* 1. Card ko flex container banayenge taaki height barabar ho */
  .products-section .card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Yeh card ko grid row mein poori height lene deta hai */
  }

  /* 2. Image ke liye ek fixed height ka 'frame' (container) banayenge */
  .products-section .card-img-container {
    height: 180px; /* Aap is height ko kam ya zyada kar sakte hain */
    padding: 1rem; /* Image ke aas-paas thodi jagah dega */
    background-color: white; /* Khali jagah ko safed dikhayega */
    box-sizing: border-box;
  }
  
  /* 3. Image ko us frame ke andar poora fit karenge */
  .products-section .card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Yahi asli jaadu hai - Image ko bina kaate poora fit karega */
  }

  /* 4. Card ke text area ko bachi hui jagah lene denge */
  .products-section .card-body {
    flex-grow: 1; /* Yeh sunishchit karega ki saare cards ki total height barabar ho */
  }
}


/* === BRANDS SECTION === */
.brands-section {
  background: #000;
  padding: 80px 20px;
}
.brands-panel {
  background: #323231ad;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(3, 3, 3, 0.35);
  border: 1px solid rgba(255,215,0,0.05);
  text-align: center;
  border: 2px solid #b88a00;
}
.brands-title {
  color: #e6b800;
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 700;
}
.brands-sub {
  color: #cfcfcf;
  margin-bottom: 40px;
  font-size: 1rem;
  font-style: italic;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
}
.brand-card {
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-height: 100px;
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(215, 182, 75, 0.6);
  background-color:#d8b74c;
}
.brand-card img {
  max-height: 5rem;
  max-width: 100%;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
}
#exide { max-height: 2.5rem; }
#tel { max-height: 4rem; 
border-radius: 3px;}
#cummin { max-height: 4rem; }
#jk { max-width: 8rem; }
#ashok{ max-width: 10rem;} 

@media (max-width: 576px) {
  .brands-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .brand-card img {
    max-height: 3.5rem !important;
     max-width: 100% !important;
  }
  #exide {
    max-height: 1.8rem !important;
  }
}


/* === GALLERY SECTION === */
.gallery-item img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.9s ease, box-shadow 0.9s ease;
  border: 3px solid #d3b521;
}
.gallery-item:hover img {
  transform: scale(1.1);
  box-shadow: 10px 15px 15px rgba(212, 175, 55, 0.7);
}


/* === TESTIMONIALS SECTION (Revised) === */
.testimonials-section {
  background-color: #0e0e0e;
  margin-top: 2rem;
  /* For a more modern look, consider adding a font like Poppins or Lato from Google Fonts to your project's main stylesheet */
  /* font-family: 'Poppins', sans-serif; */
}

/* Custom class for your gold text, if not already defined elsewhere */
.text-gold {
    color: #d4af37 !important;
}

.flip-card {
  background-color: transparent;
  width: 95%;
  max-width: 330px;
  height: 350px;
  perspective: 1500px;
  margin: 0 auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s, box-shadow 0.4s;
  transform-style: preserve-3d;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 3px solid #d4af37;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* For Safari */
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #f0f0f0;
}

/* --- Card Front Styling --- */
.flip-card-front {
  background: linear-gradient(135deg, #6e6e6e, #0e0d0d);
}

.flip-card-front h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

/* This targets the <p> tag on the front card specifically */
.flip-card-front .text-muted {
  color: #d4af37 !important;
  font-size: 0.9rem;
  font-style: italic;
  max-width: 80%;
}

.flip-card-front .quote-icon {
  font-size: 5rem;
  position: absolute;
  bottom: -15px;
  right: 5px;
  opacity: 0.05;
  color: #c1c0c0;
}

/* --- Card Back Styling --- */
.flip-card-back {
  background: linear-gradient(135deg, #d8b74c, #695108);
  color: #1a1a1a;
  transform: rotateY(180deg);
  justify-content: space-around;
  border: 3px solid #2a2928 ;
}

.flip-card-back .testimonial-text {
  font-style: normal;
  font-weight: 500; /* Bolder text */
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  padding: 0 10px;
}

/* Use pseudo-elements for stylish quote marks */
.flip-card-back .testimonial-text::before {
    content: '“';
    font-family: 'Georgia', serif;
    font-size: 3rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.2);
    position: absolute;
    top: -10px;
    left: -10px;
}

.flip-card-back .star-rating {
    margin-top: 15px;
}

.flip-card-back .star-rating .fas {
  font-size: 1.2rem;
  margin: 0 3px;
  color: #1e1e1e;
}


/* === CONTACT SECTION (FINAL & STABLE) === */
.contact-section {
  background-color: #0e0e0e;
}
.contact-panel {
  background-color: #1a1a1a;
  border: 1px solid #ece959c3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 1300px;
}
.contact-form .form-control {
  background-color: #2b2b2b;
  border: 1px solid #ece959c3;
  color: #d1c2c2;
  padding: 10px 15px;
  transition: all 0.3s ease;
}
.contact-form .form-control:focus {
  background-color: #2b2b2b;
  border-color: #d4af37;
  box-shadow: 0 0 8px rgba(226, 187, 60, 0.582);
}
.contact-form .form-control::placeholder {
  color: #949191;
}
.contact-info {
  background-color: #1f1f1f;
  border: 1px solid #ece959c3;
  padding: 2rem;
}

.contact-info .text-secondary {
  color: white;
  font-size: 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
}

.contact-info i {
  transition: transform 0.3s ease;
}
.contact-info i:hover {
  transform: scale(1.1);
}

/* NEW: Styling for the QR Code */
.qr-code-image {
  width: 80px; /* Aap is size ko kam ya zyada kar sakte hain */
  height: auto;
  border: 2px solid #d4af37;
  border-radius: 4px;
  padding: 4px;
  background-color: white; /* Important for scannability */
}

.contact-section .fw-bold,
.contact-section .text-gold {
  text-align: left;
  margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
  .contact-panel { padding: 3rem 2rem; }
  .order-lg-2 { order: 1 !important; }
  .order-lg-1 { order: 2 !important; }
  .contact-info { margin-left: 0; margin-bottom: 2rem; }
}

@media (max-width: 575.98px) {
  .contact-panel { padding: 2rem 1rem; }
  .contact-info { padding: 1.5rem; }
  .contact-info .d-flex.align-items-center { align-items: flex-start !important; }
}


/* === FINAL, CORRECTED FOOTER CSS (FOR TWO-COLUMN LAYOUT) === */
.footer-modern {
  background-color: #0d0d0d;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  position: relative;
  /* Visual Separation: Clear gap and dividing line */
  margin-top: 5rem;
  border-top: 3px solid #d4af37;
}

.footer-modern a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-modern a:hover {
  color: #d4af37;
}

.footer-modern .list-unstyled li a:hover {
  transform: translateY(-2px);
  color: #d4af37;
}

.footer-modern .list-unstyled {
  margin-left: 0;
  padding-left: 0;
}
.footer text-secondary{
 color: #fff;
}
.footer-modern .container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* 
  This is the new, simplified media query for mobile screens.
  It ensures the two columns stack vertically and are perfectly centered.
*/
@media (max-width: 767.98px) {
  .footer-modern .row {
    justify-content: center !important; /* Override the desktop 'space-between' */
    text-align: center;
  }
  
  /* Add some space between the logo and the links when they stack */
  .footer-modern .col-auto:first-child {
    margin-bottom: 1.5rem;
  }
}
/* === VERY SMALL SCREEN FIXES === */
@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: 2.1rem;
  }

  .why-box {
    padding: 2rem 1rem;
  }

  #janathaDivisionsCarousel {
    padding: 1.5rem 0.5rem;
  }

  .carousel-caption-custom .division-title {
    font-size: 1.6rem;
  }
}


/* === UTILITY & ANIMATION CLASSES === */
.success-box {
  background-color: #d4af37;
  color: #000;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

.error-box {
  background-color: #b71c1c;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* === RTL LANGUAGE ADJUSTMENTS & FIXES === */

.contact-item {
  gap: 1rem; 
}

html[lang="ar"] body {
  font-family: 'Cairo', sans-serif;
  font-size: 110%;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .contact-form .form-control::placeholder {
  text-align: right;
}

html[lang="ar"] .cta-link-button:hover i {
  transform: translateY(-5px); /* Arabic mein arrow ko left mein move karega */
}
html[lang="ar"] #legacyWowCarousel .carousel-caption {
  max-height: 150px;
  overflow-y: auto;   /* allows scrolling if text is long */
}
/* === ARABIC LANGUAGE SUPPORT === */

/* General Arabic text styling */
.arabic-lang {
  font-family: 'Cairo', 'Tajawal', 'Amiri', 'Noto Sans Arabic', Arial, sans-serif;
  direction: rtl;
}
