/* ==========================================================================
   KHANJAHAN ALI KRISHI COLLEGE (KAKC) - OFFICIAL DESIGN SYSTEM & STYLESHEET
   Senior Full-Stack & UI/UX Engineered Stylesheet
   Standards: WCAG AA Contrast, Modern CSS Grid/Flexbox, Fluid Typography
   ========================================================================== */

/* -------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   ------------------------------------------------------------- */
:root {
  /* Brand Color Palette - Prestigious Agriculture Theme */
  --primary: #15803d;             /* Forest Leaf Green (Dominant) */
  --primary-rgb: 21, 128, 61;
  --primary-dark: #14532d;        /* Deep Evergreen (Header/Footer/Cards) */
  --primary-darker: #0d381e;
  --primary-light: #22c55e;       /* Fresh Sprout Green */
  --primary-50: #f0fdf4;          /* Soft Mint Wash */
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;

  /* Accent - Warm Harvest Amber / Gold */
  --accent: #f59e0b;
  --accent-rgb: 245, 158, 11;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;

  /* WhatsApp Brand */
  --whatsapp-color: #25D366;
  --whatsapp-dark: #128C7E;

  /* Typography & Neutral Colors */
  --text-main: #0f172a;           /* Deep Slate - WCAG AAA on white */
  --text-muted: #334155;          /* Readable Slate 700 */
  --text-light: #64748b;          /* Subtle Slate 500 */
  --text-white: #ffffff;

  /* Backgrounds & Surfaces */
  --bg-body: #f8fafc;             /* Ultra-light clean slate */
  --bg-white: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-glass-dark: rgba(20, 83, 45, 0.96);

  /* Borders & Lines */
  --border-light: #e2e8f0;
  --border-primary: rgba(21, 128, 61, 0.2);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 36px -6px rgba(21, 128, 61, 0.15);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout Structure */
  --container-width: 1200px;
  --header-height: 74px;
  --header-height-mobile: 64px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* -------------------------------------------------------------
   3. TYPOGRAPHY & HEADINGS (Fixed Syntax & High Contrast)
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

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

/* -------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-padding {
  padding-top: 70px;
  padding-bottom: 70px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

.section-title {
  margin-bottom: 0.65rem;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3.5px;
  background: var(--primary);
  margin: 10px auto 0 auto;
  border-radius: 4px;
}

.text-left .section-title::after {
  margin-left: 0;
}

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

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* -------------------------------------------------------------
   5. BUTTONS & INTERACTIVE ELEMENTS
   ------------------------------------------------------------- */
.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: 1rem;
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  min-height: 48px; /* Touch target standard */
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.2);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp-color);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* -------------------------------------------------------------
   6. HEADER & RESPONSIVE NAVIGATION
   ------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-mobile);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-dark);
  z-index: 1002;
  letter-spacing: -0.01em;
}

.logo img {
  height: 42px;
  width: auto;
  border-radius: 6px;
  transition: transform var(--transition-fast);
}

.logo:hover img {
  transform: scale(1.05);
}

.logo span {
  display: inline-block;
  white-space: nowrap;
}

/* Desktop Nav Links */
.nav-links {
  display: none;
}

/* Hamburger Icon */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1005;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
}

.menu-toggle:hover {
  background: rgba(21, 128, 61, 0.08);
}

.bar {
  width: 26px;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  z-index: 1001;
  padding: 80px 24px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav .nav-link {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

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

/* Desktop Header Expansion */
@media (min-width: 992px) {
  :root {
    --header-height: 78px;
  }

  header {
    height: var(--header-height);
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.96rem;
    position: relative;
    padding: 6px 0;
  }

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

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--transition-normal);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
}

/* -------------------------------------------------------------
   7. PAGE HEADER / BANNER COMPONENT (Inner Pages)
   ------------------------------------------------------------- */
.page-header {
  position: relative;
  background: linear-gradient(135deg, #14532d 0%, #15803d 70%, #166534 100%);
  color: #ffffff;
  padding-top: calc(var(--header-height-mobile) + 36px);
  padding-bottom: 46px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(20, 83, 45, 0.15);
}

@media (min-width: 992px) {
  .page-header {
    padding-top: calc(var(--header-height) + 42px);
    padding-bottom: 56px;
  }
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-title {
  color: #ffffff;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.breadcrumb {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

.page-content {
  padding-top: 56px;
  padding-bottom: 70px;
}

/* -------------------------------------------------------------
   8. HERO SECTION (Homepage)
   ------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-height-mobile) + 32px);
  padding-bottom: 60px;
  position: relative;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: column-reverse;
  gap: 36px;
}

.hero-content {
  text-align: center;
  z-index: 2;
}

.hero-title {
  margin-bottom: 1rem;
  line-height: 1.18;
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 1.75rem auto;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.hero-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(21, 128, 61, 0.14);
  aspect-ratio: 4/3;
  border: 4px solid #ffffff;
  background: #e2e8f0;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero {
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
  }

  .hero .container {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .hero-content {
    flex: 1.1;
    text-align: left;
  }

  .hero-text {
    margin-left: 0;
  }

  .hero-btns {
    flex-direction: row;
    max-width: none;
    margin: 0;
  }

  .hero-image-wrapper {
    flex: 0.9;
  }
}

/* -------------------------------------------------------------
   9. STATS SECTION
   ------------------------------------------------------------- */
.stats-section {
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
  color: #ffffff;
  padding: 44px 0;
  border-radius: var(--radius-xl);
  margin: 20px auto;
  box-shadow: 0 12px 30px rgba(21, 128, 61, 0.22);
}

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

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 4px;
}

.stat-card p {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Stats in about page */
.about-stats .stat-card {
  background: #ffffff;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.about-stats .stat-number {
  color: var(--primary);
}

.about-stats p {
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   10. CARDS & GENERAL GRIDS
   ------------------------------------------------------------- */
.card {
  background: var(--bg-surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 128, 61, 0.25);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--primary-100);
}

.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------
   11. FACULTY & STAFF SYSTEM (faculty.html Master Styles)
   ------------------------------------------------------------- */
.faculty-section {
  background: var(--bg-body);
}

/* Leadership Grid (Chairman & Principal) */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 64px auto;
}

@media (min-width: 768px) {
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.leader-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.leader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.leader-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leader-img-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-light);
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.18);
  margin-bottom: 20px;
  background: #e2e8f0;
  flex-shrink: 0;
  position: relative;
}

.leader-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-normal);
}

