@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');
/* ==========================================================================
   Design System & Variable Declarations
   ========================================================================== */
:root {
  /* Colors - Light Mode (Harmonious Indigo & Amber/Gold) */
  --bg-primary: #faf6f5;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5edeb;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --primary: #800000; /* Maroon / Dark Red */
  --primary-hover: #991b1b;
  --primary-rgb: 128, 0, 0;
  
  --accent: #f59e0b; /* Amber Gold */
  --accent-hover: #d97706;
  
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 20px -2px rgba(148, 163, 184, 0.12), 0 2px 8px -1px rgba(148, 163, 184, 0.08);
  --hover-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.2), 0 10px 10px -5px rgba(148, 163, 184, 0.1);
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(226, 232, 240, 0.8);
  --glass-blur: 12px;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  /* Fonts */
  --font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark Mode Variables */
.dark-mode {
  --bg-primary: #150e0e;
  --bg-secondary: #221616;
  --bg-tertiary: #1b1111;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --primary: #f87171; /* Rose / Light Red */
  --primary-hover: #ef4444;
  --primary-rgb: 248, 113, 113;
  
  --accent: #fbbf24;
  --accent-hover: #f59e0b;
  
  --border-color: #334155;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --hover-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(51, 65, 85, 0.7);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition-smooth);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  gap: 8px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(var(--primary-rgb), 0.5);
}

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

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

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition-smooth);
  height: 80px;
  display: flex;
  align-items: center;
}

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

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

.logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  font-weight: 800;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

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

.logo-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

.nav-link {
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.08);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-secondary);
  min-width: 240px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  z-index: 2000;
  padding: 8px 0;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-primary);
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.dropdown-content a:hover {
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  padding-left: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  width: 40px;
  height: 40px;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--border-color);
  color: var(--primary);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Hide moon/sun icon depending on mode */
.light-mode .moon-icon { display: block; }
.light-mode .sun-icon { display: none; }
.dark-mode .moon-icon { display: none; }
.dark-mode .sun-icon { display: block; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 9px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section (Main Banner)
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  background: radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.05) 0%, transparent 40%);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-title .highlight {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  /* Prevents cumulative layout shift */
  content-visibility: auto;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.03);
}

/* ==========================================================================
   Quick Links
   ========================================================================== */
.quick-links {
  margin-top: -40px;
  position: relative;
  z-index: 10;
  padding-bottom: 60px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quick-link-card {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  width: 54px;
  height: 54px;
  background-color: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.quick-link-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.quick-link-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Sections Standard Styles
   ========================================================================== */
section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   News & Announcements Section
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.news-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

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

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

.news-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(var(--glass-blur));
}

.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.news-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

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

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more:hover {
  color: var(--primary-hover);
}

/* Gradient presets for news background if no image */
.gradient-bg-1 {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}
.gradient-bg-2 {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0) 80%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-overlay h4 {
  color: white;
  font-size: 1.1rem;
}

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

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

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px 0;
}

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

.footer-info p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 0.95rem;
}

.footer-links h3, .footer-contact h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Admin Drawer / Panel Layout (Slide-in)
   ========================================================================== */
.admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 500px;
  max-width: 90vw;
  background-color: var(--bg-secondary);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.admin-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1.25rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
}

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

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-desc {
  background-color: rgba(var(--primary-rgb), 0.06);
  border-left: 4px solid var(--primary);
  padding: 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

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

.admin-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.admin-form input[type="text"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.admin-form input[type="text"]:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.admin-current-posts {
  margin-top: 36px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.admin-current-posts h4 {
  margin-bottom: 16px;
}

.admin-post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  gap: 12px;
}

.admin-post-item h5 {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.delete-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   Responsive Adaptations (Mobile First focus)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-header {
    height: 70px;
  }
  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .logo-title {
    font-size: 0.95rem;
  }
  .logo-subtitle {
    font-size: 0.65rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .quick-links {
    margin-top: 0;
    padding-top: 40px;
  }
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  }
  
  .nav-menu.open {
    transform: translateY(0);
  }
  
  .mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* ==========================================================================
   Homepage Layout Additions (Marquee, Banner, 2-Col)
   ========================================================================== */

/* Marquee */
.marquee-container {
  margin-top: 80px; /* offset fixed header */
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}
.marquee-badge {
  background: #dc2626;
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.marquee-inner marquee {
  font-weight: 500;
  color: var(--text-primary);
}

/* Banner Section */
.home-banner-section {
  padding: 30px 0;
}
.banner-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 30px;
}
@media (max-width: 992px) {
  .banner-grid {
    grid-template-columns: 1fr;
  }
}

.news-slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 400px;
  background: var(--bg-tertiary);
}
.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.slider-announcements {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
  box-shadow: var(--card-shadow);
}
.announcement-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 5px;
  display: inline-block;
}
.announcement-list {
  list-style: none;
}
.announcement-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  gap: 10px;
}
.announcement-list li:last-child {
  border-bottom: none;
}
.announcement-list .date {
  color: var(--text-muted);
  font-size: 0.85rem;
  min-width: 100px;
}
.announcement-list a {
  color: var(--text-primary);
  font-weight: 500;
}
.announcement-list a:hover {
  color: var(--primary);
}

/* Right Sidebar */
.director-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}
.card-header {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}
.card-header.red-header {
  background: #b91c1c;
  color: white;
  padding: 10px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: -20px -20px 15px;
}
.director-img-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-tertiary);
}
.director-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.director-name {
  font-size: 1.1rem;
  color: var(--primary);
}
.director-role {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.internal-units-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--card-shadow);
}
.internal-links {
  list-style: none;
}
.internal-links li {
  margin-bottom: 10px;
}
.internal-links a {
  display: block;
  padding: 10px 15px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 500;
}
.internal-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateX(5px);
}

