/**
 * ============================================================================
 * DESIGN SYSTEM — SMA NEGERI 3 TAPUNG
 * Modern Smart School Theme
 * 
 * Target Layout: Fixed Vertical Sidebar (172px) + Main Content Area
 * Theme Colors:
 * - Primary Navy:      #102B50
 * - Dark Navy:         #071B36
 * - Secondary Blue:    #164B85
 * - Signature Yellow:  #FFC400
 * - Background:        #F5F7FC
 * - White:             #FFFFFF
 * - Text Primary:      #101B3D
 * - Text Secondary:    #64748B
 * 
 * Typography: Plus Jakarta Sans / Poppins
 * CodeIgniter 3 Compatible — Zero Backend Breaking
 * ============================================================================
 */

@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');

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */
:root {
  /* Brand Colors */
  --ds-navy-primary: #102B50;
  --ds-navy-dark: #071B36;
  --ds-navy-sidebar: #071B36;
  --ds-blue-secondary: #164B85;
  --ds-blue-light: #EBF3FC;
  --ds-yellow-signature: #FFC400;
  --ds-yellow-hover: #EBB500;
  --ds-yellow-light: #FFF8E1;
  --ds-yellow-glow: rgba(255, 196, 0, 0.45);

  /* Neutrals & Surfaces */
  --ds-bg-page: #F5F7FC;
  --ds-surface-white: #FFFFFF;
  --ds-surface-card: #FFFFFF;
  --ds-border-light: #E2E8F0;
  --ds-border-subtle: rgba(226, 232, 240, 0.8);
  --ds-border-glass: rgba(255, 255, 255, 0.16);

  /* Typography Colors */
  --ds-text-primary: #101B3D;
  --ds-text-secondary: #64748B;
  --ds-text-muted: #94A3B8;
  --ds-text-white: #FFFFFF;
  --ds-text-white-dim: rgba(255, 255, 255, 0.82);

  /* Gradients */
  --ds-grad-primary: linear-gradient(135deg, #102B50 0%, #164B85 100%);
  --ds-grad-hero: linear-gradient(115deg, rgba(7, 27, 54, 0.94) 0%, rgba(16, 43, 80, 0.88) 55%, rgba(22, 75, 133, 0.72) 100%);
  --ds-grad-glass: linear-gradient(135deg, rgba(7, 27, 54, 0.88) 0%, rgba(16, 43, 80, 0.82) 100%);
  --ds-grad-cta: linear-gradient(135deg, #102B50 0%, #164B85 60%, #1A5FA8 100%);
  --ds-grad-yellow: linear-gradient(135deg, #FFC400 0%, #FFA000 100%);

  /* Typography */
  --ds-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Font Sizes */
  --ds-fs-xs: 0.75rem;     /* 12px */
  --ds-fs-sm: 0.875rem;    /* 14px */
  --ds-fs-base: 1rem;      /* 16px */
  --ds-fs-md: 1.125rem;    /* 18px */
  --ds-fs-lg: 1.25rem;     /* 20px */
  --ds-fs-xl: 1.5rem;      /* 24px */
  --ds-fs-2xl: 1.875rem;   /* 30px */
  --ds-fs-3xl: 2.25rem;    /* 36px */
  --ds-fs-4xl: 2.75rem;    /* 44px */
  --ds-fs-5xl: 3.25rem;    /* 52px */

  /* Line Heights */
  --ds-lh-tight: 1.2;
  --ds-lh-snug: 1.35;
  --ds-lh-normal: 1.55;
  --ds-lh-relaxed: 1.7;

  /* Target Dimensions: 172px Sidebar Width */
  --ds-sidebar-w: 172px;
  --ds-sidebar-compact-w: 68px;
  --ds-header-h: 60px;
  --ds-content-max-w: 1280px;

  /* Border Radii */
  --ds-radius-xs: 6px;
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 16px;
  --ds-radius-xl: 22px;
  --ds-radius-2xl: 30px;
  --ds-radius-full: 9999px;

  /* Elevation & Shadows */
  --ds-shadow-xs: 0 1px 2px rgba(16, 27, 61, 0.04);
  --ds-shadow-sm: 0 4px 12px rgba(16, 27, 61, 0.06);
  --ds-shadow-md: 0 8px 24px -4px rgba(16, 27, 61, 0.08);
  --ds-shadow-lg: 0 16px 36px -6px rgba(16, 27, 61, 0.12);
  --ds-shadow-xl: 0 24px 48px -8px rgba(7, 27, 54, 0.16);
  --ds-shadow-yellow: 0 6px 18px -2px rgba(255, 196, 0, 0.45);
  --ds-shadow-glass: 0 16px 32px rgba(0, 0, 0, 0.22);

  /* Transitions */
  --ds-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --ds-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ds-transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-Indices */
  --ds-z-backdrop: 850;
  --ds-z-sidebar: 900;
  --ds-z-header: 800;
  --ds-z-floating: 700;
  --ds-z-modal: 1000;
}

/* ==========================================================================
   2. BASE RESET & ELEMENT STYLING
   ========================================================================== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.ds-body-root {
  font-family: var(--ds-font-family);
  background-color: var(--ds-bg-page);
  color: var(--ds-text-primary);
  margin: 0;
  padding: 0;
  line-height: var(--ds-lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.ds-body-root *,
.ds-body-root *::before,
.ds-body-root *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   3. MASTER LAYOUT ARCHITECTURE
   ========================================================================== */
.ds-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background-color: var(--ds-bg-page);
}

/* ==========================================================================
   4. FIXED VERTICAL SIDEBAR (172px)
   ========================================================================== */
.ds-sidebar {
  width: var(--ds-sidebar-w);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: var(--ds-navy-sidebar);
  color: var(--ds-text-white);
  z-index: var(--ds-z-sidebar);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 4px 0 20px rgba(7, 27, 54, 0.25);
  transition: transform var(--ds-transition-smooth), width var(--ds-transition);
}

.ds-sidebar::-webkit-scrollbar {
  width: 3px;
}
.ds-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Brand Header */
.ds-sidebar-header {
  padding: 16px 10px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ds-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  gap: 8px;
}

.ds-sidebar-logo-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-sidebar-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.ds-sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ds-sidebar-brand-name {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ds-text-white);
  line-height: 1.2;
  text-transform: uppercase;
}

.ds-sidebar-brand-sub {
  font-size: 0.62rem;
  color: var(--ds-text-white-dim);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* Sidebar Nav List */
.ds-sidebar-nav {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.ds-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--ds-radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ds-text-white-dim);
  text-decoration: none;
  transition: all var(--ds-transition-fast);
  white-space: nowrap;
}

.ds-nav-item i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-nav-item:hover {
  color: var(--ds-text-white);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

/* Active Nav State — Signature Yellow Pill */
.ds-nav-item.active {
  background-color: var(--ds-yellow-signature);
  color: var(--ds-navy-dark);
  font-weight: 800;
  box-shadow: var(--ds-shadow-yellow);
  transform: none;
}

.ds-nav-item.active i {
  color: var(--ds-navy-dark);
}

/* PPDB Online Button */
.ds-sidebar-cta-wrap {
  padding: 8px 8px 12px 8px;
  flex-shrink: 0;
}

.ds-sidebar-cta {
  background: var(--ds-yellow-signature);
  color: var(--ds-navy-dark);
  border-radius: var(--ds-radius-md);
  padding: 9px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--ds-transition);
  box-shadow: var(--ds-shadow-yellow);
}

.ds-sidebar-cta-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--ds-radius-xs);
  background-color: var(--ds-navy-dark);
  color: var(--ds-yellow-signature);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.ds-sidebar-cta-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ds-sidebar-cta-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ds-navy-dark);
  line-height: 1.15;
}

