/*
Theme Name: SMPN 1 PAGADEN
Theme URI: https://smpn1pagaden.sch.id
Author: Tim IT SMPN 1 Pagaden
Author URI: https://smpn1pagaden.sch.id
Description: Tema resmi WordPress untuk SMP NEGERI 1 PAGADEN Subang. Dilengkapi fitur Hero Slider, Running Text, Berita, Pengumuman, Galeri, Video, Tautan Pendidikan, integrasi Media Sosial, dan dukungan penuh Elementor & WordPress Customizer.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smpn1-pagaden
Tags: school, education, responsive-layout, custom-logo, custom-menu, featured-images, translation-ready, theme-options, elementor
*/

:root {
  --primary-color: #1e3a8a;
  --primary-hover: #1e40af;
  --secondary-color: #0284c7;
  --accent-color: #f59e0b;
  --text-color: #1f2937;
  --text-muted: #64748b;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* 1. TOP BAR */
.top-bar {
  background-color: #0f172a;
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
}
.contact-item .top-bar-icon {
  width: 14px;
  height: 14px;
  color: #f59e0b;
  flex-shrink: 0;
}
.npsn-badge {
  background: #1e293b;
  color: #f59e0b;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.75rem;
  border: 1px solid #334155;
}
.social-links, .top-bar-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.social-icon, .social-icon-link {
  width: 28px;
  height: 28px;
  background: #1e293b;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.2s ease;
  text-decoration: none;
}
.social-icon svg, .social-icon-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.social-icon:hover, .social-icon-link:hover {
  transform: translateY(-2px);
}
.social-icon.social-facebook:hover, .social-icon-link.social-facebook:hover {
  background: #1877f2;
}
.social-icon.social-instagram:hover, .social-icon-link.social-instagram:hover {
  background: #e1306c;
}
.social-icon.social-youtube:hover, .social-icon-link.social-youtube:hover {
  background: #ff0000;
}
.social-icon.social-tiktok:hover, .social-icon-link.social-tiktok:hover {
  background: #000000;
}
.social-icon.social-whatsapp:hover, .social-icon-link.social-whatsapp:hover {
  background: #25d366;
}

/* 2. SITE HEADER */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
.site-header.is-sticky {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}
.site-header-inner, .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.custom-logo-wrap, .custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.custom-logo {
  max-height: 56px;
  width: auto;
  border-radius: 50%;
  display: block;
}
.site-title-group {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.site-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #1e3a8a !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  display: block !important;
  visibility: visible !important;
}
.site-title a {
  color: #1e3a8a !important;
  text-decoration: none !important;
}
.site-title a:hover {
  color: #2563eb !important;
}
.site-description {
  font-size: 0.8125rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
  margin: 0.2rem 0 0 0 !important;
  display: block !important;
  visibility: visible !important;
  line-height: 1.3 !important;
}

/* NAVIGATION (FLAT - NO DROPDOWNS) */
.main-navigation {
  display: block;
}
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-navigation a {
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a {
  color: #1e3a8a;
  background: #eff6ff;
}
.nav-cta-btn {
  background: #1e3a8a !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: 8px !important;
  margin-left: 0.35rem;
}
.nav-cta-btn:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

/* STRICTLY DISABLE ALL DROPDOWNS AND SUBMENUS */
.main-navigation ul ul,
.main-navigation .sub-menu,
.main-navigation .children,
.mobile-toggle-btn,
.menu-toggle {
  display: none !important;
}

/* 3. RUNNING TEXT */
.running-text-bar {
  background: #0a1931;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-top: 1px solid #142d54;
  border-bottom: 1px solid #142d54;
}
.running-text-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.running-text-badge {
  background: var(--accent-color);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.6875rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}
.running-text-marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.running-text-content {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.05em;
  word-spacing: 0.15em;
  animation: smpn1-ticker 28s linear infinite;
}
.running-text-marquee:hover .running-text-content {
  animation-play-state: paused;
}
@keyframes smpn1-ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* 4. HERO SLIDER */
.hero-slider-section {
  position: relative;
  background: #0f172a;
  color: #ffffff;
  overflow: hidden;
  min-height: 480px;
}
.slider-container {
  position: relative;
  width: 100%;
  height: 520px;
}
.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
}
.slide-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  /* Neutral gradient scrim without blue tint - preserves original photo colors */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.38) 45%, transparent 100%);
  pointer-events: none;
}
.slide-caption {
  position: relative;
  z-index: 5;
  max-width: 640px;
  padding: 2rem 0;
}
.slide-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-color);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.slide-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
}
.slide-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}
.slide-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.btn-primary-slide {
  background: var(--accent-color);
  color: #0f172a;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}
.btn-primary-slide:hover {
  background: #fcd34d;
  color: #0f172a;
}
.btn-secondary-slide {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
}
.btn-secondary-slide:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.slider-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-50%) scale(1.08);
}
.prev-btn { left: 1.25rem; }
.next-btn { right: 1.25rem; }
.slider-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}
.slider-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-indicators .dot.active {
  width: 32px;
  border-radius: 10px;
  background: var(--accent-color);
}

