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

/* ---- CSS VARIABLES ---- */
:root {
  --accent: #691524;
  --accent-dark: #691524;
  --accent-light: #691524;
  --white: #ffffff;
  --silver: #f8f8f8;
  --border: #ebebeb;
  --text: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #888888;
  --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(--silver); }

/* ---- 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: 540px;
  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: 100px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.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);
}
.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;
}
.nav__link {
  font-size: .9rem;
  font-weight: 500;
  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: 100vh;
  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: 36px;
  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;
}
.about__img-frame--bottom {
  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: 100px; height: 100px;
  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: .6rem;
  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;
}

/* .branches__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  justify-items: center;
} */

/* Each card is a large circle */
/* .branch-card {
  width: 240px;
  height: 240px;
  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(--white); }
.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 ---- */
.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: 12px;
  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: 260px;
  border: none;
  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(--white);
  border-top: 1px solid var(--border);
  padding: 72px 0 48px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
}
.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;
}
.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: 16px; 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; }
}
