/* DSS Pradnya Foundation - Homepage Styles */

:root {
  --dss-primary: #e67e22;
  --dss-primary-dark: #d35400;
  --dss-secondary: #2c3e50;
  --dss-secondary-dark: #1a252f;
  --dss-dharma: #e67e22;
  --dss-sanskruti: #27ae60;
  --dss-granth: #2980b9;
  --dss-bg: #f8f5f0;
  --dss-card-bg: #ffffff;
  --dss-muted: #6b7280;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dss-bg);
  color: #2b2b2b;
  margin: 0;
  overflow-x: hidden;
}

section { scroll-margin-top: 80px; }

/* ===== Navbar ===== */
.home-navbar {
  background: rgba(26, 37, 47, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  padding: 0.6rem 0;
}
.home-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
}
.home-navbar .navbar-brand img {
  height: 46px;
  width: auto;
  border-radius: 8px;
  border: 2px solid var(--dss-primary);
  object-fit: contain;
  background: #fff;
}
.home-navbar .brand-text .b-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dss-primary);
  line-height: 1.1;
  display: block;
}
.home-navbar .brand-text .b-sub {
  font-size: 0.7rem;
  color: #cbd3da;
  display: block;
}
.home-navbar .nav-link {
  color: #e9edf1 !important;
  font-weight: 500;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.home-navbar .nav-link:hover { color: var(--dss-primary) !important; }
.home-navbar .nav-ask-btn {
  background: var(--dss-primary);
  color: #fff !important;
  border-radius: 24px;
  padding: 0.45rem 1.3rem !important;
  font-weight: 600;
}
.home-navbar .nav-ask-btn:hover { background: var(--dss-primary-dark); color: #fff !important; }
.home-navbar .lang-toggle-btn {
  background: transparent;
  border: 1.5px solid var(--dss-primary);
  color: var(--dss-primary);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.home-navbar .lang-toggle-btn:hover { background: var(--dss-primary); color: #fff; }
.home-navbar .navbar-toggler {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
}
.home-navbar .navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.45); }
.home-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(26,37,47,0.92) 0%, rgba(44,62,80,0.88) 55%, rgba(211,84,0,0.78) 100%);
  color: #fff;
  padding: 6rem 0 6.5rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(230,126,34,0.25), transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(41,128,185,0.2), transparent 45%);
  pointer-events: none;
}
.hero .om-watermark {
  position: absolute;
  font-size: 28rem;
  opacity: 0.05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.hero .hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.92;
  max-width: 680px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--dss-primary);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 6px 20px rgba(230,126,34,0.4);
}
.btn-hero-primary:hover { background: var(--dss-primary-dark); color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-hero-outline:hover { background: #fff; color: var(--dss-secondary); }

/* ===== Section general ===== */
.home-section { padding: 4.5rem 0; }
.home-section.alt { background: #fff; }
.section-heading {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--dss-secondary);
  margin-bottom: 0.6rem;
}
.section-heading::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--dss-primary);
  border-radius: 3px;
  margin: 0.8rem auto 0;
}
.section-subtitle {
  text-align: center;
  color: var(--dss-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ===== About / Pillars ===== */
.about-text {
  max-width: 820px;
  margin: 0 auto 2.8rem;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #44505c;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar-card {
  background: var(--dss-bg);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 4px solid var(--dss-primary);
  transition: transform 0.25s, box-shadow 0.25s;
}
.pillar-card:nth-child(2) { border-top-color: var(--dss-sanskruti); }
.pillar-card:nth-child(3) { border-top-color: var(--dss-granth); }
.pillar-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.pillar-card .p-icon { font-size: 2.6rem; margin-bottom: 0.8rem; display: block; }
.pillar-card:nth-child(1) .p-icon { color: var(--dss-primary); }
.pillar-card:nth-child(2) .p-icon { color: var(--dss-sanskruti); }
.pillar-card:nth-child(3) .p-icon { color: var(--dss-granth); }
.pillar-card h4 { font-weight: 700; color: var(--dss-secondary); margin-bottom: 0.5rem; }
.pillar-card p { color: var(--dss-muted); font-size: 0.95rem; margin: 0; }

/* ===== Founder ===== */
.founder-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 950px;
  margin: 0 auto;
}
.founder-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--dss-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  justify-self: center;
}
.founder-photo-placeholder {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dss-secondary), var(--dss-primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  border: 5px solid var(--dss-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  justify-self: center;
}
.founder-info h3 { font-weight: 800; color: var(--dss-secondary); margin-bottom: 0.2rem; }
.founder-info .f-role {
  color: var(--dss-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}
.founder-info p { line-height: 1.8; color: #44505c; margin: 0; }

/* ===== Programs ===== */
.program-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.program-row:last-child { margin-bottom: 0; }
.program-row.reverse .program-gallery { order: 2; }
.program-row.reverse .program-text { order: 1; }
.program-text h3 {
  font-weight: 800;
  color: var(--dss-secondary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.program-text h3 .num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dss-primary);
  color: #fff;
  font-size: 1rem;
  margin-right: 0.6rem;
  vertical-align: middle;
}
.program-text p { line-height: 1.85; color: #44505c; font-size: 1.02rem; }

/* Slideshow */
.slideshow {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,0.16);
  background: #000;
  aspect-ratio: 4 / 3;
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slideshow .slide.active { opacity: 1; }
.slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 3;
}
.slide-btn:hover { background: var(--dss-primary); }
.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }
.slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
}
.slide-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.slide-dots span.active { background: var(--dss-primary); }
.slide-counter {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  z-index: 3;
}

/* ===== Vision ===== */
.vision-section {
  background: linear-gradient(135deg, var(--dss-secondary-dark), var(--dss-secondary));
  color: #fff;
}
.vision-section .section-heading { color: #fff; }
.vision-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.85;
  opacity: 0.9;
  font-size: 1.05rem;
}
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.vision-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 2rem 1.6rem;
  transition: transform 0.25s, background 0.25s;
}
.vision-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); }
.vision-card .v-icon {
  font-size: 2.4rem;
  color: var(--dss-primary);
  margin-bottom: 0.9rem;
  display: block;
}
.vision-card h4 { font-weight: 700; margin-bottom: 0.7rem; }
.vision-card p { opacity: 0.85; font-size: 0.96rem; line-height: 1.7; margin: 0; }

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.team-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  border-bottom: 4px solid var(--dss-primary);
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(0,0,0,0.12); }
.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--dss-bg);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}
.team-card .t-name { font-weight: 700; color: var(--dss-secondary); font-size: 1.1rem; margin-bottom: 0.15rem; }
.team-card .t-role { color: var(--dss-primary); font-weight: 600; font-size: 0.88rem; margin-bottom: 0.8rem; display: block; }
.team-card .t-bio { color: var(--dss-muted); font-size: 0.86rem; line-height: 1.6; margin: 0; }

