/* ============================================================
   VERMILLION ACADEMY — Premium Education Website
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --accent: #691524;
  --accent-dark: #691524;
  --accent-light: #691524;
  --white: #ffffff;
  --silver: #f8f8f8;
  --border: #ebebeb;
  --text: #0f0f0f;
  --text-mid: #4a4a4a;
  --text-light: #4e4e4e;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.14);
  --radius: 16px;
  --transition: 0.38s cubic-bezier(.4,0,.2,1);
  --font-display: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- LAYOUT ---- */
.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}
.section { padding: 96px 0; }
.section--silver { background: var(--white); }

/* ---- TYPOGRAPHY ---- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 20px;
}
.section-heading em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 650px;
  line-height: 1.75;
  margin-top: 8px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-sub {
  margin-inline: auto;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 10px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.col-md-4.connect-btn {
    text-align: end;
}
.whatsapp {
    position: fixed !important;
    left: 20px;
    bottom: 30px;
    z-index: 999;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.btn:hover::before { transform: scaleX(1); }
.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(133,11,11,.3);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(133,11,11,.4);
  color: var(--white) !important;
}
.btn--hero {
  background: var(--accent);
  color: var(--white);
  font-size: 1rem;
  padding: 16px 40px;
  box-shadow: 0 4px 24px rgba(133,11,11,.4);
}
.btn--hero:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(133,11,11,.5);
}
.btn--full { width: 100%; justify-content: center; }

/* ---- SCROLL REVEAL ---- */
.reveal-up, .reveal-left, .reveal-right, .reveal-hero {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-hero { transform: translateY(30px); }
.revealed {
  opacity: 1 !important;
  transform: none !important;
}
[style*='--delay'] .reveal-up,
[style*='--delay'] .reveal-right,
[style*='--delay'] .reveal-left {
  transition-delay: var(--delay, 0s);
}

/* ---- HEADER ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,.07);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  width: min(1240px, 92%);
  margin-inline: auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo__mark {
  width: 40px; height: 40px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo__text em {
  font-style: italic;
  font-size: .8rem;
  color: var(--accent);
  font-weight: 400;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.nav__link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: 100px;
  transition: var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s ease;
  border-radius: 2px;
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
/*.hero {*/
/*  position: relative;*/
/*  height: 99vh;*/
/*  min-height: 600px;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  overflow: hidden;*/
/*}*/
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.72) 0%, rgba(133,11,11,.35) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
}
.hero__eyebrow {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 20px;
}
.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero__heading em {
  font-style: italic;
  color: #610000;
}
.hero__sub {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: .5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(.6); }
}

/* ---- ABOUT ---- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__img-wrap {
  position: relative;
  height: 540px;
}
.about__img-frame {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__img-frame--top {
  width: 78%;
  height: 360px;
  top: 0; left: 0;
  border: 5px solid var(--white);
}
.about__img-frame--bottom {
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
  width: 52%;
  height: 220px;
  bottom: 0; right: 0;
  border: 5px solid var(--white);
}

.about__img-frame img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
display: block;
}
.about__img-badge {
  position: absolute;
  top: 50%; right: -20px;
  transform: translateY(-50%);
  background: var(--accent);
  color: var(--white);
  width: 130px; height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 30px rgba(133,11,11,.4);
  z-index: 2;
}
.about__img-badge-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}
.about__img-badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .05em;
  opacity: .85;
}
.about__para {
  color: var(--text-mid);
  line-height: 1.8;
  font-size: 1.02rem;
  margin-bottom: 28px;
}
.about__list {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.about__list-icon {
  color: var(--accent);
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ---- BRANCHES ---- */

.branches__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Ye 3 cards ko center karega */
  gap: 25px;
}

.branch-card {
  /* 4 columns calculate karne ke liye (gap ko minus karke) */
  flex: 0 1 calc(25% - 20px); 
  width: 240px;
  height: 280px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.branch-card__inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .45s ease, transform .45s ease, border-color .45s ease;
}

