@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  /* Brand Colors */
  --primary-green: #d29d39;
  --primary-green-rgb: 210, 157, 57;
  --light-green: #bddb19;
  --yellow: #cd9e46;
  --blue: #1ab3ef;
  --blue-rgb: 26, 179, 239;
  --secondary-blue: #1ab3ef;
  --whatsapp-green: #25d366;
  --text-accent: #039df3;

  /* Light Theme Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --header-bg: rgba(255, 255, 255, 0.9);
  --dark-navy: #0b132b;
  --white: #ffffff;

  /* Font Families */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Misc */
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
body.dark-theme {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #374151;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --header-bg: rgba(11, 15, 25, 0.9);
  background-image: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

.badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  margin-bottom: 12px;
}

.badge-primary {
  background-color: var(--light-green);
  color: var(--text-accent);
  font-weight: 700;
}

body.dark-theme .badge-primary {
  background-color: rgba(189, 219, 25, 0.15);
  color: var(--light-green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--border-radius);
  gap: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #bc8a2e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(210, 157, 57, 0.3);
}

.btn-secondary {
  background-color: var(--blue);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #0287c3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 173, 244, 0.3);
}

.btn-outline {
  border: 2px solid var(--text-accent);
  color: var(--text-accent);
}

body.dark-theme .btn-outline {
  border-color: var(--light-green);
  color: var(--light-green);
}

.btn-outline:hover {
  background-color: var(--text-accent);
  color: var(--white);
  transform: translateY(-2px);
}

body.dark-theme .btn-outline:hover {
  background-color: var(--light-green);
  color: #000;
}

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

.btn-white:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

/* Section Header */
.section-header {
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* --- TOP INFO BAR --- */
.top-bar {
  background-color: var(--light-green);
  color: var(--text-accent);
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(var(--primary-green-rgb), 0.15);
}

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

.top-contact {
  display: flex;
  gap: 20px;
}

.top-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-accent);
  font-weight: 600;
  opacity: 0.9;
}

.top-contact a:hover {
  opacity: 1;
  color: var(--white);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-socials {
  display: flex;
  gap: 12px;
}

.top-socials a {
  color: var(--text-accent);
  opacity: 0.9;
  font-size: 14px;
}

.top-socials a:hover {
  opacity: 1;
  color: var(--white);
  transform: scale(1.1);
}

.top-portal-btn {
  background: var(--primary-green);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid var(--primary-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.top-portal-btn:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--text-accent);
}

/* --- STICKY NAV BAR --- */
header {
  position: sticky;
  top: 0;
  background-color: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition);
}

header.sticky-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  font-family: var(--font-headings);
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 18px;
  color: var(--text-accent);
}

body.dark-theme .logo-text h1 {
  color: var(--light-green);
}

.logo-text span {
  font-size: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

nav {
  display: flex;
  align-items: center;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-accent);
}

body.dark-theme .nav-links a:hover,
body.dark-theme .nav-links a.active {
  color: var(--light-green);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-accent);
  transition: var(--transition);
}

body.dark-theme .nav-links a::after {
  background-color: var(--light-green);
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-toggle-btn {
  font-size: 18px;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 50%;
}

.search-toggle-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-accent);
}

.nav-apply-btn {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
}

.nav-apply-btn:hover {
  background-color: var(--blue);
  box-shadow: 0 4px 15px rgba(5, 173, 244, 0.3);
}

.theme-toggle-btn {
  font-size: 18px;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 50%;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-tertiary);
}

.menu-hamburger {
  display: none;
  font-size: 24px;
  color: var(--text-primary);
}

/* Header Course Search Bar Overlay */
.search-overlay-bar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  box-shadow: var(--card-shadow);
  display: none;
  z-index: 99;
  animation: slideDown 0.3s ease-out;
}

.search-overlay-bar.active {
  display: block;
}

.search-form-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 10px;
}

.search-input-field {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
}

.search-input-field:focus {
  border-color: var(--text-accent);
}

/* --- HERO BANNER --- */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.0);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.45) 100%);
}

body.dark-theme .slide-overlay {
  background: linear-gradient(to right, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.35) 100%);
}

.slide-content {
  position: relative;
  z-index: 3;
  color: var(--text-primary);
  max-width: 650px;
  padding: 0 20px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
  transition-delay: 0.3s;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-content h2 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.1;
  text-transform: uppercase;
}

