/* ==========================================================
   IIT Madras School Connect — homepage band + full page
   ========================================================== */
/* dark navy surface — the homepage card and the full-page hero */
.iitm-dark { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(249,115,22,.28), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(59,130,246,.35), transparent 60%),
              linear-gradient(135deg, #0b1f5c 0%, #1e3a8a 55%, #172554 100%); }
.iitm-dark::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 38px 38px; }
.iitm-dark > * { position: relative; }

/* homepage: a light section with the highlight as a floating card,
   so it reads clearly as a new section after the photo carousel */
.iitm-band { padding: 64px 0; background: linear-gradient(180deg, #fff7ed 0%, #eef2ff 100%); }
.iitm-home-head { text-align: center; margin: 0 auto 26px; max-width: 720px; }
.iitm-home-head .section-tag { margin-bottom: 6px; }
.iitm-home-head h2 { font: 800 clamp(1.6rem, 3.6vw, 2.3rem)/1.2 'Poppins', sans-serif; color: #0f172a; margin: 0; }
.iitm-home-head h2 .highlight { color: var(--primary, #1e40af); }
.iitm-card { border-radius: 28px; padding: 44px 46px; box-shadow: 0 24px 60px rgba(30,58,138,.28); border: 1px solid rgba(30,58,138,.15); }
.iitm-hero.iitm-dark { padding: 60px 0 70px; }
.iitm-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }

/* official IIT Madras logo (shown only when images/iitm-school-connect/iitm-logo.png exists) */
.iitm-lockup { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); margin-bottom: 18px; }
.iitm-lockup img { height: 54px; width: auto; display: block; }
.iitm-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(249,115,22,.18); color: #fdba74; border: 1px solid rgba(253,186,116,.45);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; }
.iitm-dark h2 { font: 800 clamp(1.8rem, 4.2vw, 2.9rem)/1.12 'Poppins', sans-serif; margin: 0 0 12px; color: #fff; }
.iitm-dark h2 .hl { color: #fdba74; display: block; }
.iitm-dark .lead { font-size: 17px; color: #dbeafe; margin: 0 0 14px; font-weight: 600; }
.iitm-dark p.txt { color: #cbd5e1; font-size: 15px; line-height: 1.7; margin: 0 0 22px; max-width: 640px; }

.iitm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.iitm-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 12px 12px 10px; backdrop-filter: blur(4px); }
.iitm-stat b { display: block; font: 800 28px/1 'Poppins', sans-serif; color: #fff; }
.iitm-stat span { font-size: 12px; color: #bfdbfe; line-height: 1.3; display: block; margin-top: 6px; }
.iitm-stat i { color: #fdba74; font-size: 14px; float: right; }

.iitm-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.iitm-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #0f172a; border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; }
.iitm-chip i { font-size: 12px; }

.iitm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.iitm-actions .btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.iitm-actions .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* right side: photo stack / emblem */
.iitm-visual { position: relative; min-height: 360px; }
.iitm-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 170px 170px; gap: 12px; }
.iitm-photos figure { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.35); border: 3px solid rgba(255,255,255,.9); }
.iitm-photos figure:first-child { grid-row: span 2; }
.iitm-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iitm-emblem { position: relative; border-radius: 24px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.2);
  padding: 34px 28px; text-align: center; }
.iitm-emblem .ring { width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 0 0 22px rgba(255,255,255,.04), 0 18px 40px rgba(0,0,0,.35); }
.iitm-emblem .ring i { font-size: 64px; color: #1e3a8a; }
.iitm-emblem h3 { font: 800 22px 'Poppins', sans-serif; margin: 0 0 6px; color: #fff; }
.iitm-emblem p { margin: 0; color: #bfdbfe; font-size: 14px; }
.iitm-emblem .badge-cert { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; background: #f97316; color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 8px 16px; }

@media (max-width: 992px) {
  .iitm-grid { grid-template-columns: 1fr; gap: 30px; }
  .iitm-visual { min-height: 0; }
}
@media (max-width: 600px) {
  .iitm-band { padding: 40px 0; } .iitm-card { padding: 28px 20px; border-radius: 20px; }
  .iitm-stats { grid-template-columns: repeat(2, 1fr); }
  .iitm-lockup img { height: 44px; } .iitm-lockup { gap: 10px; padding: 10px 14px; }
  .iitm-photos { grid-template-rows: 130px 130px; }
}

/* ================= FULL PAGE ================= */
.iitm-hero .crumb { font-size: 13px; color: #bfdbfe; margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.iitm-hero .crumb a { color: #fff; text-decoration: none; font-weight: 600; }
.iitm-sec { padding: 60px 0; }
.iitm-sec.alt { background: var(--bg-light, #f9fafb); }
.iitm-about { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: start; }
.iitm-about p { font-size: 15.5px; line-height: 1.8; color: #374151; margin: 0 0 14px; }
.iitm-facts { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 22px; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.iitm-facts h3 { font: 700 17px 'Poppins', sans-serif; margin: 0 0 14px; color: #1e3a8a; }
.iitm-facts ul { list-style: none; margin: 0; padding: 0; }
.iitm-facts li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #e5e7eb; font-size: 14px; color: #374151; }
.iitm-facts li:last-child { border-bottom: 0; }
.iitm-facts li i { color: #f97316; width: 18px; margin-top: 3px; }
.iitm-facts a.btn { margin-top: 16px; width: 100%; justify-content: center; }

.iitm-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.iitm-course { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: 0 2px 6px rgba(0,0,0,.04); transition: transform .2s, box-shadow .2s; }
.iitm-course:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,64,175,.12); }
.iitm-course .ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; flex: none; }
.iitm-course h4 { margin: 0 0 6px; font: 700 15px/1.35 'Poppins', sans-serif; color: #0f172a; }
.iitm-course .t { font-size: 12.5px; color: #64748b; display: flex; gap: 10px; flex-wrap: wrap; }
.iitm-course .t i { margin-right: 4px; color: #94a3b8; }
.iitm-course .note { display: inline-block; margin-top: 6px; background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }

.iitm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.iitm-step { background: #fff; border-radius: 16px; padding: 22px 18px; border: 1px solid #e5e7eb; text-align: center; position: relative; }
.iitm-step::before { counter-increment: st; content: counter(st); position: absolute; top: 12px; left: 14px; font: 800 13px 'Poppins', sans-serif; color: #cbd5e1; }
.iitm-step i { font-size: 26px; color: #1e40af; background: #eff6ff; width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.iitm-step h4 { margin: 0 0 6px; font: 700 15px 'Poppins', sans-serif; }
.iitm-step p { margin: 0; font-size: 13.5px; color: #6b7280; line-height: 1.55; }

.iitm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.iitm-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: #f1f5f9; border: 1px solid #e5e7eb; cursor: zoom-in; }
.iitm-gallery img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform .3s; }
.iitm-gallery figure:hover img { transform: scale(1.04); }
.iitm-gallery figcaption { font-size: 13px; color: #475569; padding: 8px 12px; }
.iitm-empty { text-align: center; padding: 34px 16px; border: 2px dashed #cbd5e1; border-radius: 16px; color: #64748b; }
.iitm-empty i { font-size: 36px; color: #cbd5e1; display: block; margin-bottom: 8px; }
.iitm-note { font-size: 12px; color: #94a3b8; text-align: center; margin-top: 26px; }

@media (max-width: 900px) { .iitm-about { grid-template-columns: 1fr; } .iitm-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .iitm-steps { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .iitm-card .iitm-emblem { display: none; } }