/* ===== Media / YouTube ===== */
.media-cta {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
  justify-content: center;
  background: linear-gradient(135deg, #fff 0%, #fff5f4 100%);
  border: 1px solid #f3d6d3;
  border-radius: 16px;
  padding: 1.6rem 2rem;
  max-width: 760px;
  margin: 0 auto 2.8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.media-cta-icon { font-size: 3rem; color: #ff0000; line-height: 1; }
.media-cta-text { flex: 1; min-width: 160px; }
.media-cta-text h3 { font-weight: 800; color: var(--dss-secondary); margin: 0; font-size: 1.25rem; }
.media-cta-text span { color: var(--dss-muted); font-size: 0.9rem; }
.media-cta-btns { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ff0000;
  color: #fff;
  border: 2px solid #ff0000;
  padding: 0.55rem 1.3rem;
  border-radius: 26px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-youtube:hover { background: #cc0000; border-color: #cc0000; color: #fff; transform: translateY(-2px); }
.btn-youtube.outline { background: transparent; color: #ff0000; }
.btn-youtube.outline:hover { background: #ff0000; color: #fff; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.media-card {
  display: block;
  background: var(--dss-bg);
  border-radius: 14px;
  padding: 2rem 1.6rem;
  text-align: center;
  text-decoration: none;
  border-top: 4px solid #ff0000;
  transition: transform 0.25s, box-shadow 0.25s;
}
.media-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.media-card .m-icon { font-size: 2.6rem; color: #ff0000; margin-bottom: 0.8rem; display: block; }
.media-card h4 { font-weight: 700; color: var(--dss-secondary); margin-bottom: 0.5rem; }
.media-card p { color: var(--dss-muted); font-size: 0.95rem; margin: 0 0 1rem; }
.media-card .media-link { color: #ff0000; font-weight: 600; font-size: 0.9rem; }

/* ===== Footer ===== */
.home-footer {
  background: var(--dss-secondary-dark);
  color: #cbd3da;
  text-align: center;
  padding: 2.5rem 1rem;
}
.home-footer .f-logo { font-weight: 700; color: var(--dss-primary); font-size: 1.2rem; margin-bottom: 0.5rem; }
.home-footer .f-links { margin: 1rem 0; display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.home-footer .f-links a { color: #cbd3da; text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.home-footer .f-links a:hover { color: var(--dss-primary); }
.home-footer p { margin: 0.3rem 0; font-size: 0.88rem; opacity: 0.85; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
}
.lightbox .lb-nav:hover { background: var(--dss-primary); }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .pillar-grid, .vision-grid, .media-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .program-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .program-row.reverse .program-gallery { order: 0; }
  .program-row.reverse .program-text { order: 0; }
  .founder-wrap { grid-template-columns: 1fr; text-align: center; }
  .founder-info { text-align: center; }
  .home-navbar .navbar-nav { padding-top: 0.8rem; gap: 0.2rem; }
  .home-navbar .lang-toggle-btn { margin-top: 0.6rem; }
}
@media (max-width: 575px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 4.5rem; }
  .home-section { padding: 3rem 0; }
}
