* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #0b2d72;
  --primary-dark: #071d4a;
  --primary-light: #0992c2;
  --secondary: #0ac4e0;
  --accent: #f6e7bc;
  --accent-light: #faf2d3;
  --success: #10b981;
  --light: #f8fafc;
  --white: #ffffff;
  --dark: #1e293b;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --shadow: 0 10px 40px rgba(11, 45, 114, 0.15);
  --shadow-hover: 0 20px 60px rgba(11, 45, 114, 0.25);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-1: linear-gradient(135deg, #0b2d72 0%, #0992c2 100%);
  --gradient-2: linear-gradient(135deg, #0992c2 0%, #0ac4e0 100%);
  --gradient-3: linear-gradient(135deg, #0ac4e0 0%, #f6e7bc 100%);
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 50%,
    var(--secondary) 100%
  );
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 50px rgba(10, 196, 224, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(10, 196, 224, 0.6);
  }
}

@keyframes staggerReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatAround {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, -50px) rotate(90deg);
  }
  50% {
    transform: translate(100px, 0px) rotate(180deg);
  }
  75% {
    transform: translate(50px, 50px) rotate(270deg);
  }
}

@keyframes heroSpringIn {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(30px);
    filter: blur(8px);
  }
  60% {
    transform: scale(1.05) translateY(-5px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Utility Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

/* Floating Header for Pages (Liquid Glass Effect) */
header.floating-header {
  width: calc(100% - 4rem) !important;
  left: 2rem !important;
  right: 2rem !important;
  top: 1.5rem !important;
  border-radius: 30px; /* Lebih melengkung seperti cairan */
  background: 
    /* Efek shine menyapu */
    linear-gradient(
      105deg,

      rgb(255, 255, 255) 25%,
      transparent 30%
    ) -150% 0% / 200% 100% no-repeat,
    /* Warna liquid glass base */
  ;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px 0 rgba(11, 45, 114, 0.1),
    inset 0 2px 0 0 rgba(255, 255, 255, 0.5), /* Highlight atas */
    inset 0 0 20px rgba(255, 255, 255, 0.3); /* Cahaya glow di dalam */
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Sedikit transparan di bawah */
  animation: liquidShineBg 6s ease-in-out infinite;
  /* overflow: hidden; DIHAPUS agar dropdown tidak terpotong */
}

@keyframes liquidShineBg {
  0% { background-position: 200% 0, 0 0; }
  25% { background-position: -100% 0, 0 0; }
  100% { background-position: -100% 0, 0 0; }
}

header.floating-header.scrolled {
  top: 1rem !important;
  background: 
    linear-gradient(
      105deg,
      transparent 20%,
      rgba(255, 255, 255, 0.6) 25%,
      transparent 30%
    ) -150% 0% / 200% 100% no-repeat,
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0.3) 100%
    );
  box-shadow: 
    0 10px 40px rgba(11, 45, 114, 0.15),
    inset 0 2px 0 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

@media (max-width: 768px) {
  header.floating-header {
    width: calc(100% - 2rem) !important;
    left: 1rem !important;
    right: 1rem !important;
    top: 1rem !important;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 2px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.logo:hover img {
  transform: rotate(360deg);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-right: 4rem;
}

.nav-links li a {
  color: var(--dark);
  font-weight: 700;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: var(--primary);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.5rem;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background: linear-gradient(90deg, var(--primary-light) 50%, transparent 100%);
  color: var(--primary);
  padding-left: 2rem;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.admin-btn {
  background: var(--gradient-primary);
  color: var(--white) !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 50px;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  font-weight: 600;
}

.admin-btn::after {
  display: none !important;
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

.mobile-menu span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
  border-radius: 3px;
  display: block;
}

/* Hamburger animation when active */
.mobile-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
  padding-top: 120px;
  background: var(--gradient-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Base shape for bubbles */
.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: particleFloat linear infinite;
  opacity: 0;
}

/* Pure CSS Particles instead of JS */
.shape-1 { width: 40px; height: 40px; left: 10%; animation-duration: 12s; animation-delay: 0s; }
.shape-2 { width: 80px; height: 80px; left: 25%; animation-duration: 18s; animation-delay: -5s; }
.shape-3 { width: 50px; height: 50px; left: 45%; animation-duration: 15s; animation-delay: -2s; }
.shape-4 { width: 30px; height: 30px; left: 65%; animation-duration: 10s; animation-delay: -8s; }
.shape-5 { width: 70px; height: 70px; left: 80%; animation-duration: 22s; animation-delay: -12s; }
.shape-6 { width: 25px; height: 25px; left: 90%; animation-duration: 14s; animation-delay: -1s; }

/* In case some pages only have shape-1, shape-2, shape-3, we reuse float as particleFloat */
@keyframes particleFloat {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  color: var(--white);
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
}

.hero-text h1 span {
  display: block;
  opacity: 0;
  animation: staggerReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-text h1 span:nth-child(2) {
  animation-delay: 0.2s;
  color: var(--accent);
}

.hero-text p.fade-up-delay {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: staggerReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.4s;
}

.principal-bubble {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 2rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: staggerReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.6s;
}

.quote-icon {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.principal-bubble h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-style: italic;
}

.principal-bubble p {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .principal-bubble {
    background: var(--primary-dark);
    backdrop-filter: none;
    border: none;
    padding: 1.5rem;
  }
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1s ease-out;
  margin-top: 2rem;
}

.principal-photo {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--white);
  padding: 15px;
  box-shadow: 0 0 50px rgba(10, 196, 224, 0.6);
  position: relative;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
  opacity: 0;
  animation:
    heroSpringIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    heroFloat 6s ease-in-out infinite 1.5s;
  animation-delay: 0.8s, 0s;
}

.principal-photo::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0.3;
  filter: blur(20px);
}

.principal-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray) 100%);
}
.principal-photo:hover {
  transform: scale(1.08);
  box-shadow: 0 0 80px rgba(11, 45, 114, 0.7);
}

/* Sambutan Kepala Sekolah - Premium Modern Style */
.sambutan-section {
  padding: 12rem 2rem;
  background: radial-gradient(circle at 0% 0%, #fdfdfd 0%, #f7f9fc 100%);
  position: relative;
  overflow: hidden;
}

/* Background Decoration - hide on mobile to prevent overflow */
.sambutan-section::before {
  content: "SMP PGRI 3";
  position: absolute;
  top: 10%;
  right: -5%;
  font-size: 15rem;
  font-weight: 900;
  color: rgba(11, 45, 114, 0.03);
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
  overflow: hidden;
  max-width: 100%;
}

.section-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 7rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: var(--gradient-primary);
  border-radius: 10px;
}

.sambutan-content {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 460px 1fr; /* Diperbesar sesuai request */
  gap: 8rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.sambutan-foto {
  position: relative;
}

/* Cooler Multi-layer Frame */
.sambutan-foto::before {
  content: "";
  position: absolute;
  top: 30px;
  right: -30px;
  bottom: -30px;
  left: 30px;
  background: var(--accent);
  z-index: -1;
  border-radius: 10px;
  transition: var(--transition);
}

.sambutan-foto::after {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 8px solid var(--primary);
  border-left: 8px solid var(--primary);
  z-index: 2;
}

.sambutan-foto img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 30px 30px 80px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  display: block;
}

.sambutan-foto:hover img {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 40px 40px 100px rgba(0, 0, 0, 0.2);
}

.sambutan-foto:hover::before {
  transform: translate(15px, 15px);
}

.sambutan-foto h4 {
  margin-top: 3rem;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

.sambutan-foto p {
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sambutan-foto p::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--primary-light);
}

/* Realistic Frosted Glass Effect */
.sambutan-text {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  padding: 5rem;
  border-radius: 20px; /* Siku lebih tajam sedikit biar kayak kaca asli */
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

/* Glass Shine Reflection */
.sambutan-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.8s;
  pointer-events: none;
}

.sambutan-text:hover::after {
  left: 150%;
}

.sambutan-text:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.sambutan-text::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 30px;
  font-size: 12rem;
  font-family: serif;
  color: #fff;
  opacity: 0.2;
  line-height: 1;
  z-index: 0;
}

.sambutan-text p {
  font-size: 1.25rem;
  line-height: 2.1;
  color: #1a202c;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.sambutan-text p:first-of-type {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 3rem;
  padding-left: 2rem;
  border-left: 5px solid var(--accent);
}

.ttd {
  margin-top: 5rem;
  text-align: left;
}

.ttd p:first-child {
  font-size: 1rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ttd p:last-child {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

@media (max-width: 1200px) {
  .sambutan-content {
    grid-template-columns: 1fr;
    gap: 6rem;
    max-width: 800px;
  }

  .sambutan-foto {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
  }

  .sambutan-foto p {
    justify-content: center;
  }

  .ttd {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .sambutan-text {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 4rem;
  }

  /* Completely hide watermark text on mobile — prevents horizontal scroll */
  .sambutan-section::before {
    display: none;
  }
}

/* Page Hero Sections */
.hero,
.about-hero,
.news-hero,
.gallery-hero,
.structure-hero {
  padding: 10rem 2rem 150px;
  background: var(--gradient-primary);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-hero h1,
.news-hero h1,
.gallery-hero h1,
.structure-hero h1,
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  z-index: 1;
}

.about-hero p,
.news-hero p,
.gallery-hero p,
.structure-hero p,
.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  position: relative;
  z-index: 1;
}

/* ===== Wave Separator (Dynamic Parallax) ===== */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.waves {
  position: relative;
  width: 100%;
  height: 15vh;
  margin-bottom: -7px; /* Fix for safari */
  min-height: 100px;
  max-height: 150px;
}

/* Animation */
.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* Shrink for mobile */
@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }
  .blue-section {
    padding-bottom: 80px;
  }
  
  .hero,
  .about-hero,
  .news-hero,
  .gallery-hero,
  .structure-hero {
    padding: 7rem 1.5rem 100px;
  }
  
  .about-hero h1,
  .news-hero h1,
  .gallery-hero h1,
  .structure-hero h1,
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-width: 480px) {
  .hero,
  .about-hero,
  .news-hero,
  .gallery-hero,
  .structure-hero {
    padding: 8.5rem 1rem 60px !important; /* Force more padding */
    min-height: 250px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
  }
  
  .floating-shapes {
    display: none !important;
  }
  
  .about-hero h1,
  .news-hero h1,
  .gallery-hero h1,
  .structure-hero h1,
  .hero h1 {
    font-size: 1.7rem !important;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    display: block !important;
  }
}

