/* ============================================
   Penland Schools — Homepage Styles
   Brand: #159DE1 + #FF312D
   ============================================ */

:root {
  --primary: #159DE1;
  --primary-hover: #1188C5;
  --primary-dark: #0C2B4A;
  --primary-darker: #071B30;
  --accent: #FF312D;
  --accent-hover: #D4201C;
  --accent-light: rgba(255, 49, 45, 0.1);
  --primary-light: rgba(21, 157, 225, 0.1);
  --primary-glow: rgba(21, 157, 225, 0.25);
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f1f5f9;
  --bg-card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 110px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-header .tag::before,
.section-header .tag::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
  opacity: 0.4;
}
.section-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.section-header h2 span { color: var(--primary); }
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: var(--transition);
}
.btn:hover::after { transform: translateX(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e62a26);
  color: #fff;
  box-shadow: 0 6px 24px rgba(255, 49, 45, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(255, 49, 45, 0.4);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px var(--primary-glow);
}
.btn-lg { padding: 16px 44px; font-size: 1.05rem; }

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 10px 0;
  position: relative;
  z-index: 1001;
}
.top-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: rgba(255, 255, 255, 0.85); }
.top-bar a:hover { color: #fff; }
.top-bar-left { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.top-bar-left span { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.top-bar-left i { color: var(--primary); font-size: 0.85rem; width: 16px; }
.top-bar-left .salam {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3px;
}
.top-bar-right { display: flex; align-items: center; gap: 6px; }
.top-bar-right a {
  font-size: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: rgba(255, 255, 255, 0.65);
  position: relative;
}
.top-bar-right a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px var(--primary-glow);
}
.top-bar-right a:active {
  transform: translateY(-1px) scale(0.95);
}

/* ========== NAVIGATION ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.navbar .logo img { height: 48px; width: auto; }
.navbar .logo-text { display: flex; flex-direction: column; }
.navbar .logo-text strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}
.navbar .logo-text span {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.nav-cta):not(.nav-reg) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 6px 16px;
  letter-spacing: 0.2px;
  border-radius: 6px;
}
.nav-links a:not(.nav-cta):not(.nav-reg)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  width: calc(100% - 32px);
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav-links a:not(.nav-cta):not(.nav-reg):hover::after,
.nav-links a:not(.nav-cta):not(.nav-reg).active::after { transform: scaleX(1); }
.nav-links a:not(.nav-cta):not(.nav-reg):hover { color: var(--primary); }

/* ========== DROPDOWN ========== */
.dropdown {
  position: relative;
}
.dropdown-toggle { cursor: pointer; }
.dropdown-toggle i { font-size: 0.7rem; margin-left: 4px; transition: var(--transition); }
.dropdown.open .dropdown-toggle i { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: block;
}
.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 20px !important;
  font-size: 0.88rem !important;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 0 !important;
  white-space: nowrap;
  transition: var(--transition);
}
.dropdown-menu a::after { display: none !important; }
.dropdown-menu a:hover {
  background: var(--bg-light) !important;
  color: var(--primary) !important;
}
.dropdown-menu a i {
  width: 18px;
  font-size: 0.85rem;
  color: var(--primary);
  text-align: center;
}

.nav-cta,
.nav-reg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.nav-cta {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  margin-left: 12px;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), #e62a26);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}
.nav-cta > * { position: relative; z-index: 1; }
.nav-cta:hover {
  transform: translateY(-2px);
  border-color: transparent;
  color: #fff;
}
.nav-cta:hover::before { opacity: 1; }
.nav-cta:active {
  transform: translateY(0) scale(0.97);
}

.nav-reg {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border: none;
  margin-left: 8px;
  box-shadow: 0 4px 18px var(--primary-glow);
}
.nav-reg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: var(--transition);
  border-radius: inherit;
}
.nav-reg > * { position: relative; z-index: 1; }
.nav-reg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
  color: #fff;
}
.nav-reg:hover::after { transform: translateX(0); }
.nav-reg:active {
  transform: translateY(0) scale(0.97);
}