body.dark-theme .slide-content h2 {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.slide-content h2 span {
  color: var(--text-accent);
  display: block;
}

body.dark-theme .slide-content h2 span {
  color: var(--light-green);
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 35px;
  opacity: 0.95;
  color: var(--text-secondary);
}

body.dark-theme .slide-content p {
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.slide-actions {
  display: flex;
  gap: 15px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--text-accent);
  width: 30px;
  border-radius: 6px;
}

body.dark-theme .slider-dot.active {
  background-color: var(--light-green);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 4;
  cursor: pointer;
  transition: var(--transition);
}

body.dark-theme .slider-arrow {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.slider-arrow:hover {
  background-color: var(--text-accent);
  border-color: var(--text-accent);
  color: var(--white);
}

body.dark-theme .slider-arrow:hover {
  background-color: var(--light-green);
  border-color: var(--light-green);
  color: #000;
}

.slider-arrow-left {
  left: 20px;
}

.slider-arrow-right {
  right: 20px;
}

/* --- WHY CHOOSE MATHIRA TVC --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 35px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--light-green);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow);
  background-color: var(--bg-primary);
}

.why-card:hover::before {
  transform: scaleY(1);
}

.why-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(189, 219, 25, 0.2);
  color: var(--text-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 25px;
  transition: var(--transition);
}

body.dark-theme .why-icon {
  background-color: rgba(189, 219, 25, 0.1);
  color: var(--light-green);
}

.why-card:hover .why-icon {
  background-color: var(--light-green);
  color: var(--text-accent);
  transform: rotateY(360deg);
}

body.dark-theme .why-card:hover .why-icon {
  background-color: var(--light-green);
  color: #000;
}

.why-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* --- UPCOMING EVENTS & FACILITIES --- */
.split-section {
  background-color: var(--dark-navy);
  color: var(--white);
  padding: 80px 0;
}

.split-section h2,
.split-section h3,
.split-section p {
  color: var(--white);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.split-left h2,
.split-right h2 {
  font-size: 28px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.split-left h2::after,
.split-right h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--yellow);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-item {
  display: flex;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.event-item:hover {
  transform: translateX(8px);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--yellow);
}

.event-date-box {
  background-color: var(--yellow);
  color: var(--dark-navy);
  min-width: 65px;
  height: 65px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1.2;
}

.event-date-box span {
  font-size: 20px;
}

.event-date-box small {
  font-size: 11px;
  text-transform: uppercase;
}

.event-details h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.event-details p {
  font-size: 13px;
  opacity: 0.8;
  color: var(--white);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.facility-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: var(--transition);
}

.facility-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--blue);
  transform: translateY(-4px);
}

.facility-card i {
  color: var(--yellow);
  font-size: 24px;
  margin-top: 3px;
}

.facility-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.facility-card p {
  font-size: 13px;
  opacity: 0.75;
  color: var(--white);
}

/* --- ABOUT US SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-images-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.about-img {
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  height: 240px;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.about-img:hover img {
  transform: scale(1.08);
}

.about-img-tall {
  grid-row: span 2;
  height: 495px;
}

.about-badge-card {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background-color: var(--primary-green);
  color: var(--white);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 30px rgba(210, 157, 57, 0.3);
  text-align: center;
  max-width: 160px;
  animation: pulseLight 3s infinite;
}

.about-badge-card h4 {
  font-size: 32px;
  font-weight: 800;
  color: var(--light-green);
}

.about-badge-card p {
  font-size: 12px;
  margin-top: 4px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.about-content h3 {
  font-size: 32px;
  margin-bottom: 20px;
  position: relative;
}

.about-content h3 span {
  color: var(--text-accent);
}

body.dark-theme .about-content h3 span {
  color: var(--light-green);
}

.about-text {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 30px;
}

.about-pillar-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.about-tab-btn {
  padding: 10px 18px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.about-tab-btn.active {
  color: var(--text-accent);
  border-bottom-color: var(--text-accent);
}

body.dark-theme .about-tab-btn.active {
  color: var(--light-green);
  border-bottom-color: var(--light-green);
}

.about-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.about-tab-content.active {
  display: block;
}

.about-tab-content p {
  color: var(--text-secondary);
  font-size: 14px;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.value-item i {
  color: var(--light-green);
}

/* --- FEATURED COURSES SECTION --- */
.course-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--light-green);
  border-color: var(--light-green);
  color: var(--text-accent);
}

body.dark-theme .filter-btn.active,
body.dark-theme .filter-btn:hover {
  background-color: var(--light-green);
  border-color: var(--light-green);
  color: #000;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.course-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
}

.course-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.course-dept-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

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

.course-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.course-body p {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-bottom: 20px;
  flex: 1;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.course-level {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-accent);
}

body.dark-theme .course-level {
  color: var(--light-green);
}

.course-details-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-details-btn:hover {
  color: var(--secondary-blue);
}

/* --- DEPARTMENTS & LEVELS --- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dept-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px 24px;
  transition: var(--transition);
}

.dept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
  border-color: var(--text-accent);
}

body.dark-theme .dept-card:hover {
  border-color: var(--light-green);
}

.dept-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(3, 157, 243, 0.1);
  color: var(--secondary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.dept-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.level-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-tag {
  background-color: var(--bg-tertiary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.level-tag::after {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--text-accent);
}

body.dark-theme .level-tag::after {
  color: var(--light-green);
}

/* --- INSTITUTIONAL VIDEO SECTION --- */
.video-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 0;
  text-align: center;
  color: var(--white);
}

.video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--primary-green-rgb), 0.6);
  z-index: 1;
}

.video-container-box {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.video-container-box h2 {
  font-size: 40px;
  margin-bottom: 30px;
  color: var(--white);
}

.play-btn-pulse {
  width: 90px;
  height: 90px;
  background-color: var(--yellow);
  color: #061129;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 0 0 rgba(205, 158, 70, 0.4);
  animation: pulseBtn 2s infinite;
  margin-bottom: 20px;
}

.play-btn-pulse:hover {
  transform: scale(1.1);
  background-color: var(--white);
  color: var(--text-accent);
}

/* --- STATISTICS COUNTER --- */
.stats-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0;
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.88);
  z-index: 1;
}

body.dark-theme .stats-section::before {
  background: rgba(17, 24, 39, 0.85);
}

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-card h3 {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-accent);
  margin-bottom: 10px;
}

body.dark-theme .stat-card h3 {
  color: var(--light-green);
}

.stat-card p {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

body.dark-theme .stat-card p {
  color: var(--white);
}

/* --- TESTIMONIALS & LATEST NEWS --- */
.split-layout-white {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.testimonials-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--border-radius);
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

.testi-stars {
  color: var(--yellow);
  margin-bottom: 15px;
}

.testimonial-slide p {
  font-size: 16px;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.7;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testi-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-meta h4 {
  font-size: 15px;
  font-weight: 700;
}

.testi-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.testi-controls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
}

.testi-dot.active {
  background-color: var(--text-accent);
  width: 25px;
  border-radius: 5px;
}

/* News List Side */
.news-side h2 {
  font-size: 28px;
  margin-bottom: 30px;
  position: relative;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.news-item:hover {
  transform: translateX(5px);
}

.news-img {
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

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

.news-desc h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.news-desc p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 6px;
}

.news-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- CALL TO ACTION --- */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: var(--text-primary);
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(210, 157, 57, 0.12) 0%, rgba(26, 179, 239, 0.12) 100%);
  z-index: 1;
}