/* About Page */
.about-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.about-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-card-icon {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}

.about-card:hover .about-card-icon {
  transform: rotateY(360deg);
}

.about-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.about-card p {
  color: var(--gray);
  line-height: 1.8;
}

/* News Page */
.news-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  animation: fadeInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
}

.news-card.featured-news-card {
  grid-column: span 2;
  background: #0d6b60; /* Dark teal background */
  flex-direction: row;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .news-card.featured-news-card {
    grid-column: span 1;
    flex-direction: column;
  }
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.news-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.news-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray) 100%);
}

.featured-image-wrapper {
  flex: 1;
  position: relative;
  min-height: 100%;
  min-width: 45%;
  overflow: hidden;
  border-radius: 0 20px 20px 0;
}

@media (max-width: 1024px) {
  .featured-image-wrapper {
    min-height: 300px;
    border-radius: 0 0 20px 20px;
  }
}

.featured-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image,
.news-card:hover .featured-image {
  transform: scale(1.05);
}

/* Badges */
.news-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
}

.featured-info .news-badge {
  position: static;
  display: inline-block;
  margin-bottom: 2rem;
}

.badge-prestasi { background: #fef08a; color: #854d0e; }
.badge-kegiatan { background: #0d9488; color: #ffffff; }
.badge-pengumuman { background: #ea580c; color: #ffffff; }
.badge-ekstra { background: #f97316; color: #ffffff; }
.badge-sorotan { background: #facc15; color: #854d0e; }
.badge-default { background: var(--gray); color: #ffffff; }

.news-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.featured-info {
  padding: 3rem;
  flex: 1.2;
  justify-content: center;
}

.news-date {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-info .news-date {
  color: rgba(255,255,255,0.7);
}

.news-title {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 800;
  transition: var(--transition);
}

.news-title.text-white {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.news-card:not(.featured-news-card):hover .news-title {
  color: var(--primary-light);
}

.news-excerpt {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.news-excerpt.text-light {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.btn-read-featured {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: #0d6b60;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  transition: var(--transition);
  align-self: flex-start;
}

.btn-read-featured:hover {
  background: #f1f5f9;
  gap: 15px;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* News Detail */
.news-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 2rem;
  animation: fadeIn 0.8s ease-out;
}

.news-detail-header {
  margin-bottom: 2.5rem;
}

.news-detail-header h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-weight: 800;
}

.news-detail-meta {
  display: flex;
  gap: 2rem;
  color: var(--gray);
  font-size: 1rem;
  align-items: center;
}

.news-detail-image {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray) 100%);
  border-radius: 20px;
  margin-bottom: 2.5rem;
  object-fit: cover;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.news-detail-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--dark);
}

.news-detail-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
  padding: 0.8rem 1.5rem;
  background: var(--light);
  border-radius: 50px;
}

.back-btn:hover {
  gap: 15px;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Gallery Page */
.gallery-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.gallery-section {
  margin-bottom: 5rem;
}

.gallery-section h2 {
  color: var(--primary);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 0.8s ease-out;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray) 100%);
  position: relative;
  animation: scaleIn 0.6s ease-out;
}

.gallery-item::before {
  content: "🖼️";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0.3;
  z-index: 1;
}

.gallery-item:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 45, 114, 0.9) 0%,
    rgba(11, 45, 114, 0.4) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 3;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  visibility: visible;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: blur(2px);
}

.overlay-content {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--white);
}

.gallery-item:hover .overlay-content {
  transform: translateY(0);
}

.overlay-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.overlay-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  font-weight: 400;
}

/* Structure Page */
.structure-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.structure-section {
  margin-bottom: 4rem;
}

.structure-section h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 2rem;
  font-weight: 700;
  animation: fadeInUp 0.8s ease-out;
}

.structure-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.structure-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.structure-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.structure-card:hover::before {
  transform: scaleX(1);
}

.structure-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.structure-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray) 100%);
  margin-bottom: 1.5rem;
  border: 5px solid var(--light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.structure-card:hover img {
  transform: scale(1.1);
  border-color: var(--primary);
}

.structure-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.structure-card .position {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.structure-card .nip {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 5rem 2rem 2rem;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-section p,
.footer-section li {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  transition: var(--transition);
}

.footer-section a {
  display: inline-block;
}

.footer-section a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Admin Panel Button Fixed */
.admin-fixed {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-primary);
  color: var(--white);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  transition: var(--transition);
  z-index: 999;
  animation: pulse 2s ease-in-out infinite;
}

.admin-fixed:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 15px 50px rgba(37, 99, 235, 0.5);
}

/* Contact Page Refreshed */
.contact-section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 3rem;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(11, 45, 114, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.contact-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-header p {
  opacity: 0.9;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .icon-box {
  background: var(--white);
  color: var(--primary);
  transform: rotateY(180deg);
}

.item-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.item-content p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

.social-links-contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-5px);
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 30px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-light);
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-control {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: var(--light);
  border: 2px solid transparent;
  border-radius: 15px;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--dark);
}

.form-control:focus {
  background: var(--white);
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 10px 30px rgba(10, 196, 224, 0.1);
}

.form-control::placeholder {
  color: var(--gray);
}

.btn-send {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(11, 45, 114, 0.2);
}

.btn-send:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(11, 45, 114, 0.3);
}

/* Map Section */
.map-section {
  padding: 0 2rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.map-wrapper {
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 10px solid var(--white);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) contrast(1.1);
  transition: var(--transition);
}

.map-wrapper:hover iframe {
  filter: grayscale(0%) contrast(1);
}

/* Responsive */
@media (max-width: 768px) {
  .floating-shapes {
    display: flex;
  }

  header {
    padding: 0.5rem 0.8rem !important;
  }

  header.scrolled {
    padding: 0.4rem 0.8rem !important;
  }

  .logo {
    font-size: 1rem;
    gap: 6px;
  }

  .logo img {
    width: 35px;
    height: 35px;
  }

  .logo span {
    white-space: normal;
    line-height: 1.1;
    max-width: 150px;
  }

  .mobile-menu {
    display: flex;
    gap: 4px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    /* Liquid Glass styling for mobile menu */
    background-color: white;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 
      0 15px 40px rgba(11, 45, 114, 0.15),
      inset 0 2px 0 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    margin-right: 0 !important;
    opacity: 0;
    transform: translateY(-10px);
  }

  .nav-links.active {
    max-height: calc(100vh - 100px);
    padding: 1.5rem 1rem;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links::-webkit-scrollbar {
    width: 5px;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
  }

  .nav-links li {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .nav-links li a {
    color: var(--dark);
    padding: 1rem;
    display: block;
    border-radius: 12px;
    transition: var(--transition);
  }

  .nav-links li a:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
  }

  /* Dropdown in mobile */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 0.5rem;
    border-radius: 12px;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
  }

  .dropdown.active .dropdown-menu {
    max-height: 400px;
    padding: 0.8rem 0;
  }

  .dropdown-menu li a {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .dropdown-menu li:last-child a {
    border-bottom: none;
  }

  .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.4);
    padding-left: 2rem;
  }

  .admin-btn {
    text-align: center;
    margin-top: 1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1rem;
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.2;
    text-align: center;
  }

  .hero-text p.fade-up-delay {
    font-size: 1rem;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
  }

  .principal-photo {
    width: 240px;
    height: 240px;
    max-width: 80vw;
    max-height: 80vw;
    margin: 0 auto;
  }

  .principal-bubble {
    padding: 1.2rem;
    margin-top: 1rem;
    text-align: center;
  }

  .principal-bubble h3 {
    font-size: 1.1rem;
  }

  .about-hero,
  .news-hero,
  .gallery-hero,
  .structure-hero,
  .hero {
    padding: 6rem 1rem 80px;
  }

  .waves {
    height: 45px;
    min-height: 45px;
  }

  .sambutan-foto {
    order: -1;
  }

  .about-hero h1,
  .news-hero h1,
  .gallery-hero h1,
  .structure-hero h1 {
    font-size: 2.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .structure-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  /* Contact Page Responsive */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    padding: 2rem;
  }

  .contact-form-card {
    padding: 2rem;
  }

  .map-wrapper {
    height: 350px;
  }
}

/* Loading Placeholder */
.img-placeholder {
  background: linear-gradient(
    90deg,
    var(--gray-light) 25%,
    #f0f0f0 50%,
    var(--gray-light) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* =========================================
   BLUE OCEAN GLASS LOGIN PAGE
   ========================================= */

.login-universe {
  min-height: 100vh;
  /* Blue Gradient Background matching brand colors */
  background: var(--gradient-1);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

/* Floating Bubbles / Shapes */
.login-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.login-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.lb-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation: floatBubble 15s infinite ease-in-out;
}

.lb-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: -50px;
  animation: floatBubble 18s infinite ease-in-out reverse;
}

.lb-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 15%;
  animation: floatBubble 12s infinite ease-in-out 2s;
}

.lb-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 10%;
  animation: floatBubble 20s infinite ease-in-out 1s;
}

