/* =========================================================================
   Technohub design system
   Palette comes straight from the logo: "techno" blue + "hub" magenta,
   grounded by a deep ink navy. The hub-and-spokes mark is the recurring motif.
   ========================================================================= */

:root {
  --ink: #0B1B33;
  --ink-2: #2B3A55;
  --muted: #5A6A85;
  --line: #E2E8F1;
  --line-2: #CFD9E6;
  --bg: #FFFFFF;
  --bg-soft: #F4F8FC;
  --bg-tint: #EAF4FC;

  --brand: #0A78C2;
  --brand-600: #0863A1;
  --brand-700: #064E80;
  --brand-50: #E7F2FB;
  --accent: #E0197D;
  --accent-600: #BF0F68;
  --accent-50: #FDE8F2;

  --cat-programming: #0A78C2;
  --cat-web: #5B45E0;
  --cat-data: #0E8F80;
  --cat-cloud: #D0186F;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, .06), 0 1px 3px rgba(11, 27, 51, .05);
  --shadow: 0 4px 12px -2px rgba(11, 27, 51, .08), 0 12px 32px -8px rgba(11, 27, 51, .12);
  --shadow-lg: 0 24px 60px -16px rgba(11, 27, 51, .28);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --header-h: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); padding: .1em .35em; border-radius: 5px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 720px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.muted { color: var(--muted); }