/* 4 Categories News Section */
.news-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}
@media (max-width: 768px) {
  .news-cat-grid {
    grid-template-columns: 1fr;
  }
}
.news-cat-block {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cat-header {
  padding: 15px 20px;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}
.theme-red .cat-header { background: #b91c1c; }
.theme-blue .cat-header { background: #1d4ed8; }
.theme-orange .cat-header { background: #d97706; }
.theme-green .cat-header { background: #15803d; }

.cat-content {
  padding: 20px;
  flex: 1;
}
.cat-footer {
  padding: 15px;
  text-align: center;
  background: var(--bg-tertiary);
  font-weight: 600;
}
.theme-red .cat-footer a { color: #b91c1c; }
.theme-blue .cat-footer a { color: #1d4ed8; }
.theme-orange .cat-footer a { color: #d97706; }
.theme-green .cat-footer a { color: #15803d; }
.cat-footer a:hover { text-decoration: underline; }

.news-item-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}
.news-item-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.news-thumb {
  width: 100px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}
.news-details {
  flex: 1;
}
.news-details h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
}
.news-details h4:hover {
  color: var(--primary);
}

/* Footer Layout 3 Col */
.footer-layout-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
@media (max-width: 992px) {
  .footer-layout-3col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   UI Polish (Skeleton, Slider Controls, Micro-Animations)
   ========================================================================== */

/* Skeleton Loading Animation */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: #f6f7f8;
  background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 100%; 
  animation-duration: 1.5s;
  animation-fill-mode: forwards; 
  animation-iteration-count: infinite;
  animation-name: shimmer;
  animation-timing-function: linear;
  border-radius: var(--radius-sm);
}
.dark-mode .skeleton {
  background: #1e293b;
  background-image: linear-gradient(to right, #1e293b 0%, #334155 20%, #1e293b 40%, #1e293b 100%);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}
.skeleton-text:last-child {
  width: 80%;
}
.skeleton-thumb {
  width: 100px;
  height: 70px;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0;
}
.news-slider:hover .slider-btn {
  opacity: 1;
}
.slider-btn:hover {
  background: var(--primary);
}
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.slider-dots {
  position: absolute;
  bottom: 80px; /* Above caption */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: white;
  transform: scale(1.2);
}

/* Hover Micro-Animations */
.news-item-row {
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-left: -10px;
  margin-right: -10px;
}
.news-item-row:hover {
  background: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.news-item-row .news-thumb {
  transition: transform 0.3s ease;
}
.news-item-row:hover .news-thumb {
  transform: scale(1.05);
}

#loadMoreNewsBtn:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* Fallback Logo Overlay */
.fallback-logo {
  font-size: 2rem;
  opacity: 0.5;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ==========================================================================
   Modern Minimalist Design
   ========================================================================== */

.modern-hero-section {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff !important;
  text-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: #ffffff !important;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.hero-quick-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-link-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px 30px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.quick-link-card:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.modern-hero-section .slider-btn {
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);
  z-index: 2;
}

.modern-hero-section .slider-dots {
  bottom: 20px;
}

/* Modern About Section */
.modern-about-section {
  padding: 60px 0;
  background: var(--bg-tertiary);
}

.director-modern-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.director-img-wrapper-modern {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.director-img-wrapper-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-info-modern {
  text-align: left;
}

.director-info-modern .quote {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 15px;
  font-style: italic;
}

.director-info-modern .director-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .director-modern-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .director-info-modern {
    text-align: center;
  }
}

/* Modern News Grid */
.modern-news-section {
  padding: 60px 0;
  background: var(--bg-primary);
}

.section-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.section-header-modern h2 {
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

.view-all-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

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

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

/* Modern News Card */
.modern-news-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.modern-news-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.modern-news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modern-news-card:hover .modern-news-img-wrap img {
  transform: scale(1.05);
}

.modern-news-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Dynamic Tag Colors */
.tag-pr { background: #ef4444; }
.tag-gov { background: #3b82f6; }
.tag-people { background: #f59e0b; }
.tag-procure { background: #10b981; }
.tag-default { background: var(--primary); }

.modern-news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.modern-news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.modern-news-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modern-news-title:hover {
  color: var(--primary);
}

.modern-news-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modern-news-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.read-more-modern {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.read-more-modern:hover {
  gap: 8px;
}

/* Post Modal */
.post-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.post-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.post-modal {
  background: var(--bg-secondary);
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}
.post-modal-overlay.open .post-modal {
  transform: translateY(0);
}
.post-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.post-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
  flex: 1;
  text-align: center;
}
.close-modal-btn {
  background: var(--bg-secondary);
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 15px;
}
.close-modal-btn:hover {
  background: var(--border-color);
}
.post-modal-body {
  padding: 20px;
}
.post-user-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.post-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
}
.post-author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.post-privacy {
  font-size: 0.8rem;
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
  color: var(--text-secondary);
  cursor: pointer;
}
.post-input-title {
  width: 100%;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 10px 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.post-textarea {
  width: 100%;
  border: none;
  font-size: 1.2rem;
  resize: none;
  height: 120px;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
}
.post-textarea::placeholder {
  color: var(--text-muted);
}
.post-options {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.post-select {
  border: none;
  background: var(--bg-secondary);
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  max-width: 40%;
}
.post-submit-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}
.post-submit-btn:hover {
  background: #3a5bbf;
}

/* Toggle Switch */
.switch input:checked + .slider {
  background-color: #1877f2;
}
.switch input:focus + .slider {
  box-shadow: 0 0 1px #1877f2;
}
.switch input:checked + .slider .slider-ball {
  transform: translateX(24px);
}