.branch-card:hover .branch-card__inner {
  box-shadow: 0 20px 60px rgba(133,11,11,.22);
  transform: translateY(-10px) scale(1.04);
  border-color: var(--accent);
}

/* Background image — always visible */
.branch-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.branch-card:hover .branch-card__img {
  transform: scale(1.1);
}

/* Dark gradient overlay — always present, deepens on hover */
.branch-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.28) 50%,
    rgba(0,0,0,.08) 100%
  );
  transition: background .45s ease;
  z-index: 1;
}

.branch-card:hover .branch-card__overlay {
  background: linear-gradient(
    to top,
    rgba(133,11,11,.82) 0%,
    rgba(0,0,0,.45) 55%,
    rgba(0,0,0,.15) 100%
  );
}

/* Content wrapper — name always visible, button slides in on hover */
.branch-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 36px;
  gap: 12px;
}

.branch-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.25;
  padding: 0 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  transition: transform .4s ease;
}

.branch-card:hover .branch-card__name {
  transform: translateY(-4px);
}

/* View More button — hidden by default, slides up on hover */
.branch-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  /* Hidden state */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .38s ease, transform .38s ease, background .25s, color .25s;
  pointer-events: none;
}

.branch-card:hover .branch-card__btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.branch-card__btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* ---- STATS / COUNTER ---- */
.stats { background: var(--silver); }
.stats__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  padding: 20px 0;
}
.stat-item {
  text-align: center;
  padding: 36px 24px;
}
.stat-item__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}
.stat-item__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-item__label {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.stat-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- NEWS ---- */
section#news {
  background-image: url('./Group-230.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    /* background: var(--silver); */
}
.apply-now {
    padding: 40px;
    background: #691524;
    text-align: center;
}
.apply-text {
    color: white;
    font-size: 22px;
    text-align: left;
}
.connect-btn a.btn-header.btn-header--solid.apply-btn {
    font-size: 20px;
}
.apply-heading {
    color: white;
    margin-bottom: 20px;
    font-size: 40px;
    text-align: left;
}
.apply-btn {
    background: white !important;
    color: black !important;
    border: 1px solid white !important;
}

.apply-btn:hover {
    border: 1px solid white !important;
}
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .4s ease, transform .4s ease;
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.news-card__img-wrap {
  height: 220px;
  overflow: hidden;
}
.news-card__img-wrap img {
  height: 100%;
  transition: transform .6s ease;
}
.news-card:hover .news-card__img-wrap img {
  transform: scale(1.06);
}
.news-card__body {
  padding: 24px 28px 28px;
}
.news-card__cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(133,11,11,.07);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.news-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 12px;
  transition: color .3s;
}
.news-card:hover .news-card__title { color: var(--accent); }
.news-card__desc {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.news-card__link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .3s;
}
.news-card__link:hover { gap: 12px; }

/* ---- CONTACT ---- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__para {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 28px;
  font-size: 1.02rem;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .93rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.contact__detail_phone {
  font-size: .93rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.contact__detail span { flex-shrink: 0; }
.contact__map-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  line-height: 0;
}
.contact__map {
  display: block;
  width: 100%;
  height: 120px;
  border: 4px solid #ffffff;
  border-radius: var(--radius);
}
.contact__form-wrap {
  background: var(--silver);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .25s;
  resize: vertical;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(133,11,11,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0b0b0;
}

/* CTA section removed */