@keyframes floatBubble {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -50px) rotate(10deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-10deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ==========================================================================
   Modernized Card Core System
   ========================================================================== */

/* 1. News & Agenda Cards (Berita.php & Agenda.php) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 30px;
    padding: 20px 0;
}

.news-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 45, 114, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(11, 45, 114, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(11, 45, 114, 0.12);
    border-color: rgba(11, 45, 114, 0.08);
}

/* Direct news-image (agenda.php, non-wrapper usage) */
.news-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    /* Reset position: absolute from legacy rule above - prevents bleed-through bug */
    position: relative;
    top: auto;
    left: auto;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* When inside a wrapper (berita.php), restore absolute positioning */
.news-image-wrapper .news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.news-card:hover .news-image {
    transform: scale(1.08);
}

.news-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* prevent overflow in flex children */
}

.news-date {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-date i {
    font-size: 1rem;
}

.news-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 15px;
    transition: var(--transition);
}

.news-card:hover .news-title {
    color: var(--secondary);
}

.news-excerpt {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary);
    padding: 12px 25px;
    background: var(--light);
    border-radius: 50px;
    width: fit-content;
    transition: var(--transition);
}

.read-more:hover {
    background: var(--primary);
    color: var(--white);
    padding-right: 30px;
    box-shadow: 0 10px 20px rgba(11, 45, 114, 0.2);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 2. Guru & Staff Cards (Guru.php, Struktur.php, Osis.php, Mpk.php) */

/* Content wrapper for guru/osis/mpk/structure pages */
.guru-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.guru-section {
    margin-bottom: 4rem;
}

.guru-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 30px;
    padding: 20px 0;
}

.guru-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
}

.guru-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(11, 45, 114, 0.15);
}

.card-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #f1f5f9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.guru-card:hover .card-image img {
    transform: scale(1.1) translateY(-10px);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 45, 114, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    opacity: 0;
    transition: all 0.4s ease;
}

.guru-card:hover .card-overlay {
    opacity: 1;
}

.contact-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.guru-card:hover .contact-btn {
    transform: translateY(0);
}

.contact-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
}

.card-info {
    padding: 25px 20px;
    text-align: center;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.guru-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.guru-nip {
    font-size: 0.9rem;
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 4px 12px;
    background: var(--light);
    border-radius: 10px;
}

.guru-mapel {
    font-size: 0.95rem;
    color: var(--primary-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 3. Visi-Misi Timeline Cards */
.timeline-card {
    background: var(--white) !important;
    padding: 35px !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: var(--transition) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    position: relative !important;
    margin-bottom: 20px;
}

.timeline-card:hover {
    transform: scale(1.02) translateY(-5px) !important;
    box-shadow: 0 20px 50px rgba(11, 45, 114, 0.1) !important;
}

.timeline-card h3 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.timeline-card h3::after {
    content: "" !important;
    flex-grow: 1 !important;
    height: 2px !important;
    background: var(--gradient-primary) !important;
    opacity: 0.2 !important;
}

.timeline-card p {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    color: var(--dark) !important;
    font-weight: 500 !important;
}

.timeline-card ul li {
    padding: 12px 20px !important;
    background: var(--light) !important;
    border-radius: 15px !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    border-left: 4px solid var(--primary-light) !important;
    transition: var(--transition) !important;
}

.timeline-card ul li:hover {
    background: var(--white) !important;
    transform: translateX(10px) !important;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05) !important;
}

/* 4. About & Stats Cards (Profil Sekolah) */
.about-card {
    padding: 40px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.about-card-icon {
    width: 80px !important;
    height: 80px !important;
    font-size: 2rem !important;
    margin-bottom: 25px !important;
    border-radius: 20px !important;
}

.stat-card {
    background: var(--white) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
    transition: var(--transition) !important;
    padding: 30px !important;
    border-radius: 20px !important;
}

.stat-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(11, 45, 114, 0.1) !important;
}

.stat-card h3 {
    font-weight: 800 !important;
    margin-bottom: 10px;
}

/* 5. Facility & Gallery Items */
.gallery-section {
    margin-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 25px;
    /* Prevent overflow */
    width: 100%;
}

.gallery-item {
    border-radius: 24px !important;
    overflow: hidden;
    cursor: pointer;
}

.gallery-overlay {
    backdrop-filter: blur(4px) !important;
    border-radius: 24px !important;
}

/* 6. General Section Header Support */
.section-header {
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    width: 60px !important;
    height: 60px !important;
    border-radius: 18px !important;
    font-size: 1.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.section-header h2 {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: var(--primary);
}

.teacher-count {
    background: var(--light) !important;
    color: var(--primary) !important;
    padding: 8px 20px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 50px;
}

/* Visi Misi Specific Layout */
.timeline-section-wrapper {
    padding: 100px 20px;
    background: var(--light);
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Modern Empty State Design (Global)
   ========================================================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    border: 1px solid rgba(11, 45, 114, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    margin: 40px auto;
    max-width: 800px;
    width: 90%; /* Changed from 100% to allow for margins */
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: var(--light);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    transition: var(--transition);
}

.empty-state-icon i {
    font-size: 3.5rem;
    color: var(--primary-light);
    position: relative;
    z-index: 2;
}

.empty-state-icon::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50px;
    background: var(--primary-light);
    opacity: 0.1;
    animation: iconPulse 3s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.15); opacity: 0.05; }
    100% { transform: scale(1); opacity: 0.1; }
}

.empty-state h2, .empty-state h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(11, 45, 114, 0.2);
    transition: var(--transition);
}

.empty-state-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11, 45, 114, 0.3);
    color: var(--white);
}