.sm { font-size: .875rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- type ---------- */
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
.display { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.h4 { font-size: 1.25rem; }
.h5 { font-size: 1.075rem; }
.h6 { font-size: 1rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--muted); line-height: 1.7; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.eyebrow .icon { width: 16px; height: 16px; }
.eyebrow.on-dark { color: #7CC4F5; }

/* ---------- icons ---------- */
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- buttons ---------- */
.btn { --bg: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s; }
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-danger-ghost { background: transparent; color: #C0253C; border-color: #F2C4CC; }
.btn-danger-ghost:hover { background: #FDEDEF; }
.btn-block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.icon-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--brand); text-decoration: none; background: none; border: 0; padding: 0; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }

/* ---------- chips, tags, pills ---------- */
.chip { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .01em; background: var(--brand-50); color: var(--brand-700); }
.tag.cat-web { background: #EEEBFF; color: #3B2A9E; }
.tag.cat-data { background: #E3F6F3; color: #0B5F57; }
.tag.cat-cloud { background: var(--accent-50); color: #8E0F50; }
.tag.on-dark { background: rgba(255, 255, 255, .14); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .8rem; font-weight: 700; }
.pill .icon { width: 15px; height: 15px; }
.pill-pink { background: var(--accent-50); color: var(--accent-600); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 27, 51, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 68px; width: auto; }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 24px; }
.main-nav > ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.main-nav > ul > li > a:hover, .has-mega.open > a { background: var(--bg-soft); color: var(--ink); }
.main-nav > ul > li > a[aria-current] { color: var(--brand); }
.main-nav .chev { width: 16px; height: 16px; }
.has-mega.open .chev { transform: rotate(180deg); }
.nav-cta { display: none; }
.header-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
/* "Approved by AICTE" badge */
.aicte-badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); white-space: nowrap; }
.aicte-badge img { width: 44px; height: 44px; border-radius: 50%; }
.aicte-badge > span { display: grid; line-height: 1.1; }
.aicte-badge small { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.aicte-badge b { font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: .04em; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; place-items: center; color: var(--ink); }

/* mega menu */
.has-mega { position: relative; }
.mega { position: absolute; left: 50%; top: calc(100% + 12px); width: min(880px, 92vw); translate: -50% 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.mega::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px; }
.mega-title { margin: 0 0 8px; padding: 0 10px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; line-height: 1.3; }
.mega li a:hover { background: var(--bg-soft); }
.mega-foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-top: 1px solid var(--line); font-weight: 700; font-size: .9rem; text-decoration: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.mega-foot:hover { background: var(--bg-soft); }
.mega-foot .icon { width: 16px; height: 16px; }

/* course badge */
.course-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #1F8FD8, #0B4F8A); flex: none; }
.course-badge.cat-web { background: linear-gradient(135deg, #7B61FF, #3B2A9E); }
.course-badge.cat-data { background: linear-gradient(135deg, #15A897, #0B5F57); }
.course-badge.cat-cloud { background: linear-gradient(135deg, #E4308A, #8E0F50); }
.course-badge.sm { width: 30px; height: 30px; border-radius: 9px; }
.course-badge.sm .icon { width: 16px; height: 16px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #C9D5E6; }
.section-dark h2, .section-dark h3, .section-dark dt { color: #fff; }
.section-dark .lead { color: #A9B8CE; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin: 14px 0 0; }
.section-head.split { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(600px 400px at 85% 20%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
  radial-gradient(500px 360px at 10% 90%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
  radial-gradient(circle at 1px 1px, #D5E2EF 1px, transparent 0) 0 0 / 26px 26px; }
.hero-bg::after { content: ''; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, #fff); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .display { margin-bottom: 22px; }
.hl { position: relative; color: var(--accent); white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .14em; border-radius: 99px; background: currentColor; opacity: .22; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 34ch; margin-bottom: 30px; font-weight: 500; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .875rem; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; aspect-ratio: 1 / .92; }
.hero-hub { position: absolute; inset: -8%; width: 116%; height: 116%; color: var(--brand); pointer-events: none; }
.hero-photo { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--bg-tint); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.main { inset: 4% 4% 20% 8%; }
.hero-photo.second { width: 46%; aspect-ratio: 4 / 3; right: 0; bottom: 0; border: 6px solid #fff; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.float-card .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.float-card b { display: block; color: var(--ink); font-size: 1.15rem; line-height: 1.1; }
.float-card span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.fc-1 { left: 0; bottom: 14%; }
.fc-2 { right: -2%; top: 0; animation-delay: -3s; }
.fc-2 .icon { background: var(--accent-50); color: var(--accent); }
.float-chip { position: absolute; left: 14%; top: -2%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite -1.5s; }
.float-chip .icon { width: 16px; height: 16px; color: #FF6FB1; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- search ---------- */
.search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 6px 6px 6px 18px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.search > .icon { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 4px; font-size: 1rem; }
.search input::-webkit-search-cancel-button { display: none; }
.search.lg { padding: 8px 8px 8px 22px; }
.search.lg .btn { min-height: 50px; padding-inline: 26px; }
.search-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.search-suggest a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.search-suggest a:hover, .search-suggest a.active { background: var(--bg-soft); }
.search-suggest .icon { width: 16px; height: 16px; color: var(--muted); }

/* ---------- stats ---------- */
.stats-band { position: relative; z-index: 1; margin-top: -40px; }
.stats-band.flat { margin: 0; padding-block: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.stat { display: flex; align-items: center; gap: 16px; padding: 26px 24px; background: #fff; }
.stat > .icon { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.stat:nth-child(even) > .icon { background: var(--accent-50); color: var(--accent); }
.stat b { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.stat span { font-size: .875rem; color: var(--muted); font-weight: 600; }

/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.intro .lead { margin: 0; color: var(--ink-2); }

/* ---------- tabs / filters ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.tabs.left { justify-content: flex-start; margin: 28px 0 0; }
.tab { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: .9rem; color: var(--ink-2); transition: all .2s; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.course-grid.three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.course-card:hover .link-arrow .icon { transform: translateX(4px); }
.course-card-art { aspect-ratio: 16 / 9; overflow: hidden; }
.course-card-art .course-art { width: 100%; height: 100%; transition: transform .5s var(--ease); }
.course-card:hover .course-art { transform: scale(1.05); }
.course-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.course-card-body p { margin: 0; font-size: .85rem; color: var(--muted); }
.course-card-body .link-arrow { margin-top: auto; padding-top: 6px; }
.course-card.is-hidden { display: none; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s, box-shadow .25s; }
.feature:hover { border-color: transparent; box-shadow: var(--shadow); }
.feature h3 { margin: 18px 0 14px; }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.feature-icon .icon { width: 26px; height: 26px; }
.feature-icon.pink { background: var(--accent-50); color: var(--accent); }
.feature-icon.sm { width: 40px; height: 40px; border-radius: 12px; }
.feature-icon.sm .icon { width: 20px; height: 20px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.checks .icon { width: 18px; height: 18px; margin-top: 3px; padding: 2px; border-radius: 50%; background: #E3F6EC; color: #11875A; stroke-width: 3; }

/* ---------- learning options ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.learn-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.learn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.learn-art .illo { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.learn-body { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { position: relative; padding: clamp(28px, 3.5vw, 44px); background: #fff; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 22px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-700)); box-shadow: 0 10px 24px -10px var(--brand); }
.pillar:nth-child(2) .pillar-icon { background: linear-gradient(135deg, var(--accent), #8E0F50); box-shadow: 0 10px 24px -10px var(--accent); }
.pillar-icon .icon { width: 28px; height: 28px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { margin: 0; color: var(--muted); }

/* ---------- MoU ---------- */
.mou { position: relative; overflow: hidden; }
.mou::before { content: ''; position: absolute; width: 700px; height: 700px; right: -200px; top: -250px; border-radius: 50%; background: radial-gradient(color-mix(in srgb, var(--brand) 30%, transparent), transparent 65%); }
.mou-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.mou .h2 { margin-bottom: 18px; }
.mou-points { margin: 32px 0 0; display: grid; gap: 22px; }
.mou-points div { display: grid; gap: 4px; padding-left: 20px; border-left: 2px solid rgba(255, 255, 255, .14); }
.mou-points dt { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.mou-points dt span { font-family: var(--mono); font-size: .75rem; color: #FF6FB1; }
.mou-points dd { margin: 0; color: #A9B8CE; font-size: .95rem; }
.mou-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.mou-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: #13294B; }
.mou-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.mou-photo.p1 { grid-column: 1 / -1; }
.mou-photo.p1 img { aspect-ratio: 16 / 9; }

/* ---------- photo strip (home) ---------- */
.carousel-controls { display: flex; gap: 10px; align-items: center; }
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100vw - 1160px) / 2)); padding: 4px max(20px, calc((100vw - 1160px) / 2)) 20px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-item { position: relative; flex: none; width: clamp(240px, 30vw, 360px); aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: var(--bg-tint); }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.strip-item:hover img { transform: scale(1.05); }
.strip-cap { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(11, 27, 51, .72); color: #fff; font-size: .75rem; font-weight: 700; backdrop-filter: blur(6px); }

/* ---------- demo + map ---------- */
.demo-grid { display: grid; grid-template-columns: 400px 1fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.location { display: flex; flex-direction: column; }
.location .h3 { margin-bottom: 8px; }
.map { width: 100%; flex: 1; min-height: 340px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--bg-tint); }

/* ---------- cards & forms ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.demo-form { display: grid; gap: 14px; box-shadow: var(--shadow); }
.demo-form-head { display: grid; gap: 10px; justify-items: start; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .8rem; font-weight: 700; color: var(--ink); }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: #9AA8BC; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FDEDEF; color: #A61B30; font-size: .875rem; font-weight: 600; }
.form-status { margin: 0; min-height: 1.4em; font-size: .85rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-actions.end { justify-content: flex-end; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-sent { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 24px 8px; }
.form-sent p { margin: 0; overflow-wrap: anywhere; }
.form-sent h2 { margin-bottom: 4px; }
.form-sent .icon { width: 56px; height: 56px; color: #11875A; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 5vw, 60px); background:
  radial-gradient(500px 300px at 90% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
  radial-gradient(circle at 1px 1px, #D5E2EF 1px, transparent 0) 0 0 / 26px 26px, var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero .h1 { margin: 16px 0 12px; }
.page-hero .lead { max-width: 60ch; margin-bottom: 24px; }
.page-hero.center { text-align: center; padding-block: 96px; }
.page-hero.center .search { margin-inline: auto; }
.page-hero.center .lead { margin-inline: auto; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs.on-dark, .crumbs.on-dark a { color: rgba(255, 255, 255, .72); }
.crumbs.on-dark a:hover { color: #fff; }
.notice { display: flex; gap: 14px; align-items: flex-start; max-width: 640px; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); background: #FFF6E5; border: 1px solid #F6DDAA; color: #6B4A0B; }
.notice b { display: block; color: #4A3206; }
.notice.warn { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions.center { justify-content: center; }
.cat-block + .cat-block { margin-top: 56px; }
.cat-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cat-programming); }
.dot.cat-web { background: var(--cat-web); } .dot.cat-data { background: var(--cat-data); } .dot.cat-cloud { background: var(--cat-cloud); }

/* ---------- course page ---------- */
.course-hero { --c1: #1F8FD8; --c2: #0B4F8A; position: relative; padding: clamp(28px, 4vw, 48px) 0 0; color: #fff; background: linear-gradient(135deg, var(--c2), color-mix(in srgb, var(--c2) 70%, #000)); overflow: hidden; }
.course-hero.cat-web { --c1: #7B61FF; --c2: #3B2A9E; }
.course-hero.cat-data { --c1: #15A897; --c2: #0B5F57; }
.course-hero.cat-cloud { --c1: #E4308A; --c2: #8E0F50; }
.course-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 80% 30%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 70%), radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1px, transparent 0) 0 0 / 24px 24px; }
.course-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-bottom: 56px; }
.course-hero .h1 { color: #fff; margin: 18px 0 16px; }
.course-hero .tag { margin-top: 22px; }
.course-summary { color: rgba(255, 255, 255, .84); font-size: 1.05rem; max-width: 62ch; margin: 0; }
.course-hero-art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .18); }
.course-hero-art .course-art { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.highlights { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .4); }
.highlights li { display: flex; gap: 14px; align-items: center; padding: 22px 24px; }
.highlights li + li { border-left: 1px solid var(--line); }
.highlights .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.page-course .cat-web .highlights .icon { background: #EEEBFF; color: var(--cat-web); }
.page-course .cat-data .highlights .icon { background: #E3F6F3; color: var(--cat-data); }
.page-course .cat-cloud .highlights .icon { background: var(--accent-50); color: var(--cat-cloud); }
.highlights b { display: block; color: var(--ink); font-size: .95rem; line-height: 1.25; }
.highlights span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.page-course .section:first-of-type { padding-top: 48px; }
.course-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.course-aside .sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.prose h2 { margin-bottom: 18px; }
.prose h3 { margin: 28px 0 10px; }
.prose p { font-size: 1.05rem; line-height: 1.8; }
.modules { margin-top: 56px; }
.modules-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.module-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: m; }
.module { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.module:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateX(4px); }
.module-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: .9rem; }
.module h3 { margin: 2px 0 4px; }
.module p { margin: 0; color: var(--muted); font-size: .95rem; }
.enroll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.enroll-card { position: relative; padding: 32px 28px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.enroll-card p { margin: 18px 0 0; color: var(--ink-2); font-weight: 500; }
.enroll-icon { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.enroll-card:nth-child(2) .enroll-icon { background: var(--accent-50); color: var(--accent); }
.enroll-num { position: absolute; right: 18px; top: 8px; font-family: var(--mono); font-size: 4rem; line-height: 1; color: var(--bg-soft); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-copy .lead { color: var(--ink); font-size: 1.25rem; }
.about-copy strong { color: var(--ink); }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-photos figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.about-photos figure:last-child { margin-top: 48px; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band .hero-actions { margin: 0; }
.cta-band p { margin: 6px 0 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-form { display: grid; gap: 16px; }
.contact-form .h3 { margin-bottom: 4px; }
.contact-form .eyebrow { margin: 0; }
.contact-form .btn { justify-self: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { border-color: transparent; box-shadow: var(--shadow); color: inherit; }
.contact-card > .icon { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.contact-card h2 { margin-bottom: 4px; }
.contact-card p, .contact-card address { margin: 0; font-style: normal; color: var(--muted); }
.map-full .map { display: block; border-radius: 0; height: 420px; box-shadow: none; }

/* ---------- gallery ---------- */
.gallery .container { display: grid; gap: 72px; }
.album.is-hidden { display: none; }
.album-head { margin-bottom: 22px; }
.album-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 10px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.album-meta > span:not(.tag) { display: inline-flex; align-items: center; gap: 6px; }
.album-meta .icon { width: 16px; height: 16px; }
.album-head .muted { margin: 8px 0 0; max-width: 70ch; }
.masonry { columns: 3 280px; column-gap: 14px; }
.masonry-item { position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; break-inside: avoid; background: var(--bg-tint); }
.masonry-item img { width: 100%; transition: transform .5s var(--ease), filter .3s; }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-cap { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(11, 27, 51, .8)); color: #fff; font-size: .85rem; font-weight: 600; text-align: left; opacity: 0; transition: opacity .25s; }
.masonry-item:hover .masonry-cap, .masonry-item:focus-visible .masonry-cap { opacity: 1; }
.empty { display: grid; justify-items: center; gap: 12px; padding: 64px 20px; border: 2px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--muted); text-align: center; }
.empty .icon { width: 40px; height: 40px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: rgba(6, 14, 28, .94); color: #fff; animation: fade .2s; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .75); }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-cap { padding: 16px 20px 24px; text-align: center; font-weight: 600; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox .lb-prev { left: 14px; } .lightbox .lb-next { right: 14px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #A9B8CE; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { display: inline-block; padding: 10px 14px; background: #fff; border-radius: 14px; }
.footer-logo img { height: 76px; width: auto; }
.footer-brand p { margin: 20px 0; font-size: .92rem; max-width: 36ch; }
.footer-aicte { height: 64px; width: 330px; max-width: 100%; object-fit: cover; padding: 4px 12px; background: #fff; border-radius: 12px; }
.footer-h { margin-bottom: 18px; color: #fff; font-size: .8rem; font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: #C9D5E6; text-decoration: none; font-size: .95rem; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; font-size: .95rem; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: #FF6FB1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-tag { font-family: var(--mono); color: #7CC4F5; }

/* dialogflow widget: brand colours */
df-messenger { --df-messenger-button-titlebar-color: #0A78C2; --df-messenger-user-message: #0A78C2; --df-messenger-font-color: #0B1B33; --df-messenger-send-icon: #0A78C2; z-index: 40; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .aicte-badge { padding: 4px 10px 4px 4px; gap: 7px; }
  .aicte-badge img { width: 34px; height: 34px; }
  .aicte-badge small { font-size: .62rem; }
  .aicte-badge b { font-size: .9rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .course-layout { grid-template-columns: 1fr 340px; }
}

@media (max-width: 920px) {
  :root { --header-h: 76px; }
  .brand img { height: 56px; }
  .nav-toggle { display: grid; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px; padding: 16px 20px 32px; background: #fff; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  /* backdrop-filter makes the header the containing block for the fixed menu
     panel (squashing it into the header bar), so drop it while the menu is open */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; gap: 2px; }
  .main-nav > ul > li > a { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav-cta { display: inline-flex; }
  .mega { position: static; width: auto; translate: none; box-shadow: none; border: 0; border-radius: 0; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-mega.open .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr 1fr; padding: 8px 0; gap: 16px 8px; }
  .mega-foot { border: 0; justify-content: flex-start; padding: 8px 10px; }

  .hero-grid, .intro, .mou-grid, .demo-grid, .course-hero-grid, .course-layout, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats-band { margin-top: 0; }
  .learn-grid, .enroll-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .highlights { grid-template-columns: 1fr 1fr; }
  .highlights li:nth-child(3) { border-left: 0; }
  .highlights li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .course-hero-art { max-width: 520px; }
  .course-aside .sticky { position: static; }
  .course-aside { order: -1; }
  .page-course .course-aside { order: 0; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 16px; }
  .feature-grid, .mega-inner, .field-row { grid-template-columns: 1fr; }
  .stat { padding: 18px 16px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .stat b { font-size: 1.25rem; }
  .search { padding-left: 14px; }
  .search .btn { padding-inline: 16px; }
  .search.lg .btn { min-height: 46px; padding-inline: 18px; }
  .search > .icon { display: none; }
  .hero-visual { aspect-ratio: 1 / 1; }
  .float-card { padding: 8px 12px 8px 8px; gap: 8px; }
  .float-card .icon { width: 32px; height: 32px; padding: 7px; }
  .float-card b { font-size: 1rem; }
  .float-chip { left: 4%; }
  .highlights { grid-template-columns: 1fr; }
  .highlights li + li { border-left: 0; border-top: 1px solid var(--line); }
  .module { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .masonry-item { margin-bottom: 10px; }
  .lightbox-stage { padding: 0 8px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: -58px; translate: none; }
  .section-head.split .carousel-controls .icon-btn { display: none; }
  .map-full .map { height: 320px; }
}

/* ---------- phone layout (≤600px) ----------
   Phones get their own layouts rather than squeezed desktop ones:
   compact course rows, a simpler hero, swipeable filters, form near the top. */
.card-badge { display: none; }
.contact-grid > *, .demo-grid > *, .course-layout > *, .hero-grid > * { min-width: 0; }
.contact-card > div { min-width: 0; }
.contact-card p, .contact-card address, .footer-contact a, .footer-contact span { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .section { padding-block: 52px; }
  .section-head { margin-bottom: 28px; }
  .section-head.split { align-items: flex-start; }
  .lead { font-size: 1rem; }

  /* hero: one photo, two stat cards, no decoration */
  .hero { padding-block: 28px 44px; }
  .hero-copy .display { font-size: 2.6rem; margin-bottom: 16px; }
  .hero-lead { font-size: 1.05rem; margin-bottom: 22px; }
  .hero-visual { aspect-ratio: auto; height: 300px; margin-top: 8px; }
  .hero-hub, .hero-photo.second, .float-chip { display: none; }
  .hero-photo.main { inset: 0 0 34px 0; }
  .fc-1 { left: 10px; bottom: 0; }
  .fc-2 { right: 10px; left: auto; top: auto; bottom: 0; }
  .popular, .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .popular::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .popular > *, .tab { flex: none; }
  .tabs { margin-bottom: 20px; padding-bottom: 4px; }
  .tabs.left { margin-top: 20px; }

  /* stats: tidy 2×2 */
  .stats-band { padding-top: 4px; }
  .stat { padding: 16px 14px; gap: 10px; }
  .stat > .icon { width: 40px; height: 40px; padding: 10px; }

  /* courses: compact tappable rows instead of 17 tall cards */
  .course-grid, .course-grid.three { grid-template-columns: 1fr; gap: 10px; }
  .course-card { flex-direction: row; align-items: center; gap: 10px; padding: 12px 16px 12px 12px; border-radius: 14px; }
  .course-card:hover { transform: none; }
  .course-card-art, .course-card-body .tag, .course-card-body .link-arrow { display: none; }
  .card-badge { display: grid; width: 48px; height: 48px; border-radius: 12px; }
  .card-badge .icon { width: 24px; height: 24px; }
  .course-card-body { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 0; min-width: 0; flex: 1; }
  .course-card-body .card-badge { grid-row: span 2; }
  .course-card-body h3 { align-self: end; }
  .course-card-body p { align-self: start; }
  .course-card-body h3 { font-size: 1rem; }
  .course-card-body p { font-size: .8rem; }
  .course-card::after { content: ''; flex: none; width: 9px; height: 9px; margin-left: auto; border: solid var(--muted); border-width: 2px 2px 0 0; transform: rotate(45deg); }
  .cat-block + .cat-block { margin-top: 36px; }
  .cat-title { margin-bottom: 14px; }

  /* cards and boxes */
  .feature { padding: 20px; }
  .feature h3 { margin: 14px 0 10px; }
  .learn-grid { gap: 14px; }
  .learn-body { padding: 14px 16px; }
  .pillar { padding: 24px 20px; }
  .pillar-icon { width: 48px; height: 48px; margin-bottom: 14px; }
  .pillar-icon .icon { width: 22px; height: 22px; }
  .mou-photos { gap: 10px; }
  .demo-grid { gap: 28px; }
  .map { min-height: 260px; }
  .card { border-radius: 18px; }

  /* inner pages */
  .page-hero { padding: 28px 0 32px; }
  .page-hero .h1 { margin: 10px 0 8px; }
  .page-hero.center { padding-block: 56px; }
  .about-photos figure:last-child { margin-top: 24px; }
  .contact-card { padding: 16px; }

  /* course page: shorter hero, 2×2 highlights, form before the module list */
  .course-hero { padding-top: 20px; }
  .course-hero-art { display: none; }
  .course-hero-grid { padding-bottom: 32px; }
  .course-hero .h1 { margin: 12px 0 10px; }
  .course-summary { font-size: .98rem; }
  .hero-actions { margin-top: 20px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .highlights li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 14px; }
  .highlights li + li { border-top: 0; }
  .highlights li:nth-child(even) { border-left: 1px solid var(--line); }
  .highlights li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .highlights .icon { width: 36px; height: 36px; padding: 9px; }
  .page-course .section:first-of-type { padding-top: 32px; }
  .course-main { display: contents; }
  .course-layout .prose { order: 1; }
  .page-course .course-aside { order: 2; }
  .course-layout .modules { order: 3; margin-top: 8px; }
  .course-layout { gap: 32px; }
  .prose p { font-size: 1rem; line-height: 1.7; }
  .module { grid-template-columns: auto 1fr; gap: 14px; padding: 16px; }
  .module-num { width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; }
  .enroll-card { padding: 22px 20px; }

  /* gallery */
  .gallery .container { gap: 48px; }

  /* footer: two columns of links */
  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding-bottom: 36px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-aicte { width: 100%; max-width: 330px; }
}

/* =========================================================================
   Admin panel
   ========================================================================= */
.admin { background: var(--bg-soft); min-height: 100vh; }
.admin-login { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: radial-gradient(circle at 1px 1px, #D5E2EF 1px, transparent 0) 0 0 / 26px 26px, var(--bg-soft); }
.login-card { width: min(400px, 100%); display: grid; gap: 16px; justify-items: stretch; box-shadow: var(--shadow-lg); }
.login-card img { height: 64px; width: auto; justify-self: center; }
.login-card h1, .login-card > p { text-align: center; margin: 0; }
.login-card .link-arrow { justify-self: center; }
.admin-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .brand img { height: 40px; }
.admin-title { font-weight: 700; color: var(--ink); padding-left: 16px; border-left: 1px solid var(--line); }
.admin-bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.usage { display: grid; gap: 4px; min-width: 190px; margin-right: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.usage b { color: var(--ink); }
.usage-bar { display: block; height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.usage-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand); transition: width .3s; }
.usage.warn .usage-bar i { background: #D97706; }
.usage.full .usage-bar i { background: #C0253C; }
.admin-main { max-width: 1240px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-head p { margin: 6px 0 0; max-width: 64ch; }
.album-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.album-tile { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease); }
.album-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.album-tile-cover { position: relative; aspect-ratio: 16 / 10; background: var(--bg-tint); display: grid; place-items: center; color: var(--muted); }
.album-tile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.album-tile-cover .icon { width: 36px; height: 36px; }
.album-tile-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.album-tile-body b { color: var(--ink); font-size: 1rem; }
.album-tile-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); font-weight: 600; }
.badge-home { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; }
.back { margin-bottom: 20px; }
.album-editor { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.album-form { display: grid; gap: 14px; position: sticky; top: 88px; }
.album-form .form-actions { justify-content: space-between; }
.album-form .field-row { grid-template-columns: 1fr; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 36px 20px; border: 2px dashed var(--line-2); border-radius: var(--radius-lg); background: #fff; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-50); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone b { color: var(--ink); }
.dropzone span { font-size: .85rem; color: var(--muted); }
.dz-icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: 4px; }
.upload-queue { display: grid; gap: 8px; margin: 14px 0; }
.upload-queue:empty { margin: 0; }
.q-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .85rem; }
.q-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.q-bar { height: 5px; margin-top: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.q-item.done .q-bar i { background: #11875A; }
.q-item.error .q-bar i { background: #C0253C; width: 100% !important; }
.q-state { font-weight: 700; color: var(--muted); }
.q-item.error .q-state { color: #C0253C; }
.photo-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 24px 0 12px; }
.photo-head p { margin: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.photo-card.is-cover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.photo-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-tint); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.photo-actions button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-sm); }
.photo-actions button:hover { background: #fff; }
.photo-actions .icon { width: 17px; height: 17px; }
.photo-actions .is-on { color: var(--accent); }
.photo-actions .is-on svg { fill: currentColor; }
.photo-actions .del:hover { color: #C0253C; }
.photo-card input { width: 100%; border: 0; border-top: 1px solid var(--line); padding: 10px 12px; font-size: .85rem; outline: 0; }
.photo-card input:focus { background: var(--bg-soft); }
.modal { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; }
.modal::backdrop { background: rgba(11, 27, 51, .5); backdrop-filter: blur(3px); }
.modal .card { display: grid; gap: 14px; box-shadow: var(--shadow-lg); }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 28px; padding: 5px; width: fit-content; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.admin-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: .9rem; color: var(--muted); }
.admin-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.admin-tabs .icon { width: 17px; height: 17px; }
.admin-tabs .count { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .75rem; text-align: center; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; }
.seg button { padding: 6px 14px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: .85rem; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--brand-50); color: var(--brand-700); }
.icon.flip { transform: rotate(180deg); }
.enquiry-list { display: grid; gap: 12px; }
.enquiry { display: grid; gap: 12px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.enquiry.handled { border-left-color: var(--line-2); }
.enquiry.handled .enq-name { color: var(--muted); }
.enq-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.enq-name { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.enq-time { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 600; }
.enq-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; }
.enq-contact a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.enq-contact .icon { width: 16px; height: 16px; }
.enq-what { font-weight: 700; color: var(--ink); }
.enq-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; }
.enq-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.enq-meta { font-size: .78rem; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 200; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); animation: fade .2s; }
.toast.error { background: #A61B30; }
@media (max-width: 860px) {
  .album-editor { grid-template-columns: 1fr; }
  .album-form { position: static; }
  .admin-title, .usage { display: none; }
  .admin-bar { padding: 10px 16px; }
  .admin-main { padding: 24px 16px 64px; }
}