/* ---- FOOTER ---- */
.footer {
  background: var(--silver);
  border-top: 1px solid var(--border);
  padding: 72px 0 48px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 0px;
}
.footer__about {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.75;
  margin: 18px 0 24px;
  max-width: 280px;
}
.footer__social {
  display: flex;
  gap: 10px;
}
ul.footer__links {
    padding-left: 0px;
}
p {
    margin-bottom: 0px;
}
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: var(--transition);
}
.social-icon svg { width: 21px; height: 16px; }
.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}
.footer__heading {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links li a {
  font-size: .88rem;
  color: var(--text-light);
  transition: color .25s;
}
.footer__links li a:hover { color: var(--accent); }
.footer__links--contact li {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Certificate image in footer contact column */
.footer__cert-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__cert-img {
  width: 100%;
  max-width: 180px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  /* box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); */
  display: block;
}
.footer__cert-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer__strip {
  background: var(--accent);
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 16px 20px;
  font-size: .82rem;
  letter-spacing: .03em;
}

/* ---- PRELOADER ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.preloader__logo {
  width: 160px;
  height: auto;
  object-fit: contain;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.06); }
}
.preloader__bar {
  width: 140px;
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.preloader__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 100px;
  animation: preloaderFill 1.9s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes preloaderFill {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

/* ---- DROPDOWN NAV ---- */
.nav__item--dropdown {
  position: relative;
}
.nav__link--has-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.28s ease;
  stroke: currentColor;
}
.nav__item--dropdown:hover .nav__chevron,
.nav__item--dropdown.open .nav__chevron {
  transform: rotate(180deg);
}
.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  z-index: 100;
}
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown.open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  white-space: nowrap;
}
.nav__dropdown-link:hover {
  color: var(--accent);
  background: rgba(105, 21, 36, 0.05);
  padding-left: 26px;
}

section#stats {
    padding: 0px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .about__grid { gap: 48px; }
  /* .branches__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .branch-card { width: 190px; height: 190px; } */
  .branches__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Ye 3 cards ko center karega */
  gap: 20px;
}

.branch-card {
  /* 4 columns calculate karne ke liye (gap ko minus karke) */
  flex: 0 1 calc(25% - 20px); 
  min-width: 250px; /* Mobile par responsiveness ke liye */
}
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__img-wrap { height: 340px; }
  .about__img-badge { right: 8px; width: 80px; height: 80px; }
  .branches__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .branch-card { width: 210px; height: 210px; }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat-divider { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact__map { height: 220px; }

  .hamburger { display: flex; }
  .nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4,0,.2,1);
  }
  .nav.open { max-height: 600px; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }
  .nav__link {
    display: flex;
    padding: 14px 24px;
    border-radius: 0;
    width: 100%;
  }
  .nav__link::after { display: none; }

  /* Mobile dropdown */
  .nav__item--dropdown { position: relative; }
  .nav__dropdown {
    position: static;
    transform: none !important;
    left: auto;
    min-width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: var(--silver);
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
  }
  .nav__dropdown::before { display: none; }
  .nav__item--dropdown.open .nav__dropdown {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    padding: 4px 0 8px;
  }
  /* Override hover-based open on mobile */
  .nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    padding: 0;
  }
  .nav__item--dropdown.open:hover .nav__dropdown {
    max-height: 400px;
    padding: 4px 0 8px;
  }
  .nav__dropdown-link {
    padding: 10px 24px 10px 40px;
    font-size: .86rem;
    border-left: 3px solid var(--accent);
    margin: 2px 16px;
    border-radius: 0 8px 8px 0;
  }
  .nav__dropdown-link:hover { padding-left: 46px; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .branches__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  /* .branch-card { width: 160px; height: 160px; } */
  .branch-card__name { font-size: .88rem; }
  .news__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat-divider { display: none; }
  .contact__form-wrap { padding: 28px 22px; }
  .contact__map { height: 200px; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__img-wrap { height: 280px; }
  .about__img-frame--bottom { display: none; }
  .about__img-badge { display: none; }
}

@media (max-width: 440px) {
  .branches__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* .branch-card { width: 140px; height: 140px; } */
  .branch-card__name { font-size: .8rem; }
  .hero__heading { font-size: 2.2rem; }
  .branch-card__content { padding-bottom: 24px; gap: 8px; }
  .branch-card__btn { font-size: .7rem; padding: 6px 14px; }
}



/* ============================================================
   ADDITIONS v2: Header Buttons · Services Carousel · Branch Panels
   ============================================================ */

/* ---- HEADER BUTTONS ---- */
.header__btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 10px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn-header--outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-header--outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(105,21,36,.25);
}
.btn-header--solid {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 16px rgba(105,21,36,.3);
}
.btn-header--solid:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(105,21,36,.4);
  color: var(--white);
}
@media (max-width: 900px) {
  .header__btns { display: none; }
}


