/* ============================================================
   SD Negeri 1 Tugurejo — Premium Design System
   ============================================================ */

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

/* CSS Variables */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --teal: #14b8a6;
  --teal-light: #5eead4;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent) 100%
  );
  --gradient-dark: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-light) 100%
  );
  --gradient-teal: linear-gradient(135deg, var(--teal) 0%, #06b6d4 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-700);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.3;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--slate-100);
}
::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.5);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out both;
}
.animate-delay-1 {
  animation-delay: 0.1s;
}
.animate-delay-2 {
  animation-delay: 0.2s;
}
.animate-delay-3 {
  animation-delay: 0.3s;
}
.animate-delay-4 {
  animation-delay: 0.4s;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  padding: 0.8rem 0;
  z-index: 1050;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900) !important;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.navbar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: var(--transition);
}

.navbar-brand:hover img {
  transform: rotate(-5deg) scale(1.05);
}

.navbar-brand .brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 500;
  color: var(--slate-600) !important;
  margin-left: 0.5rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  font-size: 0.938rem;
}

.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(79, 70, 229, 0.06);
}

.nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.btn-login {
  background: var(--gradient-primary);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.55rem 1.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
}

.navbar-toggler {
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  transition: var(--transition);
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel .carousel-item {
  height: 92vh;
  min-height: 550px;
  max-height: 800px;
}

.hero-carousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  transition: transform 8s ease;
}

.hero-carousel .carousel-item.active img {
  transform: scale(1.05);
}

.hero-carousel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.3) 0%,
    rgba(15, 23, 42, 0.1) 40%,
    rgba(15, 23, 42, 0.6) 100%
  );
  z-index: 1;
}

.hero-carousel .carousel-caption {
  z-index: 2;
  bottom: 18%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
}

.hero-carousel .carousel-caption h5 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  text-transform: none;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out both;
}

.hero-carousel .carousel-caption p {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-carousel .carousel-indicators {
  bottom: 30px;
  z-index: 3;
  gap: 8px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  opacity: 1;
  transition: var(--transition);
}

.hero-carousel .carousel-indicators .active {
  background: var(--white);
  border-color: var(--white);
  width: 36px;
  border-radius: var(--radius-full);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition);
  margin: 0 1.5rem;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
  opacity: 1;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: white;
  text-align: center;
  animation: bounceDown 2s ease-in-out infinite;
  opacity: 0.8;
  cursor: pointer;
  text-decoration: none;
}
.scroll-down i {
  font-size: 1.5rem;
  display: block;
}
.scroll-down span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--slate-500);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   WELCOME SECTION
   ============================================================ */
.welcome-section {
  padding: 6rem 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.welcome-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.04) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.welcome-photo-wrapper {
  position: relative;
  display: inline-block;
}

.welcome-photo {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  position: relative;
  z-index: 1;
}

.welcome-photo-wrapper::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 36px;
  background: var(--gradient-primary);
  z-index: 0;
  opacity: 0.2;
}

.welcome-photo-wrapper::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: rgba(79, 70, 229, 0.06);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.welcome-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--slate-900);
}

.welcome-content .lead {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.8;
}

.welcome-content .quote-mark {
  font-size: 4rem;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: Georgia, serif;
  margin-bottom: -0.5rem;
  display: block;
}

/* ============================================================
   CARDS — Premium Glass-style
   ============================================================ */
.card {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.news-card .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .card-img-top {
  transform: scale(1.08);
}

.news-card .card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.news-card .card-img-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.05));
}

.card-body {
  padding: 1.5rem;
  position: relative;
}

.card-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--slate-800);
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: var(--primary);
}

.card-text {
  color: var(--slate-500);
  font-size: 0.92rem;
  line-height: 1.7;
}

.card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--slate-400);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.card-date i {
  color: var(--primary-light);
}

/* ============================================================
   BUTTONS — Premium Gradient
   ============================================================ */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
  background: var(--gradient-primary);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary i {
  position: relative;
  z-index: 1;
}

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid rgba(79, 70, 229, 0.3);
  border-radius: var(--radius-full);
  padding: 0.6rem 2rem;
  font-weight: 600;
  font-size: 0.92rem;
  background: transparent;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
  transform: translateY(-2px);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  padding: 5rem 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -25%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.stats-section::after {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-5px);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
  color: var(--white);
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.stat-card h3 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.3rem;
  letter-spacing: -1px;
}

.stat-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
  padding: 6rem 0;
  background: var(--slate-50);
  position: relative;
}

