/* ============================================================
styles.css - Full updated stylesheet for Hr Minds3 main + services page
Merged mobile rules, single responsive menu approach, removed duplicate media blocks,
added z-index fixes, adjusted map ratio to 16:9 option, and removed unnecessary !important usages.
Save this as styles.css and ensure both index.html and services-details.html link to it
============================================================ */

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Flex helper */
.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header / Navbar */
.navbar {
  background: whitesmoke;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  padding-left: 0;
  padding-right: 0;
}

.logo {
  margin-left: -100px;
  padding-right: 0;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 70px;
  width: auto;
}

/* Menu toggle (hidden on large screens by default) */
.menu-toggle {
  display: none;
  z-index: 1100; /* above the menu */
}

/* Nav menu (desktop) */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 60px;
  margin-left: 20px;
}

.nav-menu li a {
  text-decoration: none;
  color: black;
  font-weight: 600;
  padding: 10px 10px;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: #0072ce;
}

/* Banner sections (Generic) */
.banner {
  color: white;
  padding: 80px 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 750px;
  display: flex;
  align-items: center;
}

/* Default Overlay for standard banners */
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

/* Banner content above overlay */
.banner-content {
  position: relative;
  z-index: 5;
  max-width: 700px;
}

/* Background images (ensure files/paths exist) */
.banner.expertise {
  background-image: url('images/imagenew 1.png');
}

.banner.thought-leadership {
  background-image: url('images/divi 5.png');
}

.banner.people {
  background-image: url('images/imagenew 2.png');
  min-height: 700px;
}

/* =============================================================
Thought Leadership Styles (Khaitan Blue Box)
============================================================= */
.banner.thought-leadership::before {
  display: none; /* Remove dark overlay for this section */
}

.banner.thought-leadership .banner-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 0 5% 0 10%;
  margin: 0;
  max-width: none;
  z-index: 5;
}

.banner.thought-leadership h2 {
  font-size: 1.1rem;
  color: #c5c9cd;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.banner.thought-leadership h1 {
  font-size: 1.9rem;
  line-height: 1.3;
  margin-bottom: 30px;
}

.btn-group-row {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-ghost {
  border: 1px solid white;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: 0.3s;
}

.btn-ghost:hover {
  background: white;
  color: #002D62;
}

/* =============================================================
People / Testimonials Styles
============================================================= */
.banner.people .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 110%;
}

.testimonial-content {
  position: relative;
  z-index: 5;
  text-align: center;
  width: 100%;
  padding: 20px;
}

.testimonial-content .people-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 110px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: white;
  line-height: 1;
}

.testimonial-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial-card {
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex: 1 1 300px;
  max-width: 380px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card .quote-icon {
  font-size: 3rem;
  color: #0072ce;
  line-height: 1;
  margin-bottom: 15px;
  display: block;
}

.testimonial-card .testimonial-text {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

.testimonial-card .testimonial-author {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
  margin-top: 15px;
}

/* Map Section Styles */
.map-section {
  padding: 50px 0;
  background: whitesmoke;
}

.map-section h2 {
  margin-bottom: 40px !important;
  font-size: 2rem;
  color: #333;
  text-align: center;
}

.map-flex-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  background: #222;
  color: white;
  padding: 20px;
}

.map-column {
  flex: 1 1 55%;
  min-width: 300px;
}

.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  height: 0;
  border: 1px solid #ddd;
}

.map-responsive iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.details-column {
  flex: 1 1 35%;
  padding: 20px 0 20px 20px;
}

.details-column h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.details-column p {
  margin-bottom: 10px;
  line-height: 1.4;
}

.contact-block {
  margin-bottom: 30px;
}

.contact-block a {
  color: #0072ce;
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.footer {
  background: #f5f5f5;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

/* Center footer content horizontally and vertically */
footer .container.footer-content,
footer .footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px; /* optional vertical space */
  text-align: center;
}

/* =============================================================
"About Us" Khaitan Style Overrides (expertise banner)
============================================================= */
.banner.expertise::before {
  display: none;
}

.banner.expertise .banner-content {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px 0 10%;
  color: #333;
  box-shadow: 5px 0 20px rgba(0,0,0,0.1);
  z-index: 5;
}

.banner.expertise h2 {
  color: #0290fd;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: bottom 0px;
}

.banner.expertise h1 {
  color: #002D62;
  font-size: 2.1rem;
  line-height: 1.3;
  margin-bottom: 30px;
  font-weight: 800;
}

.banner.expertise p {
  color: #444;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}



/* CTA buttons */
.btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid #ebeff2;
  color: #eaeef2;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s;
  border-radius: 6px;
  background: transparent;
}

.btn-outline:hover {
  background: #0072ce;
  color: white;
}



/* New Explore button variant that visually matches the example */
.btn-explore {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  box-shadow: none;
  margin-top: 10px;
  font-weight: 700;
}

/* Make outline CTA visible on the white expertise left panel */
.banner.expertise .btn-outline {
  border-color: #002D62;
  color: #002D62;
  background: transparent;
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  box-shadow: none;
  margin-top: 10px;
  font-weight: 700;
}
/* On hover keep same behavior but invert to match design */
.banner.expertise .btn-outline:hover {
  background: #002D62;
  color: #fff;
}




/* CTA row */
.cta-row {
  margin-top: 8px;
}
/* ========== FULL MOBILE PART CSS (place this after desktop rules) ==========
   Targets up to 768px and includes a tighter override for very small phones (<=360px).
   - Keeps thought-leadership panel white on mobile
   - Makes expertise panel appear like desktop (white left panel) on most mobiles,
     with a stacked fallback on very small screens to avoid clipping.
   ========================================================================== */

/* General mobile/tablet adjustments */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body { overflow-x: hidden; }

  /* Container/padding adjustments */
  .container { padding-left: 16px; padding-right: 16px; }

  /* Logo & navbar */
  .logo { margin-left: 0; }
  .logo img { height: 56px; display: block; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 36px;
    height: 28px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 12px;
    z-index: 1100;
    background: transparent;
    border: none;
  }
  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* Mobile nav: slide-in from right */
  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    background: #fff;
    height: calc(100% - 60px);
    width: 260px;
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    box-shadow: -2px 0 12px rgba(0,0,0,0.08);
    transition: right 0.28s cubic-bezier(.2,.9,.2,1);
    display: flex;
    z-index: 1050;
  }
  .nav-menu.active { right: 0; }
  .nav-menu li { text-align: left; padding: 8px 6px; }
  .nav-menu li a { display: block; padding: 8px 12px; }

  /* ---------- Banner Base ---------- */