/* ============================================================
   SERVICES — Icon Cards with Hover-Reveal
   ============================================================ */

.services-section {
  /* ---- SECTION BACKGROUND IMAGE PLACEHOLDER ---- */
  background-image: url('#');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
  background-color: var(--white);
}

/* Grid: 3 columns on desktop */
.svc-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- INDIVIDUAL ICON CARD ---- */
.svc-icon-card {
  position: relative;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: var(--silver);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.42s ease, transform 0.42s ease;
}
.svc-icon-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Background image layer — hidden by default, visible on hover */
.svc-icon-card__bg {
  position: absolute;
  inset: 0;
  background-image: var(--svc-bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}
.svc-icon-card:hover .svc-icon-card__bg {
  opacity: 1;
  transform: scale(1);
}

/* Dark overlay — only appears on hover */
.svc-icon-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0);
  transition: background 0.45s ease;
}
.svc-icon-card:hover .svc-icon-card__overlay {
  background: rgba(60, 5, 15, 0.78);
}

/* DEFAULT STATE — icon + title centered, visible normally */
.svc-icon-card__default {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
  transition: opacity 0.38s ease, transform 0.38s ease;
}
.svc-icon-card:hover .svc-icon-card__default {
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
}

/* Icon — default */
.svc-icon-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(105,21,36,0.10);
  border: 2px solid rgba(105,21,36,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Title — default */
.svc-icon-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

/* HOVER STATE — full overlay content, centered */
.svc-icon-card__hover-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s ease 0.06s, transform 0.42s ease 0.06s;
  pointer-events: none;
}
.svc-icon-card:hover .svc-icon-card__hover-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Icon — hover (smaller, white) */
.svc-icon-card__icon--sm {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}

/* Title — hover */
.svc-icon-card__title--light {
  color: var(--white);
  font-size: 1.05rem;
}

/* Description — hover only */
.svc-icon-card__desc {
  font-size: .875rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  margin: 0;
  max-width: 280px;
}

/* Responsive */
@media (max-width: 900px) {
  .svc-icon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .svc-icon-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-icon-card { height: 220px; }
}


/* ============================================================
   BRANCHES — Equal-Width Carousel (4 visible, slide 1, infinite)
   ============================================================ */

.branches-panel-section {
  padding: 80px 0 0;
  /* ---- SECTION BACKGROUND IMAGE PLACEHOLDER ---- */
  background-image: url('#');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
  background-color: var(--silver);
}

/* Header row: heading left, arrows right */
.branches-carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  justify-content: center;
  padding: 0 40px 40px;
  flex-wrap: wrap;
}
.branches-carousel-heading-wrap {
  text-align: center;
  flex: 1;
}
.branches-carousel-heading-wrap .section-sub {
  margin-inline: auto;
}

/* Arrow group — top right */
.branch-nav-arrows {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 40px;
}
ul.branch-slide__desc {
    list-style: inherit !important;
}
.branch-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: background 0.28s, border-color 0.28s, color 0.28s, box-shadow 0.28s, transform 0.2s;
}
.branch-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(105,21,36,.32);
  transform: scale(1.08);
}

/* Viewport clips the track */
.branch-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

/* Track — all 6 slides in a row */
.branch-carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each slide = exactly 25% of viewport (4 visible) — no gap */
.branch-slide {
  flex: 0 0 25%;
  width: 25%;
  height: 510px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* BG image */
.branch-slide__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.branch-slide:hover .branch-slide__img {
  transform: scale(1.06);
}

/* Overlay */
.branch-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(0 0 0 / 42%);
  /* background: linear-gradient(
    to top,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.20) 55%,
    rgba(0,0,0,.04) 100%
  ); */
  transition: background 0.45s ease;
}
.branch-slide:hover .branch-slide__overlay {

  background: rgba(97, 0, 0, 0.767)
  /* background: linear-gradient(
    to top,
    rgba(105,21,36,.90) 0%,
    rgba(0,0,0,.65) 50%,
    rgba(0,0,0,.20) 100%
  ); */
}

