/* ============================================
   SHINE FOUNDATION - Main Stylesheet
   Colors derived from the logo: Orange/Gold + Deep Teal
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #E8851A;
  --primary-dark: #C96F0C;
  --primary-light: #F5A623;
  --secondary: #1A6B5A;
  --secondary-dark: #124D40;
  --secondary-light: #28917A;
  --accent: #FFD166;
  --dark: #1C1C2E;
  --dark-light: #2D2D44;
  --light: #FAFAFA;
  --light-gray: #F0F0F0;
  --gray: #888;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

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

/* ---------- Utility ---------- */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 56px;
}

.section-subtitle.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232, 133, 26, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 133, 26, 0.45);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26, 107, 90, 0.3);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

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

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

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--dark);
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo .logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.navbar.scrolled .nav-links a {
  color: var(--dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--dark);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(28, 28, 46, 0.85) 0%, rgba(26, 107, 90, 0.7) 50%, rgba(232, 133, 26, 0.5) 100%);
}

.hero-content {
  color: var(--white);
  max-width: 680px;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}

/* Floating shapes decoration */
.hero-shapes {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  width: 180px;
  height: 180px;
  background: var(--accent);
  top: 50%;
  right: 20%;
  animation-delay: 2s;
}

.floating-shape:nth-child(3) {
  width: 120px;
  height: 120px;
  background: var(--secondary-light);
  bottom: 20%;
  right: 5%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -20px); }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- About Preview (Home) ---------- */
.about-preview {
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  background: var(--primary);
  opacity: 0.15;
  z-index: -1;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-text h2 span {
  color: var(--primary);
}

.about-text p {
  color: #555;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 36px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.about-feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-feature .icon.orange {
  background: rgba(232, 133, 26, 0.12);
  color: var(--primary);
}

.about-feature .icon.teal {
  background: rgba(26, 107, 90, 0.12);
  color: var(--secondary);
}

.about-feature span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Impact / Stats ---------- */
.impact-section {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.impact-card {
  padding: 40px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), background var(--transition);
}

.impact-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
}

.impact-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.impact-card h3 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.impact-card p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ---------- Services / Programs ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.service-icon.orange {
  background: rgba(232, 133, 26, 0.12);
  color: var(--primary);
}

.service-icon.teal {
  background: rgba(26, 107, 90, 0.12);
  color: var(--secondary);
}

.service-icon.gold {
  background: rgba(255, 209, 102, 0.2);
  color: var(--primary-dark);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Gallery / Photos ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 28, 46, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Gallery Filter Tabs */
.gallery-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.gallery-item.hidden-item {
  display: none;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--light-gray);
  border-radius: 50px;
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--dark);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 40px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px rgba(232, 133, 26, 0.25);
  z-index: 1;
}

.timeline-content {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.timeline-content:hover {
  transform: translateY(-4px);
}

.timeline-content h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.timeline-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--light-gray);
  transition: border-color var(--transition);
}

.team-card:hover img {
  border-color: var(--primary);
}

.team-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- CTA Banner ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.cta-section::before {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
}

.cta-section::after {
  width: 300px;
  height: 300px;
  bottom: -80px;
  right: -80px;
}

.cta-section h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ---------- Contact / Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--light);
  transition: all var(--transition);
}

.contact-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(8px);
}

.contact-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: rgba(232, 133, 26, 0.12);
  color: var(--primary);
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
  color: #666;
  font-size: 0.9rem;
}

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

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 133, 26, 0.12);
  background: var(--white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom span {
  color: var(--primary);
}

/* ---------- Page Headers (inner pages) ---------- */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(232, 133, 26, 0.06);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-header h1 span {
  color: var(--primary);
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.75;
  max-width: 540px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

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

.breadcrumb .current {
  color: var(--primary);
}

/* ---------- Partners ---------- */
.partners-strip {
  padding: 48px 0;
  background: var(--light);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.partner-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray);
  opacity: 0.6;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.partner-logo:hover {
  opacity: 1;
}

/* ---------- Testimonials ---------- */
.testimonials-slider {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial {
  display: none;
  padding: 40px;
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testimonial .quote-icon {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 16px;
}

.testimonial p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial .author {
  font-weight: 700;
  color: var(--dark);
}

.testimonial .author span {
  display: block;
  font-weight: 400;
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 4px;
}

.slider-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-gray);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ---------- Programs Detail ---------- */
.program-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.program-detail:nth-child(even) {
  direction: rtl;
}

.program-detail:nth-child(even) > * {
  direction: ltr;
}

.program-detail img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.program-detail h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--secondary-dark);
}

.program-detail p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.program-detail ul {
  list-style: none;
  padding: 0;
}

.program-detail ul li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: #555;
}

.program-detail ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232, 133, 26, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ---------- Counter Animation ---------- */
.counter {
  display: inline-block;
}

/* ---------- Gallery Filter (shared) ---------- */
.gallery-filter {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: box-shadow var(--transition);
}

