/* ==========================================
   SCHOOL WEBSITE - Modern Blue Theme
   ========================================== */

/* CSS Variables */
:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2450;
  --primary-light: #2a5298;
  --accent: #d4a843;
  --accent-light: #f0d68a;
  --white: #ffffff;
  --light-bg: #f4f7fc;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --dark: #1a1a2e;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 5px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Dark Mode */
[data-theme="dark"] {
  --primary: #2a5298;
  --primary-dark: #1a3a6b;
  --light-bg: #1e1e2e;
  --dark: #f4f7fc;
  --text: #e0e0e0;
  --text-light: #b0b0b0;
  --gray-light: #2a2a3e;
  --shadow: 0 5px 20px rgba(0,0,0,0.3);
  --shadow-hover: 0 10px 40px rgba(0,0,0,0.4);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.4rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 10px auto 0;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
  padding: 15px 0;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
}

.nav-logo h1 {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

.nav-logo h1 span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links > li > a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--primary);
  background: rgba(26, 58, 107, 0.06);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 8px;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
}

.dropdown-menu li a:hover {
  background: var(--light-bg);
  color: var(--primary);
}

/* Dark Mode Toggle */
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text);
}

.theme-toggle:hover {
  background: var(--light-bg);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  animation: float 6s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
  50% { transform: translateY(-30px) rotate(180deg); opacity: 0.6; }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 168, 67, 0.2);
  border: 1px solid rgba(212, 168, 67, 0.3);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.btn-primary:hover {
  background: #c49a35;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  height: 400px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img,
.hero-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stats */
.stats {
  background: var(--white);
  margin-top: -60px;
  position: relative;
  z-index: 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 800;
}

.stat-item h3 span {
  color: var(--accent);
}

.stat-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 5px;
}

/* ==========================================
   SAMBUTAN KEPALA SEKOLAH
   ========================================== */
.welcome-section {
  background: var(--light-bg);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.welcome-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.welcome-photo img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.welcome-text h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.welcome-text .position {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}

.welcome-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.welcome-text .signature {
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}

/* ==========================================
   PROFILE SHORT
   ========================================== */
.profile-short-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.profile-card .icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.5rem;
}

.profile-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.profile-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================
   PROGRAMS
   ========================================== */
.programs-section {
  background: var(--light-bg);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.program-card .icon {
  width: 70px;
  height: 70px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  font-size: 1.8rem;
  transition: var(--transition);
}

.program-card:hover .icon {
  background: var(--primary);
  color: var(--white);
}

.program-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.program-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================
   BERITA / NEWS
   ========================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.news-thumb {
  height: 220px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  overflow: hidden;
}

.news-thumb .category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-body {
  padding: 25px;
}

.news-body .date {
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.news-body h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.news-body .read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-body .read-more:hover {
  color: var(--accent);
  gap: 8px;
}

/* ==========================================
   GALLERY
   ========================================== */
.gallery-section {
  background: var(--light-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 107, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  font-size: 1.5rem;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials {
  background: var(--white);
}

.testimonial-slider {
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  text-align: center;
}

.testimonial-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.testimonial-card blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-card .name {
  font-weight: 700;
  color: var(--primary);
}

.testimonial-card .role {
  color: var(--text-light);
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.slider-controls button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--gray-light);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-controls button:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ==========================================
   CTA / PPDB
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,168,67,0.1) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  font-size: 1.1rem;
  padding: 16px 40px;
}

/* ==========================================
   FAQ
   ========================================== */
.faq-section {
  background: var(--light-bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .faq-toggle {
  font-size: 1.3rem;
  transition: var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-question .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 25px 20px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact li i {
  margin-top: 5px;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ==========================================
   WHATSAPP FLOAT
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float a:hover {
  transform: scale(1.1);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 25px;
  z-index: 999;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ==========================================
   PAGE HEADER (for inner pages)
   ========================================== */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: var(--white);
  position: relative;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    height: 300px;
    order: -1;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .welcome-photo img {
    height: 250px;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 15px;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    height: 200px;
  }

  .stats {
    padding: 25px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .stat-item h3 {
    font-size: 1.8rem;
  }

  .news-grid,
  .programs-grid,
  .gallery-grid,
  .profile-short-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .welcome-text h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .nav-logo h1 {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .stat-item h3 {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .testimonial-card {
    padding: 20px;
  }

  .whatsapp-float a {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   PAGE SPECIFIC STYLES
   ========================================== */

/* Profile Page */
.profile-content {
  max-width: 900px;
  margin: 0 auto;
}

.profile-content h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin: 40px 0 20px;
}

.profile-content h2:first-child {
  margin-top: 0;
}

.profile-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

.profile-content ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.profile-content ul li {
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Organizational Structure */
.org-structure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
}

.org-level {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.org-box {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 15px 25px;
  text-align: center;
  min-width: 160px;
  transition: var(--transition);
}

.org-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.org-box h4 {
  color: var(--primary);
  font-size: 0.95rem;
}

.org-box p {
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 0;
}

.org-box.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.org-box.primary h4,
.org-box.primary p {
  color: var(--white);
}

.org-connector {
  width: 2px;
  height: 30px;
  background: var(--gray-light);
}

/* Teacher Cards */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.teacher-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--gray-light);
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.teacher-photo {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.teacher-info {
  padding: 20px;
}

.teacher-info h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 5px;
}

.teacher-info .jabatan {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.teacher-info .mapel {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Student Activities */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.activity-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
}

.activity-body {
  padding: 20px;
}

.activity-body h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.activity-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* PPDB Form */
.ppdb-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

/* Info Cards */
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  margin-bottom: 25px;
}

.info-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.info-card ul {
  list-style: disc;
  padding-left: 20px;
}

.info-card ul li {
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Achievement */
.achievement-list {
  display: grid;
  gap: 15px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}

.achievement-item .medal {
  font-size: 1.8rem;
  min-width: 40px;
  text-align: center;
}

.achievement-item .info h4 {
  font-size: 1rem;
  color: var(--text);
}

.achievement-item .info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Academic Calendar */
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.calendar-table th,
.calendar-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.calendar-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

.calendar-table td {
  color: var(--text-light);
  font-size: 0.9rem;
}

.calendar-table tr:hover td {
  background: var(--light-bg);
}

/* Registration steps */
.steps-list {
  counter-reset: step;
  max-width: 700px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.step-number {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 5px;
}

.step-content p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Organization */
.osis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.osis-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--gray-light);
  padding: 25px;
  transition: var(--transition);
}

.osis-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.osis-card .avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--white);
  font-size: 1.8rem;
}

.osis-card h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 5px;
}

.osis-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Extracurricular */
.ekskul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.ekskul-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.ekskul-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.ekskul-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--primary);
  font-size: 1.5rem;
}

.ekskul-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.ekskul-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

