/* ==========================================================================
   MTs YPPMI (mtsyppmi.sch.id) - Official Theme & Design System
   Brand Colors: Pine Green (#146338), Dark Emerald (#0C4526), Accent Yellow (#F5B800)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Brand Color Palette */
  --primary: #146338;
  --primary-dark: #0c4526;
  --primary-light: #1e7d4a;
  --primary-subtle: #eef7f2;
  --accent-gold: #f5b800;
  --accent-gold-hover: #e0a700;
  --accent-gold-light: #fff8e1;
  --dark-heading: #0f172a;
  --dark-body: #334155;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --border-light: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(20, 99, 56, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 35px -10px rgba(12, 69, 38, 0.18);
  --shadow-gold: 0 8px 20px rgba(245, 184, 0, 0.25);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--dark-body);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

/* Helper Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(20, 99, 56, 0.15);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark-heading);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--primary);
  position: relative;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

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

/* ==========================================================================
   1. TOP ANNOUNCEMENT TICKER HEADER
   ========================================================================== */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.85rem;
  border-bottom: 2px solid var(--accent-gold);
  position: relative;
  z-index: 101;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.ticker-container {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  margin-right: 1.5rem;
}

.ticker-label {
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 35s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 2.5rem;
  color: #e2e8f0;
  font-weight: 500;
}

.ticker-item strong {
  color: var(--accent-gold);
  margin-right: 0.35rem;
}

.ticker-item a {
  color: var(--accent-gold);
  text-decoration: underline;
  margin-left: 0.35rem;
}

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

.top-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.top-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.top-contact-item i {
  color: var(--accent-gold);
}

.top-contact-item a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   2. MAIN HEADER & NAVBAR
   ========================================================================== */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.935rem;
  color: var(--dark-heading);
  padding: 0.5rem 0.25rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

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

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

/* Dropdown Menu for Subdomains */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 320px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-heading);
  transition: background var(--transition-fast);
}

.dropdown-item i {
  font-size: 1.1rem;
  color: var(--primary);
  width: 24px;
  text-align: center;
}

.dropdown-item small {
  display: block;
  font-size: 0.725rem;
  color: #64748b;
  font-weight: 400;
}

.dropdown-item:hover {
  background: var(--primary-subtle);
  color: var(--primary-dark);
}

/* Far Right LOGIN Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-login-main {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.925rem;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(20, 99, 56, 0.25);
  border: 2px solid var(--accent-gold);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-login-main i {
  color: var(--accent-gold);
  font-size: 1rem;
}

.btn-login-main:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold), 0 6px 18px rgba(20, 99, 56, 0.35);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-ppdb-header,
.btn-spmb-header {
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 10px rgba(245, 184, 0, 0.3);
}

.btn-ppdb-header:hover,
.btn-spmb-header:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-heading);
  cursor: pointer;
  padding: 0.25rem;
}

/* ==========================================================================
   3. HERO SECTION & BANNER SLIDER
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--primary-dark);
  color: var(--white);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

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

.hero-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;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(12, 69, 38, 0.92) 0%, rgba(20, 99, 56, 0.78) 50%, rgba(15, 23, 42, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 840px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 184, 0, 0.18);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.hero-title span {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  display: block;
}

.hero-desc {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary-gold {
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary-gold:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(245, 184, 0, 0.4);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--white);
  transform: translateY(-3px);
}

/* Slider Controls */
.slider-nav {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  background: var(--accent-gold);
  width: 32px;
  border-radius: 10px;
}

/* ==========================================================================
   4. INTEGRATED SUBDOMAIN PORTAL SECTION (THE HUB)
   ========================================================================== */
.subdomain-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  position: relative;
}

.subdomain-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border-light);
  color: #64748b;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.6rem 1.35rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(20, 99, 56, 0.2);
}

.subdomain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.subdomain-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subdomain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.subdomain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 99, 56, 0.2);
}

.subdomain-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  transition: all var(--transition-fast);
}

.subdomain-card:hover .card-icon-box {
  background: var(--primary);
  color: var(--accent-gold);
  transform: scale(1.05);
}

.subdomain-badge {
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f1f5f9;
  color: #475569;
}

.subdomain-url {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: block;
}

.subdomain-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-heading);
  margin-bottom: 0.6rem;
}