.leader-card:hover .leader-img-placeholder img {
  transform: scale(1.06);
}

.role-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  border: 1px solid var(--primary-200);
}

.leader-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.leader-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Instructors & Staff Grid */
.teachers-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 480px) {
  .teachers-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .teachers-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .teachers-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.teacher-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-normal);
  height: 100%;
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 128, 61, 0.3);
}

.teacher-img-placeholder {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 auto 16px auto;
  background: #e2e8f0;
  border: 2px solid #e2e8f0;
  box-shadow: var(--shadow-xs);
  position: relative;
  flex-shrink: 0;
}

.teacher-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-normal);
}

.teacher-card:hover .teacher-img-placeholder img {
  transform: scale(1.05);
}

.teacher-card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.teacher-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0;
}

/* IT Admin Special Accent Card */
.teacher-card.it-admin-card {
  border-top: 3px solid var(--accent);
}

.teacher-card.it-admin-card .teacher-img-placeholder {
  border-color: rgba(245, 158, 11, 0.4);
}

/* -------------------------------------------------------------
   12. CONTACT PAGE COMPONENTS (contact.html Master Styles)
   ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
  }
}

/* Contact Info Card - Rich Forest Green (High Contrast Fix) */
.contact-info-card {
  background: linear-gradient(135deg, #14532d 0%, #15803d 100%);
  color: #ffffff;
  padding: 36px 28px;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 36px rgba(20, 83, 45, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-info-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-info-card h3 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2px;
}

.contact-info-item a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact Form */
.contact-form {
  background: #ffffff;
  padding: 36px 28px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  color: var(--text-main);
  background: #ffffff;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.12);
}

.form-control::placeholder {
  color: #94a3b8;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

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

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* -------------------------------------------------------------
   13. GALLERY GRID (gallery.html & Home)
   ------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e2e8f0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  color: #ffffff;
  z-index: 2;
}

.gallery-overlay p {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* -------------------------------------------------------------
   14. ACADEMIC PROGRAMS & TABLES (academics.html)
   ------------------------------------------------------------- */
.fee-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  margin: 20px 0;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 500px;
}

.fee-table th {
  background: var(--primary-50);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 2px solid var(--primary-200);
}

.fee-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

.fee-table tr:last-child td {
  border-bottom: none;
}

.fee-table tr:hover td {
  background: #f8fafc;
}

/* -------------------------------------------------------------
   15. NOTICE BOARD (notice.html)
   ------------------------------------------------------------- */
.kapi-notice-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 768px) {
  .kapi-notice-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.kapi-notice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21, 128, 61, 0.3);
}

/* -------------------------------------------------------------
   16. FOOTER COMPONENT (Global Consistency)
   ------------------------------------------------------------- */
footer {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 64px 0 24px;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-content {
    grid-template-columns: 1.4fr 1.2fr 0.8fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  display: inline-block;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

footer p,
.footer-col p,
.credit-line,
.credit-line p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.credit-line {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.92rem;
}

.credit-line p {
  line-height: 1.8;
  margin-bottom: 0;
}

.credit-line a.dev-link {
  color: var(--accent) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all var(--transition-fast);
}

.credit-line a.dev-link:hover {
  color: #ffffff !important;
}

/* -------------------------------------------------------------
   17. ACCESSIBILITY & ANIMATION UTILITIES
   ------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}