/* 
 * SD Islam Al-Hikmah - Official School Website Styling
 * Developed for PKN College Group Assignment
 * Developers: Anselmus, Ikhwan, Maulidina
 */

:root {
  --primary: #065f46;         /* Emerald Green */
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-dark: #022c22;
  --secondary: #d97706;       /* Warm Amber / Gold */
  --secondary-hover: #b45309;
  --secondary-light: #fffbeb;
  --accent-teal: #0d9488;
  --accent-blue: #0284c7;
  --dark: #0f172a;            /* Slate 900 */
  --dark-muted: #334155;      /* Slate 700 */
  --light-bg: #f8fafc;        /* Slate 50 */
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-lg: 0 15px 35px rgba(6, 95, 70, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: var(--dark-muted);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  position: relative;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

iframe {
  max-width: 100%;
  border: 0;
}

ul {
  list-style: none;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; color: white; }
.bg-light { background-color: var(--light-bg); }
.bg-white { background-color: white; }

.section-padding {
  padding: 5rem 0;
}

.section-title-wrapper {
  margin-bottom: 3.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(6, 95, 70, 0.15);
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--dark-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.975rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 95, 70, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-white {
  background-color: white;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn-white:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

/* Top Header Bar (Desktop/Laptop) */
.topbar {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.topbar-info-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-info-item i {
  color: var(--secondary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.topbar-socials {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.8rem;
}

.topbar-socials span {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0.2rem;
}

.topbar-socials a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: var(--transition);
}

.topbar-socials a:hover {
  color: white;
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Main Navigation Navbar - Sticky Pinned On Scroll */
.navbar {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  width: 100%;
}

.navbar.scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
}

.logo-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent-teal));
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(6, 95, 70, 0.25);
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-text h2 {
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 0.15rem;
  white-space: nowrap;
}

.brand-text span {
  font-size: 0.725rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.55rem 0.85rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.925rem;
  white-space: nowrap;
}

.nav-link i {
  color: var(--primary);
  font-size: 0.875rem;
}

/* Dropdown Navigation Menu (Tentang & Submenu) */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}

.dropdown-toggle .chevron-icon {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-toggle .chevron-icon,
.nav-dropdown.open .dropdown-toggle .chevron-icon {
  transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 1050;
}

/* Desktop: Show dropdown on hover or when opened */
@media (min-width: 992px) {
  .nav-dropdown:hover > .dropdown-menu,
  .nav-dropdown.open > .dropdown-menu {
    display: block;
    animation: navDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes navDropdownFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown .dropdown-menu li {
  margin-bottom: 2px;
  list-style: none;
}

.nav-dropdown .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.nav-dropdown .dropdown-menu a i {
  color: var(--primary);
  font-size: 0.85rem;
  width: 18px;
  text-align: center;
}

.nav-dropdown .dropdown-menu a:hover,
.nav-dropdown .dropdown-menu a.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Mobile Drawer Dropdown Adjustments */
@media (max-width: 991px) {
  .nav-dropdown {
    width: 100%;
    display: block;
  }
  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    margin: 0.25rem 0;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-link.active {
  font-weight: 600;
}

.nav-btn {
  margin-left: 0.5rem;
}

.nav-mobile-info {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--dark);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Nav Backdrop for Mobile */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark, #022c22) 0%, var(--primary, #065f46) 60%, var(--accent-teal, #0f766e) 100%);
  color: white;
  padding: 5.5rem 0 6.5rem;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #fef08a;
  font-weight: 600;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.18;
}

.hero-title span {
  color: #fcd34d; /* Amber highlight */
}

.hero-desc {
  font-size: clamp(0.975rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.65;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-card-preview {
  position: relative;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 4px solid rgba(255,255,255,0.2);
  background: #0f172a;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-badge-overlay {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: white;
  color: var(--dark);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 3;
}

.hero-badge-icon {
  width: 44px;
  height: 44px;
  background-color: var(--secondary-light);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-badge-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.1rem;
  white-space: nowrap;
}

.hero-badge-text p {
  font-size: 0.775rem;
  color: var(--dark-muted);
  white-space: nowrap;
}

/* Quick Stats Section */
.stats-section {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: white;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: 0.15rem;
  line-height: 1;
}

.stat-info p {
  font-size: 0.825rem;
  color: var(--dark-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* Program Cards */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.program-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 95, 70, 0.2);
}

.program-img-box {
  position: relative;
  height: 200px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.program-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.program-card:hover .program-img-box img {
  transform: scale(1.05);
}

.program-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(6, 95, 70, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.program-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-icon-badge {
  width: 44px;
  height: 44px;
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.program-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.program-desc {
  font-size: 0.925rem;
  color: var(--dark-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

/* Facilities Section */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.facility-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: white;
  transition: var(--transition);
}

.facility-card:hover img {
  transform: scale(1.08);
}

.facility-card:hover .facility-overlay {
  background: linear-gradient(to top, rgba(6, 95, 70, 0.95) 0%, rgba(6, 95, 70, 0.4) 70%, transparent 100%);
}

.facility-title {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.facility-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

/* PKN College Team Section */
.pkn-team-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.pkn-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(6, 95, 70, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-avatar-box {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-teal));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 16px rgba(6, 95, 70, 0.2);
  border: 3px solid white;
  flex-shrink: 0;
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--dark-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.pkn-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  align-self: center;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.news-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-img {
  height: 190px;
  background-color: #cbd5e1;
  overflow: hidden;
  flex-shrink: 0;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-img img {
  transform: scale(1.05);
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.news-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

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

.news-excerpt {
  font-size: 0.9rem;
  color: var(--dark-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.6;
}

/* Footer Section */
.site-footer {
  background-color: var(--dark);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--primary);
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand h3 i {
  color: var(--secondary);
}

.footer-brand p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-title {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a i {
  font-size: 0.75rem;
  color: var(--primary-light);
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom strong {
  color: #e2e8f0;
}

/* Page Header (Subpages) */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
}

.page-header h1 {
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #fef08a;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: white;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Custom Semantic Components for Pages */

/* Profile Greeting Grid */
.profile-greeting-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.profile-avatar-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(6, 95, 70, 0.12);
  border: 4px solid var(--primary-light);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-card img {
  width: 100%;
  height: auto;
  min-height: 380px;
  max-height: 480px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* Vision & Mission Grid */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vision-card {
  background: white;
  padding: 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--primary);
}

.mission-card {
  background: white;
  padding: 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--secondary);
}

/* Timeline Cards */
.timeline-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  align-items: flex-start;
}

.timeline-item.accent-gold {
  border-left-color: var(--secondary);
}

.timeline-item.accent-teal {
  border-left-color: var(--accent-teal);
}

.timeline-year {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  width: 75px;
  flex-shrink: 0;
}

.timeline-item.accent-gold .timeline-year {
  color: var(--secondary);
}

.timeline-item.accent-teal .timeline-year {
  color: var(--accent-teal);
}

/* Extracurricular Grid */
.extracurricular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.extra-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.extra-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.extra-icon-box {
  width: 58px;
  height: 58px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin: 0 auto 1rem;
}

/* Contact & PPDB Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
}

.contact-form-card {
  background: var(--light-bg);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* PKN Context Banner */
.pkn-intro-banner {
  background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
  border: 1px solid rgba(6,95,70,0.15);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 3rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.pkn-intro-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

/* Pancasila Reflection Cards */
.reflection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.reflection-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--primary);
}

.reflection-card.accent-gold {
  border-top-color: var(--secondary);
}

.reflection-card.accent-teal {
  border-top-color: var(--accent-teal);
}

/* ==========================================================================
   Comprehensive Responsive Media Queries
   ========================================================================== */

/* 1. Large Laptops / Tablets Landscape (< 1200px) */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* 2. Tablets (< 992px) */
@media (max-width: 992px) {
  .section-padding {
    padding: 3.75rem 0;
  }

  .section-title-wrapper {
    margin-bottom: 2.5rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 4.5rem 0 5.5rem;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-desc {
    margin: 0 auto 1.75rem;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-card-preview {
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-badge-overlay {
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 90%;
    max-width: 380px;
    justify-content: center;
  }

  /* Grids to 2 Columns */
  .program-grid,
  .facility-grid,
  .pkn-team-grid,
  .news-grid,
  .reflection-grid,
  .extracurricular-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Profile page */
  .profile-greeting-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .profile-avatar-card {
    max-width: 260px;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Contact page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
    margin-bottom: 2.5rem;
  }
}

/* 3. Mobile Devices & Small Tablets (< 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }

  /* Completely HIDE the bulky topbar on mobile */
  .topbar {
    display: none;
  }

  /* Pinned Sticky Navbar on Mobile */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  /* Mobile Navigation Drawer */
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85%, 340px);
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: stretch;
    padding: 4.5rem 1.5rem 2.5rem;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    gap: 0.35rem;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-btn {
    margin-left: 0;
    margin-top: 0.75rem;
    width: 100%;
  }

  .nav-btn .btn {
    width: 100%;
  }

  /* Integrated Mobile Info in Drawer */
  .nav-mobile-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
  }

  .nav-mobile-divider {
    height: 1px;
    background-color: var(--border);
    margin-bottom: 0.25rem;
  }

  .nav-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-mobile-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--dark-muted);
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
  }

  .nav-mobile-item i {
    color: var(--primary);
    width: 18px;
    font-size: 0.9rem;
    text-align: center;
  }

  .nav-mobile-item:hover {
    color: var(--primary);
    background-color: var(--primary-light);
  }

  .nav-mobile-socials {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.25rem 0.5rem;
  }

  .nav-mobile-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: var(--transition);
  }

  .nav-mobile-socials a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
  }

  /* Hero Section */
  .hero-title {
    font-size: 2.15rem;
  }

  .hero-tag {
    font-size: 0.775rem;
    padding: 0.35rem 0.9rem;
  }

  .stats-section {
    margin-top: -2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .stat-card {
    padding: 1.15rem 0.9rem;
    gap: 0.75rem;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }

  .stat-info h3 {
    font-size: 1.45rem;
  }

  .stat-info p {
    font-size: 0.75rem;
  }

  /* Single Column Grids for Mobile */
  .program-grid,
  .facility-grid,
  .pkn-team-grid,
  .news-grid,
  .news-grid-4,
  .reflection-grid,
  .extracurricular-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Form 2-column to 1 column */
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }

  /* Timeline */
  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
  }

  .timeline-year {
    width: auto;
  }

  /* PKN Banner */
  .pkn-intro-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* 4. Small Mobile Phones (< 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-section {
    padding: 3.5rem 0 4.5rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .hero-badge-overlay {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.5rem;
  }

  .stat-icon {
    margin: 0 auto;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .logo-icon-box {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .brand-text h2 {
    font-size: 1.05rem;
  }

  .brand-text span {
    font-size: 0.65rem;
  }

  .vision-card,
  .mission-card {
    padding: 1.5rem 1.25rem;
  }

  .team-card {
    padding: 1.75rem 1.25rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}
