/* 
   e-WMVAA Hub — Portal Design System
   Aesthetic Dark Glassmorphism Stylesheet (Mobile-First / Mobile-Native Edition)
*/

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

:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Color Palette (Deep Space & Cyber Glow) */
  --bg-dark: #070913;
  --bg-card: rgba(15, 18, 36, 0.6);
  --bg-card-hover: rgba(22, 27, 54, 0.85);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(99, 102, 241, 0.4);
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-inverse: #070913;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.18);
  --emerald: #10b981;
  --gold: #f59e0b;
  --rose: #f43f5e;
  --cyan: #06b6d4;
  
  /* Gradients */
  --gradient-main: linear-gradient(135deg, #6366f1, #818cf8);
  --gradient-emerald: linear-gradient(135deg, #10b981, #34d399);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-cyan: linear-gradient(135deg, #06b6d4, #22d3ee);
  --gradient-rose: linear-gradient(135deg, #f43f5e, #fb7185);
  --gradient-dark: linear-gradient(180deg, #101229 0%, #070913 100%);
  --gradient-card: linear-gradient(145deg, rgba(20, 24, 48, 0.6), rgba(10, 12, 26, 0.4));
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* Disable tap highlight on mobile */
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ambient glow blobs */
body::before, body::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}
body::before {
  top: 5%;
  left: -80px;
  background: var(--primary);
}
body::after {
  top: 45%;
  right: -80px;
  background: var(--cyan);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   NAVIGATION SYSTEMS (RESPONSIVE APP SHELL)
   ========================================================================== */

/* Top Mobile Navigation Bar */
.mobile-top-bar {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 9, 19, 0.85);
  border-bottom: 1px solid var(--border-card);
  padding: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.mobile-top-bar .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-top-bar .brand-icon {
  background: var(--gradient-main);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
}

.mobile-top-bar .brand-text .brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.mobile-top-bar .brand-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mobile-top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

.mobile-badge {
  position: relative;
}

.mobile-badge::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--rose);
  border-radius: 50%;
  border: 1.5px solid var(--bg-dark);
}

/* Bottom Mobile Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(7, 9, 19, 0.9);
  border-top: 1px solid var(--border-card);
  padding: 0.6rem 0.5rem;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  flex: 1;
  max-width: 75px;
  min-width: 0;
  height: 48px;
  gap: 0.25rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.mobile-bottom-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: var(--transition-smooth);
}

.mobile-bottom-item.active {
  color: var(--primary);
  font-weight: 700;
  position: relative;
}

.mobile-bottom-item.active::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 1px;
  box-shadow: 0 0 8px var(--primary);
}

.mobile-bottom-item.active svg {
  transform: translateY(-2px);
  color: var(--primary);
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.5));
}

.mobile-bottom-item.portal-hub {
  position: relative;
  background: var(--gradient-main);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  margin-top: -24px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.45);
  border: 3.5px solid var(--bg-dark);
}

.mobile-bottom-item.portal-hub svg {
  width: 22px;
  height: 22px;
  color: white;
}

.mobile-bottom-item.portal-hub:active {
  transform: scale(0.92);
}

/* Desktop Navbar */
.navbar {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 19, 0.75);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-icon {
  background: var(--gradient-main);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.brand-text .brand-title {
  font-size: 1.3rem;
  line-height: 1.05;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.btn-nav-admin {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-nav-admin:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--gradient-main);
  border-radius: 2px;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Glassmorphism Cards */
.glass-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--gradient-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 1.75rem;
  transition: var(--transition-spring);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glass-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 1px 1px var(--primary-glow);
}

/* Quick Action Circle Grid (Mobile App Menu look) */
.circle-menu-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.25rem 0.5rem;
  margin: 0 auto 2.5rem;
  padding: 0.25rem 0;
  max-width: 960px;
}

.circle-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  cursor: pointer;
}

.circle-menu-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  transition: var(--transition-spring);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.circle-menu-item:hover .circle-menu-icon {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 20px rgba(99, 102, 241, 0.3);
}

.circle-menu-icon::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.circle-menu-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  max-width: 75px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Horizontal Scrollable Swiper (Mobile Native view) */
.swiper-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1.25rem;
  padding: 0.5rem 0.25rem 1.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.swiper-scroll::-webkit-scrollbar {
  display: none; /* Hide Chrome scrollbar */
}

.swiper-slide {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* Custom Scroll Indicators */
.scroll-indicators-wrapper {
  display: none;
  justify-content: center;
  gap: 0.35rem;
  margin-top: -0.75rem;
  margin-bottom: 2rem;
}

.scroll-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.scroll-indicator-dot.active {
  background: var(--primary);
  width: 16px;
  border-radius: 3px;
}

/* Service Modules Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-status {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dev {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: auto;
}

.card-footer svg {
  transition: var(--transition-smooth);
}

.glass-card:hover .card-footer svg {
  transform: translateX(4px);
}

/* Statistics Dashboard Layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(25, 29, 57, 0.5), rgba(12, 14, 30, 0.3));
}

.stat-number {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}

.stat-card:nth-child(1) .stat-number {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.25));
}

.stat-card:nth-child(2) .stat-number {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.25));
}

.stat-card:nth-child(3) .stat-number {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.25));
}

.stat-card:nth-child(4) .stat-number {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(6, 186, 212, 0.25));
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PAGE-SPECIFIC STYLES
   ========================================================================== */

/* General Hero Banner Header */
.hero {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, #ffffff 40%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Teacher Directory Controls */
.directory-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Chips Filter (App Segmented Controls) */
.filter-group {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.filter-group::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-spring);
}

.filter-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Teacher Grid */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.teacher-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
}

.teacher-avatar-container {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  position: relative;
}

.teacher-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--border-card);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px;
}