/* 5. COMMON SECTION STYLES */
.section {
  padding: 4.5rem 0;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 1rem;
}
.section-subtitle {
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}
.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.section-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}
.view-all-link {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 6. STATS / PROFILE / TENTANG KAMI */
.school-stats-section {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}
.about-video-container {
  max-width: 1000px;
  margin: 0 auto 2.5rem auto;
}
.about-video-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.75rem;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
@media (max-width: 768px) {
  .about-video-card {
    grid-template-columns: 1fr;
  }
}
.about-video-desc .badge-pill {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.65rem;
}
.about-video-desc h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}
.about-video-desc p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.about-video-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.about-video-badges span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e3a8a;
  background: #f1f5f9;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}
.about-video-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  background: #000000;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1.1;
}
.stat-label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #0f172a;
  margin-top: 0.35rem;
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* 7. PRINCIPAL */
.principal-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}
.principal-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.principal-photo-wrap {
  text-align: center;
}
.principal-photo {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.principal-badge {
  margin-top: 1rem;
}
.principal-badge h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}
.principal-badge p {
  font-size: 0.8125rem;
  color: var(--secondary-color);
  font-weight: 600;
}
.principal-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.principal-text p {
  margin-bottom: 0.85rem;
  color: #334155;
  font-size: 0.9375rem;
}
.principal-quote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  font-style: italic;
  color: #475569;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* 8. CARDS / NEWS / ANNOUNCEMENTS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.custom-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.custom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.card-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  overflow: hidden;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.custom-card:hover .card-img-wrapper img {
  transform: scale(1.04);
}
.card-date-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  font-size: 0.75rem;
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}
.card-title a {
  color: #0f172a;
}
.card-title a:hover {
  color: var(--primary-color);
}
.card-excerpt {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}
.btn-read-more {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* ANNOUNCEMENTS (DENGAN FRAME PEMBATAS LENGKAP) */
.announcement-section {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}
.announcement-card,
.announcement-item {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}
.announcement-card:hover,
.announcement-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.08);
  transform: translateY(-2px);
}
.announcement-date,
.announcement-date-box {
  background: var(--primary-color, #1e3a8a);
  color: #ffffff;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.announcement-date .day,
.announcement-day {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}
.announcement-date .month,
.announcement-month {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}
.announcement-info {
  flex: 1;
}
.announcement-info h4,
.announcement-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  line-height: 1.35;
}
.announcement-info p,
.announcement-summary {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}
.announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.announcement-btn,
.btn-download-pdf,
.btn-download {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--primary-color, #1e3a8a);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.announcement-btn:hover,
.btn-download-pdf:hover,
.btn-download:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
}

/* 9. EXTRACURRICULAR (PENGEMBANGAN DIRI) */
.activities-section {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}
.activities-grid,
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.activity-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}
.activity-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.activity-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}
.activity-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
  padding: 4px;
  border: 1px solid #e2e8f0;
}
.activity-icon {
  font-size: 2rem;
  line-height: 1;
}
.activity-title,
.activity-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.activity-desc,
.activity-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 10. ACHIEVEMENTS (PRESTASI DENGAN FRAME SETIAP KOLOM & SLIDER MANUAL) */
.achievements-section {
  background: linear-gradient(180deg, #0a1931 0%, #0d2246 50%, #0a1931 100%);
  color: #ffffff;
  border-top: 2px solid rgba(245, 158, 11, 0.35);
  border-bottom: 2px solid rgba(245, 158, 11, 0.35);
  position: relative;
  overflow: hidden;
}
.achievements-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gold-text {
  color: #f59e0b !important;
}
.text-white {
  color: #ffffff !important;
}
.text-light {
  color: #94a3b8 !important;
}
.slider-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-achieve-nav {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0f244a;
  border: 2px solid rgba(245, 158, 11, 0.5);
  color: #f59e0b;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.btn-achieve-nav:hover {
  background: #f59e0b;
  color: #071326;
  border-color: #f59e0b;
  transform: translateY(-2px);
}
.btn-achieve-nav:active {
  transform: translateY(0);
}

.achieve-slider-track-wrap {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0 1rem 0;
}
.achieve-slider-track-wrap::-webkit-scrollbar {
  display: none;
}
.achievements-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .achievements-grid {
    grid-auto-columns: calc((100% - 3 * 1.5rem) / 4);
  }
}
.achieve-card,
.achievement-card {
  background: rgba(15, 36, 74, 0.95);
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  min-height: 220px;
}
.achieve-card:hover,
.achievement-card:hover {
  border-color: #f59e0b;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}
.achieve-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.achieve-logo-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.achieve-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.achieve-logo-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.achieve-medal,
.achievement-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 0;
  width: fit-content;
}
.achieve-card.gold .achieve-medal,
.achievement-badge.gold {
  background: #f59e0b;
  color: #0f172a;
}
.achieve-card.silver .achieve-medal,
.achievement-badge.silver {
  background: #cbd5e1;
  color: #0f172a;
}
.achieve-card.bronze .achieve-medal,
.achievement-badge.bronze {
  background: #b45309;
  color: #ffffff;
}
.achieve-card h4,
.achievement-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}
.achieve-level,
.achievement-meta {
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}
.achieve-student,
.achievement-winner {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.4;
}

/* 11. GALLERY */
.gallery-section {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
}
.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-thumb {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* VIDEO PROFIL SECTION */
.video-section {
  background-color: #f1f5f9;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.video-box-wrapper {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.video-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
}
.video-player-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #000000;
}
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 12. PORTALS */
.portal-links-section {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}
.portals-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.portal-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
  display: block;
}
.portal-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.portal-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
.portal-title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0f172a;
}
.portal-desc {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* 13. SOCIAL CALLOUT */
.social-callout {
  background: linear-gradient(90deg, #1e3a8a, #0369a1);
  color: #ffffff;
  padding: 3rem 0;
}
.social-callout-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.social-callout-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
}
.social-callout-text p {
  color: #e0f2fe;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.social-buttons {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.social-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.social-btn:hover {
  background: #ffffff;
  color: var(--primary-color);
}

/* 14. FOOTER */
.site-footer {
  background: #071326;
  color: #cbd5e1;
  padding-top: 4.5rem;
  border-top: 2px solid rgba(245, 158, 11, 0.35);
  font-size: 0.8125rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #142d54;
}
.footer-col h4, .footer-widget .widget-title {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}
.footer-col ul, .footer-widget ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a, .footer-widget a {
  color: #cbd5e1;
}
.footer-col a:hover, .footer-widget a:hover {
  color: #f59e0b;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-logo {
  max-height: 48px;
  width: auto;
  border-radius: 50%;
}
.footer-school-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}
.footer-desc {
  line-height: 1.6;
  margin-bottom: 1rem;
}
.accreditation-badge-footer {
  display: inline-block;
  background: rgba(30, 58, 138, 0.4);
  border: 1px solid #3b82f6;
  color: #93c5fd;
  font-weight: 800;
  font-size: 0.6875rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}
.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}
.footer-bottom p {
  margin: 0;
}

/* 15. SINGLE & PAGE TEMPLATES */
.page-header-banner {
  background: var(--primary-color);
  color: #ffffff;
  padding: 3rem 0;
  margin-bottom: 2rem;
}
.page-title {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
}
.entry-content {
  line-height: 1.8;
  color: #334155;
}
.entry-content p {
  margin-bottom: 1.25rem;
}
.entry-content h2, .entry-content h3 {
  color: #0f172a;
  margin: 1.75rem 0 0.85rem 0;
  font-weight: 800;
}
.sidebar .widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .portals-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .principal-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-header-inner, .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  .site-branding {
    justify-content: center;
    text-align: left;
  }
  .main-navigation {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
  .main-navigation ul {
    justify-content: center;
    flex-wrap: nowrap;
    width: max-content;
    margin: 0 auto;
    gap: 0.2rem;
  }
  .main-navigation a {
    padding: 0.35rem 0.6rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 768px) {
  .video-box-wrapper { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .portals-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .slide-title { font-size: 1.75rem; }
  .slider-container { height: 460px; }
  .top-bar-inner { justify-content: center; }
}