.news-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 70, 229, 0.15),
    transparent
  );
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-wave {
  position: relative;
  margin-top: -2px;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  background: var(--gradient-dark);
  color: var(--slate-400);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.footer h5 {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.footer p {
  line-height: 1.8;
  font-size: 0.92rem;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.footer ul li i {
  color: var(--primary-light);
  margin-right: 0.5rem;
  width: 16px;
}

.footer a {
  color: var(--slate-400);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
}

.footer .footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-links li {
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: "→";
  font-size: 0.8rem;
  color: var(--primary-light);
  transition: var(--transition);
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

.social-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-right: 8px;
  color: var(--slate-400);
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: var(--white) !important;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  margin-top: 3rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
  z-index: 1000;
  font-size: 1.1rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(79, 70, 229, 0.45);
}

/* ============================================================
   PAGE HERO BANNER (Profile, Contact, News)
   ============================================================ */
.page-hero {
  background: var(--gradient-primary);
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  border-radius: 50%;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 60%
  );
  border-radius: 50%;
}

.page-hero h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-decoration: none;
}

.page-hero .breadcrumb-item.active {
  color: var(--white);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-card {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.profile-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.profile-card.visi-card {
  border-left-color: var(--primary);
}

.profile-card.misi-card {
  border-left-color: var(--accent);
}

.profile-card.sejarah-card {
  border-left-color: var(--teal);
}

.profile-card .card-body {
  padding: 2rem;
}

.profile-card .card-title {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-card .card-title .icon-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.profile-card.visi-card .icon-circle {
  background: var(--gradient-primary);
}
.profile-card.misi-card .icon-circle {
  background: linear-gradient(135deg, var(--accent), #9333ea);
}
.profile-card.sejarah-card .icon-circle {
  background: var(--gradient-teal);
}

.misi-list {
  list-style: none;
  padding: 0;
  counter-reset: misi;
}

.misi-list li {
  counter-increment: misi;
  padding: 0.75rem 0;
  padding-left: 3rem;
  position: relative;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.95rem;
  line-height: 1.7;
}

.misi-list li:last-child {
  border-bottom: none;
}

.misi-list li::before {
  content: counter(misi);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 28px;
  height: 28px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--slate-100);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item .icon-box {
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .icon-box {
  background: var(--gradient-primary);
  color: var(--white);
}

.contact-item .contact-detail strong {
  display: block;
  color: var(--slate-800);
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.contact-item .contact-detail span {
  color: var(--slate-500);
  font-size: 0.88rem;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form-card .form-label {
  font-weight: 600;
  color: var(--slate-700);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.contact-form-card .form-control {
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  transition: var(--transition);
  background: var(--slate-50);
}

.contact-form-card .form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  background: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-link {
    margin-left: 0;
    padding: 0.6rem 1rem !important;
  }
  .nav-link.active::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-carousel .carousel-item {
    height: 75vh;
    min-height: 400px;
  }
  .hero-carousel .carousel-caption {
    bottom: 12%;
    padding: 1.5rem;
  }
  .hero-carousel .carousel-caption h5 {
    font-size: 1.6rem;
  }
  .hero-carousel .carousel-caption p {
    font-size: 0.95rem;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .welcome-section {
    padding: 4rem 0;
  }
  .welcome-photo {
    width: 160px;
    height: 160px;
  }
  .stat-card h3 {
    font-size: 2.2rem;
  }
  .page-hero {
    padding: 4rem 0 2.5rem;
  }
  .page-hero h1 {
    font-size: 1.8rem;
  }
  .footer {
    padding: 3rem 0 1.5rem;
    text-align: center;
  }
  .footer .footer-brand {
    justify-content: center;
  }
  .footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-links a {
    justify-content: center;
  }
  .footer .social-icon {
    margin: 0 4px;
  }
  .footer ul li i {
    display: inline-block;
  }
}

@media (max-width: 576px) {
  .hero-carousel .carousel-item {
    height: auto;
    min-height: auto;
  }
  .hero-carousel .carousel-item img {
    height: auto;
    min-height: auto;
    position: relative;
  }
  .hero-carousel .carousel-caption h5 {
    font-size: 1.3rem;
  }
  .hero-carousel .carousel-caption p {
    font-size: 0.85rem;
  }
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }
  .navbar-brand {
    font-size: 1.1rem;
  }
  .navbar-brand img {
    width: 34px;
    height: 34px;
  }
}
