/* WordPress additions on top of the original stylesheet */

/* Admin bar offset for the fixed header */
.admin-bar .site-header.is-stuck { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.is-stuck { top: 46px; } }

/* Hamburger menu: dropdown (second-level) items */
.site-nav .sub-menu { list-style: none; padding: 0 0 10px 18px; }
.site-nav .sub-menu li { border-top: 0 !important; opacity: 1 !important; transform: none !important; }
.site-nav .sub-menu a { font-size: 17px; padding: 6px 0; opacity: .85; }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--orange-soft); }

/* Home hero video */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Partners: logo links */
.partner a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* Micro-equity chart percentage from the editor */
.micro__chart.is-in .donut__fg, html:not(.js) .donut__fg { stroke-dasharray: var(--pct, 51) 100; }

/* Events page "Load more" */
.event-card.is-more-hidden { display: none !important; }

/* Contact form: sending state */
.contact-form [type="submit"][disabled] { opacity: .6; cursor: wait; }

/* Story photo that plays a video */
.story-article__img .corp-video__btn { display: block; width: 100%; padding: 0; border: 0; background: none; position: relative; cursor: pointer; }

/* Block-editor content inside blogs, events and plain pages */
.blog-article__body > *:not(figure):not(.blog-embed):not(.blog-article__foot):not(.article__lead) { max-width: 100%; }
.blog-article__body .wp-block-image,
.blog-article__body .wp-block-embed,
.blog-article__body .wp-block-video,
.blog-article__body .wp-block-gallery { margin: 32px 0; }
.blog-article__body .wp-block-image img,
.blog-article__body .wp-block-gallery img { width: 100%; height: auto; border-radius: 8px; }
.blog-article__body figcaption,
.blog-article__body .wp-element-caption { font-size: 13px; color: #777; margin-top: 8px; text-align: left; }
.blog-article__body .wp-block-embed__wrapper iframe { width: 100%; border-radius: 8px; }
.blog-article__body .wp-block-pullquote,
.blog-article__body .wp-block-quote,
.story-article__body .wp-block-quote { margin: 36px 0; padding: 26px 30px; background: var(--beige); border: 0; border-left: 5px solid var(--red); border-radius: 0 8px 8px 0; text-align: left; }
.blog-article__body .wp-block-pullquote blockquote,
.blog-article__body .wp-block-quote p,
.story-article__body .wp-block-quote p { margin: 0; font-family: var(--hand); font-size: 32px; line-height: 1.15; color: #222; }
.blog-article__body .wp-block-pullquote p { font-family: var(--hand); font-size: 32px; line-height: 1.15; margin: 0; }
.blog-article__body .wp-block-pullquote cite,
.blog-article__body .wp-block-quote cite { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; font-style: normal; color: var(--navy); font-family: var(--sans); }
.blog-article__body h3 { font-size: 21px; font-weight: 500; margin: 28px 0 10px; }
.blog-article__body ul, .blog-article__body ol { margin: 0 0 22px 22px; font-size: 18px; line-height: 1.7; }
.blog-article__body a:not(.btn-link):not(.btn) { color: var(--navy); text-decoration: underline; }
.legal__body section > *:last-child { margin-bottom: 0; }

/* Pagination on archive pages */
.load-more .nav-links { display: flex; gap: 10px; justify-content: center; }
.load-more .page-numbers { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 6px; }
.load-more .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Footer logo: the white-panel version of the logo sits on the navy footer (v1.3) */
.site-footer .footer-brand img { border: 0; }

/* Phone row on the Contact page */
.office--phone { margin-top: 8px; }

/* ---------- Round 4 ---------- */
/* Arrows: red by default everywhere; the slide no longer covers the "previous" arrow */
.arrow-btn { background: var(--red); cursor: pointer; transition: background .2s, transform .2s; }
.arrow-btn:hover:not(:disabled) { background: #9E161B; }
.arrow-btn:active:not(:disabled) { transform: scale(.94); }
.slider > .arrow-btn { z-index: 3; }

/* Our Reach: every card reacts on hover, including PRAYOGI (no state on the map) */
.reach-card { cursor: pointer; }
.reach-card:hover { transform: translateX(-6px); box-shadow: 0 6px 18px rgba(0,45,110,.16); border-color: var(--navy); }
.reach-card--flagship:hover { border-color: var(--red); }
@media (max-width: 760px) { .reach-card:hover { transform: none; } }

/* About → Our Journey: one continuous row that glides; text on the coral cards in black */
/* Journey (v1.2.3): every card the same size, the row glides with a transform (no jumps),
   the active card sits at the left, in line with the first year tab */
.timeline { overflow: hidden; }
.timeline__track { overflow: visible; padding: 0; scroll-snap-type: none; align-items: stretch; will-change: transform;
  transition: transform .9s cubic-bezier(.45,.05,.2,1); }
.timeline__track > .t-card, .timeline__track > .t-card:first-child, .timeline__track > .t-card:last-child { margin: 0; }
.t-card, .t-card.is-active { flex: 0 0 400px; min-height: 420px; padding: 44px 42px 32px; color: #1F1F1F;
  transition: background-color .6s ease, border-color .6s ease, color .6s ease; }
.t-card h4, .t-card.is-active h4 { font-size: 32px; }
.t-card h5, .t-card.is-active h5 { font-size: 20px; }
.t-card p, .t-card.is-active p, .t-card li { font-size: 16.5px; line-height: 1.42; margin-bottom: 16px; }
.t-card.is-active { color: #fff; }
.timeline::before { top: 50%; }
@media (max-width: 760px) {
  .t-card, .t-card.is-active { flex-basis: 84vw; min-height: 0; padding: 30px 24px; }
  .t-card p, .t-card.is-active p, .t-card li { font-size: 15.5px; }
}

/* Hamburger: + / − for sub-menus */
.site-nav .menu-item-has-children { position: relative; }
.site-nav .menu-item-has-children > a { padding-right: 48px; }
.site-nav .sub-toggle { position: absolute; right: 0; top: 10px; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .25s; }
.site-nav .sub-toggle:hover { background: rgba(255,255,255,.12); }
.site-nav .sub-toggle svg { width: 14px; height: 14px; }
.site-nav .sub-toggle svg { transition: transform .3s ease; }
.site-nav .is-open > .sub-toggle svg { transform: rotate(180deg); }
.site-nav .sub-menu { display: none; padding: 0 0 10px 18px; }
.site-nav .is-open > .sub-menu { display: block; animation: pfSub .3s ease; }
@keyframes pfSub { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.site-nav .sub-menu a { font-size: 17px; padding: 8px 0; opacity: .9; }
.site-nav .sub-menu li + li { border-top: 0; }

/* Partners: every card the same size; the logo sits centred inside (v1.2.1) */
@media (min-width: 1101px) {
  .marquee .partner { width: 240px !important; height: 153px; padding: 22px 24px; }
}
.marquee .partner img { max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* Menu: close button lines up with the sub-menu arrows on the right (v1.2.3) */
.site-nav .nav-close, .page-home .site-nav .nav-close { right: 48px; }
@media (max-width: 680px) { .site-nav .nav-close, .page-home .site-nav .nav-close { right: 28px; } }

/* Home banner (v1.3): shorter on desktop so "Our Philosophy" peeks in without scrolling */
@media (min-width: 1101px) {
  .hero--home { min-height: clamp(520px, calc(100vh - 170px), 800px); padding-bottom: 130px; }
}

/* Our Reach map: hovering the pan-India card (PRAYOGI) turns the whole of India one grey */
.india-map.is-pan path { fill: #8D98AB !important; opacity: 1; stroke: #fff; }
.india-map.is-pan { filter: drop-shadow(0 4px 10px rgba(11,45,107,.18)); }

/* About → Our Story (v1.3): all text one size, key sentences picked out in red; YouTube video on the right */
.story .lead { font-size: inherit; line-height: inherit; margin-top: 0; }
.story strong { color: var(--red); font-weight: 600; }
.story-yt { position: sticky; top: 120px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 12px 30px rgba(11,45,107,.15); }
.story-yt iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1100px) { .story-yt { position: relative; top: 0; } }
.about-hero .container:has(> div:only-child) { grid-template-columns: 1fr; }

/* Contribution cards with icon-system artwork (IIT Alumni page, v1.3) */
.path-card__icon--art { width: 104px; height: 104px; padding: 0; border-radius: 50%; border: 1px solid #F2A792; background: #FCE7DD !important; display: grid; place-items: center; overflow: hidden; }
.path-card__icon--art img { width: 68%; height: 68%; object-fit: contain; filter: none; transition: transform .3s; }
/* same three tints as the homepage Samaj / Sarkar / Bazaar circles */
:nth-child(3n+2) > .path-card__icon--art { background: #EAF4FA !important; border-color: #8FD0E4; }
:nth-child(3n+3) > .path-card__icon--art { background: #EBF1EA !important; border-color: #C3DDCB; }
.contrib:hover .path-card__icon--art, .path-card:hover .path-card__icon--art { color: inherit; }
.contrib:hover .path-card__icon--art img, .path-card:hover .path-card__icon--art img { transform: scale(1.08); }

/* 404 page (v1.4) */
.nf-hero h1 .text-red { color: var(--red); }
.nf-links { padding-bottom: 110px; }
.nf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nf-card { position: relative; display: block; padding: 26px 56px 26px 26px; border: 1px solid #E4E4E4; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s; }
.nf-card strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.nf-card span { font-size: 15px; color: #555; }
.nf-card i { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--red); }
.nf-card i svg { width: 100%; height: 100%; }
.nf-card:hover { border-color: var(--red); box-shadow: 0 10px 24px rgba(190,30,36,.10); transform: translateY(-2px); }
@media (max-width: 1000px) { .nf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .nf-grid { grid-template-columns: 1fr; } }

/* Homepage "Our Model" on phones and tablets (v1.4): the diagram is stacked, so the long desktop
   animation sequence (up to ~6 s) made the section look empty. Show every block straight away. */
@media (max-width: 1100px) {
  .js .model-diagram .md-block { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* 1.4.2 — Reach cards: centred against the map, larger, filling the column */
.reach-card { padding: 22px 24px; border-radius: 8px; border-left: 4px solid var(--navy); }
.reach-card--flagship { border-left-color: var(--red); }
.reach-card[data-pan] { border-left-color: #8FB0CF; }
.reach-card__head { align-items: flex-start; }
.reach-card h3 { font-size: 15px; line-height: 1.35; color: #4A5872; }
.reach-card h3 strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--navy); margin-bottom: 3px; }
.reach-card h3 .dot { display: none; }
.reach-card .badge { font-size: 11px; padding: 4px 11px; margin-top: 4px; }
.reach-card p { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(0,45,110,.18); font-size: 15px; line-height: 1.5; }
.reach-card--flagship p { border-top-color: rgba(190,30,36,.25); }
@media (min-width: 1101px) {
  .reach-grid { align-items: center; grid-template-columns: 1fr 480px; }
  .reach-list { gap: 22px; }
  .reach-cta { margin-top: 30px; }
}
@media (max-width: 760px) {
  .reach-card { padding: 18px 18px; }
  .reach-card h3 strong { font-size: 19px; }
  .reach-card p { font-size: 14px; }
}

/* 1.4.3 — Home banner on short laptop screens: the headline never slides under the logo.
   Space is always kept below the logo; on short screens the banner grows a little instead,
   and the headline/bottom gap tighten so "Our Philosophy" still peeks in where it can. */
@media (min-width: 1101px) {
  .hero--home { padding-top: 200px; }
}
@media (min-width: 1101px) and (max-height: 820px) {
  .hero--home { padding-bottom: 80px; }
  .hero--home h1 { font-size: clamp(38px, min(4.45vw, 7.4vh), 64px); }
  .hero--home .btn { margin-top: 22px; }
}