body.dark-theme .cta-section::before {
  background: linear-gradient(135deg, rgba(210, 157, 57, 0.85) 0%, rgba(26, 179, 239, 0.85) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 38px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

body.dark-theme .cta-content h2 {
  color: var(--white);
}

.cta-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 35px;
}

body.dark-theme .cta-content p {
  color: var(--white);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* --- PARTNERS & ACCREDITATION SLIDER --- */
.partners-section {
  background-color: var(--bg-secondary);
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary) 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary) 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
  height: 60px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover {
  opacity: 1;
  color: var(--text-accent);
}

/* --- LOCATION SECTION --- */
.location-section {
  position: relative;
  height: 450px;
  border-bottom: 1px solid var(--border-color);
}

.location-map {
  width: 100%;
  height: 100%;
  border: none;
}

.location-info-overlay {
  position: absolute;
  top: 40px;
  left: 40px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 320px;
  z-index: 10;
}

.location-info-overlay h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-accent);
}

body.dark-theme .location-info-overlay h3 {
  color: var(--light-green);
}

.location-info-overlay p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.location-info-overlay i {
  color: var(--blue);
  margin-top: 3px;
}

/* --- FOOTER --- */
footer {
  background-color: var(--dark-navy);
  color: var(--white);
  padding: 80px 0 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--light-green);
}

.footer-col p {
  opacity: 0.75;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--white);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  opacity: 0.75;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
}

.footer-col ul a:hover {
  opacity: 1;
  color: var(--light-green);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 15px;
  opacity: 0.75;
  color: var(--white);
}

.footer-contact-item i {
  color: var(--light-green);
  margin-top: 3px;
}

.bottom-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  opacity: 0.8;
  color: var(--white);
}

.footer-social-icons {
  display: flex;
  gap: 15px;
}

.footer-social-icons a {
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--white);
  transition: var(--transition);
}

.footer-social-icons a:hover {
  background-color: var(--light-green);
  color: #0b132b;
  transform: scale(1.1);
}

/* --- WHATSAPP FLOATING CHAT --- */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-family: var(--font-body);
}

.whatsapp-bubble {
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  animation: pulseBtn 2s infinite;
}

.whatsapp-chat-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  display: none;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-chat-box.active {
  display: block;
}

.chat-box-header {
  background-color: var(--whatsapp-green);
  color: var(--white);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-box-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--white);
}

.chat-box-header h4 {
  font-size: 14px;
  color: var(--white);
}

.chat-box-header span {
  font-size: 10px;
  opacity: 0.8;
  display: block;
}

.chat-box-body {
  padding: 16px;
  background-color: var(--bg-secondary);
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  max-width: 80%;
}

.chat-bubble-received {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble-sent {
  background-color: #dcf8c6;
  color: #303030;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-box-footer {
  padding: 12px;
  display: flex;
  gap: 8px;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.chat-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  outline: none;
  font-size: 12px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.chat-send-btn {
  background-color: var(--whatsapp-green);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 105px;
  right: 35px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 98;
}

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

.back-to-top:hover {
  background-color: var(--blue);
  transform: translateY(-4px);
}

/* --- MODALS (Admissions, Login, Payments, Course Details) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: scaleUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-box-large {
  max-width: 850px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 20px;
  color: var(--text-muted);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-header {
  padding: 30px 30px 20px 30px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 22px;
}

.modal-body {
  padding: 30px;
}

/* Modal Form Styles */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  font-size: 14px;
}

.form-control:focus {
  border-color: var(--text-accent);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Custom Portal Dashboard inside Modal */
.portal-dashboard {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 450px;
}

.portal-sidebar {
  border-right: 1px solid var(--border-color);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-sidebar-btn {
  text-align: left;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-sidebar-btn.active,
.portal-sidebar-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-accent);
}

body.dark-theme .portal-sidebar-btn.active,
body.dark-theme .portal-sidebar-btn:hover {
  color: var(--light-green);
}

.portal-content {
  padding-left: 30px;
}

.portal-tab-view {
  display: none;
  animation: fadeIn 0.4s ease;
}

.portal-tab-view.active {
  display: block;
}

.portal-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.portal-stat-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.portal-stat-item h4 {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.portal-stat-item p {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-accent);
}

body.dark-theme .portal-stat-item p {
  color: var(--light-green);
}

/* Fee Receipts Styled Block */
.receipt-box {
  background-color: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  padding: 24px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 20px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.receipt-divider {
  border-top: 1px dashed var(--border-color);
  margin: 12px 0;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulseLight {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes pulseBtn {
  0% {
    box-shadow: 0 0 0 0 rgba(205, 158, 70, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(205, 158, 70, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(205, 158, 70, 0);
  }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .menu-hamburger {
    display: block;
    cursor: pointer;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 40px;
    gap: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-apply-btn {
    display: none;
    /* Relocate/Hide on mobile view */
  }

  .hero-slider {
    height: 500px;
  }

  .slide-content h2 {
    font-size: 36px;
  }

  .slide-content p {
    font-size: 15px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-tall {
    height: 350px;
  }

  .about-img {
    height: 170px;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .dept-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-layout-white {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .portal-dashboard {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
    flex-direction: row;
    overflow-x: auto;
  }

  .portal-sidebar-btn {
    white-space: nowrap;
  }

  .portal-content {
    padding-left: 0;
  }
}

/* --- DEPARTMENT PAGES CUSTOM STYLES --- */
.dept-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* --- HOD MESSAGE CARD --- */
.principal-message {
  display: flex;
  gap: 30px;
  background: linear-gradient(135deg, rgba(210, 157, 57, 0.05) 0%, rgba(26, 179, 239, 0.05) 100%);
  border: 1px solid var(--border-color);
  padding: 35px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 40px;
  align-items: flex-start;
  transition: var(--transition);
}

body.dark-theme .principal-message {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.6) 0%, rgba(31, 41, 55, 0.6) 100%);
}

.principal-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

body.dark-theme .principal-message:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.principal-message .photo {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 4px solid var(--text-accent);
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

body.dark-theme .principal-message .photo {
  border-color: var(--light-green);
}

.principal-message .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principal-message .message-text {
  flex-grow: 1;
}

.principal-message .message-text h2 {
  font-size: 24px;
  color: var(--text-accent);
  margin-bottom: 15px;
  font-family: var(--font-headings);
  font-weight: 700;
}

body.dark-theme .principal-message .message-text h2 {
  color: var(--light-green);
}

.principal-message .message-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 15px;
}

.principal-message .message-text p:last-of-type {
  margin-bottom: 0;
}

.principal-message .signature {
  font-family: var(--font-headings);
  font-size: 14px;
  color: var(--text-muted) !important;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 18px !important;
  line-height: 1.5 !important;
}

.principal-message .signature b {
  color: var(--text-primary);
  font-size: 16px;
  display: inline-block;
  margin-bottom: 2px;
}

/* --- TABS SYSTEM --- */
.dept-tabs-container {
  margin-top: 20px;
}

.dept-tab-buttons {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 35px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.dept-tab-buttons::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.dept-tab-btn {
  font-family: var(--font-headings);
  font-size: 15.5px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 50px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dept-tab-btn i {
  font-size: 14px;
}

.dept-tab-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.dept-tab-btn.active {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(210, 157, 57, 0.2);
}

body.dark-theme .dept-tab-btn.active {
  background-color: var(--light-green);
  border-color: var(--light-green);
  color: var(--dark-navy);
  box-shadow: 0 4px 12px rgba(189, 219, 25, 0.2);
}

.dept-tab-panel {
  display: none;
}

.dept-tab-panel.active {
  display: block;
  animation: deptFadeIn 0.4s ease-out forwards;
}

@keyframes deptFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- DEPT TABS CONTENT DETAILS --- */
.dept-subheading {
  font-size: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 8px;
}

.dept-subheading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--text-accent);
  border-radius: 2px;
}

body.dark-theme .dept-subheading::after {
  background-color: var(--light-green);
}

.dept-text-block {
  margin-bottom: 30px;
}

.dept-text-block p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.dept-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.dept-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dept-list-item i {
  color: var(--text-accent);
  font-size: 16px;
  margin-top: 3px;
}

body.dark-theme .dept-list-item i {
  color: var(--light-green);
}

/* --- COURSES SECTION STYLING --- */
.courses-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  margin-bottom: 30px;
}

.courses-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
  min-width: 600px;
}

.courses-table th {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 16px 20px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 15px;
  border: none;
}

body.dark-theme .courses-table th {
  background-color: var(--bg-tertiary);
  color: var(--light-green);
}

.courses-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

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

.courses-table tr {
  transition: var(--transition);
}

.courses-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.015);
}

body.dark-theme .courses-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.01);
}

.courses-table tr:hover {
  background-color: rgba(210, 157, 57, 0.03);
}

body.dark-theme .courses-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.courses-table td b {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- GALLERY STYLING --- */
.dept-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.dept-gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  cursor: pointer;
}

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

.dept-gallery-item:hover img {
  transform: scale(1.1);
}

.dept-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.8) 0%, rgba(11, 15, 25, 0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.dept-gallery-item:hover .dept-gallery-overlay {
  opacity: 1;
}

.dept-gallery-overlay span {
  color: var(--white);
  font-family: var(--font-headings);
  font-size: 15px;
  font-weight: 600;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.dept-gallery-item:hover .dept-gallery-overlay span {
  transform: translateY(0);
}

/* --- APPLY TAB STYLE --- */
.dept-apply-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--card-shadow);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.dept-apply-box h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.dept-apply-box p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* --- RESPONSIVE DEPARTMENT STYLES --- */
@media (max-width: 992px) {
  .dept-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .principal-message {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
  }
  
  .principal-message .photo {
    width: 140px;
    height: 140px;
    margin-bottom: 10px;
  }

  .principal-message .signature {
    text-align: center;
  }

  .dept-list {
    grid-template-columns: 1fr;
  }

  .dept-gallery-grid {
    grid-template-columns: 1fr;
  }

  .dept-gallery-item {
    height: 200px;
  }
}

/* --- NAVIGATION DROPDOWN STYLES --- */
.nav-links li.dropdown {
  position: relative;
}

.nav-links li.dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links li.dropdown .dropdown-toggle i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.nav-links li.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  min-width: 280px;
  padding: 10px 0;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

/* Creating an invisible hover bridge so menu doesn't close when moving cursor */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.nav-links li.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 24px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  text-align: left;
}

.dropdown-menu li a:hover {
  background-color: rgba(var(--blue-rgb), 0.05);
  color: var(--text-accent);
  padding-left: 28px;
}

body.dark-theme .dropdown-menu li a:hover {
  background-color: rgba(189, 219, 25, 0.05);
  color: var(--light-green);
}

/* Mobile Responsive Dropdown Layout */
@media (max-width: 768px) {
  .nav-links li.dropdown {
    width: 100%;
  }

  .nav-links li.dropdown:hover .dropdown-menu {
    transform: none;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none; /* Controlled via active class or toggle in mobile */
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border-color);
    margin-left: 15px;
    margin-top: 5px;
    padding: 5px 0;
    transform: none;
    min-width: unset;
    background-color: transparent;
    transition: none;
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown-menu li a {
    padding: 8px 15px;
    font-size: 14px;
  }

  .dropdown-menu li a:hover {
    padding-left: 18px;
    background-color: transparent;
  }
}

/* --- DEPT CARD EXPLORE BUTTON --- */
.dept-explore {
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

body.dark-theme .dept-explore {
  color: var(--light-green);
}

.dept-card:hover .dept-explore {
  gap: 10px;
  color: var(--text-accent);
}

body.dark-theme .dept-card:hover .dept-explore {
  color: var(--light-green);
}

/* ==========================================================================
   ABOUT US PAGE CUSTOM STYLES
   ========================================================================== */

/* Subpage Hero & Breadcrumbs */
.about-hero {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  z-index: 1;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(210, 157, 57, 0.85) 0%, rgba(11, 19, 43, 0.9) 100%);
  z-index: -1;
}

.about-hero-content h1 {
  font-size: 40px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-headings);
  letter-spacing: 0.05em;
  color: var(--white);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
}

.breadcrumbs a {
  color: var(--light-green);
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: var(--white);
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs i {
  font-size: 10px;
  color: var(--light-green);
  margin: 0 4px;
}

/* Badge primary override to match screenshot theme */
.badge-primary {
  background-color: var(--light-green) !important;
  color: var(--primary-green) !important;
  font-weight: 700 !important;
  font-size: 11px;
}

body.dark-theme .badge-primary {
  background-color: rgba(189, 219, 25, 0.15) !important;
  color: var(--light-green) !important;
}

/* History Layout & Mandate Panel */
.history-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: flex-start;
  margin-top: 20px;
}

.mandate-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.mandate-panel h3 {
  font-size: 20px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  font-family: var(--font-headings);
  color: var(--text-primary);
}

.mandate-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mandate-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.mandate-item i {
  font-size: 18px;
  color: var(--text-accent);
  margin-top: 3px;
}

body.dark-theme .mandate-item i {
  color: var(--light-green);
}

.mandate-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mandate-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Strategic Framework Info Cards */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.info-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

body.dark-theme .info-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.info-card-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 25px;
}

/* Mission Card Icon */
.info-card:nth-child(1) .info-card-icon {
  background-color: rgba(210, 157, 57, 0.1);
  color: var(--primary-green);
  border: 1px solid rgba(210, 157, 57, 0.2);
}

body.dark-theme .info-card:nth-child(1) .info-card-icon {
  background-color: rgba(189, 219, 25, 0.15);
  color: var(--light-green);
  border: 1px solid rgba(189, 219, 25, 0.3);
}

/* Vision Card Icon */
.info-card:nth-child(2) .info-card-icon {
  background-color: rgba(26, 179, 239, 0.1);
  color: var(--blue);
  border: 1px solid rgba(26, 179, 239, 0.2);
}

body.dark-theme .info-card:nth-child(2) .info-card-icon {
  background-color: rgba(26, 179, 239, 0.15);
  color: var(--blue);
  border: 1px solid rgba(26, 179, 239, 0.3);
}

/* Core Values Card Icon */
.info-card:nth-child(3) .info-card-icon {
  background-color: rgba(205, 158, 70, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(205, 158, 70, 0.2);
}

body.dark-theme .info-card:nth-child(3) .info-card-icon {
  background-color: rgba(205, 158, 70, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(205, 158, 70, 0.3);
}

.info-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-family: var(--font-headings);
}

.info-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.card-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-list-item i {
  color: #2e8b57;
  font-size: 14px;
}

body.dark-theme .card-list-item i {
  color: var(--light-green);
}

/* Overwrite About Badge Card text to be white inside blue block */
.about-badge-card h4,
.about-badge-card p {
  color: var(--white) !important;
}

/* CTA Section Styles Override */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: var(--white) !important;
  text-align: center;
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 43, 0.85) !important; /* Force dark navy overlay */
  z-index: -1;
}

.cta-content h2 {
  font-size: 38px;
  margin-bottom: 20px;
  color: var(--white) !important;
  font-family: var(--font-headings);
  font-weight: 800;
}

.cta-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 35px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive Styles for About Page Components */
@media (max-width: 992px) {
  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .history-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .info-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Governing Council (BOG) Speaker Card Styles */
.speaker-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.speaker-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 30px;
  align-items: center;
  transition: var(--transition);
}

.speaker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

body.dark-theme .speaker-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.speaker-image {
  width: 140px;
  height: 170px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.speaker-content {
  flex-grow: 1;
}

.speaker-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: var(--font-headings);
}

.speaker-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

body.dark-theme .speaker-role {
  color: var(--light-green);
}

.speaker-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Management Board / Leadership Grid Styles */
.leadership-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.leadership-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}

.leader-card {
  text-align: center;
  width: 240px;
  transition: var(--transition);
}

.leader-card:hover {
  transform: translateY(-5px);
}

.leader-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.leader-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  font-family: var(--font-headings);
}

.leader-card p {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.dark-theme .leader-card p {
  color: var(--light-green);
}

/* Featured Leader (Principal) Styling */
.leader-card.featured {
  width: 280px;
}

.leader-card.featured img {
  height: 300px;
}

.leader-card.featured h4 {
  font-size: 19px;
}

/* Functions of the Management Board Styles */
.functions-container {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 0;
  margin-top: 60px;
}

.functions-list,
.ilo-functions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.function-item,
.ilo-function-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
}

.function-item:hover,
.ilo-function-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

body.dark-theme .function-item:hover,
body.dark-theme .ilo-function-item:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.function-item i,
.ilo-function-item i {
  font-size: 24px;
  color: var(--text-accent);
  margin-top: 3px;
  flex-shrink: 0;
}

body.dark-theme .function-item i,
body.dark-theme .ilo-function-item i {
  color: var(--light-green);
}

.function-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--font-headings);
}

.function-item p,
.ilo-function-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive Styles for Council and Board Components */
@media (max-width: 900px) {
  .leadership-row {
    gap: 20px;
  }
  .leader-card {
    width: 200px;
  }
  .leader-card img {
    height: 200px;
  }
  .leader-card.featured {
    width: 240px;
  }
  .leader-card.featured img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .speaker-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    gap: 20px;
  }
  .speaker-image {
    width: 130px;
    height: 155px;
  }
  .leadership-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .leader-card, .leader-card.featured {
    width: 100%;
    max-width: 280px;
  }
  .leader-card img, .leader-card.featured img {
    height: 280px;
  }
  .functions-list,
  .ilo-functions-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .function-item,
  .ilo-function-item {
    padding: 24px;
  }
}

/* ==========================================================================
   STUDENT AFFAIRS PAGES CUSTOM STYLES (DEAN & LEADERSHIP)
   ========================================================================== */

/* 2-Column Layout for Student Affairs */
.dos-layout,
.sl-layout,
.cg-layout,
.ilo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
}

/* Prevent grid children blowing past their column width */
.dos-layout > *,
.sl-layout > *,
.cg-layout > *,
.ilo-layout > * {
  min-width: 0;
}

/* Officer / Intro Cards */
.officer-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 25px;
  align-items: flex-start;
  margin-bottom: 30px;
  max-width: 100%;
  overflow: hidden;
}

.officer-photo {
  width: 170px;
  height: 210px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

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

.officer-info h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: var(--font-headings);
}

.officer-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

body.dark-theme .officer-title {
  color: var(--light-green);
}

.about-dos-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-family: var(--font-headings);
}

.officer-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

.officer-btns {
  display: flex;
  gap: 15px;
}

.officer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 6px;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.officer-btn-solid {
  background-color: var(--text-accent);
  color: var(--white);
}

.officer-btn-solid:hover {
  background-color: #0287c3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 157, 243, 0.2);
}

body.dark-theme .officer-btn-solid {
  background-color: var(--light-green);
  color: var(--dark-navy);
}

body.dark-theme .officer-btn-solid:hover {
  background-color: #a4be15;
  box-shadow: 0 4px 12px rgba(189, 219, 25, 0.2);
}

.officer-btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
}

.officer-btn-outline:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
  transform: translateY(-2px);
}

body.dark-theme .officer-btn-outline:hover {
  border-color: var(--light-green);
  color: var(--light-green);
}

/* Student Council Intro Card */
.council-intro-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--text-accent);
  border-radius: var(--border-radius);
  padding: 35px;
  box-shadow: var(--card-shadow);
  margin-bottom: 40px;
}

body.dark-theme .council-intro-card {
  border-left-color: var(--light-green);
}

.council-intro-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-family: var(--font-headings);
}

.council-intro-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 15px;
}

.council-intro-card p:last-child {
  margin-bottom: 0;
}

/* Tab Containers */
.dos-tabs-container,
.sl-tabs-container,
.cg-tabs-container,
.ilo-tabs-container {
  margin-bottom: 40px;
}

.dos-tab-bar,
.sl-tab-bar,
.cg-tab-bar,
.ilo-tab-bar {
  display: flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 30px;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

/* Career guidance tab bar wraps to 2 rows for 5 tabs */
.cg-tab-bar {
  flex-wrap: wrap;
}

.dos-tab-bar::-webkit-scrollbar,
.sl-tab-bar::-webkit-scrollbar,
.cg-tab-bar::-webkit-scrollbar,
.ilo-tab-bar::-webkit-scrollbar {
  display: none;
}

.dos-tab-btn,
.sl-tab-btn,
.ilo-tab-btn {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--transition);
  border: none;
  background: none;
  cursor: pointer;
}

/* Career guidance has 5 tabs — 2-row wrap layout */
.cg-tab-btn {
  flex: 1 1 calc(33.33% - 5px);
  min-width: 120px;
  text-align: center;
  padding: 11px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--transition);
  border: none;
  background: none;
  cursor: pointer;
}


.dos-tab-btn:hover,
.sl-tab-btn:hover,
.cg-tab-btn:hover,
.ilo-tab-btn:hover {
  color: var(--text-primary);
}

.dos-tab-btn.active,
.sl-tab-btn.active,
.cg-tab-btn.active,
.ilo-tab-btn.active {
  background-color: var(--bg-primary);
  color: var(--text-accent);
  box-shadow: var(--card-shadow);
}

body.dark-theme .dos-tab-btn.active,
body.dark-theme .sl-tab-btn.active,
body.dark-theme .cg-tab-btn.active,
body.dark-theme .ilo-tab-btn.active {
  color: var(--light-green);
}

.dos-tab-panel,
.sl-tab-panel,
.cg-tab-panel,
.ilo-tab-panel {
  display: none;
}

.dos-tab-panel.active,
.sl-tab-panel.active,
.cg-tab-panel.active,
.ilo-tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.dos-subheading,
.sl-subheading,
.cg-subheading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-family: var(--font-headings);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dos-subheading i,
.sl-subheading i,
.cg-subheading i {
  color: var(--text-accent);
}

body.dark-theme .dos-subheading i,
body.dark-theme .sl-subheading i,
body.dark-theme .cg-subheading i {
  color: var(--light-green);
}

.dos-text-block,
.sl-text-block,
.cg-text-block {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Service / Ministry Items */
.dos-services-list,
.ministries-list,
.cg-services-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dos-service-item,
.ministry-item,
.cg-service-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--text-accent);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
}

body.dark-theme .dos-service-item,
body.dark-theme .ministry-item,
body.dark-theme .cg-service-item {
  border-left-color: var(--light-green);
}

.dos-service-item:hover,
.ministry-item:hover,
.cg-service-item:hover {
  transform: translateX(4px);
}

.dos-service-item i,
.ministry-item i,
.cg-service-item i {
  font-size: 20px;
  color: var(--text-accent);
  margin-top: 3px;
  flex-shrink: 0;
}

body.dark-theme .dos-service-item i,
body.dark-theme .ministry-item i,
body.dark-theme .cg-service-item i {
  color: var(--light-green);
}