@media (max-width: 768px) {
    .empty-state {
        padding: 50px 25px;
        margin: 20px auto; /* Force auto margin for horizontal centering */
        width: calc(100% - 40px);
        border-radius: 30px;
    }
    .empty-state-icon {
        width: 90px;
        height: 90px;
    }
    .empty-state-icon i {
        font-size: 2.5rem;
    }
    .empty-state h2, .empty-state h3 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Generic container used across pages */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ========================================================================== */

/* Prevent ALL horizontal overflow at root level */
body, html {
    max-width: 100%;
    overflow-x: hidden;
}

/* All page section containers */
.news-content,
.gallery-content,
.about-content,
.structure-content,
.guru-content,
.contact-section,
.map-section {
    width: 100%;
    box-sizing: border-box;
}

/* Make cards never overflow their grid cell */
.news-card,
.guru-card,
.gallery-item,
.about-card,
.structure-card {
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0; /* critical for grid overflow fix */
}

@media (max-width: 1024px) {
    /* News grid 2 columns on tablet */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Guru/OSIS grid 3 columns on tablet */
    .guru-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    /* Gallery 2 columns on tablet */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sambutan-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .sambutan-foto {
        max-width: 420px;
        margin: 0 auto;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* === NEWS / AGENDA PAGE === */
    .news-content {
        padding: 3rem 1rem;
    }
    .news-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 10px 0;
    }
    .news-card {
        width: 100%;
        max-width: 400px; /* Prevent over-stretching */
        margin: 0 auto;
    }
    .news-card.featured-news-card {
        flex-direction: column;
        grid-column: span 1;
        width: 100%;
    }
    .featured-image-wrapper {
        min-height: 220px;
        border-radius: 0 0 20px 20px;
    }
    .featured-info {
        padding: 1.5rem;
    }
    .news-title.text-white {
        font-size: 1.3rem;
    }
    .news-info {
        padding: 20px;
    }
    .news-image {
        height: 200px;
    }
    .news-title {
        font-size: 1.15rem;
    }

    /* === GALLERY / FASILITAS PAGE === */
    .gallery-content {
        padding: 2.5rem 1rem;
    }
    .gallery-section {
        margin-bottom: 40px;
    }
    .gallery-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .gallery-item {
        border-radius: 14px !important;
    }

    /* === GURU / OSIS / MPK / STRUKTUR PAGES === */
    .guru-content {
        padding: 2.5rem 1rem;
    }
    .guru-section {
        margin-bottom: 2.5rem;
    }
    .guru-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
        padding: 10px 0;
        justify-content: center;
    }
    .card-image {
        height: 220px;
    }
    .card-info {
        padding: 16px 12px;
    }
    .guru-name {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    .guru-nip, .guru-mapel {
        font-size: 0.8rem;
    }
    .section-header {
        gap: 12px;
        margin-bottom: 20px;
    }
    .section-header h2 {
        font-size: 1.5rem !important;
    }
    .header-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
        border-radius: 13px !important;
    }
    .teacher-count {
        font-size: 0.82rem !important;
        padding: 6px 14px !important;
    }

    /* === ABOUT / PROFIL PAGE === */
    .about-content {
        padding: 2.5rem 1rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-card {
        padding: 25px !important;
    }
    .about-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* === STRUCTURE SECTION (Kepsek, TU) === */
    .structure-content {
        padding: 2.5rem 1rem;
    }
    .structure-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .structure-card {
        padding: 1.5rem 1rem;
    }
    .structure-card img {
        width: 100px;
        height: 100px;
    }

    /* === HERO SECTIONS === */
    .about-hero h1,
    .news-hero h1,
    .gallery-hero h1,
    .structure-hero h1 {
        font-size: 1.8rem;
        padding: 0 0.5rem;
    }
    .about-hero p,
    .news-hero p,
    .gallery-hero p,
    .structure-hero p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    /* === SECTION TITLE === */
    .section-title {
        font-size: 2rem;
        margin-bottom: 4rem;
    }

    /* === SAMBUTAN SECTION === */
    .sambutan-section {
        padding: 5rem 1rem;
    }
    .sambutan-text {
        padding: 2rem 1.5rem;
    }
    .sambutan-text p {
        font-size: 1rem;
        line-height: 1.8;
    }
    .sambutan-text p:first-of-type {
        font-size: 1.1rem;
        padding-left: 1rem;
    }
    .ttd {
        margin-top: 3rem;
        text-align: center;
    }

    /* === CONTACT PAGE === */
    .contact-section {
        padding: 2.5rem 1rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-info-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .contact-form-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .map-section {
        padding: 0 1rem 3rem;
    }
    .map-wrapper {
        height: 280px;
        border-radius: 20px;
        border-width: 6px;
    }

    /* === FOOTER === */
    footer {
        padding: 3rem 1rem 2rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-section h3 {
        font-size: 1.1rem;
    }

    /* === NEWS DETAIL === */
    .news-detail {
        padding: 3rem 1rem;
    }
    .news-detail-header h1 {
        font-size: 1.7rem;
    }
    .news-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    .news-detail-image {
        height: 240px;
        border-radius: 14px;
    }
    .news-detail-content {
        font-size: 1rem;
    }
}

/* Very small screens (phones < 480px) */
@media (max-width: 480px) {
    /* Single column for guru cards on very small screens */
    .guru-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .card-image {
        height: 260px;
    }
    /* Gallery stays 2-col but tighter */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    /* Structure 1 column on tiny screens */
    .structure-cards {
        grid-template-columns: 1fr;
    }
    /* About stats 2 col OK */
    .about-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .news-detail-header h1 {
        font-size: 1.4rem;
    }
    /* Hero title scaling */
    .about-hero h1,
    .news-hero h1,
    .gallery-hero h1,
    .structure-hero h1 {
        font-size: 1.5rem;
    }
}


.nebula-bg,
.stars,
.login-planet,
.planet-1,
.planet-2 {
  display: none !important;
}

.login-container-pro {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  perspective: 1000px;
}

.login-card-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  /* transform-style: preserve-3d; Removed 3D effect */
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  animation: loginEntrance 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes loginEntrance {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-card-glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
}

/* Subtle glow border */

/* =========================================
   TIMELINE LAYOUT (VISI MISI - REGISTRATION FLOW STYLE)
   ========================================= */

.timeline-section-wrapper {
  padding: 4rem 2rem;
  background: var(--light);
  overflow: hidden;
  position: relative;
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

/* Vertical Dashed Line */
.timeline-line {
  position: absolute;
  width: 2px;
  background-image: linear-gradient(
    to bottom,
    #cbd5e1 60%,
    rgba(255, 255, 255, 0) 0%
  );
  background-position: left;
  background-size: 2px 20px;
  background-repeat: repeat-y;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.timeline-marker-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-number {
  width: 50px;
  height: 50px;
  background: var(--primary); /* Blue */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  border: 4px solid var(--white);
}

.timeline-col {
  width: 50%;
  padding: 0 40px;
  display: flex;
}

.timeline-col.left {
  justify-content: flex-end;
  text-align: right;
}

.timeline-col.right {
  justify-content: flex-start;
  text-align: left;
}

.timeline-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 400px;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.timeline-card h3 {
  color: var(--dark);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.timeline-card p,
.timeline-card li {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }

  .timeline-marker-wrapper {
    left: 30px;
  }

  .timeline-row {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 70px; /* Space for line */
    margin-bottom: 3rem;
  }

  .timeline-col {
    width: 100%;
    padding: 0;
  }

  .timeline-col.left {
    text-align: left;
    justify-content: flex-start;
    order: 2; /* Move content below marker visually if needed, but structure is parallel */
  }

  .timeline-col.right {
    text-align: left;
    justify-content: flex-start;
  }

  /* On mobile, usually just stack everything to the right of line */
  .timeline-col.empty {
    display: none;
  }
}

.login-card-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    transparent 40%,
    rgba(255, 255, 255, 0.2)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  transform: rotate(30deg);
  pointer-events: none;
}

.login-header-pro {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.logo-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0ea5e9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
  animation: pulseLogo 3s infinite;
}

@keyframes pulseLogo {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

.login-header-pro h2 {
  color: #ffffff;
  font-size: 2rem;
}

/* Message Alert Styling */
.message-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 2rem auto;
  padding: 20px 28px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  max-width: 560px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  animation: alertSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border-left: 5px solid;
}

.message-alert i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.message-alert.success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #15803d;
  border-left-color: #22c55e;
}

.message-alert.success i {
  color: #22c55e;
}

.message-alert.error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  border-left-color: #ef4444;
}

.message-alert.error i {
  color: #ef4444;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===========================
   FLOATING MUSIC PLAYER
=========================== */

/* Keyframes */
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes musicPlayerSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes barBounce1 {
  0%, 100% { height: 6px; }
  50%       { height: 20px; }
}
@keyframes barBounce2 {
  0%, 100% { height: 14px; }
  50%       { height: 5px; }
}
@keyframes barBounce3 {
  0%, 100% { height: 10px; }
  50%       { height: 22px; }
}
@keyframes barBounce4 {
  0%, 100% { height: 18px; }
  50%       { height: 7px; }
}
@keyframes barBounce5 {
  0%, 100% { height: 8px; }
  50%       { height: 16px; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(9, 146, 194, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(9, 146, 194, 0); }
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Toggle Button */
#musicToggleBtn {
  position: fixed;
  bottom: 5rem;
  left: 2rem;
  z-index: 9990;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(11, 45, 114, 0.4);
  transition: var(--transition);
  animation: pulseGlow 2.5s infinite;
}
#musicToggleBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(11, 45, 114, 0.55);
}
#musicToggleBtn i {
  color: #fff;
  font-size: 1.4rem;
  transition: var(--transition);
}

/* Player Container */
#floatingMusicPlayer {
  position: fixed;
  bottom: 10rem;
  left: 2rem;
  z-index: 9989;
  width: 330px;
  background: linear-gradient(135deg,
    rgba(11, 45, 114, 0.92) 0%,
    rgba(9, 146, 194, 0.88) 100%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 20px 60px rgba(11, 45, 114, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
  padding: 1.5rem;
  animation: musicPlayerSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: none;
}
#floatingMusicPlayer.active {
  display: block;
}

/* Vinyl disc area */
.mp-disc-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.mp-disc {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #1e293b 18%,
    #0b2d72 30%,
    #0992c2 55%,
    #0b2d72 75%,
    #071d4a 100%
  );
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.15),
    0 0 20px rgba(9,146,194,0.5),
    inset 0 0 10px rgba(0,0,0,0.6);
  position: relative;
  flex-shrink: 0;
  transition: animation-play-state 0.3s;
}
.mp-disc::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 6px rgba(255,255,255,0.7);
}
.mp-disc.spinning {
  animation: vinylSpin 3s linear infinite;
}
.mp-disc.paused {
  animation-play-state: paused;
}

/* Song info */
.mp-info {
  flex: 1;
  overflow: hidden;
}
.mp-song-title-wrap {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.mp-song-title {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.mp-song-title.marquee {
  animation: marqueeScroll 8s linear infinite;
}
.mp-artist {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Visualizer bars */
.mp-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  margin-top: 8px;
}
.mp-visualizer span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--secondary);
  opacity: 0.75;
  height: 6px;
  transition: height 0.1s;
}
.mp-visualizer.playing span:nth-child(1) { animation: barBounce1 0.9s ease-in-out infinite; }
.mp-visualizer.playing span:nth-child(2) { animation: barBounce2 0.7s ease-in-out infinite 0.1s; }
.mp-visualizer.playing span:nth-child(3) { animation: barBounce3 1.1s ease-in-out infinite 0.05s; }
.mp-visualizer.playing span:nth-child(4) { animation: barBounce4 0.8s ease-in-out infinite 0.15s; }
.mp-visualizer.playing span:nth-child(5) { animation: barBounce5 0.95s ease-in-out infinite 0.08s; }

/* Progress bar */
.mp-progress-wrap {
  margin-bottom: 1.1rem;
}
.mp-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.mp-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  outline: none;
  cursor: pointer;
  position: relative;
}
.mp-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
  margin-top: -4.5px;
}
.mp-progress::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 10px;
}
.mp-progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
}

/* Controls */
.mp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.mp-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}
.mp-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  transform: scale(1.1);
}
.mp-btn-play {
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
  background: rgba(255,255,255,0.95);
  color: var(--primary) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.mp-btn-play:hover {
  background: #fff;
  transform: scale(1.12);
}

/* Volume */
.mp-volume-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mp-volume-row i {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.mp-volume {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  outline: none;
  cursor: pointer;
}
.mp-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(255,255,255,0.5);
}
.mp-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}
.mp-mute-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
  padding: 2px;
}
.mp-mute-btn:hover {
  color: #fff;
}

/* Playlist */
.mp-playlist-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}
.mp-playlist-toggle:hover {
  color: rgba(255,255,255,0.9);
}
.mp-playlist {
  margin-top: 0.8rem;
  max-height: 150px;
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.7rem;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.mp-playlist.open {
  display: block;
}
.mp-playlist::-webkit-scrollbar { width: 4px; }
.mp-playlist::-webkit-scrollbar-track { background: transparent; }
.mp-playlist::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.mp-playlist-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}
.mp-playlist-item:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.mp-playlist-item.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 600;
}
.mp-playlist-item i {
  font-size: 0.7rem;
  width: 14px;
}
.mp-playlist-num {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  width: 16px;
  text-align: right;
  flex-shrink: 0;
}

