/* ==========================================================================
   Sri Siddhartha Polytechnic — main stylesheet
   Palette: Navy #0B2545 / Deep Navy #12345E / Amber #F0A202 / Steel #5C6784
   Fonts:   Poppins (display) / Inter (body) / JetBrains Mono (stats)
   ========================================================================== */

:root {
  --navy: #0B2545;
  --navy-deep: #12345E;
  --amber: #F0A202;
  --amber-dark: #C97F00;
  --steel: #5C6784;
  --bg-light: #F4F6FA;
  --bg-alt: #EAF0FB;
  --grey: #5B6472;
  --border: #E2E7F0;
  --white: #FFFFFF;
  --maroon: var(--navy);
  --font-display: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: #2A2F3A;
  background: var(--white);
  margin: 0;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; transition: color .2s ease; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--amber-dark);
  border: 1px solid var(--amber);
  border-radius: 30px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn-scale, .btn-outline-light, .btn-maroon, .btn-outline-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-scale {
  background: var(--amber);
  color: var(--navy);
}
.btn-scale:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(240,162,2,.35); color: var(--navy); }
.btn-outline-light {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-maroon {
  background: var(--navy);
  color: #fff;
}
.btn-maroon:hover { background: var(--navy-deep); transform: translateY(-2px); color: #fff; }
.btn-outline-side {
  border-color: var(--navy);
  color: var(--navy);
  width: 100%;
  justify-content: center;
}
.btn-outline-side:hover { background: var(--navy); color: #fff; }

/* ===== Top utility bar ===== */
.topbar { background: var(--navy); color: #cfd8ec; font-size: 0.82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; flex-wrap: wrap; gap: 6px; }
.topbar-contact a { color: #cfd8ec; margin-right: 20px; }
.topbar-contact a:hover { color: var(--amber); }
.topbar-affil i { color: var(--amber); margin-right: 4px; }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a { color: #cfd8ec; font-size: 0.95rem; }
.topbar-social a:hover { color: var(--amber); }
.topbar-cta {
  background: var(--amber);
  color: var(--navy) !important;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.78rem;
}

/* ===== Sticky header ===== */
.sticky-wrap { position: sticky; top: 0; z-index: 999; background: #fff; box-shadow: 0 2px 14px rgba(11,37,69,.08); }
.site-header { padding: 12px 0; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 58px; height: 58px; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.brand-tagline { display: block; font-size: 0.76rem; color: var(--steel); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-badge { display: flex; align-items: center; gap: 8px; color: var(--navy); }
.header-badge i { font-size: 1.6rem; color: var(--amber); }
.header-badge strong { display: block; font-size: 0.85rem; }
.header-badge small { display: block; color: var(--steel); font-size: 0.72rem; }

/* ===== Navigation ===== */
.site-nav { background: var(--bg-light); border-top: 1px solid var(--border); }
.site-nav .navbar-nav { gap: 4px; }
.site-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy) !important;
  padding: 14px 16px !important;
  border-bottom: 3px solid transparent;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--amber-dark) !important; border-bottom-color: var(--amber); }
.dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: 8px; padding: 8px; }
.dropdown-item { font-size: 0.88rem; padding: 9px 14px; border-radius: 6px; color: #2A2F3A; }
.dropdown-item:hover, .dropdown-item.active { background: var(--bg-alt); color: var(--navy); }
.navbar-toggler { border: none; padding: 8px; }
.navbar-toggler:focus { box-shadow: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,37,69,.92) 30%, rgba(11,37,69,.55) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 80px 20px; }
.hero-content .eyebrow { color: var(--amber); border-color: var(--amber); }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 10px 0 18px; }
.hero-content p { color: #dbe1ee; font-size: 1.05rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Stat strip ===== */
.stat-strip { background: var(--navy-deep); padding: 34px 0; }
.stat-strip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; color: #cfd8ec; }
.stat-number { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 700; color: var(--amber); }
.stat-suffix { font-family: var(--font-mono); font-size: 0.85rem; color: var(--amber); }
.stat-label { font-size: 0.8rem; margin-top: 4px; }

/* ===== Page banner (inner pages) ===== */
.page-banner { position: relative; background-size: cover; background-position: center; min-height: 260px; display: flex; align-items: flex-end; color: #fff; }
.page-banner-content { position: relative; z-index: 2; padding: 40px 20px; }
.page-banner-content h1 { color: #fff; font-size: 2.2rem; margin: 0 0 8px; }
.breadcrumb { background: transparent; margin: 0; padding: 0; }
.breadcrumb-item, .breadcrumb-item a { color: #cfd8ec; font-size: 0.85rem; }
.breadcrumb-item.active { color: var(--amber); }
.breadcrumb-item + .breadcrumb-item::before { color: #cfd8ec; }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-tight { padding: 30px 0; }
.section-alt { background: var(--bg-light); }
.section-header { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; }
.section-header p { color: var(--grey); }

/* ===== Cards ===== */
.card-lift { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(11,37,69,.08); transition: transform .2s ease, box-shadow .2s ease; height: 100%; border: 1px solid var(--border); }
.card-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-lift img { height: 190px; width: 100%; object-fit: cover; }
.card-body-pad { padding: 24px; }

.icon-card { text-align: center; padding: 30px 18px; }
.icon-card i { font-size: 2.1rem; color: var(--amber-dark); }
.icon-card h4 { margin: 14px 0 8px; font-size: 1.02rem; }
.icon-card p { color: var(--grey); font-size: 0.88rem; margin: 0; }

/* ===== Seal / notice badge ===== */
.seal-badge { display: flex; align-items: center; gap: 16px; background: var(--bg-alt); border: 1px solid #d4e0f5; border-radius: var(--radius); padding: 18px 22px; }
.seal-badge i { font-size: 2rem; color: var(--amber-dark); }
.seal-badge strong { display: block; color: var(--navy); }
.seal-badge span { color: var(--grey); font-size: 0.9rem; }
.text-maroon, .text-amber { color: var(--amber-dark); font-weight: 600; }

/* ===== Check list ===== */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: #333; }
.check-list li i { color: var(--amber-dark); margin-top: 3px; }

/* ===== Course hero card ===== */
.course-hero-card { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-alt); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.course-hero-icon { width: 64px; height: 64px; min-width: 64px; border-radius: 14px; background: var(--navy); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.course-hero-card h1 { font-size: 1.7rem; margin: 4px 0 10px; }
.course-hero-card p { color: var(--grey); margin: 0; }

.course-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.course-facts > div { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.course-facts i { font-size: 1.3rem; color: var(--amber-dark); }
.course-facts strong { display: block; font-size: 0.8rem; color: var(--steel); }
.course-facts span { font-size: 0.92rem; font-weight: 600; color: var(--navy); }

.content-block { margin-bottom: 28px; }
.content-block h2 { font-size: 1.3rem; margin-bottom: 12px; }
.content-block p { color: #3d4453; }

/* ===== Course grid (listing) ===== */
.course-grid-card { display: flex; flex-direction: column; height: 100%; padding: 26px; }
.course-grid-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--bg-alt); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.course-grid-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.course-grid-card p { color: var(--grey); font-size: 0.9rem; flex-grow: 1; }
.course-grid-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--steel); margin: 12px 0 16px; }

/* ===== Side menu ===== */
.side-menu { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 130px; }
.side-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.side-box-title { font-size: 1rem; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.side-box-title i { color: var(--amber-dark); }
.side-group { margin-bottom: 16px; }
.side-group:last-child { margin-bottom: 0; }
.side-group-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--steel); font-weight: 700; margin-bottom: 8px; }
.side-links li { border-top: 1px dashed var(--border); }
.side-links li:first-child { border-top: none; }
.side-links a { display: flex; align-items: center; gap: 6px; padding: 9px 2px; font-size: 0.88rem; color: #2A2F3A; }
.side-links a i { font-size: 0.7rem; color: var(--amber-dark); }
.side-links a:hover, .side-links a.active { color: var(--amber-dark); padding-left: 6px; }
.side-box-contact { background: var(--navy); color: #dbe1ee; }
.side-box-contact .side-box-title { color: #fff; }
.side-box-contact p { font-size: 0.86rem; margin-bottom: 14px; }
.side-contact-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 0.88rem; color: #dbe1ee; border-top: 1px solid rgba(255,255,255,.12); }
.side-contact-item:first-of-type { border-top: none; }
.side-contact-item:hover { color: var(--amber); }
.btn-whatsapp { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: #fff; padding: 11px; border-radius: 6px; font-weight: 600; margin-top: 14px; font-size: 0.88rem; }
.side-box-download { text-align: center; background: var(--bg-alt); }
.side-box-download > i { font-size: 1.8rem; color: var(--amber-dark); }
.side-box-download p { font-size: 0.85rem; color: var(--grey); margin: 8px 0 16px; }

/* ===== CTA strip ===== */
.cta-strip { background: var(--navy); padding: 40px 0; }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-strip h3 { color: #fff; margin: 0 0 6px; font-size: 1.4rem; }
.cta-strip p { color: #cfd8ec; margin: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: #b9c3da; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding: 56px 0 34px; }
.footer-col h5 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: #b9c3da; font-size: 0.88rem; }
.footer-col a:hover { color: var(--amber); }
.footer-about p { font-size: 0.86rem; margin: 14px 0; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--amber); color: var(--navy); }
.footer-contact ul { gap: 12px; }
.footer-contact li { display: flex; gap: 8px; font-size: 0.86rem; align-items: flex-start; }
.footer-contact i { color: var(--amber); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 0.78rem; }

/* ===== Floating buttons ===== */
.whatsapp-float { position: fixed; bottom: 26px; left: 26px; width: 52px; height: 52px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 998; }
#backToTop { position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--amber); border: none; font-size: 1.1rem; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 998; }
#backToTop.show { display: flex; }

/* ===== Timeline (admission steps) ===== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); border: 4px solid var(--navy); }
.timeline-item h4 { font-size: 1rem; margin: 0 0 6px; }
.timeline-item p { color: var(--grey); font-size: 0.9rem; margin: 0; }

/* ===== Tables ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; font-size: 0.9rem; }
.data-table th { background: var(--bg-alt); color: var(--navy); font-family: var(--font-display); }
.data-table tr:nth-child(even) { background: #fbfcfe; }

/* ===== Faculty cards ===== */
.faculty-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; height: 100%; }
.faculty-avatar { width: 74px; height: 74px; border-radius: 50%; background: var(--bg-alt); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 14px; font-family: var(--font-display); font-weight: 700; }
.faculty-card h4 { font-size: 0.98rem; margin: 0 0 4px; }
.faculty-card .faculty-role { color: var(--amber-dark); font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.faculty-card .faculty-qual { color: var(--grey); font-size: 0.8rem; }

/* ===== Gallery ===== */
.gallery-tile { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-tile:hover img { transform: scale(1.06); }

/* ===== Forms ===== */
.form-control, .form-select { border: 1px solid var(--border); border-radius: 6px; padding: 11px 14px; font-size: 0.92rem; }
.form-control:focus, .form-select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240,162,2,.15); }
.form-label { font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }

/* ===== Map ===== */
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ===== Accordion (FAQs) ===== */
.accordion-item { border: 1px solid var(--border); border-radius: 8px !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.accordion-button:not(.collapsed) { background: var(--bg-alt); color: var(--navy); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

/* ===== Utility ===== */
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }
