/* Vibrant Red & Cream Theme - OGN Department */
@import url('https://fonts.googleapis.com/css2?family=Mitr:wght@300;400;500;600&family=Prompt:wght@300;400;500;600&display=swap');

:root {
  --font-heading: 'Mitr', sans-serif;
  --font-body: 'Prompt', sans-serif;

  /* Vibrant Purple Palette */
  --primary: #702996; /* Ruby Red */
  --primary-dark: #4a1966; /* Deep Red */
  --primary-glow: rgba(112, 41, 150, 0.15);
  --secondary: #d946ef; /* Mustard Gold */
  --secondary-hover: #c026d3;
  
  --background: #fbf5ff; /* Warm Cream */
  --surface: #ffffff;
  --surface-border: rgba(112, 41, 150, 0.1);
  
  --text-main: #3b1752; /* Deep Red-Brown */
  --text-muted: #755b85;
  --text-inverse: #ffffff;

  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 10px 30px rgba(74, 25, 102, 0.08);
  --shadow-hover: 0 15px 40px rgba(74, 25, 102, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
body { font-family: var(--font-body); color: var(--text-main); background-color: var(--background); overflow-x: hidden; }

/* Override Centralized Header Color for PHN */
.site-header, .navbar, .site-footer {
  background: linear-gradient(135deg, #4a1966 0%, #702996 100%) !important;
  border-bottom: none !important;
}
.site-header::after, .site-footer::before { display: none !important; }
.header-dept-name { text-align: center !important; color: #ffffff !important; font-size: clamp(16px, 2vw, 22px) !important; font-weight: 500 !important; text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important; display: inline-block !important; text-align: center !important; padding: 10px 24px !important; background: rgba(255, 255, 255, 0.15) !important; backdrop-filter: blur(8px) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; border-radius: var(--radius-full) !important; box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important; }
.header-faculty-name, .header-univ-name { color: rgba(255,255,255,0.85) !important; }
.nav-link { color: #ffffff !important; font-weight: 500 !important; text-shadow: 0 1px 4px rgba(0,0,0,0.2) !important; }
.nav-link:hover, .nav-link.active { color: #ffffff !important; background: rgba(255, 255, 255, 0.2) !important; }
.nav-link::after { background: var(--secondary) !important; }
.navbar-brand { color: #ffffff !important; text-shadow: 0 1px 4px rgba(0,0,0,0.2) !important; }

/* Red Hero Wave Background */
.red-hero-wave {
  position: relative;
  background: linear-gradient(135deg, #702996 0%, #4a1966 100%);
  color: white;
  padding: 4rem 0 8rem;
  overflow: visible;
  margin-top: -20px; /* pull up slightly under navbar */
}
.red-hero-wave::after {
  content: '';
  position: absolute;
  bottom: -2px; /* overlap to prevent seam */
  left: 0;
  width: 100%;
  height: 120px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23fbf5ff" fill-opacity="1" d="M0,128L60,149.3C120,171,240,213,360,208C480,203,600,149,720,138.7C840,128,960,160,1080,181.3C1200,203,1320,213,1380,218.7L1440,224L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"></path></svg>');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  z-index: 2;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 3;
}

/* Slider Overhaul */
.slider-container {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-hover);
  border: 4px solid var(--surface);
  position: relative;
}
.slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }

/* Bento Grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
  padding-top: 2rem;
}
.bento-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
  background: var(--secondary);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.bento-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.bento-card:hover::before { transform: scaleX(1); }
.bento-card h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.bento-card .subtitle {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bento-card p { color: var(--text-muted); line-height: 1.7; font-size: 1rem; }

/* Icon Badges */
.icon-badge {
  width: 64px; height: 64px; border-radius: 20px;
  background: var(--primary-glow); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; transition: var(--transition);
}
.bento-card:hover .icon-badge { background: var(--primary); color: white; transform: rotate(-10deg) scale(1.1); }
.icon-badge svg { width: 32px; height: 32px; }

/* Mustard Button */
.btn-mustard {
  display: inline-flex; align-items: center; gap: 12px; padding: 1rem 2.5rem;
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 500;
  color: white; text-decoration: none; background: var(--secondary);
  border-radius: var(--radius-full); box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
  transition: all var(--transition);
}
.btn-mustard:hover {
  background: var(--secondary-hover); transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(217, 70, 239, 0.6);
}

/* === Animations & Gimmicks === */
@keyframes floatUp { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } 100% { transform: translateY(0px) rotate(0deg); } }
@keyframes floatDown { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(20px) rotate(-5deg); } 100% { transform: translateY(0px) rotate(0deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.floating-fast { animation: floatUp 4s ease-in-out infinite; }
.floating-slow { animation: floatDown 6s ease-in-out infinite; }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.scale-in { animation: scaleIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }

/* Floating Decorative Elements */
.deco-element { position: absolute; pointer-events: none; z-index: 1; opacity: 0.4; }
.deco-1 { top: 15%; left: 5%; width: 80px; height: 80px; border-radius: 50%; border: 4px dashed rgba(255,255,255,0.3); }
.deco-2 { top: 30%; right: 8%; width: 60px; height: 60px; background: var(--secondary); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.deco-3 { bottom: 20%; left: 15%; width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0.1; }


/* === News & PR Section === */
.news-pr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .news-pr-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); color: var(--primary-dark);
  font-size: 1.4rem; padding-bottom: 0.5rem; margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--secondary);
}
.section-title svg { width: 28px; height: 28px; color: var(--primary); }
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md); text-decoration: none;
  transition: all var(--transition);
}
.news-item:hover {
  transform: translateX(5px);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(163, 29, 29, 0.08);
}
.badge {
  flex-shrink: 0; padding: 0.4rem 0.8rem; font-size: 0.85rem;
  font-weight: 600; border-radius: 8px; letter-spacing: 0.5px;
}
.badge.pdf { background: #faeaea; color: var(--primary); }
.badge.img { background: #fdf5e6; color: #b87b1c; }
.badge.pr  { background: #f0f4fa; color: #2b5c8f; }
.news-text { color: var(--text-main); font-size: 0.95rem; line-height: 1.5; font-weight: 500; }

/* === Quick Links Section === */
.quick-links-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem; margin-bottom: 4rem;
  box-shadow: var(--shadow-soft);
  border-top: 6px solid var(--primary);
  position: relative;
  z-index: 2;
}
.links-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .links-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .links-grid { grid-template-columns: 1fr; }
}
.links-col h4 {
  font-family: var(--font-heading); color: var(--primary-dark);
  font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.links-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.links-col a {
  color: var(--text-muted); text-decoration: none; font-size: 0.95rem;
  transition: color var(--transition); display: block;
}
.links-col a:hover { color: var(--primary); }


/* === Navbar Hover Transition === */
/* Scrolled Navbar Text Colors */
.navbar.scrolled .nav-link {
  color: var(--primary) !important;
  text-shadow: none !important;
}
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
  color: var(--secondary) !important;
  background: rgba(112, 41, 150, 0.05) !important;
}
.navbar.scrolled .navbar-brand {
  color: var(--primary) !important;
  text-shadow: none !important;
}
.nav-link { transition: color var(--transition), background var(--transition) !important; }
.nav-link:hover, .nav-link.active { color: var(--secondary) !important; background: rgba(255, 255, 255, 0.1) !important; }

/* === COE Page Layout === */
.coe-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 2rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .coe-hero { grid-template-columns: 1fr; gap: 3rem; }
}
.coe-text h1 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.coe-text .subtitle {
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 2rem;
}
.coe-text p {
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-indent: 2.5em;
  font-size: 1.05rem;
}

/* Image Container matching user request (Background color same as body, no red) */
.coe-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background-color: var(--background); /* Use body background instead of red */
  /* Remove red background but keep the decorative layout */
}
.coe-img-wrapper {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.coe-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition);
}
.coe-img-wrapper:hover img {
  transform: scale(1.05);
}

/* Decorative Elements for COE */
.coe-deco-circle {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  border: 2px dashed var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 1;
  animation: floatUp 5s ease-in-out infinite;
}
.coe-deco-blob {
  position: absolute;
  bottom: 20px;
  right: -30px;
  width: 80px;
  height: 80px;
  background-color: var(--secondary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.8;
  z-index: 3;
  animation: floatDown 6s ease-in-out infinite;
}



/* === Department Intro Section === */
.dept-intro {
  text-align: center;
  padding: 4rem 2rem;
  margin: 0 auto 3rem auto;
  max-width: 800px;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
/* Wavy top and bottom decorations */
.dept-intro::before, .dept-intro::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23fbf5ff" fill-opacity="1" d="M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,170.7C672,171,768,117,864,96C960,75,1056,85,1152,112C1248,139,1344,181,1392,202.7L1440,224L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') repeat-x;
  background-size: cover;
}
.dept-intro::before {
  top: 0;
  transform: rotate(180deg);
}
.dept-intro::after {
  bottom: 0;
}
.dept-intro h2 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}
.dept-intro p {
  color: var(--text-main);
  font-size: 1.1rem;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}




/* === Organic Background (Body Header) === */
.organic-bg {
  position: relative;
  background-color: var(--surface); /* White */
  overflow: hidden;
  padding: 6rem 0 4rem; /* Top padding to clear navbar */
  max-width: var(--container-max);
  margin: 0 auto;
}
.organic-bg::after {
  content: '';
  position: absolute;
  width: 100%;
  left: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 0;
  bottom: -2px;
  height: 150px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23fbf5ff" fill-opacity="1" d="M0,256L48,229.3C96,203,192,149,288,154.7C384,160,480,224,576,218.7C672,213,768,139,864,128C960,117,1056,171,1152,197.3C1248,224,1344,224,1392,224L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
}
.hero-wrapper {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.hero-title {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
.hero-subtitle {
  color: var(--text-main);
  font-size: 1.15rem;
  line-height: 1.8;
  padding: 0 1rem;
}

}




/* Responsive Mobile Menu matching Header */
.mobile-nav-panel {
  background: linear-gradient(135deg, rgba(74, 25, 102, 0.7) 0%, rgba(112, 41, 150, 0.7) 100%) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
}
.mobile-nav-header {
  background: rgba(0,0,0,0.1) !important;
}

.header-dept-name {
  white-space: normal !important;
  word-wrap: break-word !important;
  line-height: 1.4 !important;
  max-width: 100%;
}



.news-section-title {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 2.1rem;
  font-weight: 600;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-glow);
}

.news-card-img-wrapper {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  background-color: var(--background);
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

/* Specific aspect ratio for PR news */
.pr-card .news-card-img-wrapper {
  height: auto;
  aspect-ratio: 1 / 1;
  background-color: transparent;
}
.pr-card .news-card-img {
  object-fit: contain;
}

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 0.75rem;
  margin-top: auto;
}

.news-card-tag {
  background-color: var(--primary-glow);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.75rem;
}

/* Banner Grid for quick icon links at bottom */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.banner-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--surface-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.banner-item img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-glow);
}


/* Hero Image Fix */
.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  width: 100%;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  object-fit: contain;
}

/* Hero Text Block */
.hero-wrapper {
  text-align: center;
  margin-bottom: 2rem;
  padding: 3rem 2rem 1rem;
}
.hero-title {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-subtitle {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Page Common Styles */
.page-title {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 1rem;
}
.content-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}

/* High-End Table Styling for teaching.html */
.courses-list table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2.5rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0,0,0,0.05);
}

.courses-list th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 3px solid var(--secondary);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.courses-list td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.courses-list tr:last-child td {
  border-bottom: none;
}

.courses-list tbody tr {
  transition: background 0.2s ease;
}

.courses-list tbody tr:hover {
  background: rgba(112, 41, 150, 0.03); /* Purple tint */
}

/* For the sub-headers inside the table */
.courses-list tr.table-section-header td {
  background: rgba(217, 70, 239, 0.1); /* Magenta tint */
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(217, 70, 239, 0.2);
}

.course-section-title {
  font-family: var(--font-heading);
  background: var(--surface);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  border-left: 5px solid var(--secondary);
  box-shadow: var(--shadow-soft);
}
.text-center { text-align: center !important; }
@media (max-width: 768px) {
  .table-responsive { overflow-x: auto; display: block; width: 100%; }
  .courses-list table { min-width: 500px; }
}