/* ==============================
   MUSIC PLAYER - MOBILE
============================== */
@media (max-width: 768px) {
  /* Toggle button lebih kecil di mobile */
  #musicToggleBtn {
    width: 46px;
    height: 46px;
    bottom: 1.8rem;
    left: 1rem;
    font-size: 1rem;
  }

  /* Player widget full-width di mobile */
  #floatingMusicPlayer {
    width: calc(100vw - 2rem);
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
    padding: 1.1rem;
    border-radius: 18px;
    max-height: 85vh;
    overflow-y: auto;
  }

  /* Disc lebih kecil */
  .mp-disc {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  /* Info teks lebih kompak */
  .mp-song-title {
    font-size: 0.82rem;
  }
  .mp-artist {
    font-size: 0.72rem;
  }

  /* Controls lebih mepet */
  .mp-controls {
    gap: 0.6rem;
    margin-bottom: 0.8rem;
  }
  .mp-btn {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
  .mp-btn-play {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  /* Volume row lebih compact */
  .mp-volume-row {
    gap: 0.4rem;
  }

  /* Admin fixed button di mobile — pindah lebih ke bawah agar tidak nabrak music toggle */
  .admin-fixed {
    bottom: 1.6rem;
    right: 1rem;
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   NEW BERITA PAGE LAYOUT  (nb- prefix)
   Keep hero-section & footer intact — only content redesigned
   ========================================================================== */

/* Shared page wrapper */
.nb-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* ────────────────────────────────
   HERO FEATURE ARTICLE
──────────────────────────────── */
.nb-hero-feature {
    background: #fff;
    padding: 3.5rem 0 0;
}

.nb-hero-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.nb-hero-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nb-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(11, 45, 114, 0.08);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.nb-hero-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.nb-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.nb-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nb-hero-meta i { color: var(--primary-light); }

.nb-hero-right {
    padding-top: 3.5rem;
}

.nb-hero-right p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gray);
}

/* Hero image strip */
.nb-hero-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 420px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.nb-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.nb-hero-img-wrap:hover .nb-hero-img { transform: scale(1.04); }

.nb-hero-img-ph {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.3);
}

.nb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,29,74,0.5) 0%, transparent 55%);
    z-index: 1;
}

.nb-hero-arrow {
    position: absolute;
    bottom: 1.8rem;
    right: 1.8rem;
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--dark);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 2;
}

.nb-hero-img-wrap:hover .nb-hero-arrow {
    transform: scale(1.18) rotate(45deg);
    background: var(--primary);
    color: white;
}

/* ────────────────────────────────
   FILTER BAR
──────────────────────────────── */
.nb-filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-light);
    border-top: 1px solid var(--gray-light);
    padding: 1rem 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.nb-filter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.nb-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.nb-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--gray);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.nb-tab:hover {
    background: var(--light);
    color: var(--dark);
}

.nb-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(11,45,114,0.25);
}

.nb-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light);
    border-radius: 50px;
    padding: 8px 18px;
    color: var(--gray);
    min-width: 220px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.nb-search-box:focus-within {
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(10,196,224,0.12);
}

.nb-search-box i { font-size: 0.85rem; flex-shrink: 0; }

.nb-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: var(--dark);
    width: 100%;
    font-family: inherit;
}

.nb-search-box input::placeholder { color: var(--gray); }

/* ────────────────────────────────
   GRID SECTION
──────────────────────────────── */
.nb-grid-section {
    background: #f8fafc;
    padding: 3rem 0 4.5rem;
}

.nb-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.nb-grid-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
}

.nb-view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
}

.nb-view-all:hover { gap: 10px; color: var(--primary-light); }

/* Main grid — 3 cols by default */
.nb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ────────────────────────────────
   STANDARD CARD
──────────────────────────────── */
.nb-card-std {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(11,45,114,0.06);
    border: 1px solid rgba(226,232,240,0.8);
    min-width: 0;
}

.nb-card-std:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(11,45,114,0.13);
    border-color: transparent;
}

.nb-sc-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    background: var(--gray-light);
    flex-shrink: 0;
}

.nb-sc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.nb-card-std:hover .nb-sc-img { transform: scale(1.07); }

.nb-sc-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}

.nb-sc-body {
    padding: 1.2rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
}

.nb-sc-date {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nb-sc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.nb-card-std:hover .nb-sc-title { color: var(--primary); }

.nb-sc-excerpt {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge overlay on image */
.nb-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 0.68rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ────────────────────────────────
   FEATURED WIDE CARD (span 2)
──────────────────────────────── */
.nb-card-feat {
    grid-column: span 2;
    background: #093d32; /* deep teal */
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 280px;
    box-shadow: 0 2px 12px rgba(9,61,50,0.15);
    transition: var(--transition);
    min-width: 0;
}

.nb-card-feat:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 50px rgba(9,61,50,0.3);
}

.nb-fc-text {
    flex: 1.3;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
    min-width: 0;
}

.nb-fc-text h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: white;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nb-fc-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nb-fc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #093d32;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    width: fit-content;
    transition: var(--transition);
}

.nb-fc-btn:hover {
    background: var(--accent);
    gap: 13px;
    color: var(--dark);
}

.nb-fc-img {
    flex: 1;
    position: relative;
    min-width: 220px;
    overflow: hidden;
}

.nb-fc-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.nb-card-feat:hover .nb-fc-img img { transform: scale(1.07); }