.ds-sidebar-cta-desc {
  font-size: 0.58rem;
  color: #334155;
  font-weight: 600;
  line-height: 1.2;
}

.ds-sidebar-cta:hover {
  transform: translateY(-2px);
  background-color: #FFCD1A;
  box-shadow: 0 8px 20px -2px rgba(255, 196, 0, 0.6);
}

/* Ornamen Dekoratif Melayu (Bottom Sidebar) */
.ds-sidebar-ornament {
  margin-top: auto;
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0.92;
}

.ds-sidebar-ornament-img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ==========================================================================
   5. MAIN CONTENT AREA & SHELL
   ========================================================================== */
.ds-main {
  flex: 1;
  margin-left: var(--ds-sidebar-w);
  width: calc(100% - var(--ds-sidebar-w));
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--ds-bg-page);
  overflow-x: hidden;
  transition: margin-left var(--ds-transition);
}

.ds-content-area {
  flex: 1;
  width: 100%;
}

.ds-container {
  width: 100%;
  max-width: var(--ds-content-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   6. TOP HEADER STRIP COMPONENT
   ========================================================================== */
.ds-header {
  height: var(--ds-header-h);
  background-color: var(--ds-surface-white);
  border-bottom: 1px solid var(--ds-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: var(--ds-z-header);
  box-shadow: var(--ds-shadow-xs);
}

.ds-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ds-header-slogan {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ds-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-header-slogan-bar {
  width: 3.5px;
  height: 18px;
  background-color: var(--ds-yellow-signature);
  border-radius: var(--ds-radius-full);
  flex-shrink: 0;
}

.ds-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Social Icon Pills */
.ds-social-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ds-social-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--ds-radius-full);
  background-color: var(--ds-bg-page);
  color: var(--ds-navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--ds-transition-fast);
}

.ds-social-btn:hover {
  background-color: var(--ds-navy-primary);
  color: var(--ds-surface-white);
  transform: translateY(-2px);
}

/* Search Trigger Button */
.ds-search-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--ds-radius-full);
  background-color: var(--ds-bg-page);
  color: var(--ds-text-secondary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ds-transition-fast);
}

.ds-search-btn:hover {
  background-color: var(--ds-navy-primary);
  color: var(--ds-surface-white);
}

/* Admin Dark Pill Button */
.ds-btn-admin {
  background-color: var(--ds-navy-dark);
  color: var(--ds-surface-white);
  padding: 7px 15px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: var(--ds-radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(7, 27, 54, 0.18);
  transition: all var(--ds-transition-fast);
}

.ds-btn-admin:hover {
  background-color: var(--ds-blue-secondary);
  color: var(--ds-surface-white);
  transform: translateY(-1px);
}

/* Mobile Sidebar Toggle Button */
.ds-sidebar-toggle {
  display: none;
  background: var(--ds-bg-page);
  border: 1px solid var(--ds-border-light);
  border-radius: var(--ds-radius-sm);
  font-size: 1.15rem;
  color: var(--ds-navy-primary);
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
}

/* Backdrop Overlay for Mobile */
.ds-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 27, 54, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--ds-z-backdrop);
  opacity: 0;
  transition: opacity var(--ds-transition);
}

.ds-sidebar-backdrop.is-active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   7. BUTTONS (PRIMARY, SECONDARY, OUTLINE)
   ========================================================================== */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: var(--ds-fs-sm);
  font-weight: 700;
  border-radius: var(--ds-radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--ds-transition);
  white-space: nowrap;
  line-height: 1;
}

.ds-btn-primary {
  background: var(--ds-grad-yellow);
  color: var(--ds-navy-dark);
  box-shadow: var(--ds-shadow-yellow);
}

.ds-btn-primary:hover {
  background: linear-gradient(135deg, #FFCD1A 0%, #FFB300 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -2px rgba(255, 196, 0, 0.6);
  color: var(--ds-navy-dark);
}

.ds-btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ds-surface-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.ds-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
  color: var(--ds-surface-white);
}

/* ==========================================================================
   8. HERO SECTION COMPONENT
   ========================================================================== */
.ds-hero {
  position: relative;
  background-color: var(--ds-navy-dark);
  min-height: 460px;
  padding: 44px 0 0 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.ds-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 1;
  z-index: 0;
}

.ds-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    #071B36 0%, 
    rgba(7, 27, 54, 0.96) 28%, 
    rgba(7, 27, 54, 0.78) 46%, 
    rgba(7, 27, 54, 0.18) 68%, 
    rgba(7, 27, 54, 0.04) 100%);
  z-index: 1;
  pointer-events: none;
}

.ds-hero-overlay::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70px;
  background: linear-gradient(0deg, rgba(7, 27, 54, 0.4), transparent);
  pointer-events: none;
}

.ds-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: flex-end;
  gap: 32px;
  width: 100%;
  height: 100%;
}

.ds-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 74px;
}

.ds-hero-title-main {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 800;
  color: var(--ds-surface-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}

.ds-hero-title-prefix {
  display: block;
}

.ds-hero-title-highlight {
  color: var(--ds-yellow-signature);
  font-style: italic;
  font-weight: 900;
  display: inline-block;
  position: relative;
  margin-top: 4px;
}

.ds-hero-brush {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 12px;
  margin-top: -2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.ds-hero-subtitle {
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 540px;
  margin: 0;
  font-weight: 400;
}

.ds-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.ds-hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  line-height: 0;
}

.ds-hero-visual-img {
  max-height: 390px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 36px rgba(7, 27, 54, 0.45));
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: none;
  transition: transform var(--ds-transition-smooth);
}

.ds-hero-visual-img:hover {
  transform: translateY(-4px);
}

/* ==========================================================================
   9. FLOATING STATISTIC BAR (GLASSMORPHISM)
   ========================================================================== */
.ds-stats-wrapper {
  position: relative;
  z-index: var(--ds-z-floating);
  margin-top: -44px;
  margin-bottom: 38px;
}

.ds-stats-bar {
  background: rgba(9, 31, 61, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  box-shadow: 0 16px 36px rgba(7, 27, 54, 0.35);
}

.ds-stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform var(--ds-transition-fast);
}

.ds-stat-item:hover {
  transform: translateY(-2px);
}

.ds-stat-item:last-child {
  border-right: none;
}

.ds-stat-icon {
  width: auto;
  height: auto;
  background: transparent;
  color: var(--ds-yellow-signature);
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(255, 196, 0, 0.3));
}

.ds-stat-data {
  display: flex;
  flex-direction: column;
}

.ds-stat-number {
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--ds-yellow-signature);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.ds-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  text-transform: capitalize;
  margin-top: 2px;
  white-space: nowrap;
}

/* ==========================================================================
   10. SECTION HEADINGS
   ========================================================================== */
.ds-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 14px;
  flex-wrap: wrap;
}

.ds-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--ds-radius-sm);
  background-color: var(--ds-yellow-light);
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.ds-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ds-navy-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.ds-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ds-fs-sm);
  font-weight: 700;
  color: var(--ds-blue-secondary);
  text-decoration: none;
  transition: all var(--ds-transition-fast);
}

.ds-section-link:hover {
  color: var(--ds-navy-primary);
  transform: translateX(3px);
}

/* ==========================================================================
   11. CONTENT CARDS (VIDEO PROFILE & SAMBUTAN KEPALA SEKOLAH)
   ========================================================================== */
.ds-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 38px;
  align-items: stretch;
}

/* Card 1: Video Profile */
.ds-video-card {
  background: var(--ds-surface-white);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(15, 38, 75, 0.07);
  border: 1px solid var(--ds-border-light);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--ds-transition-smooth), box-shadow var(--ds-transition-smooth);
}

.ds-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 38, 75, 0.12);
}

.ds-video-thumb-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 235px;
  background-color: var(--ds-navy-dark);
}

.ds-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ds-video-card:hover .ds-video-thumb-img {
  transform: scale(1.04);
}

.ds-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(7, 27, 54, 0.05) 0%, 
    rgba(7, 27, 54, 0.15) 35%, 
    rgba(7, 27, 54, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  z-index: 1;
}

.ds-video-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  background: rgba(7, 27, 54, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  padding-left: 4px; /* optical center */
}

.ds-video-card:hover .ds-video-play-btn {
  transform: scale(1.14);
  background-color: var(--ds-yellow-signature);
  border-color: var(--ds-yellow-signature);
  color: var(--ds-navy-dark);
  box-shadow: 0 10px 28px rgba(255, 196, 0, 0.45);
}

.ds-video-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.ds-video-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ds-video-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.ds-video-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.ds-video-duration {
  font-size: 0.74rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--ds-radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Card 2: Sambutan Kepala Sekolah */
.ds-sambutan-card {
  background: var(--ds-surface-white);
  border-radius: 20px;
  border: 1px solid var(--ds-border-light);
  box-shadow: 0 8px 24px rgba(15, 38, 75, 0.07);
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: stretch;
  overflow: hidden;
  transition: transform var(--ds-transition-smooth), box-shadow var(--ds-transition-smooth);
}

.ds-sambutan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 38, 75, 0.12);
}

.ds-sambutan-content {
  padding: 22px 18px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.ds-sambutan-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ds-navy-primary);
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.ds-sambutan-body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.ds-sambutan-quote-glyph {
  font-size: 2.3rem;
  line-height: 0.8;
  color: #4338CA; /* Deep Royal Purple */
  font-family: Georgia, serif;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.ds-sambutan-text {
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}

.ds-sambutan-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.ds-sambutan-yellow-bar {
  width: 4px;
  height: 32px;
  background-color: var(--ds-yellow-signature);
  border-radius: var(--ds-radius-full);
  flex-shrink: 0;
}

.ds-sambutan-author-info {
  display: flex;
  flex-direction: column;
}

.ds-sambutan-author-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ds-navy-primary);
  margin: 0;
  line-height: 1.25;
}

.ds-sambutan-author-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748B;
  margin: 2px 0 0 0;
}

.ds-sambutan-visual {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
  background-color: #FFFFFF;
  border-radius: 0 19px 19px 0;
  height: 100%;
}

.ds-sambutan-photo {
  width: 100%;
  height: 100%;
  min-height: 235px;
  object-fit: cover;
  object-position: right top;
  display: block;
}

/* ==========================================================================
   12. PROGRAM UNGGULAN
   ========================================================================== */
.ds-program-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 38px;
}

.ds-program-card {
  background-color: var(--ds-surface-white);
  border-radius: var(--ds-radius-lg);
  border: 1px solid var(--ds-border-light);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: var(--ds-shadow-xs);
  text-decoration: none;
  transition: all var(--ds-transition);
}

.ds-program-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ds-radius-md);
  background-color: var(--ds-blue-light);
  color: var(--ds-blue-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all var(--ds-transition);
}

.ds-program-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ds-text-primary);
  margin: 0;
  line-height: 1.35;
}

.ds-program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-md);
  border-color: var(--ds-blue-secondary);
}

.ds-program-card:hover .ds-program-icon {
  background-color: var(--ds-yellow-signature);
  color: var(--ds-navy-dark);
}

/* ==========================================================================
   13. PRESTASI SISWA BANNER
   ========================================================================== */
.ds-achievement-banner {
  background: var(--ds-grad-primary);
  border-radius: var(--ds-radius-xl);
  padding: 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 28px;
  color: var(--ds-surface-white);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ds-shadow-lg);
}

.ds-achievement-bg-pattern {
  position: absolute;
  right: 0;
  top: 0;
  width: 260px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 196, 0, 0.2) 0%, rgba(255, 196, 0, 0) 70%);
  pointer-events: none;
}

.ds-achievement-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}

.ds-achievement-trophy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ds-yellow-signature);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ds-achievement-title {
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  font-weight: 800;
  color: var(--ds-yellow-signature);
  line-height: 1.2;
  margin: 0;
}

.ds-achievement-desc {
  font-size: var(--ds-fs-sm);
  color: var(--ds-text-white-dim);
  line-height: var(--ds-lh-normal);
  margin: 0;
}

.ds-achievement-visual {
  display: flex;
  justify-content: flex-end;
  z-index: 1;
}

.ds-achievement-img {
  max-height: 180px;
  width: auto;
  border-radius: var(--ds-radius-lg);
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   14. NEWS & AGENDA LISTS (PHASE 6)
   ========================================================================== */
.ds-news-agenda-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
  align-items: start;
}

.ds-news-section-col,
.ds-agenda-section-col {
  display: flex;
  flex-direction: column;
}

/* Kolom Kiri: 3 News Cards in 1 Row on Desktop */
.ds-news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ds-news-card {
  background-color: var(--ds-surface-white);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 18px rgba(16, 43, 80, 0.05);
  padding: 10px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.ds-news-thumb-wrap {
  width: 100%;
  height: 104px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #F1F5F9;
  flex-shrink: 0;
  position: relative;
}

.ds-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ds-news-body {
  padding: 8px 4px 2px 4px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.ds-news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--ds-text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.ds-news-meta i {
  font-size: 0.78rem;
  color: #94A3B8;
}

.ds-news-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.ds-news-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ds-text-primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: color 0.2s ease;
}

.ds-news-arrow {
  width: 26px;
  height: 26px;
  border-radius: var(--ds-radius-full);
  border: 1.5px solid #E2E8F0;
  background-color: var(--ds-surface-white);
  color: var(--ds-navy-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-bottom: 2px;
  transition: all 0.25s ease;
}

.ds-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(16, 43, 80, 0.1);
  border-color: rgba(22, 75, 133, 0.25);
}

.ds-news-card:hover .ds-news-thumb {
  transform: scale(1.06);
}

.ds-news-card:hover .ds-news-title {
  color: var(--ds-blue-secondary);
}

.ds-news-card:hover .ds-news-arrow {
  background-color: var(--ds-yellow-primary);
  border-color: var(--ds-yellow-primary);
  color: var(--ds-navy-dark);
  transform: translateX(2px);
}

/* Kolom Kanan: Single Unified Agenda Box */
.ds-agenda-box {
  background-color: var(--ds-surface-white);
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 18px rgba(16, 43, 80, 0.05);
  padding: 6px 18px;
  display: flex;
  flex-direction: column;
}

.ds-agenda-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #F1F5F9;
  transition: all 0.2s ease;
}

.ds-agenda-item:last-child {
  border-bottom: none;
}

.ds-agenda-badge {
  width: 48px;
  height: 50px;
  border-radius: 10px;
  background-color: #EBF2FE;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ds-agenda-day {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1E3A8A;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ds-agenda-month {
  font-size: 0.68rem;
  font-weight: 700;
  color: #1E3A8A;
  text-transform: capitalize;
  margin-top: 2px;
}

.ds-agenda-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ds-agenda-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ds-text-primary);
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.ds-agenda-period {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ds-text-secondary);
  line-height: 1.2;
}

.ds-agenda-item:hover {
  background-color: #F8FAFC;
  border-radius: 10px;
  padding-left: 8px;
}

.ds-agenda-item:hover .ds-agenda-title {
  color: var(--ds-blue-secondary);
}

.ds-agenda-item:hover .ds-agenda-badge {
  background-color: var(--ds-navy-primary);
}

.ds-agenda-item:hover .ds-agenda-day,
.ds-agenda-item:hover .ds-agenda-month {
  color: var(--ds-surface-white);
}

/* ==========================================================================
   15. CTA BANNER (AYO BERGABUNG DI SMA NEGERI 3 TAPUNG)
   ========================================================================== */
.ds-cta-banner {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(100deg, #102B50 0%, #164B85 32%, #1E589E 56%, #2B6CB0 74%, #E97738 98%);
  box-shadow: 0 10px 32px rgba(16, 43, 80, 0.12);
  overflow: hidden;
  margin-bottom: 40px;
  min-height: 125px;
  display: flex;
  align-items: stretch;
}

.ds-cta-wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(ellipse 110% 80% at 20% -10%, rgba(199, 210, 254, 0.35) 0%, rgba(129, 140, 248, 0.18) 45%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.ds-cta-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 320px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
}

.ds-cta-silhouette {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: right center;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 30%, black 70%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 30%, black 70%);
}

.ds-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 22px 34px;
  gap: 20px;
}

.ds-cta-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.ds-cta-icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 2.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.ds-cta-text-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ds-cta-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  white-space: nowrap;
}

.ds-cta-title-pre {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ds-cta-title-main {
  font-size: 1.38rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.ds-cta-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
  margin: 0;
  max-width: 260px;
  font-weight: 400;
}

.ds-cta-action {
  flex-shrink: 0;
  z-index: 3;
}

.ds-cta-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FFC400;
  border-radius: 999px;
  padding: 8px 10px 8px 24px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 196, 0, 0.35);
  transition: all 0.25s ease;
}

.ds-cta-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ds-cta-btn-main {
  font-size: 0.95rem;
  font-weight: 800;
  color: #071B36;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ds-cta-btn-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #071B36;
  opacity: 0.85;
  margin-top: 1px;
}

.ds-cta-btn-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #071B36;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.ds-cta-pill-btn:hover {
  transform: translateY(-2px);
  background-color: #FFD54F;
  box-shadow: 0 10px 28px rgba(255, 196, 0, 0.45);
}

.ds-cta-pill-btn:hover .ds-cta-btn-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   16. FOOTER COMPONENT
   ========================================================================== */
.ds-footer {
  background-color: #071B36;
  color: #FFFFFF;
  padding: 24px 0 0 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  margin-top: auto;
}

.ds-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.ds-footer-main-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  flex-wrap: nowrap;
}

.ds-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ds-footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.ds-footer-brand-info {
  display: flex;
  flex-direction: column;
}

.ds-footer-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.03em;
  margin: 0;
  line-height: 1.2;
}

.ds-footer-brand-sub {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 2px;
}

.ds-footer-vsep {
  width: 1px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.ds-footer-contacts {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 1;
  min-width: 0;
}

.ds-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #E2E8F0;
}

.ds-footer-contact-icon {
  color: #FFFFFF;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.ds-footer-contact-text {
  line-height: 1.35;
}

.ds-footer-contact-text a {
  color: #E2E8F0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ds-footer-contact-text a:hover {
  color: #FFC400;
}

.ds-footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ds-footer-social-btn {
  color: #FFFFFF;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-footer-social-btn:hover {
  color: #FFC400;
  transform: translateY(-2px);
}

.ds-footer-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.76rem;
  color: #94A3B8;
  text-align: center;
  flex-wrap: wrap;
}

.ds-footer-copy-sep {
  opacity: 0.4;
}

.ds-footer-credit-link {
  color: #E2E8F0;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ds-footer-credit-link:hover {
  color: #FFC400;
  text-decoration: underline;
}

.ds-footer-ornament-strip {
  width: 100%;
  height: 38px;
  background-image: url('../img/footer-melayu-ornament.png');
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 38px;
  opacity: 0.92;
}

/* ==========================================================================
   17. LEGACY INNER PAGES ENHANCEMENT INSIDE NEW SHELL
   ========================================================================== */
.ds-content-area .page-hero {
  padding: 44px 0 38px;
  background: var(--ds-grad-primary);
  color: #fff;
  text-align: center;
}

.ds-content-area .page-hero h1 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 800;
  margin: 8px 0;
  color: var(--ds-surface-white);
  line-height: 1.2;
}

.ds-content-area .page-hero .eyebrow {
  color: var(--ds-yellow-signature);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.ds-content-area .page-hero p {
  color: var(--ds-text-white-dim);
  font-size: 0.92rem;
  max-width: 660px;
  margin: 0 auto;
}

.ds-content-area .single-page {
  background: var(--ds-surface-white);
  padding: 32px 36px;
  border-radius: var(--ds-radius-xl);
  border: 1px solid var(--ds-border-light);
  box-shadow: var(--ds-shadow-sm);
  margin-top: 28px;
  margin-bottom: 44px;
  color: var(--ds-text-primary);
  line-height: var(--ds-lh-relaxed);
}

.ds-content-area .section {
  padding: 36px 0;
}

/* ==========================================================================
   18. RESPONSIVE BREAKPOINTS (DESKTOP, TABLET, MOBILE)
   ========================================================================== */

/* TABLET MODE (769px - 1024px) — Compact Sidebar (68px) */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --ds-sidebar-w: var(--ds-sidebar-compact-w);
  }

  .ds-sidebar {
    width: var(--ds-sidebar-compact-w);
  }

  .ds-sidebar-brand-text {
    display: none;
  }

  .ds-sidebar-logo-wrap {
    width: 38px;
    height: 38px;
  }

  .ds-nav-item span {
    display: none;
  }

  .ds-nav-item {
    justify-content: center;
    padding: 10px 0;
  }

  .ds-nav-item i {
    font-size: 1.05rem;
    width: auto;
  }

  .ds-sidebar-cta-info {
    display: none;
  }

  .ds-sidebar-cta {
    justify-content: center;
    padding: 8px 0;
  }

  .ds-sidebar-ornament {
    display: none;
  }

  .ds-main {
    margin-left: var(--ds-sidebar-compact-w);
    width: calc(100% - var(--ds-sidebar-compact-w));
  }

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

  .ds-program-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ds-news-agenda-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ds-footer-main-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
}

/* MOBILE MODE (<= 768px) — Off-Canvas Sidebar Navigation */
@media (max-width: 768px) {
  .ds-sidebar {
    width: 220px;
    transform: translateX(-100%);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
  }

  .ds-sidebar.is-open {
    transform: translateX(0);
  }

  .ds-sidebar-toggle {
    display: block;
  }

  .ds-main {
    margin-left: 0;
    width: 100%;
  }

  .ds-header {
    padding: 0 16px;
  }

  .ds-header-slogan {
    display: none;
  }

  .ds-hero {
    padding: 36px 0 64px 0;
    min-height: auto;
  }

  .ds-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .ds-hero-title-main {
    font-size: clamp(1.9rem, 6vw, 2.4rem);
  }

  .ds-hero-brush {
    margin: -2px auto 0 auto;
  }

  .ds-hero-subtitle {
    margin: 0 auto;
    font-size: 0.92rem;
  }

  .ds-hero-actions {
    justify-content: center;
    gap: 10px;
  }

  .ds-hero-actions .ds-btn {
    padding: 10px 18px;
    font-size: 0.82rem;
  }

  .ds-hero-visual {
    justify-content: center;
  }

  .ds-hero-visual-img {
    max-height: 260px;
    margin: 0 auto;
  }

  .ds-stats-wrapper {
    margin-top: -34px;
    margin-bottom: 24px;
    padding: 0 14px;
  }

  .ds-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px 16px 16px;
    gap: 8px 12px;
    border-radius: 16px;
  }

  .ds-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 4px;
    justify-content: flex-start;
  }

  .ds-stat-item:last-child {
    grid-column: 1 / -1;
    justify-content: center;
    border-bottom: none;
    padding-top: 8px;
    padding-bottom: 2px;
  }

  .ds-stat-icon {
    font-size: 1.35rem;
  }

  .ds-stat-number {
    font-size: 1.22rem;
  }

  .ds-stat-label {
    font-size: 0.74rem;
  }

  .ds-profile-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ds-video-thumb-wrap {
    min-height: 210px;
  }

  .ds-sambutan-card {
    grid-template-columns: 1fr;
  }

  .ds-sambutan-content {
    padding: 18px 16px 14px 16px;
  }

  .ds-sambutan-visual {
    justify-content: center;
    background: #FFF9E6;
    border-top: 1px solid var(--ds-border-light);
  }

  .ds-sambutan-photo {
    max-height: 200px;
    width: auto;
    object-position: center top;
  }

  .ds-program-grid {
    grid-template-columns: 1fr;
  }

  .ds-achievement-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ds-achievement-visual {
    justify-content: center;
  }

  .ds-news-agenda-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ds-news-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ds-news-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 10px;
    align-items: center;
  }

  .ds-news-thumb-wrap {
    width: 110px;
    height: 80px;
  }

  .ds-agenda-title {
    white-space: normal;
  }

  /* CTA Banner Mobile */
  .ds-cta-banner {
    border-radius: 16px;
    min-height: auto;
  }

  .ds-cta-visual {
    opacity: 0.18;
    width: 100%;
  }

  .ds-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .ds-cta-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .ds-cta-icon-box {
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }

  .ds-cta-text-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .ds-cta-title-pre {
    font-size: 1rem;
  }

  .ds-cta-title-main {
    font-size: 1.25rem;
  }

  .ds-cta-desc {
    max-width: 100%;
    font-size: 0.76rem;
  }

  .ds-cta-action {
    width: 100%;
    box-sizing: border-box;
  }

  .ds-cta-pill-btn {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 8px 18px;
  }

  /* Footer Mobile */
  .ds-footer {
    padding-top: 24px;
  }

  .ds-footer-container {
    padding: 0 16px;
  }

  .ds-footer-main-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .ds-footer-brand {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .ds-footer-vsep {
    display: none;
  }

  .ds-footer-contacts {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .ds-footer-contact-item {
    justify-content: center;
  }

  .ds-footer-socials {
    justify-content: center;
    gap: 18px;
  }

  .ds-footer-copyright-bar {
    flex-direction: column;
    gap: 4px;
  }

  .ds-footer-copy-sep {
    display: none;
  }
}

/* ==========================================================================
   19. SMALL SMARTPHONE OPTIMIZATIONS (<= 480px, e.g. 430px & 375px)
   ========================================================================== */
@media (max-width: 480px) {
  .ds-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ds-hero {
    padding: 24px 0 44px 0;
  }

  .ds-hero-title-main {
    font-size: clamp(1.65rem, 5.5vw, 2.05rem);
  }

  .ds-hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .ds-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .ds-hero-actions .ds-btn {
    width: 100%;
    justify-content: center;
  }

  .ds-stats-wrapper {
    margin-top: -24px;
    padding: 0 8px;
  }

  .ds-stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: 10px 8px;
    gap: 6px;
  }

  .ds-stat-item {
    gap: 8px;
    padding: 4px 2px;
  }

  .ds-stat-icon {
    font-size: 1.15rem;
  }

  .ds-stat-number {
    font-size: 1.12rem;
  }

  .ds-stat-label {
    font-size: 0.68rem;
  }

  .ds-profile-grid {
    gap: 14px;
  }

  .ds-sambutan-content {
    padding: 16px 14px;
  }

  .ds-sambutan-text {
    font-size: 0.84rem;
  }

  .ds-news-card {
    grid-template-columns: 88px 1fr;
    gap: 10px;
    padding: 8px;
  }

  .ds-news-thumb-wrap {
    width: 88px;
    height: 68px;
  }

  .ds-news-title {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .ds-agenda-item {
    padding: 8px 10px;
    gap: 10px;
  }

  .ds-agenda-badge {
    width: 48px;
    height: 48px;
  }

  .ds-agenda-day {
    font-size: 1.05rem;
  }

  .ds-agenda-month {
    font-size: 0.65rem;
  }

  .ds-agenda-title {
    font-size: 0.82rem;
  }

  .ds-agenda-meta {
    font-size: 0.7rem;
  }

  .ds-achievement-banner {
    padding: 18px 14px;
    border-radius: var(--ds-radius-lg);
  }

  .ds-achievement-img {
    max-height: 145px;
    width: 100%;
  }

  .ds-footer-brand-title {
    font-size: 0.95rem;
  }

  .ds-footer-brand-sub {
    font-size: 0.7rem;
  }

  .ds-footer-contact-item {
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   20. VIDEO PLAYER MODAL
   ========================================================================== */
.ds-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ds-modal.is-open {
  display: flex;
  animation: dsModalFadeIn 0.25s ease forwards;
}

.ds-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 54, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ds-modal-dialog {
  position: relative;
  z-index: 10000;
  width: 100%;
  max-width: 860px;
  background: #000000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: scale(0.95);
  animation: dsModalScaleUp 0.25s ease forwards;
}

.ds-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10001;
}

.ds-modal-close:hover {
  background: var(--ds-yellow-signature);
  color: var(--ds-navy-dark);
  border-color: var(--ds-yellow-signature);
  transform: rotate(90deg);
}

.ds-video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  background: #000000;
}

.ds-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes dsModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dsModalScaleUp {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   SCHOOL STATISTICS MODULE STYLES (FRONTEND)
   ========================================================================== */
.ds-school-stats-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.ds-stats-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--ds-surface-white);
  border: 1px solid var(--ds-border-light);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ds-navy-primary);
  box-shadow: 0 1px 3px rgba(16, 43, 80, 0.05);
}

.ds-stats-head-meta i {
  color: var(--ds-yellow-signature);
}

/* Top 3 Main Stat Cards Grid */
.ds-stats-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.ds-stats-main-card {
  background: var(--ds-surface-white);
  border: 1px solid var(--ds-border-light);
  border-radius: 16px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(16, 43, 80, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ds-stats-main-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ds-grad-primary);
}

.ds-stats-main-card.highlight::before {
  background: var(--ds-grad-yellow);
}

.ds-stats-main-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px -4px rgba(16, 43, 80, 0.12);
}

.ds-stats-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ds-stats-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ds-blue-light);
  color: var(--ds-navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.ds-stats-main-card.highlight .ds-stats-card-icon {
  background: var(--ds-yellow-light);
  color: #B45309;
}

.ds-stats-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 99px;
  background: #F1F5F9;
  color: var(--ds-text-secondary);
}

.ds-stats-card-body strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ds-navy-primary);
  line-height: 1.1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.ds-stats-card-body .label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ds-text-primary);
  margin-top: 4px;
}

.ds-stats-card-body .desc {
  display: block;
  font-size: 0.8rem;
  color: var(--ds-text-muted);
  margin-top: 2px;
}

.ds-stats-breakdown-row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--ds-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}

.ds-breakdown-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ds-text-secondary);
}

.ds-breakdown-item.male i {
  color: #2563EB;
}

.ds-breakdown-item.female i {
  color: #DB2777;
}

.ds-breakdown-item strong {
  color: var(--ds-text-primary);
}

/* Class Breakdown Cards Panel */
.ds-class-stats-panel {
  background: var(--ds-surface-white);
  border: 1px solid var(--ds-border-light);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px -2px rgba(16, 43, 80, 0.06);
}

.ds-class-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.ds-class-stats-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ds-navy-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-class-stats-title i {
  color: var(--ds-yellow-signature);
}

.ds-class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ds-class-item-card {
  background: #F8FAFC;
  border: 1px solid var(--ds-border-light);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.ds-class-item-card:hover {
  background: #FFFFFF;
  border-color: var(--ds-blue-secondary);
  box-shadow: 0 4px 12px rgba(16, 43, 80, 0.08);
}

.ds-class-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ds-class-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--ds-navy-primary);
  color: #FFFFFF;
}

.ds-class-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ds-navy-primary);
}

.ds-class-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ds-text-secondary);
  background: #FFFFFF;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #EEF2F6;
}

/* Responsive queries */
@media (max-width: 991px) {
  .ds-stats-main-grid {
    grid-template-columns: 1fr;
  }
  .ds-class-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .ds-stats-main-card {
    padding: 18px;
  }
  .ds-class-stats-panel {
    padding: 16px;
  }
  .ds-stats-breakdown-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   WELCOME SPLASH SCREEN COMPONENT STYLES
   ========================================================================== */
.ds-splash-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  z-index: 9999999;
  background: radial-gradient(circle at 50% 42%, #164B85 0%, #102B50 52%, #071B36 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  /* CSS Fail-Safe timeout */
  animation: splashAutoExit 4.2s forwards;
}

.ds-splash-screen.ds-splash-closing {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes splashAutoExit {
  0%, 85% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Ambient Radial Glow */
.ds-splash-bg-glow {
  position: absolute;
  width: 90vw;
  max-width: 500px;
  height: 90vw;
  max-height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.12) 0%, rgba(22, 75, 133, 0.2) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(40px);
  animation: splashPulse 3s ease-in-out infinite alternate;
}

@keyframes splashPulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* Subtle Geometric Malay Songket Ornaments */
.ds-splash-ornament {
  position: absolute;
  width: 140px;
  height: 140px;
  pointer-events: none;
  opacity: 0.16;
  border: 1px solid var(--ds-yellow-signature);
}

.ds-splash-ornament.top-left {
  top: 24px;
  left: 24px;
  border-right: none;
  border-bottom: none;
}
.ds-splash-ornament.top-left::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ds-yellow-signature);
  transform: rotate(45deg);
}

.ds-splash-ornament.bottom-right {
  bottom: 24px;
  right: 24px;
  border-left: none;
  border-top: none;
}
.ds-splash-ornament.bottom-right::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ds-yellow-signature);
  transform: rotate(45deg);
}

/* Skip (Lewati) Button */
.ds-splash-skip-btn {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(7, 27, 54, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ds-splash-skip-btn:hover {
  background: var(--ds-yellow-signature);
  color: var(--ds-navy-dark);
  border-color: var(--ds-yellow-signature);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 196, 0, 0.35);
}

.ds-splash-skip-btn i {
  font-size: 0.75rem;
}

/* Center Content Stack */
.ds-splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 680px;
  box-sizing: border-box;
  padding: 0 16px;
  z-index: 5;
}

/* School Logo */
.ds-splash-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  opacity: 0;
  animation: splashLogoEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.ds-splash-logo-halo {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.25) 0%, transparent 70%);
  filter: blur(10px);
}

.ds-splash-logo {
  max-width: 110px;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

@keyframes splashLogoEnter {
  0% {
    opacity: 0;
    transform: scale(0.65) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Welcome Badge */
.ds-splash-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(255, 196, 0, 0.14);
  border: 1px solid rgba(255, 196, 0, 0.45);
  border-radius: 99px;
  color: var(--ds-yellow-signature);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  animation: splashFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.ds-splash-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ds-yellow-signature);
  box-shadow: 0 0 8px var(--ds-yellow-signature);
}

/* Title */
.ds-splash-title {
  margin: 0 0 10px 0;
  font-size: 2.15rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: splashFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

/* Tagline */
.ds-splash-tagline {
  margin: 0 0 26px 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  max-width: 520px;
  line-height: 1.6;
  font-style: italic;
  opacity: 0;
  animation: splashFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes splashFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Elegant Loading Bar */
.ds-splash-loader-wrap {
  width: 170px;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto;
  opacity: 0;
  animation: splashFadeIn 0.5s ease 0.7s forwards;
}

.ds-splash-loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FFC400 0%, #FFE082 100%);
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(255, 196, 0, 0.6);
  transition: width 0.1s linear;
}

@keyframes splashFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Bottom Footer Credit */
.ds-splash-footer {
  position: absolute;
  bottom: 22px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: splashFadeIn 0.6s ease 0.85s forwards;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .ds-splash-screen,
  .ds-splash-logo-wrap,
  .ds-splash-welcome-badge,
  .ds-splash-title,
  .ds-splash-tagline,
  .ds-splash-loader-wrap,
  .ds-splash-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile Screens Responsive (375px - 430px) */
@media (max-width: 576px) {
  .ds-splash-screen {
    padding: 16px;
  }
  .ds-splash-logo-wrap {
    width: 85px;
    height: 85px;
    margin-bottom: 14px;
  }
  .ds-splash-logo {
    max-width: 78px;
    max-height: 78px;
  }
  .ds-splash-title {
    font-size: 1.4rem;
  }
  .ds-splash-tagline {
    font-size: 0.85rem;
    padding: 0 4px;
    margin-bottom: 20px;
  }
  .ds-splash-skip-btn {
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .ds-splash-ornament {
    width: 60px;
    height: 60px;
  }
  .ds-splash-loader-wrap {
    width: 130px;
  }
}

/* ==========================================================================
   PROFILE PAGE TAB BAR (MODERN INSTITUTIONAL TABS)
   ========================================================================== */
.ds-profile-tabs-wrapper {
  margin-bottom: 28px;
  position: relative;
  z-index: 10;
}

.ds-profile-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--ds-border-light);
  box-shadow: 0 4px 16px rgba(16, 43, 80, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.ds-profile-tabs::-webkit-scrollbar {
  display: none;
}

.ds-profile-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ds-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.ds-profile-tab-item i {
  font-size: 0.98rem;
  color: #64748B;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ds-profile-tab-item:hover {
  background: #F8FAFC;
  color: var(--ds-navy-primary);
  border-color: #E2E8F0;
}

.ds-profile-tab-item:hover i {
  color: var(--ds-navy-primary);
  transform: translateY(-1px);
}

.ds-profile-tab-item.active {
  background: linear-gradient(135deg, var(--ds-navy-primary) 0%, #164B85 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(16, 43, 80, 0.22);
}

.ds-profile-tab-item.active i {
  color: var(--ds-yellow-signature);
  transform: scale(1.08);
  filter: drop-shadow(0 2px 4px rgba(255, 196, 0, 0.35));
}

@media (max-width: 768px) {
  .ds-profile-tabs-wrapper {
    margin-bottom: 20px;
  }
  .ds-profile-tabs {
    padding: 5px;
    gap: 6px;
    border-radius: 12px;
  }
  .ds-profile-tab-item {
    padding: 8px 14px;
    font-size: 0.84rem;
    gap: 7px;
  }
  .ds-profile-tab-item i {
    font-size: 0.88rem;
  }
}

