/* ==========================================================================
   Indira Gandhi Institute of Technology and Management (Autonomous)
   High-Precision Academic Stylesheet - style.css
   Clean, Professional, Official Portal Styling
   - Dual Header Slider (Constrained & 100% in view)
   - Slow & Smooth Marquee (55s)
   - Full-Width Zero-Crop Hero Slider (100% Edge-to-Edge)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Mukta:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500;1,600;1,700&display=swap');

:root {
  --gov-navy: #0a2540;
  --gov-navy-dark: #041424;
  --gov-blue: #0e5299;
  --gov-blue-light: #2563eb;
  --gov-red: #c2410c;
  --gov-crimson: #b91c1c;
  --gov-crimson-dark: #991b1b;
  --gov-gold: #d97706;
  --gov-gold-accent: #f59e0b;
  --gov-gold-light: #fef3c7;
  --gov-bg: #f8fafc;
  --gov-card-bg: #ffffff;
  --gov-border: #e2e8f0;
  --gov-border-dark: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-light: #64748b;

  /* Modern Institutional & Academic Typography Hierarchy */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-hindi: 'Mukta', 'Noto Sans Devanagari', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Backward Compatibility */
  --font-sans: var(--font-body);
  --font-serif: var(--font-heading);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -4px rgba(15, 23, 42, 0.06);
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--gov-bg);
  line-height: 1.7;
  font-size: 15px;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gov-navy);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

h2 {
  font-size: 1.85rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.32;
}

h4 {
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.38;
}

