/* ==========================================================================
   IHRD Official Landing Page - Master Stylesheet
   Designed for Institute of Human Resources Development (Govt of Kerala)
   ========================================================================== */

:root {
  --primary-900: #0f172a;
  --primary-800: #1e293b;
  --primary-700: #1e3a8a;
  --primary-600: #2563eb;
  --primary-500: #3b82f6;
  --primary-100: #dbeafe;
  --primary-50: #eff6ff;

  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-400: #fbbf24;

  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-50: #ecfdf5;

  --dark-bg: #0b0f19;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #f8fafc;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================================
   Utility Top Bar
   ========================================================================== */
.top-bar {
  background-color: #0c1a30;
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.govt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-weight: 600;
}

.divider {
  color: rgba(255, 255, 255, 0.2);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
}

.top-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-link:hover {
  color: #ffffff;
}

.top-link.highlight {
  color: #fbbf24;
  font-weight: 600;
}

/* ==========================================================================
   Main Header & Navigation
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  max-height: 60px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.brand-logo:hover .logo-badge {
  border-color: #3b82f6;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary-700);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.65rem;
  color: #94a3b8;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-600);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-600);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: 0.3s;
}

/* ==========================================================================
   Live Notice Ticker
   ========================================================================== */
.notice-ticker {
  background: #1e3a8a;
  color: #ffffff;
  padding: 8px 0;
  overflow: hidden;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-container {
  display: flex;
  align-items: center;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.78rem;
  color: #fbbf24;
  white-space: nowrap;
  padding-right: 18px;
  border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ticker-track-wrap {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding-left: 18px;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: tickerSlide 35s linear infinite;
}

@keyframes tickerSlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 35px;
  color: #f1f5f9;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge.new { background: #ef4444; color: white; }
.badge.info { background: #0284c7; color: white; }
.badge.event { background: #10b981; color: white; }
.badge.highlight { background: #f59e0b; color: #1e293b; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #1e3a8a 0%, #0c1a30 65%, #050b16 100%);
  color: #ffffff;
  padding: 90px 0 110px;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #fbbf24 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.18rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 36px;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-primary {
  background-color: var(--primary-600);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-weight: 700;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 35px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fbbf24;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 6px;
  font-weight: 500;
}

/* ==========================================================================
   Services Action Banner
   ========================================================================== */
.services-banner {
  margin-top: -45px;
  position: relative;
  z-index: 10;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-500);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-blue { background: #eff6ff; color: #2563eb; }
.bg-gold { background: #fffbeb; color: #d97706; }
.bg-emerald { background: #ecfdf5; color: #059669; }
.bg-indigo { background: #eef2ff; color: #4f46e5; }

.service-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.service-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.arrow-icon {
  margin-left: auto;
  font-size: 1.3rem;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-card:hover .arrow-icon {
  color: var(--primary-600);
  transform: translateX(4px);
}

/* ==========================================================================
   Section Common Classes
   ========================================================================== */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary-600);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  padding: 100px 0;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-p {
  color: #334155;
  margin-bottom: 18px;
  line-height: 1.7;
}

.about-p.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: #1e293b;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.pillar-item {
  background: #f1f5f9;
  padding: 18px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
}

.pillar-icon {
  font-size: 1.8rem;
}

.pillar-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pillar-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.about-cta-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 16px;
  border-radius: var(--radius-md);
}

.gov-seal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e3a8a;
}

.about-visual {
  position: relative;
}

.visual-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

.main-card {
  padding: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.card-glass-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.indicator.online {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

.headquarters-box {
  text-align: center;
}

.hq-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.headquarters-box h3 {
  font-size: 1.5rem;
  color: #0f172a;
}

.headquarters-box p {
  color: #64748b;
  font-size: 0.92rem;
  margin-top: 4px;
}

.hq-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hq-badge {
  background: #e2e8f0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
}

.floating-card {
  position: absolute;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-card strong {
  font-size: 1.25rem;
  color: var(--primary-700);
}

.floating-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.top-float {
  top: -25px;
  left: -25px;
  animation: floatTop 4s ease-in-out infinite alternate;
}

.bottom-float {
  bottom: -25px;
  right: -25px;
  animation: floatBottom 4s ease-in-out infinite alternate;
}

@keyframes floatTop {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes floatBottom {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}

/* ==========================================================================
   Institutions Section
   ========================================================================== */
.institutions-section {
  background: #f1f5f9;
  padding: 90px 0;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0 20px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #e2e8f0;
}

.filter-btn.active {
  background: var(--primary-700);
  color: #ffffff;
  border-color: var(--primary-700);
}

.search-bar-wrap {
  max-width: 520px;
  margin: 0 auto 40px;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.search-input-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-main);
}

.institutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.inst-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.inst-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-500);
}

.inst-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.inst-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.inst-category.engineering { background: #fee2e2; color: #dc2626; }
.inst-category.cas { background: #e0e7ff; color: #4338ca; }
.inst-category.polytechnic { background: #fef3c7; color: #d97706; }
.inst-category.skill { background: #d1fae5; color: #059669; }

.inst-location {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.inst-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.inst-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.inst-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.program-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.72rem;
  color: #475569;
  padding: 3px 8px;
  border-radius: 4px;
}

.inst-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.inst-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
}

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

.institutions-cta {
  text-align: center;
  margin-top: 50px;
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.institutions-cta p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: #334155;
  font-weight: 500;
}

/* ==========================================================================
   Academic Programs Section
   ========================================================================== */
.programs-section {
  padding: 100px 0;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.program-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.program-box.highlight-box {
  background: radial-gradient(circle at top right, #1e3a8a, #0f172a);
  color: white;
  border-color: #3b82f6;
  box-shadow: var(--shadow-xl);
}

.program-box.highlight-box h3 {
  color: white;
}

.program-box.highlight-box .prog-list li {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.1);
}

.program-box.highlight-box .prog-list strong {
  color: #fbbf24;
}

.prog-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.prog-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.program-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #0f172a;
}

.prog-list {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}

.prog-list li {
  font-size: 0.88rem;
  color: #475569;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}

.prog-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-600);
  text-decoration: none;
}

.prog-link.gold {
  color: #fbbf24;
}

/* ==========================================================================
   Notifications & Circulars Section
   ========================================================================== */
.notifications-section {
  background: #f8fafc;
  padding: 90px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.notif-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
}

.circulars-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-top: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.circular-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
}

.c-tab {
  padding: 12px 20px;
  border: none;
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.c-tab.active {
  background: white;
  color: var(--primary-700);
  border-bottom: 2px solid var(--primary-600);
}

.circular-list {
  divide-y: 1px solid #f1f5f9;
}

.circular-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.circular-item:hover {
  background: #f8fafc;
}

.c-date {
  background: #eff6ff;
  color: var(--primary-700);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
}

.c-info {
  flex-grow: 1;
}

.c-info a {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 4px;
}

.c-info a:hover {
  color: var(--primary-600);
}

.c-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.c-download {
  color: var(--primary-600);
  font-size: 1.1rem;
}

.quick-stats-box {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.quick-stats-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #0f172a;
}

.verify-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v-link {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s;
}

.v-link:hover {
  background: #eff6ff;
  color: var(--primary-600);
}

/* ==========================================================================
   Admissions Banner
   ========================================================================== */
.admissions-banner {
  padding: 90px 0;
}

.admissions-card {
  background: radial-gradient(circle at 10% 50%, #1e3a8a, #0b172d);
  color: white;
  padding: 50px 45px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-xl);
}

.adm-badge {
  display: inline-block;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.adm-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.adm-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.adm-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.adm-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.adm-f-item {
  font-size: 0.92rem;
  color: #f1f5f9;
  font-weight: 500;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  padding: 90px 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 50px;
}

.contact-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--primary-500);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.c-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.contact-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.7;
}

.contact-card a {
  color: var(--primary-600);
  text-decoration: none;
}

/* ==========================================================================
   Main Footer
   ========================================================================== */
.main-footer {
  background: #090e1a;
  color: #94a3b8;
  padding: 70px 0 25px;
  font-size: 0.88rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.footer-logo-title {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-logo-sub {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 14px;
}

.footer-about p {
  line-height: 1.7;
  color: #64748b;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 25px;
  font-size: 0.8rem;
}

/* ==========================================================================
   University Map & CAS Directory Section
   ========================================================================== */
.university-map-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
}

.uty-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 36px;
  max-width: 1080px;
}

.uty-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.uty-filter-btn:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.uty-filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.uty-filter-btn.active[data-uty="kannur"] {
  background: #1e40af;
  border-color: #1e40af;
}

.uty-filter-btn.active[data-uty="calicut"] {
  background: #065f46;
  border-color: #065f46;
}

.uty-filter-btn.active[data-uty="mgu"] {
  background: #b45309;
  border-color: #b45309;
}

.uty-filter-btn.active[data-uty="kerala"] {
  background: #6b21a8;
  border-color: #6b21a8;
}

.uty-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-all { background: linear-gradient(135deg, #2563eb, #059669, #d97706, #7c3aed); }
.dot-kannur { background: #2563eb; }
.dot-calicut { background: #059669; }
.dot-mgu { background: #d97706; }
.dot-kerala { background: #7c3aed; }

.uty-btn-count {
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  transition: all 0.2s;
}

.uty-filter-btn.active .uty-btn-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Map & Directory 2-Column Grid */
.map-dir-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 30px;
  align-items: stretch;
}

/* Map Card */
.map-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.map-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.map-card-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

.map-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.map-reset-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* SVG Map Wrapper */
.map-canvas-wrapper {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 20px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
}

.map-svg-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-svg-inner svg {
  max-width: 100%;
  height: 500px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
  user-select: none;
}

/* SVG District Paths */
.kerala-district {
  cursor: pointer;
  transition: fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease, opacity 0.3s ease;
  stroke: #ffffff;
  stroke-width: 4px;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.kerala-district:hover {
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(0, 0, 0, 0.2));
  stroke: #fbbf24;
  stroke-width: 8px;
}

.kerala-district.selected {
  stroke: #fbbf24 !important;
  stroke-width: 10px !important;
  filter: brightness(1.18) drop-shadow(0 0 14px rgba(251, 191, 36, 0.7)) !important;
}

.kerala-district.dimmed {
  opacity: 0.22;
  filter: grayscale(40%);
}

/* Floating Tooltip */
.map-tooltip {
  position: absolute;
  pointer-events: none;
  display: none;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 100;
  transform: translate(-50%, -120%);
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.map-tooltip-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #fbbf24;
  margin-bottom: 2px;
}

.map-tooltip-sub {
  color: #cbd5e1;
  font-size: 0.76rem;
  margin-bottom: 6px;
}

.map-tooltip-uty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  color: #f8fafc;
}

/* Map Legend */
.map-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8fafc;
  border: 1px solid transparent;
}

.legend-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.legend-item.active {
  background: #eff6ff;
  border-color: #93c5fd;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-top: 3px;
  flex-shrink: 0;
}

.swatch-kannur { background: #2563eb; }
.swatch-calicut { background: #059669; }
.swatch-mgu { background: #d97706; }
.swatch-kerala { background: #7c3aed; }

.legend-info strong {
  display: block;
  font-size: 0.8rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.2;
}

.legend-info small {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

/* CAS Directory Card (Right Column) */
.directory-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 740px;
}

.dir-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.dir-title-area {
  margin-bottom: 12px;
}

.dir-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: #eff6ff;
  color: #2563eb;
  margin-bottom: 6px;
}

.dir-badge.badge-kannur { background: #dbeafe; color: #1e40af; }
.dir-badge.badge-calicut { background: #d1fae5; color: #065f46; }
.dir-badge.badge-mgu { background: #fef3c7; color: #92400e; }
.dir-badge.badge-kerala { background: #ede9fe; color: #5b21b6; }

.dir-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.dir-desc {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.dir-search-wrap {
  margin-top: 14px;
}

.dir-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}

.dir-search-box:focus-within {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dir-search-box svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.dir-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  color: #0f172a;
  outline: none;
}

.dir-search-box input::placeholder {
  color: #94a3b8;
}

.clear-search-btn {
  background: #e2e8f0;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #475569;
  cursor: pointer;
  padding: 0;
}

.clear-search-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.dir-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 14px;
}

.filter-chip-remove {
  cursor: pointer;
  color: #3b82f6;
  font-weight: bold;
}

.filter-chip-remove:hover {
  color: #1e3a8a;
}

/* Scrollable Colleges List */
.dir-colleges-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dir-colleges-list::-webkit-scrollbar {
  width: 6px;
}

.dir-colleges-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.dir-colleges-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.dir-colleges-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* College Card */
.cas-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cas-item-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.cas-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cas-code-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.cas-badges-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cas-uty-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.cas-uty-tag.tag-kannur { background: #dbeafe; color: #1e40af; }
.cas-uty-tag.tag-calicut { background: #d1fae5; color: #065f46; }
.cas-uty-tag.tag-mgu { background: #fef3c7; color: #92400e; }
.cas-uty-tag.tag-kerala { background: #ede9fe; color: #5b21b6; }

.cas-district-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.cas-item-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
}

.cas-item-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #64748b;
}

.cas-programs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.cas-prog-pill {
  font-size: 0.72rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
  color: #334155;
  font-weight: 500;
}

.cas-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed #f1f5f9;
}

.cas-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #64748b;
}

.cas-contact-info a {
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.cas-contact-info a:hover {
  color: #2563eb;
}

.cas-web-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cas-web-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Directory Empty State */
.dir-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.dir-empty-state svg {
  margin-bottom: 12px;
  color: #94a3b8;
}

.dir-empty-state h4 {
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 6px;
}

.dir-empty-state p {
  font-size: 0.84rem;
  margin-bottom: 16px;
}

/* Directory Footer */
.dir-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dir-count-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.dir-footer-links {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 6px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 2.6rem; }
  .about-wrapper { grid-template-columns: 1fr; }
  .about-visual { margin-top: 30px; }
  .notif-layout { grid-template-columns: 1fr; }
  .admissions-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  
  .map-dir-grid {
    grid-template-columns: 1fr;
  }
  .directory-card {
    height: 650px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
  }
  .nav-menu.open { display: flex; }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 2.1rem; }
  .hero-description { font-size: 1rem; }
  .top-bar-content { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  
  .map-legend {
    grid-template-columns: 1fr;
  }
  .map-canvas-wrapper {
    min-height: 400px;
  }
  .map-svg-inner svg {
    height: 380px;
  }
}