.banner {
position: relative;
padding: 50px 16px;
min-height: 0;
overflow: hidden;
}

/* ---------- Expertise (About) ---------- */
.banner.expertise .banner-content {
position: relative;
width: 100%;
background: rgba(255, 255, 255, 0.92);
padding: 28px 22px;
box-shadow: none;
}

.banner.expertise h1 {
font-size: 1.4rem;
line-height: 1.3;
color: #002D62;
}

.banner.expertise p {
font-size: .95rem;
line-height: 1.6;
color: #444;
}

/* ---------- Services ---------- */
.banner.thought-leadership .banner-content {
position: relative;
width: 100%;
background: rgba(0,0,0,0.6);
padding: 25px 20px;
box-shadow: none;
}

.banner.thought-leadership h2{
  font-size: 1.2rem;
}
.banner.thought-leadership h1{
font-size: 1.4rem;
line-height: 1.3;
}
.banner.thought-leadership p {
color:white !important;
}


   /* Text & CTA */
  .banner.expertise h1,
  .banner.thought-leadership h1 { margin: 0 0 12px 0; }
  .btn-group-row { display: flex; flex-direction: column; gap: 12px; }
  .btn-explore { width: 100%; padding: 12px; font-weight: 700; box-sizing: border-box; }
 /* Common banner text / CTA sizing */
  .banner.expertise h1,
  .banner.thought-leadership h1 { margin: 0 0 12px 0; }
  .btn-group-row { display: flex; flex-direction: column; gap: 12px; }
  .btn-explore { width: 100%; padding: 12px; font-weight: 700; box-sizing: border-box; }

  /* ================= TESTIMONIALS: wider & shorter cards, smaller text ================= */
  .testimonial-cards-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .testimonial-card {
    flex: 0 0 auto;
    width: calc(100% - 32px);  /* wider on mobile with side gutters */
    max-width: 520px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(0,0,0,0.6);
    color: #f0f0f0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .testimonial-card .quote-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #0072ce;
  }

  .testimonial-card .testimonial-text {
    font-size: 0.92rem;
    line-height: 1.4;
    margin-bottom: 10px;
    max-height: none;   /* allow natural height */
    overflow: visible;
    color: #f1f1f1;
  }

  .testimonial-card .testimonial-author {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
    margin-top: 8px;
  }

  /* Two-column layout for larger phones */
  @media (min-width: 480px) {
    .testimonial-cards-wrapper { flex-direction: row; justify-content: center; gap: 18px; }
    .testimonial-card { width: calc(50% - 18px); max-width: 360px; }
  }
  
  /* ---------------- MAP & CONTACT: fix overflow and ensure responsive iframe ---------------- */
  .map-flex-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: #222; /* keep existing BG if desired */
  }

  .map-column,
  .details-column {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
  }

  .map-responsive {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .map-responsive iframe {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
    display: block;
  }

  /* reduce visual extras on small screens for map */
  .map-responsive, .map-responsive iframe { border-radius: 0; box-shadow: none; }

  /* Details column styling */
  .details-column { padding: 12px 6px; color: #fff; } /* keep contrast against dark bg in map area */
  .details-column h3 { color: #fff; }
  .contact-block a { color: #eaeef2; }

  /* Footer */
  .footer { padding: 18px 12px; }
  footer .container.footer-content,
  footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    text-align: center;
    padding: 8px 12px;
  }

  /* Misc tweaks */
  .testimonial-content .people-title { margin-bottom: 60px; font-size: 1.8rem; }
}


/* =============================================================
Services details page specific utilities (used by services-details.html)
============================================================= */
.services-hero {
  background: linear-gradient(90deg, rgba(0,45,98,0.04), rgba(0,114,206,0.02));
  padding: 42px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.services-hero .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1100px;
}

.services-hero h1 {
  color: #002D62;
  font-size: 2rem;
  margin-bottom: 6px;
}

.services-hero p {
  color: #444;
  font-size: 1rem;
  max-width: 900px;
}

.services-wrapper {
  padding: 36px 16px;
}

.services-card {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.services-card h2 {
  color: #002D62;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.services-list {
  list-style: disc;
  padding-left: 22px;
  line-height: 1.7;
  color: #333;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: #0072ce;
  text-decoration: none;
  font-weight: 700;
}

/* Small adjustments for very narrow screens */
@media (max-width: 600px) {
  .services-hero h1 { font-size: 1.5rem; }
  .services-card { padding: 18px; }
} 