h5 {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

h6 {
  font-size: 0.92rem;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Top Government & Portal Notification Strip
   ========================================================================== */
.portal-topbar {
  background: var(--gov-navy-dark);
  color: #e2e8f0;
  font-size: 13px;
  border-bottom: 2px solid var(--gov-gold);
  padding: 6px 0;
}

.portal-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
}

.topbar-item a:hover {
  color: #fde047;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-badge-iti {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3.5px 13px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 7px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.topbar-badge-iti:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.topbar-badge-iti i {
  color: #a7f3d0;
  font-size: 12px;
}

.topbar-badge-tech {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3.5px 13px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 7px rgba(2, 132, 199, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.topbar-badge-tech:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.5);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.topbar-badge-tech i {
  color: #bae6fd;
  font-size: 12px;
}

.topbar-badge-login {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3.5px 14px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 7px rgba(220, 38, 38, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.topbar-badge-login:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.topbar-badge-login i {
  color: #fecaca;
  font-size: 11.5px;
}

.btn-top-portal {
  background: var(--gov-crimson);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-top-portal:hover {
  background: #dc2626;
  color: #ffffff;
}

/* ==========================================================================
   Full Header Banner Slider (Original Full Size - Large & Legible)
   ========================================================================== */
.inst-header {
  background: #fdf1c0;
  padding: 8px 0;
  border-bottom: 2px solid #e2cb76;
  text-align: center;
  position: relative;
}

.header-slider-container {
  width: 100%;
  max-width: 1200px;
  position: relative;
  margin: 0 auto;
  padding: 0 15px;
}

.header-slider-track {
  position: relative;
  width: 100%;
}

.header-slide-item {
  display: none;
  width: 100%;
  text-align: center;
}

.header-slide-item.active {
  display: block;
  animation: fadeInHeader 0.5s ease-in-out;
}

@keyframes fadeInHeader {
  from { opacity: 0; }
  to { opacity: 1; }
}

.header-slide-item a {
  display: block;
  width: 100%;
}

.header-full-banner-img {
  width: 100%;
  max-width: 1160px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

/* ==========================================================================
   Primary Navigation Bar
   ========================================================================== */
.site-navbar {
  background: var(--gov-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.nav-flex-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links-list {
  display: flex;
  align-items: center;
}

.nav-menu-item {
  position: relative;
}

.nav-menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 15px;
  color: #f1f5f9;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.1px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-menu-link:hover,
.nav-menu-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fde047;
  border-bottom-color: var(--gov-gold);
}

.nav-arrow {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.85;
  transition: transform 0.25s ease;
}

.nav-menu-item.has-dropdown:hover > .nav-menu-link .nav-arrow {
  transform: rotate(180deg);
  color: #fde047;
}

.nav-menu-item.has-dropdown:hover > .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 255px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  border-top: 3px solid var(--gov-crimson);
  z-index: 99;
  list-style: none;
}

.dropdown-subitem {
  position: relative;
}

.dropdown-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.dropdown-link:hover {
  background: #f8fafc;
  color: var(--gov-blue);
  padding-left: 22px;
}

.sub-arrow {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 10px;
}

.dropdown-subitem.has-subdropdown:hover > .dropdown-subpanel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-subpanel {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 245px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: var(--transition);
  border-left: 3px solid var(--gov-crimson);
  z-index: 100;
  list-style: none;
}

.dropdown-panel li a {
  display: block;
  padding: 10px 18px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-panel li a:hover {
  background: #f8fafc;
  color: var(--gov-blue);
  padding-left: 22px;
}

.nav-action-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-portal-login {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid var(--gov-gold);
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-portal-login:hover {
  background: var(--gov-gold);
  color: var(--gov-navy);
  border-color: var(--gov-gold);
}

.btn-admission-nav {
  background: var(--gov-crimson);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-admission-nav:hover {
  background: #991b1b;
  color: #ffffff;
}

.mobile-menu-trigger {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
}

/* ==========================================================================
   Notice Marquee Ticker (Slowed Down Smooth Speed - 55s)
   ========================================================================== */
.ticker-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--gov-border);
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
}

.ticker-title-tag {
  background: var(--gov-crimson);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
  padding-right: 26px;
}

.ticker-scroll-area {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-block;
  padding-left: 100%;
  /* 55 Seconds for slow, readable, smooth speed */
  animation: scrollTicker 55s linear infinite;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main);
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-news-item {
  display: inline-block;
  margin-right: 45px;
  font-weight: 500;
}

.ticker-news-item a:hover {
  color: var(--gov-blue);
  text-decoration: underline;
}

.pill-new {
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
}

@keyframes scrollTicker {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* ==========================================================================
   Hero Banner Slider (100% Full-Width Edge-to-Edge - Zero Blank Sidebars - Zero Crop)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000000;
  border-bottom: 3px solid var(--gov-gold);
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slide-item {
  flex-shrink: 0;
  position: relative;
}

.slide-item a {
  display: block;
  width: 100%;
  line-height: 0;
}

.slide-item img {
  width: 100%;
  height: auto;
  display: block;
  /* 1920x699 resolution: stretches edge-to-edge with ZERO blank space and ZERO cropping */
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(9, 37, 64, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 25;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.slider-btn:hover {
  background: var(--gov-crimson);
  border-color: var(--gov-crimson);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 25;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--gov-crimson);
  border-color: #ffffff;
  transform: scale(1.3);
}

/* ==========================================================================
   Quick Access Institutional Tiles
   ========================================================================== */
.tiles-section {
  padding: 30px 0 10px 0;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tile-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gov-border);
  border-left: 4px solid var(--gov-blue);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.tile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tile-card.highlight {
  border-left-color: var(--gov-crimson);
  background: #fffdfa;
}

.tile-icon-box {
  width: 44px;
  height: 44px;
  background: #eff6ff;
  color: var(--gov-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tile-card.highlight .tile-icon-box {
  background: #fef2f2;
  color: var(--gov-crimson);
}

.tile-content h4 {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--gov-navy);
  margin-bottom: 4px;
}

.tile-content p {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Sections, Headers, & Grid
   ========================================================================== */
.section-padding {
  padding: 55px 0;
}

.section-head-box {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 38px auto;
}

.sub-tag {
  color: var(--gov-blue);
  background: rgba(14, 82, 153, 0.08);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(14, 82, 153, 0.18);
}

.main-head {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gov-navy);
  margin-bottom: 10px;
  line-height: 1.25;
}

.desc-text {
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.accent-line {
  width: 60px;
  height: 3.5px;
  background: linear-gradient(90deg, var(--gov-gold), var(--gov-crimson));
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

.dual-notice-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.panel-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gov-border);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.panel-header-row h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--gov-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-all {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--gov-crimson);
}

.link-all:hover {
  text-decoration: underline;
}

.notice-table-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-entry-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.notice-entry-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.date-badge {
  min-width: 54px;
  height: 54px;
  background: #f1f5f9;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.date-badge .day-num {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--gov-navy);
  line-height: 1;
}

.date-badge .month-txt {
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.notice-meta-info h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  margin-bottom: 4px;
}

.notice-meta-info h4 a:hover {
  color: var(--gov-blue);
}

.notice-ref-code {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Fast Search Mini Widget */
.quick-search-box {
  background: #f8fafc;
  border: 1px solid var(--gov-border-dark);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.search-input-flex {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.quick-help-text {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 8px;
}

.form-group-row {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--gov-navy);
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  padding: 10px 14px;
  font-size: 14.5px;
  font-family: inherit;
  border: 1px solid var(--gov-border-dark);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: #ffffff;
  transition: var(--transition);
}

.input-field:focus {
  outline: none;
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 3px rgba(14, 65, 120, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(185, 28, 28, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.38);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--gov-navy);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-navy {
  background: linear-gradient(135deg, #0a2540 0%, #0e4178 100%);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(10, 37, 64, 0.22);
}

.btn-navy:hover {
  background: linear-gradient(135deg, #0e4178 0%, #1d63b8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.32);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Course Cards Grid
   ========================================================================== */
.courses-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.course-item-box {
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gov-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-item-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.course-thumb-container {
  height: 165px;
  position: relative;
  overflow: hidden;
}

.course-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-item-box:hover .course-thumb-container img {
  transform: scale(1.05);
}

.course-code-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(9, 37, 64, 0.92);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.course-content-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-branch-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--gov-navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.course-summary-para {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
  flex: 1;
}

.course-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.course-specs-table td {
  padding: 6px 0;
  font-family: var(--font-body);
  color: var(--text-muted);
}

.course-specs-table td.strong-val {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.course-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}

/* ==========================================================================
   Statistics Counter Strip
   ========================================================================== */
.stats-counter-strip {
  background: linear-gradient(135deg, #041424 0%, #0a2540 60%, #0e4178 100%);
  color: #ffffff;
  padding: 48px 0;
  border-top: 3px solid var(--gov-gold);
  border-bottom: 3px solid var(--gov-crimson);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stats-grid-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.counter-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fde047;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  font-family: var(--font-heading);
  font-size: 14.5px;
  color: #cbd5e1;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Study Center & Affiliation Banner
   ========================================================================== */
.affiliation-banner {
  background: #ffffff;
  border: 1px solid var(--gov-border);
  border-left: 5px solid var(--gov-gold);
  border-radius: var(--radius-sm);
  padding: 28px 30px;
  margin-top: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.affil-text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gov-navy);
  margin-bottom: 6px;
}

.affil-text p {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Director's Message & Leadership
   ========================================================================== */
.director-split-box {
  background: #ffffff;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-sm);
  padding: 34px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.director-profile-col {
  text-align: center;
}

.director-profile-photo {
  width: 195px;
  height: 250px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  border: 4px solid #ffffff;
  outline: 1px solid #cbd5e1;
  box-shadow: 0 8px 20px rgba(9, 37, 64, 0.12);
  margin: 0 auto 14px auto;
  display: block;
  background: #f8fafc;
  transition: transform 0.3s ease;
}

.dir-name-title {
  font-family: var(--font-heading);
  font-size: 18.5px;
  font-weight: 750;
  color: var(--gov-navy);
  letter-spacing: -0.01em;
}

.dir-role-sub {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 650;
  color: #d97706;
}

.director-speech-col p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.portal-footer {
  background: var(--gov-navy-dark);
  color: #cbd5e1;
  padding-top: 55px;
  border-top: 4px solid var(--gov-crimson);
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 38px;
}

.footer-col-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--gov-gold);
}

.footer-text-block p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 14px;
}

.footer-nav-list li {
  margin-bottom: 9px;
}

.footer-nav-list li a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-nav-list li a:hover {
  color: #fde047;
  transform: translateX(4px);
}

.footer-contact-row {
  display: flex;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 14px;
  line-height: 1.55;
}

.footer-contact-row i {
  color: var(--gov-gold);
  margin-top: 3px;
}

.legal-approval-strip {
  background: #020c17;
  padding: 16px 0;
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  line-height: 1.8;
}

.bottom-copyright-strip {
  background: #01060d;
  padding: 16px 0;
  font-size: 13px;
  color: #64748b;
}

.bottom-copyright-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   Certificate & Marksheet Verification Portal UI (Realistic Output)
   ========================================================================== */
.official-cert-card {
  background: #ffffff;
  border: 2px solid var(--gov-navy);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-top: 20px;
  position: relative;
}

.official-cert-header {
  text-align: center;
  border-bottom: 2px solid var(--gov-navy);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.cert-stamp-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cert-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 16px 0;
}

.cert-data-table td {
  padding: 8px 12px;
  border: 1px solid var(--gov-border);
}

.cert-data-table td.label-col {
  background: #f8fafc;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gov-navy);
  font-size: 13.5px;
  width: 32%;
}

.cert-sub-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13.5px;
}

.cert-sub-table th, .cert-sub-table td {
  border: 1px solid var(--gov-border-dark);
  padding: 8px 10px;
  text-align: center;
}

.cert-sub-table th {
  background: #f1f5f9;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--gov-navy);
}

.cert-sub-table td.subject-name {
  text-align: left;
}

/* ==========================================================================
   Back To Top Button
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: var(--gov-crimson);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
}

.back-to-top-btn.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: #991b1b;
}

/* ==========================================================================
   Responsive Helpers & Universal Layout Classes
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 32px;
  align-items: start;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.team-director-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 35px;
  align-items: center;
}

.about-director-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
}

.verify-search-row {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .courses-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .dual-notice-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .mobile-menu-trigger {
    display: block;
  }
  .nav-links-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--gov-navy);
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 999;
  }
  .nav-links-list.open {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  }
  .nav-menu-item.has-dropdown .dropdown-panel {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: #051626;
    padding-left: 20px;
    width: 100%;
  }
  .dropdown-subpanel {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #020c17;
    padding-left: 15px;
  }
  .dropdown-panel li a {
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .team-director-grid,
  .about-director-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 42px 0;
  }
  .tiles-grid, .courses-grid-layout {
    grid-template-columns: 1fr;
  }
  .director-split-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .main-head {
    font-size: 1.55rem;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .slider-btn.prev {
    left: 6px;
  }
  .slider-btn.next {
    right: 6px;
  }
  .slider-dots {
    bottom: 6px;
  }
  .slider-dot {
    width: 8px;
    height: 8px;
  }
  .header-full-banner-img {
    width: 100%;
    height: auto;
  }
  .portal-topbar .container {
    justify-content: center;
    text-align: center;
  }
  .topbar-left {
    justify-content: center;
    gap: 8px;
  }
  .topbar-right {
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 576px) {
  .verify-search-row {
    flex-direction: column;
  }
  .verify-search-row button {
    width: 100%;
  }
  .ticker-strip {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .ticker-title-tag {
    clip-path: none;
    padding: 5px 12px;
    height: auto;
    font-size: 11.5px;
    justify-content: center;
  }
  .ticker-scroll-area {
    padding: 6px 10px;
  }
  .stats-grid-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .counter-num {
    font-size: 2.1rem;
  }
}

/* ==========================================================================
   Course Detail Page & Rich WYSIWYG Content Output
   ========================================================================== */
.course-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .course-detail-grid {
    grid-template-columns: 1fr;
  }
}

.rich-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
  word-break: break-word;
}

.rich-content p {
  margin-bottom: 14px;
}

.rich-content p:last-child {
  margin-bottom: 0;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
  color: var(--gov-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.rich-content h1 { font-size: 1.6rem; }
.rich-content h2 { font-size: 1.4rem; }
.rich-content h3 { font-size: 1.25rem; }
.rich-content h4 { font-size: 1.15rem; }

.rich-content ul,
.rich-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
  padding-left: 6px;
}

.rich-content li {
  margin-bottom: 6px;
}

.rich-content strong,
.rich-content b {
  font-weight: 700;
  color: #0f172a;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.rich-content table th,
.rich-content table td {
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
}

.rich-content table th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--gov-navy);
}

.rich-content blockquote {
  border-left: 4px solid var(--gov-gold);
  padding: 10px 18px;
  margin: 16px 0;
  background: #f8fafc;
  color: #475569;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 10px 0;
}

/* ==========================================================================
   Home Page: 6 National Partner & Initiative Showcase
   ========================================================================== */
.home-partners-section {
  padding: 55px 0 50px;
  background: #ffffff;
  border-top: 1px solid var(--gov-border);
}

.partners-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .partners-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .partners-grid-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.partner-logo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 14px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.partner-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--gov-blue-light);
}

.partner-logo-wrap {
  height: 65px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.partner-logo-wrap img {
  max-height: 52px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.partner-logo-card:hover .partner-logo-wrap img {
  transform: scale(1.05);
}

.partner-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gov-navy);
  margin-bottom: 3px;
  font-family: var(--font-heading);
  line-height: 1.35;
}

.partner-card-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

/* ==========================================================================
   Clean & Simple Branch List Presentation & Enhanced Directory
   ========================================================================== */
.branch-intro-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-left: 4px solid var(--gov-blue);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.branch-intro-box p {
  margin: 0;
  font-size: 15px;
  color: var(--gov-navy);
  font-weight: 500;
  line-height: 1.6;
}


.branch-category-block {
  margin-bottom: 30px;
  background: #ffffff;
  border: 1px solid var(--gov-border);
  border-radius: 10px;
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.branch-category-block:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.branch-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.branch-category-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gov-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.branch-category-title i {
  color: var(--gov-blue);
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}
.branch-category-count {
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}

.branch-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.branch-grid-list li {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.2s ease;
  line-height: 1.4;
}
.branch-grid-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gov-blue);
  font-size: 13px;
  margin-right: 9px;
  flex-shrink: 0;
}
.branch-grid-list li:hover {
  background: #ffffff;
  border-color: var(--gov-blue);
  color: var(--gov-blue);
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.08);
  transform: translateY(-1px);
}
.branch-grid-list li.branch-hidden {
  display: none !important;
}
.branch-category-block.block-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .branch-category-block {
    padding: 16px 18px;
  }
  .branch-grid-list {
    grid-template-columns: 1fr;
  }
}

.rich-content ol.branch-list {
  columns: 3;
  column-gap: 36px;
  column-rule: 1px solid #e2e8f0;
  margin: 20px 0 24px 20px;
  padding-left: 10px;
}
@media (max-width: 991px) {
  .rich-content ol.branch-list {
    columns: 2;
    column-gap: 24px;
  }
}
@media (max-width: 576px) {
  .rich-content ol.branch-list {
    columns: 1;
    column-gap: 0;
    column-rule: none;
    margin-left: 16px;
  }
}
.rich-content ol.branch-list li {
  padding: 6px 4px;
  font-size: 14.5px;
  color: #1e293b;
  border-bottom: 1px dashed #f1f5f9;
  break-inside: avoid;
}
.rich-content ol.branch-list li:hover {
  color: var(--gov-blue);
}




