/* ==========================================================================
   Visual layer: home hero v2, photo collages, category tiles,
   counsellor section and photo backgrounds on page headers
   ========================================================================== */

/* Home hero: rotating title, course search, photo collage */
.hero-v2 { padding: 72px 0 136px; }
.hero-v2 .container { grid-template-columns: 1.05fr .95fr; gap: 56px; }
.hero-v2 h1 { font-size: clamp(40px, 5.1vw, 66px); margin-bottom: 22px; }
.hero-pill .live-dot { width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: #3fd17f; box-shadow: 0 0 0 4px rgba(63,209,127,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(63,209,127,.05); } }
.rotator { display: block; min-height: 1.12em; }
.rotator-word { display: inline-block; color: var(--accent); font-size: 1.06em; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rotator-word.out { opacity: 0; transform: translateY(14px); }
.hero-v2 .hero-lead { margin-bottom: 28px; }

.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 580px; padding: 6px 6px 6px 20px;
  background: #fff; border-radius: 999px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.hero-search > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.hero-search input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; font-size: 16px; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: #a29d93; }
.hero-search .btn { --h: 48px; flex: none; }
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 34px; font-size: 13.5px; }
.hero-popular span { color: #a8a298; margin-right: 2px; }
.hero-popular a { padding: 6px 13px; border-radius: 999px; color: #e8e4dc; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); transition: .2s; }
.hero-popular a:hover { background: var(--accent); border-color: var(--accent); color: #2a1b00; }
.hero-v2 .hero-actions { margin-bottom: 36px; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-trust b { display: block; color: #fff; font-size: 18px; line-height: 1.2; }
.hero-trust small { color: #a8a298; font-size: 13px; }
.hero-trust .sep { width: 1px; height: 34px; background: rgba(255,255,255,.14); }

.hero-media { position: relative; height: 580px; }
.hm-ring { position: absolute; width: 440px; height: 440px; right: -60px; top: -40px; border-radius: 50%; } /* soft gold glow only, no outline */
.hm-ring::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--accent); filter: blur(90px); opacity: .22; }
.hm-main, .hm-sub { position: absolute; margin: 0; overflow: hidden; background: var(--ink-2); }
.hm-main img, .hm-sub img { width: 100%; height: 100%; object-fit: cover; }
.hm-main { right: 0; top: 0; width: 82%; height: 86%; border-radius: 28px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px -30px rgba(0,0,0,.65); }
.hm-sub { left: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 5; border-radius: 22px; border: 6px solid var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.hm-sub img { object-position: 100% 50%; } /* the trainer stands on the right of this landscape photo */
.hm-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: #fff; color: var(--muted); font-size: 13px; line-height: 1.35; box-shadow: var(--shadow-lg); animation: floaty 6s ease-in-out infinite;
}
.hm-card b { display: block; color: var(--ink); font-size: 14.5px; }
.hm-card small { font-size: 12.5px; }
.hm-card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.hm-card .ico svg { width: 20px; height: 20px; }
.hm-batch { left: 2%; top: 9%; }
.hm-placed { right: -18px; bottom: 18%; animation-delay: -2s; }
.hm-placed .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.hm-placed .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; flex: none; }
.hm-placed .tick svg { width: 13px; height: 13px; stroke-width: 3; }
.hm-courses { right: 9%; top: -20px; flex-direction: column; gap: 0; padding: 12px 18px; text-align: center; background: var(--accent); color: #3a2600; animation-delay: -4s; }
.hm-courses b { color: #2a1b00; font-size: 26px; line-height: 1; }
.hm-courses small { font-size: 11.5px; font-weight: 600; line-height: 1.2; }

/* About collage (home) */
.about-photos { position: relative; padding-bottom: 56px; }
.about-photos figure { margin: 0; overflow: hidden; background: var(--bg-soft); }
.about-photos img { width: 100%; height: 100%; object-fit: cover; }
.ap-main { border-radius: 28px; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); }
.ap-side { position: absolute; right: -24px; bottom: 0; width: 42%; aspect-ratio: 1; border-radius: 22px; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.about-visual .about-chip.c1 { bottom: 12px; left: -28px; }

/* Category tiles */
.section-tight { padding-top: 96px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile { position: relative; display: block; aspect-ratio: 4 / 3.1; border-radius: 20px; overflow: hidden; isolation: isolate; background: var(--ink); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,19,17,.05) 25%, rgba(20,19,17,.88)); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-info { position: absolute; left: 18px; right: 58px; bottom: 16px; color: #fff; }
.cat-info b { display: block; font-size: 17px; line-height: 1.25; }
.cat-info small { color: #e3dccb; font-size: 13px; }
.cat-go { position: absolute; right: 14px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); transition: .25s var(--ease); }
.cat-go svg { width: 16px; height: 16px; }
.cat-tile:hover .cat-go { background: var(--accent); color: #2a1b00; }

/* Counsellor / demo section */
.demo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.demo-wrap > * { min-width: 0; }
.demo-media { position: relative; }
.demo-media img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.demo-badge { position: absolute; left: -24px; bottom: 32px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); font-size: 13px; color: var(--muted); }
.demo-badge .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.demo-badge .ico svg { width: 22px; height: 22px; }
.demo-badge b { display: block; color: var(--ink); font-size: 15px; }
.demo-card { padding: 40px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.demo-card h2 { font-size: clamp(28px, 3vw, 38px); }
.demo-card .lead { font-size: 16.5px; margin-bottom: 24px; }

/* Program card "Enquire": same look, but a full 44px tap area */
.program-card .foot { gap: 12px; }
.program-card .foot .link-arrow { min-height: 44px; padding: 0 2px; flex: none; }

/* Spam-trap field: invisible to people, filled only by bots */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Two phone numbers stacked wherever a number is shown */
.side-help a, .contact-tile .tile-phone { display: block; }
.contact-tile .tile-phone { color: var(--ink); font-weight: 800; font-size: 18px; line-height: 1.4; }
.contact-tile .tile-phone:hover, .side-help a:hover { color: var(--primary); }

/* Phone-only dropdown that replaces the filter pills */
.tab-select { display: none; }
.wa-btn { display: none; }

/* Photo backgrounds on page headers */
.page-hero .container { z-index: 1; }
.page-hero .bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.85); }
.page-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,26,23,.97) 0%, rgba(27,26,23,.86) 45%, rgba(27,26,23,.55) 100%); }

/* ---------- Branch cards (home + About): centred, buttons always inside the card ---------- */
.branch { align-items: center; text-align: center; }
.branch address { text-align: center; text-align-last: center; hyphens: manual; -webkit-hyphens: manual; }
.branch .actions { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
.branch .actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }
.branch .actions .btn svg { width: 15px; height: 15px; }
.branch .actions .view-courses { flex-basis: 100%; }

/* ---------- Branch pages (/marathahalli, /kalyan-nagar and their course pages) ---------- */
.branch-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.branch-box .pin { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--primary-50); color: var(--primary); }
.branch-box .pin svg { width: 22px; height: 22px; }
.bb-text { min-width: 0; }
.bb-text b { display: block; color: var(--ink); font-size: 16px; }
.bb-text address { font-style: normal; color: var(--body); font-size: 15px; margin: 2px 0 4px; }
.bb-text small { display: block; color: var(--muted); font-size: 13.5px; }
.bb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.loc-facts { display: grid; gap: 10px; margin: 24px 0 30px; color: #cdc8be; font-size: 15px; max-width: 720px; }
.loc-facts span { display: flex; gap: 10px; align-items: flex-start; }
.loc-facts svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.loc-facts a { color: #fff; font-weight: 700; }

.loc-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.loc-cat { min-width: 0; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.loc-cat h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.loc-cat h3 small { font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-50); border-radius: 999px; padding: 3px 9px; }
.loc-cat ul { display: grid; gap: 2px; }
.loc-cat a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; font-size: 14.5px; color: var(--ink-3); transition: background .15s, color .15s; }
.loc-cat a span { min-width: 0; }
.loc-cat a small { flex: none; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.loc-cat a:hover { background: var(--bg-soft); color: var(--primary); }

.loc-visit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.loc-visit > * { min-width: 0; }
.loc-visit h2 { font-size: clamp(28px, 3vw, 38px); }
.loc-info { display: grid; gap: 18px; margin: 24px 0 30px; }
.loc-info li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.loc-info svg { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: 2px; }
.loc-info b { display: block; color: var(--ink); font-size: 14px; }
.loc-info a { display: block; color: var(--ink); font-weight: 700; }
.loc-others { display: grid; gap: 12px; align-content: start; }
.loc-others h3 { font-size: 20px; margin: 0 0 4px; }
a.branch-btn { display: block; }
a.branch-btn:hover { border-color: var(--primary); }

@media (max-width: 1180px) {
  .hm-placed { right: 0; }
}
@media (max-width: 1024px) {
  .loc-cats { grid-template-columns: 1fr 1fr; }
  .loc-visit { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .loc-cats { grid-template-columns: 1fr; }
  .branch-box { flex-direction: column; gap: 12px; }
  .bb-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 1024px) {
  .hero-v2 .container { grid-template-columns: 1fr; gap: 56px; }
  .hero-media { height: 480px; max-width: 620px; width: 100%; }
  .hm-ring { right: -20px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .demo-wrap { grid-template-columns: 1fr; gap: 40px; }
  .demo-media { max-width: 600px; }
  .demo-badge { left: 16px; }
  .ap-side { right: 12px; }
  .about-visual .about-chip.c1 { left: 16px; }
}
@media (max-width: 720px) {
  .hero-v2 { padding: 44px 0 116px; }
  .hero-v2 h1 { font-size: 38px; }
  .hero-search { padding-left: 16px; }
  .hero-search .btn { padding: 0 16px; }
  .hero-popular { margin: 14px 0 28px; }
  .hero-trust { gap: 14px; }
  .hero-trust .sep { display: none; }
  .hero-media { height: 380px; }
  .hm-ring { display: none; }
  .hm-main { width: 88%; height: 84%; border-radius: 22px; }
  .hm-sub { width: 40%; border-width: 4px; border-radius: 16px; }
  .hm-card { padding: 10px 12px; gap: 10px; }
  .hm-card b { font-size: 13px; }
  .hm-card small { font-size: 11.5px; }
  .hm-card .ico { width: 34px; height: 34px; }
  .hm-batch { left: 0; top: 4%; }
  .hm-placed { right: 0; bottom: 6%; }
  .hm-placed .tick { display: none; }
  .hm-courses { right: 4%; top: -14px; padding: 10px 14px; }
  .hm-courses b { font-size: 21px; }
  .section-tight { padding-top: 72px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-tile { border-radius: 16px; aspect-ratio: 1 / 1; }
  .cat-info { left: 12px; right: 12px; bottom: 12px; }
  .cat-info b { font-size: 14.5px; }
  .cat-info small { font-size: 12px; }
  .cat-go { display: none; }
  .about-photos { padding-bottom: 40px; }
  .ap-main { border-radius: 22px; }
  .ap-side { border-width: 4px; border-radius: 16px; }
  .demo-card { padding: 24px; border-radius: 22px; }
  .demo-badge { left: 12px; bottom: 16px; padding: 10px 14px; }
  .demo-media img { border-radius: 22px; }
  .page-hero .bg-photo { opacity: .3; }
  .page-hero.has-photo::after { background: linear-gradient(180deg, rgba(27,26,23,.9), rgba(27,26,23,.82)); }

  /* Filter pills -> one dropdown */
  .tabs { display: none !important; }
  .tab-select { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
  .tab-select span { flex: none; font-size: 14px; font-weight: 700; color: var(--ink); }
  .tab-select .select { flex: 1; min-width: 0; height: 48px; }

  /* WhatsApp joins the bottom bar instead of floating over content */
  .fab-wa { display: none; }
  .mobile-cta { grid-template-columns: 1fr 1fr 46px; }
  .mobile-cta .wa-btn { display: grid; place-items: center; padding: 0; background: #25d366; color: #fff; }
  .mobile-cta .wa-btn svg { width: 24px; height: 24px; }

  /* About cards sit side by side under the photos, aligned to the same edges */
  .about-visual { grid-template-columns: 1fr 1fr; }
  .about-visual .about-photos { grid-column: 1 / -1; }
  .about-visual .about-chip.c1, .about-visual .about-chip.c2 { position: relative; inset: auto; padding: 12px; gap: 10px; align-items: center; }
  .about-chip > span:first-child { width: 38px !important; height: 38px !important; border-radius: 10px !important; flex: none; }
  .about-chip > span:first-child svg { width: 20px !important; height: 20px !important; }
  .about-chip b { font-size: 19px; }
  .about-chip small { display: block; font-size: 12px; line-height: 1.3; }
}
@media (max-width: 400px) {
  .hero-v2 h1 { font-size: 33px; }
  .hero-search .btn { padding: 0 14px; font-size: 14px; }
  .hero-media { height: 330px; }
  .hm-batch small { display: none; }
  /* Very narrow phones: About cards stack instead of sitting side by side */
  .about-visual { grid-template-columns: minmax(0, 1fr); }
  .about-visual .about-chip { min-width: 0; }
}

/* ==========================================================================
   Trishana's own photos: placed students, galleries, certificates, lightbox
   ========================================================================== */
.hm-sub img { object-position: 50% 35%; } /* certificate handover photo is already cropped to 4:5 */

/* Placed-student cards: real photo, package badge, role */
.place-card { position: relative; }
.place-avatar.has-photo { background: var(--bg-soft); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent-50); }
.place-avatar.has-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.place-pkg {
  position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: 999px;
  background: var(--success-50); color: #2e7d4c; font-size: 12px; font-weight: 800; letter-spacing: .01em;
}
.place-card .role { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.place-card .course { margin-bottom: 14px; }

/* Photo galleries: every tile the same 4:3 shape */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#classroom-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-item {
  display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--bg-soft);
  box-shadow: 0 10px 30px -18px rgba(27,26,23,.45);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }

/* Internship certificates */
.cert-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.cert-item {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cert-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-item img { width: 100%; height: auto; aspect-ratio: 600 / 424; display: block; border-bottom: 1px solid var(--line); }
.cert-item span { padding: 12px 14px; text-align: center; }
.cert-item b { display: block; font-size: 15px; color: var(--ink); }
.cert-item small { display: block; font-size: 13px; color: var(--muted); }

/* Course pages: a real certificate in place of the drawn one */
.cert-real { display: block; text-align: center; color: var(--muted); }
.cert-real img {
  width: 100%; height: auto; aspect-ratio: 600 / 424; display: block; border-radius: 12px; background: #fff;
  border: 1px solid #f1d9a6; box-shadow: var(--shadow); transition: transform .3s var(--ease);
}
.cert-real:hover img { transform: scale(1.02); }
.cert-real small { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* Full-screen photo viewer */
html.lb-open { overflow: hidden; }
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 56px 72px; border: 0;
  background: rgba(14,13,11,.94); color: #fff; display: none; place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); border-radius: 12px; object-fit: contain; }
.lightbox figcaption { font-size: 15px; color: #e6e1d6; text-align: center; }
.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lightbox.single .lb-nav { display: none; }

@media (max-width: 1024px) {
  .gallery { gap: 12px; }
  .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cert-item:nth-child(4) { grid-column: 1 / 2; margin-left: 50%; margin-right: -50%; } /* centre the last row of two */
  .cert-item:nth-child(5) { grid-column: 2 / 3; margin-left: 50%; margin-right: -50%; }
}
@media (max-width: 720px) {
  .gallery, #classroom-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-item { border-radius: 12px; }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cert-item:nth-child(n) { grid-column: auto; margin: 0; }
  .cert-item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
  .cert-item span { padding: 10px 8px; }
  .cert-item b { font-size: 14px; }
  .cert-item small { font-size: 12px; }
  .place-pkg { position: static; display: table; margin: 0 auto 10px; font-size: 11px; padding: 3px 9px; } /* narrow cards: badge sits above the photo */
  .place-card .role { font-size: 13px; }
  .lightbox { padding: 64px 12px 84px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* Large phones, foldables and small tablets (721-1024px): the hero is one column, so centre it
   instead of leaving it pinned to the left with empty space on the right */
@media (min-width: 721px) and (max-width: 1024px) {
  .hero-v2 .hero-copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .hero-v2 .hero-lead { text-align: center; text-align-last: center; hyphens: manual; -webkit-hyphens: manual; margin-left: auto; margin-right: auto; }
  .hero-v2 .hero-search { margin: 0 auto; }
  .hero-v2 .hero-popular, .hero-v2 .hero-actions, .hero-v2 .hero-trust { justify-content: center; }
  .hero-v2 .hero-media { margin: 0 auto; }
}

/* Home: the About block follows the category tiles directly, so one section gap is enough,
   and the photo lines up with the top of the text instead of floating in the middle */
.about-home { padding-top: 0; }
.about-home .split { align-items: start; }

/* ==========================================================================
   Inner-page header bands: one fixed height on every page (Courses, Placements,
   About, Corporate, Contact, branch pages, course pages), content centred inside
   ========================================================================== */
.page-hero { display: flex; align-items: center; min-height: 560px; padding: 40px 0; }
.page-hero > .container { width: 100%; }
.page-hero.course-hero { padding: 40px 0; }
.loc-hero h1 { max-width: 1000px; }
.loc-hero p.lead { max-width: 780px; }
.loc-hero .loc-facts { margin: 18px 0 24px; }
@media (max-width: 1024px) {
  .page-hero { min-height: 500px; }
}
@media (max-width: 720px) {
  .page-hero, .page-hero.course-hero { min-height: 500px; padding: 36px 0; }
  /* phones: header buttons side by side, long descriptions kept to 3 lines, so every header fits the same height */
  .page-hero .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
  .page-hero .hero-actions .btn { width: auto; flex: 1 1 140px; --h: 48px; height: 48px; padding: 0 14px; font-size: 14px; }
  .loc-hero p.lead, .course-hero p.lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 400px) {
  .loc-hero p.lead { display: none; } /* small phones: the branch address and buttons matter more here */
  .page-hero .hero-actions .btn { flex-basis: 120px; padding: 0 10px; font-size: 13.5px; gap: 6px; }
}
@media (max-width: 340px) {
  .page-hero .crumbs { display: none; }
  .page-hero p.lead { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .page-hero h1 { font-size: 29px; }
}

/* Home hero on laptops and desktops: the photo collage starts level with the text and sizes
   itself to the screen height, so the whole collage is visible without scrolling */
@media (min-width: 1025px) {
  .hero-v2 { padding-top: 56px; }
  .hero-v2 .container { grid-template-columns: 1.12fr .88fr; align-items: start; }
  .hero-v2 h1 { font-size: clamp(44px, 4.3vw, 60px); }
  .hero-media { height: clamp(420px, calc(100vh - 210px), 560px); margin-top: 8px; }
  .hm-sub { width: auto; height: 54%; }
}

/* Faster feel: the home hero shows instantly (no fade), other sections fade in quickly */
.hero .reveal { opacity: 1; transform: none; transition: none; }
.reveal { transition-duration: .35s; }
.reveal-d1 { transition-delay: .03s; } .reveal-d2 { transition-delay: .06s; } .reveal-d3 { transition-delay: .09s; } .reveal-d4 { transition-delay: .12s; }

/* ==========================================================================
   GOLD THEME (trial for the client) — START
   Swaps the amber/brown shades for metallic gold. To go back to the previous
   brown-and-yellow look, delete everything from START to END.
   ========================================================================== */
:root {
  --primary: #8a6c10;      /* deep gold: text, links and icons on light backgrounds */
  --primary-600: #765c0d;
  --primary-700: #5f4a0a;
  --primary-50: #f8f3df;
  --primary-100: #eee2b0;
  --accent: #d4af37;       /* metallic gold */
  --accent-600: #b8952b;
  --accent-50: #fbf7e6;
  --gold-sheen: linear-gradient(135deg, #f6e08f 0%, #d4af37 42%, #b8902b 72%, #e9cd6c 100%);
}
.btn-accent { background: var(--gold-sheen); color: #2a2100; box-shadow: 0 12px 28px -12px rgba(184,149,43,.6); }
.btn-accent:hover { background: linear-gradient(135deg, #f9e7a3 0%, #ddb944 45%, #c39b31 75%, #efd57a 100%); }
.hm-courses { background: var(--gold-sheen); color: #2a2100; }
.hero-pill b, .hero-popular a:hover, .cat-tile:hover .cat-go, .socials a:hover { background: var(--gold-sheen); }
/* Gold word in headings gets a metallic sheen */
.hero h1 .serif, .page-hero h1 .serif {
  background: linear-gradient(100deg, #f7e3a0 0%, #d4af37 35%, #f1d98a 55%, #c49a2c 80%, #e6c766 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent);
  padding-right: .06em; /* keeps the italic tail inside the painted area */
}
/* Gold words in headings on light backgrounds: deeper gold sheen, still easy to read */
h2 .serif.text-primary {
  background: linear-gradient(100deg, #9c7a17 0%, #b8902b 40%, #a8841f 70%, #8a6c10 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--primary);
  padding-right: .06em;
}
/* Warm glows on dark sections, in gold */
.hero {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(212,175,55,.20), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(176,141,40,.14), transparent 60%), var(--ink);
}
.page-hero {
  background: radial-gradient(900px 400px at 90% -20%, rgba(212,175,55,.20), transparent 60%),
              radial-gradient(600px 300px at 0% 120%, rgba(176,141,40,.14), transparent 60%), var(--ink);
}
.about-panel { background: radial-gradient(420px 300px at 100% 0%, rgba(212,175,55,.32), transparent 65%), linear-gradient(160deg, #34312b 0%, #161512 100%); }
.cta-band { background: radial-gradient(600px 300px at 100% 0%, rgba(212,175,55,.35), transparent 60%), linear-gradient(135deg, #34312b 0%, #161512 100%); }
.modal-aside { background: radial-gradient(400px 260px at 100% 0%, rgba(212,175,55,.35), transparent 60%), linear-gradient(160deg, #34312b, #161512); }
.cert-card { border-color: #eadb9f; }
.cert-real img { border-color: #e6d390; }
/* ==========================================================================
   GOLD THEME — END
   ========================================================================== */