/* ────────────────────────────────
   BADGE COLOR SYSTEM
──────────────────────────────── */
.nb-card-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.nb-bdg-prestasi   { background: #fef08a; color: #854d0e; }
.nb-bdg-kegiatan   { background: #0d9488; color: #fff; }
.nb-bdg-pengumuman { background: #ea580c; color: #fff; }
.nb-bdg-akademik   { background: #3b82f6; color: #fff; }
.nb-bdg-ekstra     { background: #f97316; color: #fff; }
.nb-bdg-sorotan    { background: #facc15; color: #854d0e; }
.nb-bdg-default    { background: var(--gray); color: #fff; }

/* ────────────────────────────────
   NO RESULTS STATE
──────────────────────────────── */
.nb-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: var(--gray);
    grid-column: 1 / -1;
    text-align: center;
}

.nb-no-results i { font-size: 3rem; opacity: 0.35; }
.nb-no-results p { font-size: 1.05rem; font-weight: 500; }

/* ────────────────────────────────
   NEWSLETTER STRIP
──────────────────────────────── */
.nb-newsletter {
    background: var(--accent);
    padding: 4rem 0;
}

.nb-nl-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.nb-nl-text h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.nb-nl-text p {
    color: rgba(30,41,59,0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.nb-nl-form {
    display: flex;
    gap: 0.75rem;
}

.nb-nl-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.9);
    color: var(--dark);
    outline: none;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    min-width: 0;
}

.nb-nl-form input:focus {
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.nb-nl-form input::placeholder { color: var(--gray); }

.nb-nl-form button {
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nb-nl-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11,45,114,0.3);
}

/* ────────────────────────────────
   RESPONSIVE — BERITA PAGE
──────────────────────────────── */
@media (max-width: 1024px) {
    .nb-hero-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nb-hero-right { padding-top: 0; }

    .nb-hero-img-wrap { height: 340px; }

    .nb-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nb-card-feat {
        grid-column: span 2;
    }

    .nb-nl-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nb-wrap { padding: 0 1rem; }

    .nb-hero-feature { padding: 2rem 0 0; }
    .nb-hero-title   { font-size: 1.6rem; }
    .nb-hero-img-wrap { height: 240px; border-radius: 14px 14px 0 0; }

    .nb-filter-bar   { top: 70px; }
    .nb-filter-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .nb-search-box   { width: 100%; min-width: unset; }

    .nb-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nb-card-feat {
        grid-column: span 1;
        flex-direction: column;
        min-height: unset;
    }

    .nb-fc-img {
        min-width: unset;
        min-height: 220px;
        flex: none;
        position: relative;
    }

    .nb-fc-img img {
        position: relative;
        inset: unset;
        width: 100%;
        height: 220px;
    }

    .nb-fc-text { padding: 1.5rem; }
    .nb-fc-text h3 { font-size: 1.2rem; }

    .nb-nl-form  { flex-direction: column; }
    .nb-nl-text h2 { font-size: 1.5rem; }
    .nb-grid-header h2 { font-size: 1.4rem; }

    .nb-newsletter { padding: 3rem 0; }
}

@media (max-width: 480px) {
    .nb-tabs         { gap: 0.3rem; }
    .nb-tab          { padding: 6px 14px; font-size: 0.8rem; }
    .nb-hero-img-wrap { height: 200px; }
    .nb-hero-title   { font-size: 1.4rem; }
}

/* ══════════════════════════════════════════════════════════════════
   AGENDA PAGE  (ag- prefix)
   Identity: Calendar · Events · Countdown
══════════════════════════════════════════════════════════════════ */
.ag-wrap { max-width:1200px; margin:0 auto; padding:0 2rem; box-sizing:border-box; }

.ag-spotlight {
    background: linear-gradient(135deg, #0b2d72 0%, #0992c2 100%);
    padding: 3rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.ag-spotlight::before {
    content:''; position:absolute; top:-40%; right:-10%;
    width:500px; height:500px; border-radius:50%;
    background:rgba(255,255,255,0.04); pointer-events:none;
}
.ag-spot-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2.5rem;
    align-items: center;
}
.ag-spot-date-block {
    display:flex; flex-direction:column; align-items:center;
    background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.2);
    border-radius:20px; padding:1.5rem 2rem; backdrop-filter:blur(10px);
    text-align:center; flex-shrink:0;
}
.ag-spot-day   { font-size:3.5rem; font-weight:900; color:white; line-height:1; }
.ag-spot-month { font-size:0.95rem; font-weight:700; color:rgba(255,255,255,0.8); letter-spacing:2px; margin-top:4px; text-transform:uppercase; }
.ag-spot-year  { font-size:0.78rem; color:rgba(255,255,255,0.5); margin-top:2px; }
.ag-spot-info  { display:flex; flex-direction:column; gap:0.75rem; }
.ag-spot-label {
    display:inline-flex; align-items:center; gap:6px;
    background:rgba(255,220,50,0.15); color:#fde68a; border:1px solid rgba(255,220,50,0.3);
    padding:5px 14px; border-radius:50px; font-size:0.75rem; font-weight:700;
    text-transform:uppercase; letter-spacing:1px; width:fit-content;
}
.ag-spot-title { font-size: clamp(1.5rem,2.5vw,2.2rem); font-weight:900; color:white; line-height:1.2; }
.ag-spot-meta  { display:flex; gap:1.5rem; flex-wrap:wrap; font-size:0.88rem; color:rgba(255,255,255,0.75); }
.ag-spot-meta span { display:flex; align-items:center; gap:6px; }
.ag-spot-meta i { color:#7dd3fc; }
.ag-spot-desc { font-size:0.95rem; color:rgba(255,255,255,0.8); line-height:1.7; max-width:560px; }
.ag-spot-img { width:260px; height:180px; border-radius:16px; overflow:hidden; flex-shrink:0; position:relative; }
.ag-spot-img img { width:100%; height:100%; object-fit:cover; }
.ag-spot-img-overlay { position:absolute; inset:0; background:linear-gradient(135deg,rgba(11,45,114,0.2),transparent); }

.ag-main { background:#f8fafc; padding:3.5rem 0 5rem; }
.ag-section-header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:2.5rem; flex-wrap:wrap; }
.ag-section-header h2 { font-size:1.8rem; font-weight:800; color:var(--dark); }
.ag-section-header p  { font-size:0.9rem; color:var(--gray); margin-top:4px; }
.ag-legend { display:flex; gap:1.2rem; align-items:center; flex-wrap:wrap; }
.ag-legend-item { display:flex; align-items:center; gap:6px; font-size:0.82rem; font-weight:600; color:var(--gray); }
.ag-legend-item.upcoming i { color:#10b981; }
.ag-legend-item.past i     { color:#94a3b8; }

.ag-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }

.ag-card {
    background:white; border-radius:20px; overflow:hidden;
    box-shadow:0 2px 12px rgba(11,45,114,0.06); border:1px solid rgba(226,232,240,0.8);
    transition:var(--transition); display:flex; flex-direction:column; position:relative;
}
.ag-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(11,45,114,0.12); border-color:transparent; }
.ag-card.ag-past { opacity:0.8; }

.ag-date-chip {
    position:absolute; top:12px; right:12px; z-index:5;
    background:white; border-radius:12px; padding:8px 12px; text-align:center;
    box-shadow:0 4px 15px rgba(0,0,0,0.15); min-width:56px;
}
.ag-chip-day   { display:block; font-size:1.4rem; font-weight:900; color:var(--primary); line-height:1; }
.ag-chip-month { display:block; font-size:0.62rem; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--gray); margin-top:2px; }

.ag-card-img { position:relative; width:100%; height:180px; overflow:hidden; background:var(--gradient-primary); flex-shrink:0; }
.ag-card-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s ease; display:block; }
.ag-card:hover .ag-card-img img { transform:scale(1.07); }
.ag-card-img-ph { display:flex; align-items:center; justify-content:center; }
.ag-ph-icon { font-size:3rem; color:rgba(255,255,255,0.3); }

.ag-card-upcoming-badge, .ag-card-past-badge {
    position:absolute; bottom:10px; left:10px;
    font-size:0.7rem; font-weight:700; padding:4px 12px;
    border-radius:50px; text-transform:uppercase; letter-spacing:0.5px;
}
.ag-card-upcoming-badge { background:#10b981; color:white; }
.ag-card-past-badge     { background:rgba(0,0,0,0.5); color:rgba(255,255,255,0.9); }

.ag-card-body  { padding:1.25rem 1.25rem 0.75rem; flex-grow:1; }
.ag-card-title { font-size:1rem; font-weight:700; color:var(--dark); line-height:1.4; margin-bottom:0.75rem; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ag-card-meta  { display:flex; flex-wrap:wrap; gap:0.5rem 1rem; font-size:0.8rem; color:var(--gray); margin-bottom:0.75rem; }
.ag-card-meta span { display:flex; align-items:center; gap:5px; }
.ag-card-meta i    { color:var(--primary-light); font-size:0.75rem; }
.ag-card-desc { font-size:0.85rem; color:var(--gray); line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.ag-card-footer { padding:0.75rem 1.25rem 1.25rem; border-top:1px solid var(--gray-light); margin-top:0.75rem; }
.ag-days-badge   { display:inline-flex; align-items:center; gap:6px; font-size:0.78rem; font-weight:700; color:#10b981; background:#f0fdf4; padding:5px 14px; border-radius:50px; border:1px solid #bbf7d0; }
.ag-passed-badge { display:inline-flex; align-items:center; gap:6px; font-size:0.78rem; font-weight:600; color:#94a3b8; background:#f8fafc; padding:5px 14px; border-radius:50px; border:1px solid #e2e8f0; }

@media (max-width:1024px) {
    .ag-spot-inner { grid-template-columns:auto 1fr; }
    .ag-spot-img   { display:none; }
    .ag-grid       { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
    .ag-wrap { padding:0 1rem; }
    .ag-spotlight { padding:2rem 0 2.5rem; }
    .ag-spot-inner { grid-template-columns:1fr; gap:1.5rem; }
    .ag-spot-date-block { flex-direction:row; align-items:center; gap:1rem; padding:1rem 1.5rem; width:fit-content; }
    .ag-spot-day  { font-size:2.5rem; }
    .ag-grid      { grid-template-columns:1fr; gap:1rem; }
    .ag-section-header { flex-direction:column; }
}

/* ══════════════════════════════════════════════════════════════════
   GALERI PAGE  (gl- prefix)
   Identity: Photo Masonry · Lightbox · Dark Theme
══════════════════════════════════════════════════════════════════ */
.gl-wrap { max-width:1280px; margin:0 auto; padding:0 2rem; box-sizing:border-box; }

.gl-filter-bar {
    background:white; padding:1.25rem 0; position:sticky; top:80px; z-index:100;
    border-bottom:1px solid #e8edf5; box-shadow:0 4px 24px rgba(11,45,114,0.07);
}
.gl-filter-inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.gl-tabs { display:flex; gap:0.5rem; flex-wrap:wrap; }
.gl-tab {
    display:inline-flex; align-items:center; gap:6px;
    padding:8px 18px; border-radius:50px; border:1px solid #e2e8f0;
    background:transparent; color:#64748b; font-size:0.85rem; font-weight:600;
    cursor:pointer; transition:all 0.25s ease; font-family:inherit;
}
.gl-tab:hover  { background:#f1f5f9; color:var(--primary); border-color:var(--primary-light); }
.gl-tab.active { background:var(--gradient-primary); color:white; border-color:transparent; box-shadow:0 6px 20px rgba(11,45,114,0.25); }
.gl-count { background:rgba(0,0,0,0.07); padding:2px 8px; border-radius:50px; font-size:0.72rem; color:inherit; }
.gl-tab.active .gl-count { background:rgba(255,255,255,0.22); color:white; }
.gl-controls { display:flex; align-items:center; gap:1rem; }
.gl-view-toggle { display:flex; gap:0.4rem; }
.gl-view-btn {
    width:36px; height:36px; border-radius:10px; border:1px solid #e2e8f0;
    background:white; color:#94a3b8; cursor:pointer; transition:all 0.25s;
    display:flex; align-items:center; justify-content:center; font-size:0.9rem;
}
.gl-view-btn.active, .gl-view-btn:hover { background:var(--primary); color:white; border-color:var(--primary); }
.gl-showing { font-size:0.78rem; font-weight:600; color:#94a3b8; white-space:nowrap; }

.gl-main { background:white; padding:2.5rem 0 5rem; min-height:50vh; }

/* Masonry */
.gl-masonry { columns:4; column-gap:1rem; }
.gl-uniform-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
.gl-uniform-grid .gl-item { break-inside:unset; margin-bottom:0; }
.gl-uniform-grid .gl-item img { min-height:180px; object-fit:cover; }

.gl-item {
    break-inside:avoid; margin-bottom:1rem; border-radius:16px; overflow:hidden;
    cursor:pointer; position:relative; background:#f1f5f9;
    box-shadow:0 4px 16px rgba(11,45,114,0.08); border:1px solid rgba(226,232,240,0.7);
    transition:opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
}
.gl-item:hover { box-shadow:0 14px 40px rgba(11,45,114,0.14); }
.gl-item img { width:100%; display:block; transition:transform 0.6s cubic-bezier(0.165,0.84,0.44,1); }
.gl-item-tall img { min-height:320px; object-fit:cover; }
.gl-item:hover img { transform:scale(1.06); }
/* Hidden state set by JS for progressive enhancement */
.gl-item.gl-will-animate { opacity:0; transform:translateY(30px); }
.gl-item.gl-visible { opacity:1 !important; transform:translateY(0) !important; }
.gl-empty-state { 
    text-align:center; 
    padding:5rem 2rem; 
    color:var(--gray); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}
.gl-empty-state h3 { font-size:1.4rem; font-weight:700; color:var(--dark); margin-bottom:0.75rem; }
.gl-empty-state p  { font-size:0.9rem; margin-bottom:2rem; max-width: 500px; }

/* Overlay: top row (pill + zoom) + bottom row (title + desc) */
.gl-overlay {
    position:absolute; inset:0;
    background:linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 45%, transparent 70%);
    opacity:0; transition:opacity 0.35s ease;
    display:flex; flex-direction:column; justify-content:space-between; padding:0.85rem;
}
.gl-item:hover .gl-overlay { opacity:1; }

.gl-overlay-top { display:flex; align-items:flex-start; justify-content:space-between; gap:0.5rem; }
.gl-cat-pill { font-size:0.65rem; font-weight:700; padding:4px 10px; border-radius:50px; backdrop-filter:blur(8px); text-transform:uppercase; letter-spacing:0.5px; white-space:nowrap; }
.gl-zoom-icon {
    width:32px; height:32px; border-radius:9px; flex-shrink:0;
    background:rgba(255,255,255,0.18); backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,0.25); color:white;
    display:flex; align-items:center; justify-content:center; font-size:0.8rem;
    cursor:pointer; transform:scale(0.8); opacity:0; transition:all 0.25s ease;
}
.gl-item:hover .gl-zoom-icon { transform:scale(1); opacity:1; }
.gl-zoom-icon:hover { background:rgba(255,255,255,0.35); }

.gl-overlay-bot { display:flex; flex-direction:column; gap:0.3rem; }
.gl-item-title { font-size:0.85rem; font-weight:700; color:white; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.gl-item-desc  { font-size:0.72rem; color:rgba(255,255,255,0.65); line-height:1.4; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }

/* Consolidating and Centering Gallery Empty State */
.gl-empty-state { 
    text-align:center; 
    padding:5rem 2rem; 
    color:var(--gray); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}
.gl-empty-icon  { font-size:4rem; margin-bottom:1.5rem; opacity:0.35; }
.gl-empty-state h3 { font-size:1.4rem; font-weight:700; color:var(--dark); margin-bottom:0.75rem; }
.gl-empty-state p  { font-size:0.9rem; margin-bottom:2rem; max-width: 500px; }
.gl-empty-btn { display:inline-flex; align-items:center; gap:8px; background:var(--gradient-primary); color:white; padding:10px 24px; border-radius:50px; font-size:0.85rem; font-weight:700; text-decoration:none; transition:all 0.25s; box-shadow:0 6px 20px rgba(11,45,114,0.25); }
.gl-empty-btn:hover { transform:translateY(-2px); box-shadow:0 10px 30px rgba(11,45,114,0.3); }

/* Lightbox */
.gl-modal { position:fixed; inset:0; background:rgba(0,0,0,0.96); backdrop-filter:blur(12px); z-index:9999; display:none; align-items:center; justify-content:center; padding:2rem; }
.gl-modal.active { display:flex; }
.gl-modal-content { display:flex; flex-direction:column; align-items:center; gap:1.25rem; max-width:920px; width:100%; animation:glModalIn 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes glModalIn { from{opacity:0;transform:scale(0.9)} to{opacity:1;transform:scale(1)} }
.gl-modal-img-wrap { width:100%; max-height:72vh; border-radius:16px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#111; position:relative; min-height:200px; }
.gl-modal-img-wrap img { max-width:100%; max-height:72vh; object-fit:contain; display:block; transition:opacity 0.3s ease; }
.gl-modal-loader { position:absolute; inset:0; display:none; align-items:center; justify-content:center; color:rgba(255,255,255,0.6); font-size:2rem; }
.gl-modal-info { text-align:center; color:white; width:100%; }
.gl-modal-cat-label { display:inline-block; font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:2px; padding:4px 14px; border-radius:50px; margin-bottom:0.6rem; backdrop-filter:blur(6px); }
.gl-modal-info h3 { font-size:1.25rem; font-weight:800; margin-bottom:0.4rem; }
.gl-modal-info p  { font-size:0.88rem; color:rgba(255,255,255,0.55); line-height:1.6; }
.gl-modal-counter { font-size:0.75rem; color:rgba(255,255,255,0.35); margin-top:0.5rem; font-weight:600; }

.gl-modal-close { position:fixed; top:1.25rem; right:1.25rem; width:44px; height:44px; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); border-radius:12px; color:white; font-size:1rem; cursor:pointer; transition:all 0.25s; display:flex; align-items:center; justify-content:center; z-index:10; }
.gl-modal-close:hover { background:rgba(255,255,255,0.25); }
.gl-modal-prev, .gl-modal-next { position:fixed; top:50%; transform:translateY(-50%); width:50px; height:50px; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.15); border-radius:50%; color:white; font-size:1.1rem; cursor:pointer; transition:all 0.25s; display:flex; align-items:center; justify-content:center; z-index:10; }
.gl-modal-prev { left:1.25rem; }
.gl-modal-next { right:1.25rem; }
.gl-modal-prev:hover, .gl-modal-next:hover { background:white; color:#0f172a; transform:translateY(-50%) scale(1.1); }

@media (max-width:1024px) { .gl-masonry{columns:3} .gl-uniform-grid{grid-template-columns:repeat(3,1fr)} }
@media (max-width:768px) {
    .gl-wrap{padding:0 1rem} .gl-filter-bar{top:70px}
    .gl-filter-inner{flex-direction:column;align-items:flex-start}
    .gl-controls{align-self:flex-end}
    .gl-masonry{columns:2} .gl-uniform-grid{grid-template-columns:repeat(2,1fr)}
    .gl-modal-prev{left:0.5rem} .gl-modal-next{right:0.5rem} .gl-modal{padding:1rem}
}
@media (max-width:480px) {
    .gl-masonry{columns:2;column-gap:0.6rem} .gl-uniform-grid{grid-template-columns:repeat(2,1fr);gap:0.6rem}
    .gl-tabs{gap:0.3rem} .gl-tab{padding:6px 12px;font-size:0.78rem} .gl-showing{display:none}
}


/* ══════════════════════════════════════════════════════════════════
   FASILITAS PAGE  (fs- prefix)
   Identity: Premium Showcase · Alternating Blocks · Icon Badges
   Updated for Premium Mobile Experience
══════════════════════════════════════════════════════════════════ */
.fs-main {
    padding: 6rem 0 8rem;
    background: #f8fafc;
}

.fs-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.fs-header {
    text-align: center;
    margin-bottom: 5rem;
}

.fs-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.fs-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.fs-showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.fs-facility-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: white;
    padding: 3rem;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(11, 45, 114, 0.04);
    border: 1px solid rgba(11, 45, 114, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    will-change: transform, opacity;
}

.fs-facility-block.is-visible {
    opacity: 1;
    transform: translate(0) !important;
}

.fs-facility-block.fs-block-normal {
    transform: translateX(-60px);
}

.fs-facility-block.fs-block-alt {
    transform: translateX(60px);
}

.fs-block-alt {
    direction: rtl;
}

.fs-block-alt > * {
    direction: ltr;
}

.fs-facility-block:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 30px 70px rgba(11, 45, 114, 0.1);
}

/* Image Side */
.fs-img-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.fs-img-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 25px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.fs-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fs-img-main:hover img {
    transform: scale(1.1);
}

.fs-img-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 18px;
    background: white;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.fs-img-thumbs {
    display: flex;
    gap: 10px;
    padding: 5px;
}

.fs-img-thumb {
    flex: 1;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.fs-img-thumb:hover, .fs-img-thumb.active {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Info Side */
.fs-info-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fs-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.fs-name {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.2;
}

.fs-desc {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
}

.fs-divider {
    height: 4px;
    width: 70px;
    border-radius: 10px;
}

.fs-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.fs-feature-list span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

.fs-feature-list i {
    font-size: 1.1rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .fs-facility-block {
        gap: 3rem;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .fs-main { padding: 4rem 0 6rem; }
    .fs-wrap { padding: 0 1.25rem; }
    .fs-header { margin-bottom: 3.5rem; }
    
    .fs-facility-block {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem;
        border-radius: 30px;
        transform: translateY(40px) !important; /* Vertical slide for mobile */
        opacity: 0;
    }
    
    .fs-facility-block.is-visible {
        transform: translateY(0) !important;
    }

    .fs-img-main {
        border-radius: 20px;
        height: 220px;
    }

    .fs-img-thumbs {
        display: none; /* Keep mobile view clean */
    }

    .fs-info-side {
        text-align: center;
        align-items: center;
        gap: 1.25rem;
    }

    .fs-divider { margin: 0 auto; }
    
    .fs-feature-list {
        grid-template-columns: 1fr;
        width: 100%;
        text-align: left;
    }

    .fs-feature-list span {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .fs-main { padding: 2rem 0 4rem; }
    .fs-name { font-size: 1.35rem; }
    .fs-desc { font-size: 0.88rem; line-height: 1.6; text-align: center; }
    .fs-facility-block { 
        padding: 1.25rem;
        gap: 1.25rem;
        border-radius: 20px;
        margin: 0 0.75rem;
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateY(20px) !important;
    }
    .fs-img-main {
        height: 150px;
        border-radius: 12px;
        aspect-ratio: auto;
    }
    .fs-img-tag {
        top: 10px;
        left: 10px;
        padding: 4px 12px;
        font-size: 0.65rem;
    }
    .fs-feature-list {
        gap: 0.6rem;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .fs-feature-list span {
        font-size: 0.82rem;
        justify-content: center;
    }
    .fs-icon-badge {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ══════════════════════════════════════════════════════════════════
   VISI-MISI PAGE  (vm- prefix)
   No timeline / no ugly lines — clean modern card layout
══════════════════════════════════════════════════════════════════ */

.vm-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    width: 100%;
}

/* ─── Shared header/label ─── */
.vm-label-top {
    text-align: center;
    margin-bottom: 2.5rem;
}

.vm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(11,45,114,0.08);
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.misi-badge { background: rgba(16,185,129,0.1); color: #059669; }
.k7-badge   { background: rgba(245,158,11,0.1);  color: #d97706; }

.vm-label-top h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.vm-label-top p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ─── VISI SECTION ─── */
.vm-visi-section {
    background: white;
    padding: 4rem 0 3.5rem;
}

.vm-visi-card {
    position: relative;
    background: var(--gradient-primary);
    border-radius: 28px;
    padding: 4rem 5rem;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(11,45,114,0.2);
}

.vm-visi-card::before,
.vm-visi-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.vm-visi-card::before {
    width: 400px; height: 400px;
    top: -30%; right: -10%;
}

.vm-visi-card::after {
    width: 250px; height: 250px;
    bottom: -20%; left: -5%;
}

.vm-visi-deco {
    font-size: 4rem;
    color: rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
    line-height: 1;
}

.vm-deco-tl { text-align: left; margin-bottom: -1rem; }
.vm-deco-br { text-align: right; margin-top: -1rem; }

.vm-visi-text {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 600;
    color: white;
    line-height: 1.9;
    font-style: italic;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* ─── MISI SECTION ─── */
.vm-misi-section {
    background: #f8fafc;
    padding: 4rem 0 5rem;
}

.vm-misi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.vm-misi-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    box-shadow: 0 2px 12px rgba(11,45,114,0.05);
    border: 1px solid rgba(226,232,240,0.8);
    transition: var(--transition);
}

.vm-misi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(11,45,114,0.1);
    border-color: transparent;
}

.vm-misi-card-full {
    grid-column: 1 / -1;
}

.vm-misi-num-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.vm-misi-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vm-misi-iconbox {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.vm-misi-body { flex: 1; min-width: 0; }

.vm-misi-body h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.vm-misi-body p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* ─── 7K SECTION ─── */
.vm-7k-section {
    background: white;
    padding: 4rem 0 5rem;
}

.vm-7k-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* Last row: 3 items centered */
.vm-7k-grid .vm-7k-card:nth-child(5),
.vm-7k-grid .vm-7k-card:nth-child(6),
.vm-7k-grid .vm-7k-card:nth-child(7) {
    /* naturally flows to next row */
}

.vm-7k-card {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 20px;
    background: #f8fafc;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.vm-7k-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--k-color, var(--primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 20px 20px;
}

.vm-7k-card:hover {
    border-color: var(--k-color, var(--primary));
    background: white;
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

.vm-7k-card:hover::before { transform: scaleX(1); }

.vm-7k-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    line-height: 1;
}

.vm-7k-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--k-color, var(--primary));
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
}

.vm-7k-label {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 500;
}

.vm-7k-label strong {
    font-weight: 800;
    color: var(--k-color, var(--primary));
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .vm-7k-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .vm-wrap          { padding: 0 1rem; }
    .vm-visi-card     { padding: 2.5rem 1.75rem; }
    .vm-visi-deco     { font-size: 2.5rem; }
    .vm-misi-grid     { grid-template-columns: 1fr; }
    .vm-misi-card-full { grid-column: 1; }
    .vm-7k-grid       { grid-template-columns: repeat(2, 1fr); }
    .vm-label-top h2  { font-size: 1.6rem; }
    .vm-visi-section  { padding: 2.5rem 0 2rem; }
    .vm-misi-section,
    .vm-7k-section    { padding: 2.5rem 0 3rem; }
}

@media (max-width: 480px) {
    .vm-visi-card  { padding: 2rem 1.25rem; }
    .vm-visi-text  { font-size: 1rem; }
    .vm-misi-card  { flex-direction: column; gap: 0.75rem; }
    .vm-misi-num-wrap { flex-direction: row; align-items: center; }
    .vm-7k-grid    { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .vm-7k-card    { padding: 1.5rem 0.75rem; }
    .vm-7k-icon    { font-size: 2rem; }
}

/* ─── Also hide old timeline classes (in case cached) ─── */
.timeline-section-wrapper,
.timeline-container,
.timeline-line,
.timeline-row,
.timeline-col,
.timeline-marker-wrapper,
.timeline-number,
.timeline-card { display: none !important; }

/* ══════════════════════════════════════════════════════════════════
   VISI-MISI SCROLL ANIMATIONS
══════════════════════════════════════════════════════════════════ */

/* ─ Keyframes ─ */
@keyframes vmFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes vmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes vmSlideLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes vmSlideRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes vmPopIn {
    0%   { opacity: 0; transform: scale(0.75) translateY(20px); }
    70%  { transform: scale(1.04) translateY(-4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes vmVisiReveal {
    0%   { opacity: 0; transform: scale(0.96) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─ Initial hidden states (before observer triggers) ─ */
.vm-animate {
    opacity: 0;
    /* prevent flash on load */
}

/* ─ Active class — applied by JS ─ */
.vm-animate.vm-in {
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.vm-fade-up.vm-in    { animation: vmFadeUp 0.7s both cubic-bezier(0.22,1,0.36,1); }
.vm-fade-in.vm-in    { animation: vmFadeIn 0.6s both ease; }
.vm-slide-l.vm-in    { animation: vmSlideLeft 0.7s both cubic-bezier(0.22,1,0.36,1); }
.vm-slide-r.vm-in    { animation: vmSlideRight 0.7s both cubic-bezier(0.22,1,0.36,1); }
.vm-pop.vm-in        { animation: vmPopIn 0.65s both cubic-bezier(0.34,1.56,0.64,1); }
.vm-visi-reveal.vm-in { animation: vmVisiReveal 0.9s both cubic-bezier(0.22,1,0.36,1); }

/* ─ Stagger delay helpers ─ */
.vm-d1  { animation-delay: 0.05s !important; }
.vm-d2  { animation-delay: 0.12s !important; }
.vm-d3  { animation-delay: 0.19s !important; }
.vm-d4  { animation-delay: 0.26s !important; }
.vm-d5  { animation-delay: 0.33s !important; }
.vm-d6  { animation-delay: 0.40s !important; }
.vm-d7  { animation-delay: 0.47s !important; }
.vm-d8  { animation-delay: 0.54s !important; }
.vm-d9  { animation-delay: 0.58s !important; }
.vm-d10 { animation-delay: 0.62s !important; }
.vm-d11 { animation-delay: 0.66s !important; }

/* ══════════════════════════════════════════════════════════════════
   SAMBUTAN KEPALA SEKOLAH — PREMIUM (sm- prefix)
══════════════════════════════════════════════════════════════════ */

.sm-section {
    position: relative;
    padding: 5rem 0 6rem;
    background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 50%, #f8fafc 100%);
    overflow: hidden;
}

/* Decorative background blobs */
.sm-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.sm-blob-1 {
    width: 500px; height: 500px;
    background: rgba(11,45,114,0.06);
    top: -100px; left: -150px;
}

.sm-blob-2 {
    width: 400px; height: 400px;
    background: rgba(9,146,194,0.07);
    bottom: -100px; right: -100px;
}

/* ─── Wrap ─── */
.sm-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* ─── Section Header ─── */
.sm-header {
    text-align: center;
    margin-bottom: 3.5rem;
    /* start hidden for animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.sm-header.sm-in {
    opacity: 1;
    transform: translateY(0);
}

.sm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11,45,114,0.08);
    color: var(--primary);
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.sm-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.2;
}

.sm-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Inner Layout ─── */
.sm-inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ─── LEFT: Profile Card ─── */
.sm-profile {
    background: linear-gradient(145deg, #0b2d72 0%, #0a3a8f 40%, #0992c2 100%);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(11,45,114,0.3);
    /* hidden for animation */
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}

.sm-profile.sm-in {
    opacity: 1;
    transform: translateX(0);
}

/* Decorative deco circles */
.sm-profile-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.sm-deco-1 { width: 200px; height: 200px; top: -60px; right: -60px; }
.sm-deco-2 { width: 150px; height: 150px; bottom: -50px; left: -30px; }

/* Photo */
.sm-photo-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.sm-photo-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #facc15, #0992c2, #0b2d72, #facc15);
    animation: smRingSpin 4s linear infinite;
    z-index: 0;
}

@keyframes smRingSpin {
    to { transform: rotate(360deg); }
}

.sm-photo {
    position: relative;
    z-index: 1;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    display: block;
}

.sm-photo-verified {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Name */
.sm-profile-name { margin-bottom: 2rem; }

.sm-profile-name h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

.sm-profile-name p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sm-profile-name i { color: #facc15; }

/* Stats */
.sm-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.12);
}

.sm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
}

.sm-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.sm-stat-plus {
    font-size: 1rem;
    font-weight: 900;
    color: #facc15;
    line-height: 1;
    margin-top: -0.5rem;
    align-self: flex-start;
    margin-left: 2px;
}

.sm-stat-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.sm-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* Badges */
.sm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.sm-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.sm-badge-item i { color: #facc15; }

/* ─── RIGHT: Message Panel ─── */
.sm-message {
    background: white;
    border-radius: 28px;
    padding: 3.5rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(11,45,114,0.07);
    border: 1px solid rgba(226,232,240,0.8);
    /* hidden for animation */
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1) 0.15s,
                transform 0.8s cubic-bezier(0.22,1,0.36,1) 0.15s;
}

.sm-message.sm-in {
    opacity: 1;
    transform: translateX(0);
}

/* Big decorative quote mark */
.sm-big-quote {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    font-size: 9rem;
    font-family: Georgia, serif;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
}

/* Greeting */
.sm-greeting {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    font-style: italic;
    margin-bottom: 1.75rem;
    padding-left: 1.25rem;
    border-left: 4px solid var(--accent);
}

/* Body paragraphs */
.sm-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.sm-body p {
    font-size: 0.97rem;
    line-height: 1.9;
    color: #374151;
}

.sm-body p strong {
    color: var(--primary);
    font-weight: 700;
}

/* Closing */
.sm-closing {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    font-style: italic;
    margin-bottom: 2rem;
}

/* Signature */
.sm-signature {
    border-top: 1px solid var(--gray-light);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sm-sig-wave {
    width: 140px;
    color: var(--primary);
    opacity: 0.6;
}

.sm-sig-wave svg { width: 100%; height: auto; }

.sm-sig-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sm-sig-date {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-sig-date i { color: var(--primary-light); }

.sm-sig-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.sm-sig-pos {
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .sm-inner { grid-template-columns: 300px 1fr; gap: 2rem; }
    .sm-message { padding: 2.5rem; }
}

@media (max-width: 768px) {
    .sm-wrap    { padding: 0 1rem; }
    .sm-section { padding: 3.5rem 0 4rem; }
    .sm-inner   {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .sm-profile {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
        transform: translateY(40px); /* mobile: slide from bottom */
    }
    .sm-profile.sm-in { transform: translateY(0); }
    .sm-message {
        transform: translateY(40px);
        transition-delay: 0.1s;
    }
    .sm-message.sm-in { transform: translateY(0); }
    .sm-message { padding: 2rem 1.5rem; }
    .sm-big-quote { font-size: 6rem; }
    .sm-title   { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .sm-stats   { gap: 0.6rem; padding: 1rem 0.75rem; }
    .sm-stat-num { font-size: 1.4rem; }
    .sm-photo-wrap, .sm-photo { width: 120px; height: 120px; }
    .sm-message { padding: 1.5rem 1.25rem; }
    .sm-body p  { font-size: 0.92rem; }
}