.nav-cta i,
.nav-reg i {
  font-size: 0.85rem;
  transition: var(--transition);
}
.nav-cta:hover i,
.nav-reg:hover i { transform: translateX(2px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12, 43, 74, 0.94) 0%, rgba(12, 43, 74, 0.65) 50%, rgba(12, 43, 74, 0.4) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}
.hero-badge i { color: var(--primary); font-size: 0.9rem; }
.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), #6dd5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 40px;
  line-height: 1.85;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero .salam-text {
  margin-top: 40px;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  letter-spacing: 2px;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}
.hero-wave path {
  fill: #ffffff;
}

/* ========== STATS ========== */
.stats {
  background: var(--primary-dark);
  padding: 80px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.stats-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 20% 50%, var(--primary) 1px, transparent 1px),
    radial-gradient(circle at 80% 50%, var(--primary) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.stat-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1px;
  transition: var(--transition);
}
.stat-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}
.stat-item:hover::before {
  width: 60px;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 18px;
  color: #fff;
  transition: var(--transition);
}
.stat-item:nth-child(1) .stat-icon { background: linear-gradient(135deg, #159DE1, #1188C5); }
.stat-item:nth-child(2) .stat-icon { background: linear-gradient(135deg, #FF312D, #e62a26); }
.stat-item:nth-child(3) .stat-icon { background: linear-gradient(135deg, #159DE1, #1188C5); }
.stat-item:nth-child(4) .stat-icon { background: linear-gradient(135deg, #FF312D, #e62a26); }
.stat-item:hover .stat-icon { transform: scale(1.08) rotate(-4deg); }
.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), #6dd5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.stat-divider {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 14px auto 0;
  border-radius: 1px;
}

/* ========== ABOUT ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image { position: relative; }
.about-image .frame {
  position: relative;
  z-index: 1;
}
.about-image .frame::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 50%;
  height: 50%;
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  opacity: 0.25;
  z-index: -1;
}
.about-image .frame::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 50%;
  height: 50%;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.2;
  z-index: -1;
}
.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  width: 100%;
}
.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: linear-gradient(135deg, var(--accent), #e62a26);
  color: #fff;
  padding: 20px 28px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-xl);
  z-index: 2;
}
.about-badge h4 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  letter-spacing: -1px;
}
.about-badge span { font-size: 0.8rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 1.5px; }

.about-content h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 8px;
  line-height: 1.2;
}
.about-content h2 span { color: var(--primary); }
.about-content .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-left: 3px solid var(--primary);
  padding-left: 18px;
  line-height: 1.7;
}
.about-content p { color: var(--text-muted); margin-bottom: 16px; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0 36px;
  padding: 0;
  list-style: none;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.about-features li i {
  color: #fff;
  font-size: 0.7rem;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary), #1188C5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========== VALUES ========== */
.values {
  background: var(--bg-light);
  position: relative;
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), transparent);
  opacity: 0;
  transition: var(--transition);
}
.value-card:hover::before { opacity: 1; }
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.value-card > * { position: relative; z-index: 1; }
.value-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #fff;
}
.value-icon.blue { background: linear-gradient(135deg, var(--primary), #1188C5); box-shadow: 0 4px 16px var(--primary-glow); }
.value-icon.red { background: linear-gradient(135deg, var(--accent), #e62a26); box-shadow: 0 4px 16px rgba(255, 49, 45, 0.25); }
.value-card h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 10px; color: var(--primary-dark); }
.value-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* ========== NEWS ========== */
#news { background: var(--bg-light); }
/* ========== GALLERY ========== */
#gallery { background: var(--bg-light); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.gallery-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  flex-shrink: 0;
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-card:hover .gallery-image img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 43, 74, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay i {
  color: #fff;
  font-size: 1.8rem;
  transform: scale(0.6);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gallery-card:hover .gallery-overlay i {
  transform: scale(1);
}
.gallery-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gallery-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--primary-dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.news-card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.news-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(12, 43, 74, 0.5) 100%);
  opacity: 0;
  transition: var(--transition);
}
.news-card:hover .news-card-image::after { opacity: 1; }
.news-card-date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--accent), #e62a26);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 49, 45, 0.3);
  z-index: 2;
}
.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
  color: var(--primary-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
}
.news-card-body .btn-ghost { margin-top: 16px; align-self: flex-start; }

/* ========== COURSES / PROGRAMS ========== */
.programs {
  background: var(--bg-light);
}
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 28px 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.course-card[data-accent="primary"]::before { background: linear-gradient(90deg, var(--primary), #6dd5fa); }
.course-card[data-accent="accent"]::before { background: linear-gradient(90deg, var(--accent), #ff7e7b); }
.course-card:hover::before { transform: scaleX(1); }
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.course-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.course-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.course-card[data-accent="primary"] .course-icon { background: var(--primary-light); color: var(--primary); }
.course-card[data-accent="accent"] .course-icon { background: var(--accent-light); color: var(--accent); }
.course-card:hover .course-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.course-card[data-accent="primary"]:hover .course-icon {
  background: var(--primary);
  color: #fff;
}
.course-card[data-accent="accent"]:hover .course-icon {
  background: var(--accent);
  color: #fff;
}
.course-stage {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.course-card[data-accent="primary"] .course-stage { background: var(--primary-light); color: var(--primary); }
.course-card[data-accent="accent"] .course-stage { background: var(--accent-light); color: var(--accent); }
.course-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--primary-dark);
  line-height: 1.35;
}
.course-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.7;
  flex: 1;
}
.course-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.course-meta i {
  font-size: 0.75rem;
  color: var(--primary);
  width: 18px;
  text-align: center;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 8px 4px;
  border-radius: 0;
  font-weight: 600;
  align-self: flex-start;
}
.btn-ghost::after { display: none; }
.btn-ghost i { transition: var(--transition); }
.btn-ghost:hover i { transform: translateX(6px); }

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--primary-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
}
.testimonials .section-header h2 { color: #fff; }
.testimonials .section-header p { color: rgba(255, 255, 255, 0.6); }
.testimonials .section-divider { background: var(--primary); }

.testimonial-slider { max-width: 700px; margin: 0 auto; position: relative; }
.testimonial-slide { display: none; text-align: center; animation: fadeIn 0.5s ease; }
.testimonial-slide.active { display: block; }
.testimonial-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 24px; letter-spacing: 3px; }
.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin: 0 0 32px;
  position: relative;
  padding: 0 20px;
}
.testimonial-text::before {
  content: '\201C';
  font-size: 4.5rem;
  font-family: Georgia, serif;
  color: var(--primary);
  position: absolute;
  top: -36px;
  left: 0;
  line-height: 1;
  opacity: 0.35;
}
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 16px; }
.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 24px var(--primary-glow);
}
.testimonial-author h4 { margin: 0; font-size: 1rem; font-weight: 600; }
.testimonial-author span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.45); }

.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.testimonial-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 12px var(--primary-glow);
}

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

/* ========== CTA ========== */
.cta-section {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #071B30 0%, #0C2B4A 40%, #0D2D52 65%, #0a2038 100%);
}
.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 25% 35%, rgba(21, 157, 225, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 75% 65%, rgba(255, 49, 45, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 55% 20%, rgba(21, 157, 225, 0.04) 0%, transparent 60%);
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      70deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.012) 80px,
      rgba(255, 255, 255, 0.012) 81px
    );
}
.cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.cta-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(21, 157, 225, 0.06);
  top: -150px;
  left: -100px;
}
.cta-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 49, 45, 0.04);
  bottom: -100px;
  right: -50px;
}
.cta-glow-3 {
  width: 300px;
  height: 300px;
  background: rgba(21, 157, 225, 0.03);
  bottom: 10%;
  left: 40%;
}
.cta-shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}
.cta-shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
}
.cta-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -180px;
  left: -80px;
}
.cta-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
}
.cta-accent-bottom {
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}
.cta-left {
  position: relative;
}
.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary);
  margin-bottom: 20px;
  background: rgba(21, 157, 225, 0.1);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(21, 157, 225, 0.15);
}
.cta-left h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.cta-left h2 span {
  background: linear-gradient(135deg, var(--primary), #6dd5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-left p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 36px;
  max-width: 520px;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-buttons .btn-primary {
  padding: 16px 36px;
  font-size: 1rem;
}
.cta-buttons .btn-outline {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-xs);
}

.cta-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cta-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.cta-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}
.cta-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 14px;
  color: #fff;
}
.cta-card-icon.blue { background: var(--primary); }
.cta-card-icon.red { background: var(--accent); }
.cta-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
}
.cta-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .cta-inner { gap: 40px; }
  .cta-left h2 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 70px 0;
    text-align: center;
  }
  .cta-left p { margin-left: auto; margin-right: auto; }
  .cta-buttons { justify-content: center; }
  .cta-left h2 { font-size: 1.8rem; }
  .cta-tag { margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) {
  .cta-right { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-darker);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-brand .logo img { height: 44px; width: auto; }
.footer-brand .logo-text {
  display: flex;
  flex-direction: column;
}
.footer-brand .logo-text strong { font-size: 1.15rem; font-weight: 700; color: #fff; }
.footer-brand .logo-text span { font-size: 0.8rem; color: var(--primary); font-weight: 500; }
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 24px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 20px;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-contact li i {
  color: var(--primary);
  margin-top: 4px;
  min-width: 18px;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gallery-grid, .news-grid, .courses-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 80vh; justify-content: center; }
  .hero h1 { font-size: 2.6rem; }
  .hero p { font-size: 1.05rem; }
}

@media (max-width: 768px) {
  .section-padding { padding: 70px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .section-header p { font-size: 1rem; }
  .hero { min-height: 80vh; padding-top: 40px; justify-content: center; }
  .hero .container { max-width: 100%; }
  .hero h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 16px; }
  .hero p { font-size: 1rem; line-height: 1.7; margin-bottom: 28px; }
  .hero .salam-text { font-size: 1.2rem; margin-top: 28px; }
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; margin-bottom: 20px; }
  .hero-wave svg { height: 40px; }

  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.nav-cta):not(.nav-reg) {
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    border-radius: 8px;
  }
  .nav-links a:not(.nav-cta):not(.nav-reg):hover {
    background: var(--bg-light);
  }
  .nav-links a:not(.nav-cta):not(.nav-reg)::after { display: none; }
  .nav-cta, .nav-reg {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
  }
  .nav-cta {
    margin: 12px 0 0;
    border-width: 2px;
  }
  .nav-reg {
    margin: 8px 0 0;
  }

  /* Mobile dropdown: accordion style */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--bg-light);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 4px 0 4px 12px;
    margin-top: 2px;
    transition: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown:not(.open) .dropdown-menu { display: none; }
  .dropdown-menu a {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
  }
  .dropdown-toggle i { display: inline-block; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image .frame::before,
  .about-image .frame::after { display: none; }
  .about-badge { right: 10px; bottom: -10px; padding: 14px 20px; }
  .about-features { grid-template-columns: 1fr; }
  .about-content h2 { font-size: 1.6rem; }

  .gallery-grid,
  .news-grid, .courses-grid, .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .top-bar-left span:not(:first-child) { display: none; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .stats .container { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item h3 { font-size: 2rem; }
  .hero { min-height: 75vh; padding-top: 30px; }
  .hero h1 { font-size: 1.5rem; margin-bottom: 12px; }
  .hero p { font-size: 0.9rem; margin-bottom: 24px; }
  .hero-badge { font-size: 0.7rem; padding: 5px 12px; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 0.9rem; }
  .hero .salam-text { font-size: 1rem; margin-top: 24px; }
  .hero-wave svg { height: 30px; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 20, 36, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  display: flex;
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.lightbox-close:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}
.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1100px;
  width: 90%;
  max-height: 85vh;
  animation: lightboxIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.lightbox-image {
  flex: 0 0 auto;
  width: 55%;
  max-height: 80vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: 80vh;
}
.lightbox-info {
  flex: 0 0 35%;
  color: #fff;
  max-height: 60vh;
  overflow-y: auto;
}
.lightbox-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
  color: #fff;
}
.lightbox-info .lightbox-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}
.lightbox-info p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.lightbox-nav:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .lightbox-content {
    flex-direction: column;
    gap: 24px;
    width: 92%;
    max-height: 90vh;
  }
  .lightbox-image {
    width: 100%;
    max-height: 50vh;
  }
  .lightbox-info {
    flex: none;
    width: 100%;
    max-height: 30vh;
    text-align: center;
  }
  .lightbox-info h2 { font-size: 1.2rem; }
  .lightbox-nav { display: none; }
  .lightbox-close { top: 16px; right: 16px; width: 38px; height: 38px; font-size: 1.1rem; }
}