.dos-service-item h4,
.ministry-item h4,
.cg-service-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: var(--font-headings);
}

.dos-service-item p,
.ministry-item p,
.cg-service-item p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Activities Grid */
.dos-activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.activity-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
}

.activity-card:hover {
  transform: translateY(-4px);
}

.activity-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(3, 157, 243, 0.1);
  color: var(--text-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 15px;
}

body.dark-theme .activity-icon {
  background-color: rgba(189, 219, 25, 0.15);
  color: var(--light-green);
}

.activity-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--font-headings);
}

.activity-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Leaders Profiles */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.leader-profile-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
}

.leader-profile-card:hover {
  transform: translateY(-3px);
}

.leader-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--text-accent);
}

body.dark-theme .leader-avatar {
  border-color: var(--light-green);
}

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

.leader-details h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: var(--font-headings);
}

.leader-details span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 10px;
}

body.dark-theme .leader-details span {
  color: var(--light-green);
}

.leader-details p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Notices Widget */
.notices-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notice-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

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

.notice-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-accent);
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.dark-theme .notice-date {
  color: var(--light-green);
}

.notice-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* CTA Banner Strip */
.dos-cta-strip,
.ilo-cta-strip {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-navy) 100%);
  color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  text-align: center;
  margin-top: 40px;
}

.dos-cta-strip h3,
.ilo-cta-strip h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  font-family: var(--font-headings);
}

.dos-cta-strip p,
.ilo-cta-strip p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 25px;
  line-height: 1.6;
}

.dos-cta-btns,
.ilo-cta-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Sidebar & Widgets */
.dos-sidebar,
.sl-sidebar,
.ilo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-family: var(--font-headings);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text-accent);
  display: inline-block;
}

body.dark-theme .widget-title {
  border-bottom-color: var(--light-green);
}

.widget-search-form {
  display: flex;
  gap: 8px;
}

.widget-search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  font-size: 13.5px;
}

.widget-search-input:focus {
  border-color: var(--text-accent);
}

body.dark-theme .widget-search-input:focus {
  border-color: var(--light-green);
}

.widget-search-btn {
  background-color: var(--text-accent);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.widget-search-btn:hover {
  background-color: #0287c3;
  transform: translateY(-1px);
}

body.dark-theme .widget-search-btn {
  background-color: var(--light-green);
  color: var(--dark-navy);
}

body.dark-theme .widget-search-btn:hover {
  background-color: #a4be15;
}

/* Dynamic Calendar Styles */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 14px;
}

.cal-nav-btn {
  font-size: 12px;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-nav-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.cal-title {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-primary);
}

.cal-grid {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
}

.cal-grid th {
  padding: 6px 0;
  color: var(--text-muted);
  font-weight: 600;
}

.cal-grid td {
  padding: 6px 0;
  color: var(--text-secondary);
  font-weight: 500;
}

.cal-grid td.active-parent {
  padding: 2px 0;
}

.cal-grid td span.active {
  background-color: var(--text-accent);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(3, 157, 243, 0.3);
}

body.dark-theme .cal-grid td span.active {
  background-color: var(--light-green);
  color: var(--dark-navy);
  box-shadow: 0 4px 8px rgba(189, 219, 25, 0.3);
}

/* Quick Contacts Widget details */
.dos-contact-box,
.ilo-contact-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 6px;
}

.dos-contact-box h4,
.ilo-contact-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.dos-contact-row,
.ilo-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.dos-contact-row:last-child,
.ilo-contact-row:last-child {
  margin-bottom: 0;
}

.dos-contact-row i,
.ilo-contact-row i {
  color: var(--text-accent);
  font-size: 14px;
}

body.dark-theme .dos-contact-row i,
body.dark-theme .ilo-contact-row i {
  color: var(--light-green);
}

.dos-contact-row a:hover,
.ilo-contact-row a:hover {
  color: var(--text-accent);
}

body.dark-theme .dos-contact-row a:hover,
body.dark-theme .ilo-contact-row a:hover {
  color: var(--light-green);
}

/* Responsive Student Affairs Styles */
@media (max-width: 1024px) {
  .dos-layout,
  .sl-layout,
  .cg-layout,
  .ilo-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 28px;
  }

  /* 5-tab bar — tighten buttons at tablet */
  .cg-tab-btn {
    font-size: 12.5px;
    padding: 10px 10px;
  }
}

/* Tablet: 2-row wrapping tab bar for 5-tab career guidance */
@media (max-width: 860px) {
  .cg-tab-bar {
    flex-wrap: wrap;
  }
  .cg-tab-btn {
    flex: 0 1 calc(50% - 5px);
    font-size: 12px;
    padding: 10px 8px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .dos-layout,
  .sl-layout,
  .cg-layout,
  .ilo-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .officer-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 24px;
  }
  .officer-photo {
    width: 150px;
    height: 185px;
  }
  .officer-btns {
    justify-content: center;
    flex-wrap: wrap;
  }
  .dos-activities-grid,
  .leaders-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .leader-profile-card {
    padding: 20px;
  }
  /* Career chat on mobile */
  .cg-chat-container {
    height: 420px !important;
  }
  .cg-tab-btn {
    flex: 0 1 calc(50% - 5px);
    font-size: 12px;
    padding: 9px 8px;
  }
}

/* --- COURSES PAGE STYLES --- */
.course-dept-section {
  margin-bottom: 60px;
}
.course-dept-section:last-of-type {
  margin-bottom: 0;
}
.course-dept-title {
  font-family: var(--font-headings);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}
.course-dept-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary-green);
}
body.dark-theme .course-dept-title::after {
  background-color: var(--light-green);
}
.course-dept-title i {
  color: var(--primary-green);
  font-size: 24px;
}
body.dark-theme .course-dept-title i {
  color: var(--light-green);
}

/* --- CONTACT PAGE STYLES --- */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.contact-form-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
.contact-form-wrapper h3 {
  font-family: var(--font-headings);
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.contact-form-wrapper p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 30px;
}
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.contact-info-card:hover {
  transform: translateY(-4px);
}
.contact-info-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: rgba(210, 157, 57, 0.1);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
body.dark-theme .contact-info-card-icon {
  background-color: rgba(189, 219, 25, 0.15);
  color: var(--light-green);
}
.contact-info-card-details h4 {
  font-family: var(--font-headings);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}
.contact-info-card-details p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.contact-info-card-details a {
  color: var(--text-accent);
  text-decoration: none;
}
.contact-info-card-details a:hover {
  text-decoration: underline;
}
.contact-map-wrapper {
  width: 100%;
  height: 350px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}
.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 992px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-form-wrapper {
    padding: 30px 24px;
  }
}

/* --- COURSE CARD ACTION BUTTONS --- */
.course-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 20px;
}
.course-card-actions .btn {
  flex: 1;
  font-size: 12px;
  padding: 10px 8px;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
}
.course-card-actions .btn-outline {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-accent);
}
.course-card-actions .btn-outline:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-accent);
}
body.dark-theme .course-card-actions .btn-outline {
  color: var(--light-green);
}
body.dark-theme .course-card-actions .btn-outline:hover {
  border-color: var(--light-green);
}

/* --- CUSTOM WHY CHOOSE US LAYOUT --- */
.why-grid-custom {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .why-grid-custom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .why-grid-custom .why-apply-col {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
  }
  .why-grid-custom .why-apply-col .qr-container {
    align-self: center;
    margin-top: 15px;
    width: 100% !important;
    max-width: 200px;
  }
}

.glass-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

body.dark-theme .glass-card {
  background: var(--bg-secondary);
}

.glass-card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 12px 30px rgba(var(--primary-green-rgb), 0.15);
  transform: translateY(-4px);
}

/* --- INDUSTRIAL LIAISONS OFFICE (ILO) CUSTOM STYLES --- */
.ilo-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ilo-stakeholders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.stakeholder-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
}

.stakeholder-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

body.dark-theme .stakeholder-card:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.stakeholder-icon {
  background-color: rgba(26, 179, 239, 0.1);
  color: var(--text-accent);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

body.dark-theme .stakeholder-icon {
  background-color: rgba(189, 219, 25, 0.15);
  color: var(--light-green);
}

.stakeholder-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: var(--font-headings);
}

.stakeholder-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ilo-initiatives-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.initiative-item {
  display: flex;
  gap: 20px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  align-items: flex-start;
  transition: var(--transition);
}

.initiative-item:hover {
  transform: translateY(-2px);
  border-color: var(--text-accent);
}

body.dark-theme .initiative-item:hover {
  border-color: var(--light-green);
}

.initiative-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--text-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

body.dark-theme .initiative-num {
  background-color: var(--light-green);
  color: var(--dark-navy);
}

.initiative-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: var(--font-headings);
}

.initiative-item p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.quick-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.quick-tag:hover {
  background-color: var(--text-accent);
  color: var(--white);
  border-color: var(--text-accent);
}

body.dark-theme .quick-tag:hover {
  background-color: var(--light-green);
  color: var(--dark-navy);
  border-color: var(--light-green);
}

.recent-post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-item:first-child {
  padding-top: 0;
}

.post-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-accent);
  margin-top: 8px;
  flex-shrink: 0;
}

body.dark-theme .post-dot {
  background-color: var(--light-green);
}

.post-title {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
  transition: var(--transition);
}

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

body.dark-theme .post-title:hover {
  color: var(--light-green);
}

@media (max-width: 768px) {
  .ilo-contact-grid {
    grid-template-columns: 1fr;
  }
  .ilo-contact-box {
    grid-column: 1 / -1 !important;
  }
  .ilo-stakeholders-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Gender Cards for Admissions Form */
.gender-card {
  border: 1px solid var(--border-color) !important;
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
}
.gender-card:hover {
  border-color: var(--primary-green) !important;
  background: rgba(210, 157, 57, 0.04) !important;
}
.gender-card.active-male {
  border-color: var(--blue) !important;
  background-color: rgba(26, 179, 239, 0.08) !important;
  color: var(--blue) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(26, 179, 239, 0.1);
}
.gender-card.active-female {
  border-color: #db2777 !important;
  background-color: rgba(236, 72, 153, 0.08) !important;
  color: #db2777 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1);
}

@media (max-width: 768px) {
  #apply-modal .modal-body > form > div {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* AI Career Advisor Chat Container */
.cg-chat-container {
  height: 500px;
}

/* AI Career Advisor Chat Bubbles */
.cg-chat-bubble {
  padding: 12px 18px;
  border-radius: 12px;
  max-width: 80%;
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.3s ease;
}

.cg-chat-bubble.bot {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  align-self: flex-start;
  border-radius: 12px 12px 12px 0;
}

.cg-chat-bubble.user {
  background-color: var(--blue);
  color: var(--white) !important;
  align-self: flex-end;
  border-radius: 12px 12px 0 12px;
  border-color: var(--blue);
}

body.dark-theme .cg-chat-bubble.user {
  background-color: var(--primary-green);
  color: var(--dark-navy) !important;
  border-color: var(--primary-green);
}

.cg-chat-bubble.bot strong {
  color: var(--text-primary);
}

.cg-chat-bubble.user strong {
  color: var(--white);
}

body.dark-theme .cg-chat-bubble.user strong {
  color: var(--dark-navy);
}

.cg-quick-prompt:hover {
  background-color: var(--bg-primary) !important;
  border-color: var(--primary-green) !important;
  color: var(--primary-green) !important;
}

body.dark-theme .cg-quick-prompt:hover {
  border-color: var(--light-green) !important;
  color: var(--light-green) !important;
}