/* === Gallery & Photo Grid Styles for OGN === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.gallery-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--surface-border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.gallery-img-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  background-color: var(--background);
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.06);
}

.gallery-caption {
  padding: 1.75rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  background: rgba(112, 41, 150, 0.02);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.6;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--surface-border);
  background-color: var(--surface);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.photo-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.photo-card:hover img {
  transform: scale(1.05);
}

/* COE Internal Pages Styling */
.coe-header-section {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--surface-border);
}

.coe-header-section h1 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.coe-intro-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
  text-indent: 2.5em;
  margin-bottom: 2.5rem;
}

.coe-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .coe-info-grid {
    grid-template-columns: 1fr;
  }
}

.coe-info-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--surface-border);
  border-top: 4px solid var(--primary);
}

.coe-info-card.alt {
  border-top-color: var(--secondary);
}

.coe-info-card h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coe-info-card h3 svg {
  color: var(--secondary);
}

.coe-section-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--surface-border);
  margin-bottom: 3rem;
}

.coe-section-card h3 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5rem;
}

.coe-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.coe-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.6;
  color: var(--text-main);
  font-size: 1rem;
}

.coe-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.1rem;
}

.coe-sub-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.coe-sub-section h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}



/* White content background to contrast with body background */
main.site-main {
  background: var(--surface, #ffffff);
  max-width: var(--container-max, 1180px);
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}