.subdomain-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.role-tag {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.role-tag.guru { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.role-tag.siswa { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.role-tag.wali { background: #fff7ed; color: #c2410c; border-color: #ffedd5; }
.role-tag.admin { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.btn-access-subdomain {
  width: 100%;
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  color: var(--dark-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.subdomain-card:hover .btn-access-subdomain {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-access-subdomain i {
  transition: transform var(--transition-fast);
}

.subdomain-card:hover .btn-access-subdomain i {
  transform: translateX(4px);
}

/* ==========================================================================
   5. QUICK ROLE PORTAL GATEWAY SECTION
   ========================================================================== */
.role-gateway-section {
  padding: 4.5rem 0;
  background: var(--primary-dark);
  color: var(--white);
  position: relative;
}

.role-gateway-section .section-title span {
  color: var(--accent-gold);
}

.role-gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.role-gateway-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.role-gateway-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

.role-avatar-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 16px rgba(245, 184, 0, 0.3);
}

.role-gateway-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.role-gateway-card p {
  font-size: 0.885rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.subdomain-quick-list {
  margin-bottom: 1.5rem;
}

.subdomain-quick-list li {
  font-size: 0.85rem;
  color: #e2e8f0;
  padding: 0.4rem 0;
  border-bottom: 1px border-dashed rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subdomain-quick-list li i {
  color: var(--accent-gold);
}

/* ==========================================================================
   6. PROGRAM UNGGULAN & PROFIL
   ========================================================================== */
.programs-section {
  padding: 5rem 0;
  background: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--light-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.program-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.program-body {
  padding: 1.5rem;
}

.program-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}

.program-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-heading);
  margin-bottom: 0.75rem;
}

.program-desc {
  font-size: 0.885rem;
  color: #64748b;
  line-height: 1.55;
}

/* ==========================================================================
   7. STATISTIK COUNTER
   ========================================================================== */
.stats-section {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-icon {
  font-size: 2.25rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.925rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* ==========================================================================
   8. BERITA, PENGUMUMAN & AGENDA
   ========================================================================== */
.news-section {
  padding: 5rem 0;
  background: var(--light-bg);
}

.news-search-bar {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.news-search-bar input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.news-search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 99, 56, 0.15);
}

.news-search-bar i {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.news-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-dark);
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

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

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

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

.news-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-heading);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.news-excerpt {
  font-size: 0.885rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.btn-read-more {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-read-more:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   9. MODAL LOGIN SYSTEM (MULTI-ROLE GATEWAY)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.92);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 1.75rem;
  position: relative;
  text-align: center;
}

.modal-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 2rem;
}

.modal-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: 12px;
  margin-bottom: 1.75rem;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  padding: 0.6rem 0.25rem;
  border-radius: 8px;
  font-size: 0.775rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.modal-tab-btn.active {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-heading);
  margin-bottom: 0.4rem;
}

.form-input-wrapper {
  position: relative;
}

.form-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 99, 56, 0.15);
}

.subdomain-target-info {
  background: var(--primary-subtle);
  border: 1px solid rgba(20, 99, 56, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.825rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-submit-login {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 99, 56, 0.25);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit-login:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(12, 69, 38, 0.35);
}

/* ==========================================================================
   10. FOOTER & CONTACT
   ========================================================================== */
.footer {
  background: #092e19;
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  font-size: 0.9rem;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-logo {
  height: 48px;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(3px);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.825rem;
  color: #94a3b8;
}

/* Floating Action Buttons (Chatbot & Location) */
.floating-actions-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  z-index: 999;
}

.float-action-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.float-location-btn {
  background: var(--primary-dark);
  color: var(--white);
  border: 2px solid var(--accent-gold);
}

.float-location-btn:hover {
  background: var(--primary);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 25px rgba(20, 99, 56, 0.45);
}

.float-chatbot-btn {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: var(--white);
  border: 2px solid #34d399;
}

.float-chatbot-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.45);
}

.float-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.float-btn-tooltip {
  position: absolute;
  right: 65px;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.float-btn-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--primary-dark);
}

.float-action-btn:hover .float-btn-tooltip {
  opacity: 1;
  visibility: visible;
  right: 68px;
}

/* Chatbot Widget Container Subsystem */
.chatbot-widget-container {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 360px;
  max-width: calc(100vw - 2.5rem);
  height: 480px;
  max-height: calc(100vh - 8rem);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.chatbot-widget-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.chatbot-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-gold);
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid var(--primary-dark);
  border-radius: 50%;
}

.chatbot-header-info {
  flex: 1;
}

.chatbot-header-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--white);
}

.chatbot-header-info p {
  font-size: 0.725rem;
  color: #a7f3d0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chatbot-header-info p i {
  font-size: 0.45rem;
  color: #34d399;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.chatbot-close-btn:hover {
  opacity: 1;
}

.chatbot-body {
  flex: 1;
  padding: 1rem;
  background: #f8fafc;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.chat-msg.bot-msg {
  align-self: flex-start;
}

.chat-msg.user-msg {
  align-self: flex-end;
}

.msg-bubble {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.bot-msg .msg-bubble {
  background: var(--white);
  color: var(--dark-body);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.user-msg .msg-bubble {
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chip-btn {
  background: var(--white);
  border: 1px solid #cbd5e1;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.chip-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.chatbot-footer {
  padding: 0.75rem;
  background: var(--white);
  border-top: 1px solid #e2e8f0;
}

.chatbot-footer form {
  display: flex;
  gap: 0.5rem;
}

.chatbot-footer input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-footer input:focus {
  border-color: var(--primary);
}

.btn-send-chat {
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-send-chat:hover {
  background: var(--primary-light);
}

/* ==========================================================================
   11. RESPONSIVE MEDIA QUERIES (MOBILE FRIENDLY)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.5rem; }
  .top-contacts { display: none; }
  .nav-menu { gap: 1rem; }
}

@media (max-width: 900px) {
  .mobile-nav-toggle { display: block; }
  
  .nav-menu {
    position: fixed;
    top: 124px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 124px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-normal);
    z-index: 99;
    overflow-y: auto;
  }

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

  .has-dropdown .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
  }

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

@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 0.95rem; }
  .section-title { font-size: 1.75rem; }
  .header-inner { height: 70px; }
  .brand-logo img { height: 42px; }
  .btn-ppdb-header,
  .btn-spmb-header { display: none; }
  .subdomain-grid { grid-template-columns: 1fr; }
  .modal-tabs { grid-template-columns: repeat(2, 1fr); gap: 0.35rem; }
}