/* Content: always centered both axes */
.branch-slide__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: center;
  padding: 28px 22px;
  /* text-align: center; */
}

/* Title — always visible, centered */
.branch-slide__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
  transition: transform 0.38s ease;
}
.branch-slide:hover .branch-slide__title {
  transform: translateY(-6px);
}

/* Description — hidden until hover */
.branch-slide__desc {
  font-size: .855rem;
  color: rgba(255,255,255,.9);
  line-height: 1.65;
  margin: 0;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.48s ease 0.06s, opacity 0.4s ease 0.06s, margin 0.4s ease 0.06s;
}
.branch-slide:hover .branch-slide__desc {
  max-height: 150px;
  opacity: 1;
  margin: 12px 0 0;
}

/* Button — slides up on hover */
.branch-slide__btn {
  width: 125px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.4s ease 0.12s, transform 0.4s ease 0.12s, background 0.25s, color 0.25s;
  margin-top: 16px;
  white-space: nowrap;
}
.branch-slide:hover .branch-slide__btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.branch-slide__btn:hover {
    background : var(--white);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .branch-slide { flex: 0 0 33.333%; width: 33.333%; height: 420px; }
}
@media (max-width: 768px) {
  .branch-slide { flex: 0 0 50%; width: 50%; height: 340px; }
  .branches-carousel-header { padding: 0 20px 32px; }
}
@media (max-width: 480px) {
  .branch-slide { flex: 0 0 100%; width: 100%; height: 300px; }
  .branches-panel-section { padding-top: 56px; }
}


/* =========================
   SECTION BACKGROUND IMAGES
   Replace URL in each rule to swap the image for that section.
========================= */

/* --- ABOUT section --- */
.about {
  background-image: url('#');
  background-size: 170px;
  background-position: right;
  background-repeat: no-repeat;
  background-color: var(--white);
}

/* --- STATS / COUNTER section --- */
.stats {
  background-image: url('https://www.transparenttextures.com/patterns/light-gray.png');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
  background-color: var(--silver);
}

/* --- NEWS section --- */

.news {
  background-image: url('./Group-230.png');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
  background-color: var(--silver);
}

/* --- CONTACT section --- */
.contact {
  background-image: url('#');
  background-size: auto;
  background-position: right;
  background-repeat: no-repeat;
  background-color: var(--white);
}

/* --- footer section --- */
.footer {
  background-image: url('');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
  
  
}

/* =========================
   MESH BACKGROUND WORKING
========================= */

.mesh-bg-left,
.mesh-bg-right {
  position: relative;
  overflow: hidden;
  isolation: isolate; /* important */
}

/* section content should stay above blobs */
.mesh-bg-left > *,
.mesh-bg-right > * {
  position: relative;
  z-index: 1;
}

/* Common blob styles */
.mesh-bg-left::before,
.mesh-bg-left::after,
.mesh-bg-right::before,
.mesh-bg-right::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 10%;
  filter: blur(180px);
  z-index: 0;
  pointer-events: none;
}

/* LEFT pattern */
.mesh-bg-left::before {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle,
    rgba(75, 0, 0, 0.733) 0%,
    transparent 50%);
}

/* LEFT side center blob */
.mesh-bg-left::before {
  top: 50%;
  left: -140px;
  transform: translateY(-50%);
  background: radial-gradient(circle,
    rgba(75, 0, 0, 0.733) 0%,
    transparent 50%);
}

.mesh-bg-left::after {
  display: none;
}

/* RIGHT side center blob */
.mesh-bg-right::before {
  top: 50%;
  right: -140px;
  transform: translateY(-50%);
  background: radial-gradient(circle,
    rgba(75, 0, 0, 0.733) 0%,
    transparent 50%);
}

.mesh-bg-right::after {
  display: none;
}