.faq-item[open] {
  box-shadow: var(--shadow);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--dark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 24px 20px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- Responsive ---------- */

/* --- Tablet landscape --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .program-detail {
    gap: 40px;
  }
  .contact-grid {
    gap: 40px;
  }
}

/* --- Tablet portrait & small screens --- */
@media (max-width: 768px) {
  /* Reduce section spacing */
  .section-padding {
    padding: 64px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Navigation: hamburger + slide-in menu */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: right var(--transition);
    padding: 24px;
    z-index: 1000;
  }

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

  .nav-links a {
    color: var(--dark) !important;
    font-size: 1.15rem;
    padding: 8px 0;
  }

  .nav-cta {
    margin-top: 8px;
    width: 100%;
    text-align: center;
    display: block !important;
  }

  /* Titles */
  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 36px;
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 100px 0 56px;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero-stats {
    gap: 0;
    margin-top: 36px;
    justify-content: space-between;
  }

  .hero-stat {
    flex: 1;
    text-align: center;
  }

  .hero-stat h3 {
    font-size: 1.6rem;
  }

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

  .hero-shapes {
    display: none;
  }

  /* About section grid → stack */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image-accent {
    display: none;
  }

  .about-text h2 {
    font-size: 1.75rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px 0 28px;
  }

  /* Services / Program Cards */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .service-card:hover {
    transform: none;
  }

  .service-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    margin-bottom: 14px;
  }

  /* Impact stats */
  .impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .impact-card {
    padding: 24px 12px;
  }

  .impact-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .impact-card h3 {
    font-size: 2rem;
  }

  .impact-card p {
    font-size: 0.85rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .gallery-filter {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Lightbox */
  .lightbox img {
    max-width: 95vw;
    max-height: 70vh;
    border-radius: var(--radius-sm);
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  /* Programs detail */
  .program-detail {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }

  .program-detail:nth-child(even) {
    direction: ltr;
  }

  .program-detail img {
    height: 220px;
    border-radius: var(--radius-sm);
  }

  .program-detail h3 {
    font-size: 1.3rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-section h2 {
    font-size: 1.6rem;
  }

  .cta-section p {
    font-size: 0.95rem;
  }

  /* Page headers (inner pages) */
  .page-header {
    padding: 120px 0 48px;
  }

  .page-header h1 {
    font-size: 1.9rem;
  }

  .page-header p {
    font-size: 0.95rem;
  }

  /* Timeline → left-aligned single column */
  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 52px;
    padding-right: 0;
    text-align: left;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    padding: 20px;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .team-card {
    padding: 24px 12px;
  }

  .team-card img {
    width: 90px;
    height: 90px;
  }

  /* Testimonials */
  .testimonial {
    padding: 24px 8px;
  }

  .testimonial p {
    font-size: 1rem;
  }

  /* Partners */
  .partners-logos {
    gap: 24px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p {
    font-size: 0.85rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  /* Scroll-top tighter to edge on mobile */
  .scroll-top {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  /* FAQ */
  .faq-item summary {
    font-size: 1rem;
    padding: 16px;
  }

  .faq-item p {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }

  /* Buttons general mobile touch targets */
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* --- Small phones --- */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

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

  .section-title {
    font-size: 1.5rem;
  }

  /* Hero */
  .hero-content {
    padding: 88px 0 40px;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-stat h3 {
    font-size: 1.35rem;
  }

  .hero-stat p {
    font-size: 0.7rem;
  }

  /* Impact */
  .impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .impact-card {
    padding: 20px 8px;
  }

  .impact-card h3 {
    font-size: 1.6rem;
  }

  .impact-card p {
    font-size: 0.8rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .gallery-overlay {
    padding: 10px;
  }

  .gallery-overlay span {
    font-size: 0.75rem;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-card {
    display: flex;
    flex-direction: row;
    text-align: left;
    padding: 16px;
    gap: 16px;
    align-items: center;
  }

  .team-card img {
    width: 72px;
    height: 72px;
    margin: 0;
    flex-shrink: 0;
  }

  /* Programs detail */
  .program-detail {
    margin-bottom: 36px;
    gap: 16px;
  }

  .program-detail img {
    height: 180px;
  }

  .program-detail h3 {
    font-size: 1.15rem;
  }

  .program-detail p {
    font-size: 0.9rem;
  }

  .program-detail ul li {
    font-size: 0.88rem;
    padding: 6px 0 6px 24px;
  }

  /* CTA */
  .cta-section {
    padding: 48px 0;
  }

  .cta-section h2 {
    font-size: 1.4rem;
  }

  .cta-section p {
    font-size: 0.9rem;
  }

  /* Page headers */
  .page-header {
    padding: 100px 0 36px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .page-header p {
    font-size: 0.88rem;
  }

  /* Service cards compact */
  .service-card {
    padding: 22px 18px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.88rem;
  }

  /* Contact map/info box */
  .contact-map {
    padding: 24px !important;
  }

  /* Footer */
  .footer-bottom {
    padding: 16px 0;
    font-size: 0.78rem;
  }

  /* Timeline */
  .timeline-item {
    margin-bottom: 32px;
  }

  .timeline-content {
    padding: 16px;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-content p {
    font-size: 0.85rem;
  }
}