.teacher-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.2rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.teacher-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.teacher-card.sma .teacher-badge {
  background: var(--emerald);
}

.teacher-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.teacher-role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.teacher-card.sma .teacher-role {
  color: var(--emerald);
}

.teacher-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-card);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

/* Form Controls & Login */
.admin-login-box {
  max-width: 420px;
  margin: 4rem auto;
  width: 100%;
}

.admin-login-box h2 {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.admin-login-box p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn-submit {
  width: 100%;
  background: var(--gradient-main);
  border: none;
  color: white;
  padding: 0.95rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-spring);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

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

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-danger {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--rose);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald);
}

/* Dashboard Panel (Admin layout) */
.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.user-profile-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.user-profile-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.user-profile-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-spring);
}

.btn-sync {
  background: var(--gradient-emerald);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-sync:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-logout {
  background: rgba(244, 63, 94, 0.08);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
  margin-top: auto;
}

.btn-logout:hover {
  background: var(--rose);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

/* Segmented Mobile Tabs Layout (Academic / Profiles pages) */
.mobile-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  padding: 0.3rem;
  border-radius: 14px;
  margin-bottom: 2rem;
}

.mobile-tab-btn {
  flex: 1;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-tab-btn.active {
  background: var(--bg-card);
  color: white;
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Floating Action Button (WhatsApp Help) */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px; /* Default desktop placement */
  right: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 99;
  cursor: pointer;
  transition: var(--transition-spring);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.footer {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 19, 0.9);
  border-top: 1px solid var(--border-card);
  padding: 2.5rem; /* Matches desktop navbar side padding */
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-container {
  width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--text-main);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
}

.footer-logo span {
  background: var(--gradient-main);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 900;
}

.footer-brand-name {
  color: white;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */

/* Mobile view styling adjustments */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Space for sticky bottom navigation */
  }

  .footer {
    padding: 2rem 1rem !important;
  }

  .circle-menu-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    max-width: 100% !important;
    margin-bottom: 2rem !important;
  }

  .navbar {
    display: none; /* Hide desktop nav */
  }

  .mobile-top-bar {
    display: flex; /* Show mobile header */
  }

  .mobile-bottom-nav {
    display: flex; /* Show mobile bottom navigation */
  }

  .container {
    padding: 1.5rem 1rem; /* Tighter padding for mobile screens */
  }

  .hero {
    margin-bottom: 2.25rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }

  .section-title::before {
    height: 18px;
  }

  .glass-card {
    padding: 1.25rem; /* Compact padding for cards on mobile */
    border-radius: 16px;
  }

  /* Make grid elements stacked on mobile */
  .admin-layout, .akademik-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
    gap: 0.85rem;
  }

  .stat-card {
    padding: 1.25rem 0.85rem;
  }

  .stat-number {
    font-size: 2.1rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-sub {
    font-size: 0.68rem;
  }

  .directory-controls {
    gap: 0.85rem;
  }

  .scroll-indicators-wrapper {
    display: flex; /* Enable scroll dots for horizontal swipes */
  }
}

/* Small screens: single column stats */
@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .circle-menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 0.25rem;
  }
  .circle-menu-icon {
    width: 44px;
    height: 44px;
  }
  .circle-menu-label {
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   GLOBAL OVERHAULS & MOBILE-NATIVE ENHANCEMENTS
   ========================================================================== */

/* Tablet breakpoint (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 95% !important;
    padding: 1.5rem 1rem !important;
  }
  .navbar {
    padding: 0.8rem 1.5rem !important;
  }
  .nav-links {
    gap: 0.8rem !important;
  }
  .nav-link {
    font-size: 0.88rem !important;
    padding: 0.45rem 0.65rem !important;
  }
  .app-grid, .news-grid, .teacher-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

/* Animated Active Underline for Desktop Nav Links */
.nav-link {
  position: relative;
  transition: var(--transition-smooth);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 80%;
  left: 10%;
}

/* Safe Area & Mobile Bottom Nav Adjustments */
.mobile-top-bar {
  padding-top: calc(0.85rem + env(safe-area-inset-top)) !important;
}
.mobile-bottom-nav {
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom)) !important;
}
@media (max-width: 768px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  }
}

/* Active Card Tap Interaction (Haptic feedback feeling) */
.glass-card:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

/* Footer Modernization & Responsive Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem 1.5rem;
  text-align: left;
}
.footer-nav-section {
  display: flex;
  flex-direction: column;
}
.footer-social-links {
  display: flex;
  gap: 0.75rem;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .footer-nav-section {
    align-items: center;
  }
  .footer-social-links {
    justify-content: center;
  }
}

/* Rich Article Typography */
.article-dropcap::first-letter {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}
blockquote {
  background: rgba(255, 255, 255, 0.02);
  border-left: 4px solid var(--primary);
  padding: 1.2rem 1.75rem;
  margin: 1.5rem 0;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* WhatsApp Floating Action Button Safe Area Fix */
@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  }
}

/* Global Keyframe Animations */
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(8px, -12px) rotate(3deg); }
  50% { transform: translate(-4px, -20px) rotate(-2deg); }
  75% { transform: translate(12px, -8px) rotate(4deg); }
}
@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-10px, 14px) rotate(-4deg); }
  66% { transform: translate(14px, -6px) rotate(3deg); }
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.22; transform: scale(1.15); }
}
@keyframes slideContentIn {
  0% { opacity: 0; transform: translateY(24px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideContentOut {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.98); }
}
@keyframes progressFill {
  0% { width: 0; }
  100% { width: 100%; }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes counterUp {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1),
              transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   LIGHT THEME OVERRIDES
   ========================================================================== */
body.light-theme {
  background-color: #f8fafc !important;
  background-image: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
                    radial-gradient(at 50% 0%, rgba(6, 182, 212, 0.03) 0px, transparent 50%),
                    radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.02) 0px, transparent 50%) !important;
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-card: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(241, 245, 249, 0.65));
}

/* Override hardcoded white elements in Light Mode */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6,
body.light-theme .slide-title,
body.light-theme .news-card h4,
body.light-theme .article-title,
body.light-theme .article-content h3,
body.light-theme .cta-portal-content h3,
body.light-theme .snpmb-number,
body.light-theme .contact-text h4,
body.light-theme .circle-menu-label,
body.light-theme .stat-label {
  color: #0f172a !important;
}

/* Light Mode specific element styling tweaks */
body.light-theme::before, 
body.light-theme::after {
  opacity: 0.06;
}

body.light-theme .mobile-top-bar {
  background: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02) !important;
}

body.light-theme .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.85) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.02) !important;
}

body.light-theme .mobile-bottom-item {
  color: #64748b !important;
}

body.light-theme .mobile-bottom-item.active {
  color: #4f46e5 !important;
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02) !important;
}

body.light-theme .nav-link {
  color: #475569 !important;
}

body.light-theme .nav-link:hover,
body.light-theme .nav-link.active {
  color: #4f46e5 !important;
  background: rgba(99, 102, 241, 0.05) !important;
}

body.light-theme .search-box input {
  background: rgba(0, 0, 0, 0.03);
  color: #0f172a;
}

body.light-theme .search-box input:focus {
  background: rgba(255, 255, 255, 1);
}

/* Glassmorphism cards styling overhaul */
body.light-theme .glass-card,
body.light-theme .stat-card,
body.light-theme .values-card,
body.light-theme .news-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03) !important;
}

body.light-theme .glass-card:hover,
body.light-theme .stat-card:hover,
body.light-theme .values-card:hover,
body.light-theme .news-card:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.08) !important;
}

/* Statistics overrides */
body.light-theme .stat-number {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.02)) !important;
}

body.light-theme .stat-sub {
  color: #64748b !important;
}

/* Circle menu overrides */
body.light-theme .circle-menu-label {
  color: #334155 !important;
  font-weight: 700 !important;
}

body.light-theme .circle-menu-item:hover .circle-menu-label {
  color: #4f46e5 !important;
}

body.light-theme .circle-menu-icon {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .circle-menu-icon::after {
  border-color: rgba(15, 23, 42, 0.06) !important;
}

/* CTA Portal Card */
body.light-theme .cta-portal-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.03) 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.04) !important;
}

body.light-theme .cta-portal-content p {
  color: #475569 !important;
}

/* Button & Share elements */
body.light-theme .btn-slide-cta,
body.light-theme .btn-share-icon {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .btn-slide-cta:hover,
body.light-theme .btn-share-icon:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25) !important;
}

/* News component fixes */
body.light-theme .news-meta {
  color: #64748b !important;
}

body.light-theme .news-excerpt {
  color: #475569 !important;
}

body.light-theme .news-category {
  background: rgba(99, 102, 241, 0.08) !important;
  color: #4f46e5 !important;
}

/* Slider, indicators & background details */
body.light-theme .slider-progress-bar {
  background: var(--primary);
}

body.light-theme .slider-container {
  background: #f1f5f9;
}

body.light-theme .slide {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

body.light-theme .slide-bg-overlay {
  background: linear-gradient(100deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.45) 55%, rgba(248, 250, 252, 0.8) 100%);
}

body.light-theme .slide.active .slide-title {
  background: linear-gradient(180deg, #0f172a 30%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .controls-wrapper {
  background: rgba(248, 250, 252, 0.8);
}

body.light-theme .profile-table td {
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .profile-table td.value {
  color: #0f172a;
}

body.light-theme .mobile-sub-link {
  background: rgba(0, 0, 0, 0.03);
}

body.light-theme .mobile-sub-link.active {
  background: var(--primary);
  color: white;
}

body.light-theme #portal-theme-toggle,
body.light-theme #mobile-portal-theme-toggle {
  background: rgba(15, 23, 42, 0.03) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  color: #475569 !important;
}

body.light-theme #portal-theme-toggle:hover,
body.light-theme #mobile-portal-theme-toggle:hover {
  background: rgba(99, 102, 241, 0.08) !important;
  color: #4f46e5 !important;
}

/* Footer Light Mode overrides */
body.light-theme .footer {
  background: rgba(248, 250, 252, 0.85) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.02) !important;
  color: #475569 !important;
}

body.light-theme .footer h4 {
  color: #0f172a !important;
}

body.light-theme .footer-logo span {
  color: #0f172a !important;
}

body.light-theme .footer-brand-name {
  color: #0f172a !important;
}

body.light-theme .footer-logo span:first-child {
  color: white !important; /* Keep logo icon wrapper white */
}

body.light-theme .footer-logo span:first-child svg {
  color: white !important; /* Keep logo icon checkmark white */
}

body.light-theme .footer p {
  color: #475569 !important;
}

body.light-theme .footer-nav-section ul li a {
  color: #475569 !important;
}

body.light-theme .footer-nav-section ul li a:hover {
  color: #4f46e5 !important;
}

body.light-theme .footer-social-links a {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}

body.light-theme .footer-social-links a:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
}

body.light-theme .footer-bottom p {
  color: #64748b !important;
}

body.light-theme .footer-bottom a {
  color: #4f46e5 !important;
}

body.light-theme .footer hr {
  border-top-color: rgba(15, 23, 42, 0.06) !important;
}

/* Page Hero Headers Light Mode overrides */
body.light-theme .hero-title {
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
}

body.light-theme .hero-subtitle {
  background: rgba(99, 102, 241, 0.08) !important;
  color: #4f46e5 !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
}

body.light-theme .hero-desc {
  color: #334155 !important;
}

/* Sidebar SNPMB stats boxes in Light Mode */
body.light-theme .snpmb-box,
body.light-theme .snpmb-stat {
  background: rgba(15, 23, 42, 0.02) !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
}

body.light-theme .snpmb-number {
  color: #0f172a !important;
}

body.light-theme .snpmb-label {
  color: #475569 !important;
}

/* ==========================================================================
   NEWS PORTAL MODULE STYLES (Professional news/berita components)
   ========================================================================== */

/* Category color classes */
.category-berita {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #a5b4fc !important;
}
.category-pengumuman {
  background: rgba(244, 63, 94, 0.12) !important;
  color: #fca5a5 !important;
}
.category-prestasi {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fde047 !important;
}
.category-akademik {
  background: rgba(6, 182, 212, 0.12) !important;
  color: #a5f3fc !important;
}
.category-kegiatan {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #a7f3d0 !important;
}

/* Light mode overrides for categories */
body.light-theme .category-berita {
  background: rgba(79, 70, 229, 0.08) !important;
  color: #4f46e5 !important;
}
body.light-theme .category-pengumuman {
  background: rgba(225, 29, 72, 0.08) !important;
  color: #e11d48 !important;
}
body.light-theme .category-prestasi {
  background: rgba(217, 119, 6, 0.08) !important;
  color: #d97706 !important;
}
body.light-theme .category-akademik {
  background: rgba(8, 145, 178, 0.08) !important;
  color: #0891b2 !important;
}
body.light-theme .category-kegiatan {
  background: rgba(5, 150, 105, 0.08) !important;
  color: #059669 !important;
}

/* News catalog layout cards */
.news-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card-cover {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

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

.news-card-inner {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

/* Fallback cover aesthetic */
.news-card-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.news-card-fallback-text {
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Glassmorphic Pagination styling */
.portal-pagination-nav {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 4rem;
}

.portal-pagination {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  padding: 0.5rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.portal-pagination .page-item {
  display: inline-block;
}

.portal-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.portal-pagination .page-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: var(--border-card);
}

.portal-pagination .page-item.active .page-link {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  border-color: transparent;
}

/* Sidebar Recent news layout */
.sidebar-recent-news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-recent-news-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 1rem;
  transition: var(--transition-smooth);
}

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

.sidebar-recent-thumb {
  width: 70px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-card);
}

.sidebar-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-recent-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.sidebar-recent-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}

.sidebar-recent-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-recent-title:hover {
  color: var(--primary);
}

.sidebar-recent-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Breadcrumbs component */
.portal-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.portal-breadcrumbs a {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.portal-breadcrumbs a:hover {
  color: white;
}

.portal-breadcrumbs-sep {
  color: rgba(255, 255, 255, 0.15);
}

/* Share actions colors hover */
.share-fb:hover {
  background: rgba(24, 119, 242, 0.12) !important;
  color: #1877f2 !important;
  border-color: #1877f2 !important;
}
.share-tg:hover {
  background: rgba(0, 136, 204, 0.12) !important;
  color: #0088cc !important;
  border-color: #0088cc !important;
}

/* Light mode overrides for catalog */
body.light-theme .portal-pagination {
  background: rgba(15, 23, 42, 0.01);
  border-color: rgba(15, 23, 42, 0.08);
}
body.light-theme .portal-pagination .page-link:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.08);
}
body.light-theme .portal-pagination .page-item.active .page-link {
  color: white;
}
body.light-theme .sidebar-recent-title {
  color: #0f172a;
}
body.light-theme .sidebar-recent-title:hover {
  color: #4f46e5;
}
body.light-theme .portal-breadcrumbs a:hover {
  color: #0f172a;
}
body.light-theme .news-card-cover-fallback {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(8, 145, 178, 0.08));
  color: #4f46e5;
}
