/* =====================================================================
   NDDA — DESIGN TOKENS + COMPONENTS (cards, stats, sliders, FAQ, tables)
   Moved out of index.php so every page shares one cached stylesheet.
   ===================================================================== */

/* CSS CUSTOM PROPERTIES */
:root {
  --ndda-orange: #da6829;
  --ndda-orange-dark: #b8501e;
  --ndda-orange-light: #ff8c42;
  --ndda-navy: #0d2b52;
  --ndda-navy-light: #1a3f6f;
  --ndda-green: #378028;
  --ndda-blue: #045de9;
  --ndda-gold: #f4a742;
  --ndda-bg: #f8f9fc;
  --ndda-card-bg: #ffffff;
  --ndda-text: #1a1a2e;
  --ndda-text-muted: #5a6275;
  --ndda-border: rgba(0,0,0,0.08);
  --ndda-shadow: 0 4px 24px rgba(13,43,82,0.08);
  --ndda-shadow-hover: 0 12px 40px rgba(13,43,82,0.15);
  --ndda-radius: 16px;
  --ndda-radius-sm: 10px;
  --ndda-radius-lg: 24px;
  --ndda-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* BASE */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ndda-text);
  background: var(--ndda-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.2; }
p { line-height: 1.7; color: var(--ndda-text-muted); }
a { transition: var(--ndda-transition); }


/* ANIMATED GRADIENT H1 */
.ndda-hero-h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--ndda-navy) 0%, var(--ndda-blue) 40%, var(--ndda-orange) 80%, var(--ndda-gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  margin-bottom: 0.5rem;
}
.ndda-hero-h2 {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--ndda-navy);
  font-weight: 600;
  opacity: 0.85;
}
@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* SECTION STYLING */
.ndda-section { padding-top: 60px; padding-bottom: 60px; clear: both; }
.ndda-section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ndda-navy);
  margin-bottom: 0.5rem;
}
.ndda-section-subtitle {
  font-size: 1rem;
  color: var(--ndda-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.ndda-section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--ndda-orange), var(--ndda-gold));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* CSS MARQUEE TICKER (replaces deprecated <marquee>) */
.ndda-ticker-wrap {
  background: linear-gradient(135deg, var(--ndda-orange) 0%, var(--ndda-orange-dark) 100%);
  padding: 10px 0;
  border-radius: var(--ndda-radius-sm);
  overflow: hidden;
  position: relative;
}
.ndda-ticker {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
}
.ndda-ticker:hover { animation-play-state: paused; }
.ndda-ticker-item {
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 20px;
  display: inline-block;
  margin-right: 12px;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* COURSE CARDS — GLASSMORPHISM */
.ndda-course-card {
  background: var(--ndda-card-bg);
  border: 1px solid var(--ndda-border);
  border-radius: var(--ndda-radius);
  padding: 28px 24px;
  transition: var(--ndda-transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.ndda-course-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ndda-orange), var(--ndda-gold), var(--ndda-blue));
  opacity: 0;
  transition: var(--ndda-transition);
}
.ndda-course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ndda-shadow-hover);
  border-color: rgba(218, 104, 41, 0.2);
}
.ndda-course-card:hover::before { opacity: 1; }
.ndda-course-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(218,104,41,0.1), rgba(4,93,233,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--ndda-orange);
  margin-bottom: 16px;
  transition: var(--ndda-transition);
}
.ndda-course-card:hover .ndda-course-icon {
  background: linear-gradient(135deg, var(--ndda-orange), var(--ndda-orange-dark));
  color: #fff;
  transform: scale(1.1);
}
.ndda-course-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ndda-navy); margin-bottom: 10px; }
.ndda-course-card h3 a { color: var(--ndda-navy); text-decoration: none; }
.ndda-course-card h3 a:hover { color: var(--ndda-orange); }
.ndda-course-card p { font-size: 0.9rem; color: var(--ndda-text-muted); margin-bottom: 8px; }
.ndda-course-card ul { padding-left: 18px; margin: 0; }
.ndda-course-card ul li { font-size: 0.85rem; color: var(--ndda-text-muted); margin-bottom: 4px; line-height: 1.5; }

/* STATS COUNTER SECTION */
.ndda-stats-section {
  background: linear-gradient(135deg, var(--ndda-navy) 0%, #0a1f3d 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  clear: both;
}
.ndda-stats-section::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(218,104,41,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.ndda-stat-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--ndda-radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: var(--ndda-transition);
  height: 100%;
}
.ndda-stat-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.ndda-stat-icon { font-size: 32px; color: var(--ndda-orange); margin-bottom: 12px; }
.ndda-stat-number { font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 4px; }
.ndda-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.ndda-stat-year { font-size: 0.75rem; color: var(--ndda-orange); font-weight: 600; margin-top: 4px; }

/* WHY CHOOSE US — ICON CARDS */
.ndda-why-card {
  background: var(--ndda-card-bg);
  border-radius: var(--ndda-radius);
  padding: 28px 24px;
  box-shadow: var(--ndda-shadow);
  transition: var(--ndda-transition);
  height: 100%;
}
.ndda-why-card:hover { transform: translateY(-6px); box-shadow: var(--ndda-shadow-hover); }
.ndda-why-card h3 { font-size: 1.1rem; color: var(--ndda-navy); margin-bottom: 10px; }
.ndda-why-card p, .ndda-why-card ul { font-size: 0.9rem; color: var(--ndda-text-muted); }
.ndda-why-card ul { padding-left: 18px; }
.ndda-why-card ul li { margin-bottom: 4px; }

/* GALLERY HOVER EFFECTS */
.ndda-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.ndda-gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--ndda-radius-sm);
  height: 280px;
}
.ndda-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ndda-gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,43,82,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ndda-gallery-item:hover img { transform: scale(1.08); }
.ndda-gallery-item:hover::after { opacity: 1; }

/* FAQ ACCORDION — MODERN */
.ndda-faq-item {
  background: var(--ndda-card-bg);
  border: 1px solid var(--ndda-border);
  border-radius: var(--ndda-radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--ndda-transition);
}
.ndda-faq-item:hover { border-color: rgba(218,104,41,0.3); }
.ndda-faq-btn {
  width: 100%; padding: 18px 24px;
  background: transparent; border: none;
  text-align: left;
  font-size: 0.95rem; font-weight: 600;
  color: var(--ndda-navy);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--ndda-transition);
  font-family: 'Inter', sans-serif;
}
.ndda-faq-btn::after {
  content: '+';
  font-size: 1.3rem; font-weight: 300;
  color: var(--ndda-orange);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.ndda-faq-btn.active { color: var(--ndda-orange); background: rgba(218,104,41,0.04); }
.ndda-faq-btn.active::after { content: '\2212'; }
.ndda-faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.ndda-faq-panel-inner { padding: 0 24px 18px; font-size: 0.9rem; color: var(--ndda-text-muted); line-height: 1.7; }

/* CTA / FIXED BG */
.ndda-cta-section {
  background: linear-gradient(135deg, var(--ndda-navy) 0%, #0a1f3d 60%, var(--ndda-navy-light) 100%);
  padding: 50px 0;
  clear: both;
}
.ndda-cta-section h3 { color: var(--ndda-orange); font-size: 1.5rem; margin-bottom: 16px; }
.ndda-cta-section p, .ndda-cta-section span { color: rgba(255,255,255,0.9); font-size: 1rem; line-height: 1.8; }

/* VIDEO CARDS */
.ndda-video-card {
  background: var(--ndda-card-bg);
  border-radius: var(--ndda-radius);
  overflow: hidden;
  box-shadow: var(--ndda-shadow);
  transition: var(--ndda-transition);
  border: 1px solid var(--ndda-border);
}
.ndda-video-card:hover { transform: translateY(-6px); box-shadow: var(--ndda-shadow-hover); }
.ndda-video-info { padding: 16px 20px; }
.ndda-video-info h4 { font-size: 0.95rem; font-weight: 600; color: var(--ndda-navy); margin-bottom: 8px; }
.ndda-yt-btn {
  display: inline-block; padding: 6px 16px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff !important; border-radius: 6px;
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none;
  transition: var(--ndda-transition);
}
.ndda-yt-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(255,0,0,0.3); color: #fff !important; }

/* PROVIDES / FEATURES GRID */
.ndda-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.ndda-feature-card {
  background: var(--ndda-card-bg);
  border-radius: var(--ndda-radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--ndda-shadow);
  border: 1px solid var(--ndda-border);
  transition: var(--ndda-transition);
}
.ndda-feature-card:hover { transform: translateY(-6px); box-shadow: var(--ndda-shadow-hover); border-color: rgba(218,104,41,0.2); }
.ndda-feature-card i { font-size: 2rem; color: var(--ndda-orange); margin-bottom: 12px; display: block; }
.ndda-feature-card .feat-title { font-size: 1rem; font-weight: 700; color: var(--ndda-navy); margin-bottom: 8px; }
.ndda-feature-card .feat-text { font-size: 0.85rem; color: var(--ndda-text-muted); line-height: 1.6; }

/* ADMISSION TABLE */
.ndda-admission-section {
  background: linear-gradient(180deg, var(--ndda-bg) 0%, #eef2f7 100%);
  padding: 60px 20px;
}
.ndda-table-wrapper {
  background: var(--ndda-card-bg);
  padding: 28px;
  border-radius: var(--ndda-radius-lg);
  box-shadow: var(--ndda-shadow);
  overflow-x: auto;
}
.ndda-admission-table { width: 100%; border-collapse: collapse; }
.ndda-admission-table thead { background: linear-gradient(135deg, var(--ndda-navy), var(--ndda-navy-light)); color: #fff; }
.ndda-admission-table th { padding: 16px 18px; text-align: left; font-size: 0.9rem; font-weight: 600; }
.ndda-admission-table td { padding: 14px 18px; border-bottom: 1px solid var(--ndda-border); color: var(--ndda-text-muted); font-size: 0.9rem; }
.ndda-admission-table tbody tr:hover { background: rgba(218,104,41,0.04); }
.ndda-section-row td { background: linear-gradient(135deg, var(--ndda-orange), var(--ndda-orange-dark)); color: #fff; font-weight: 700; font-size: 1rem; }

/* ENQUIRY FORM */
.ndda-enquiry-card { border: none !important; border-radius: var(--ndda-radius) !important; overflow: hidden; box-shadow: var(--ndda-shadow); }
.ndda-enquiry-card .card-header { background: linear-gradient(135deg, var(--ndda-navy), var(--ndda-navy-light)) !important; padding: 16px !important; border: none !important; }
.ndda-enquiry-card .card-header p { color: #fff !important; font-weight: 600; font-size: 1.2rem !important; margin: 0; }
.ndda-enquiry-card .form-control { border-radius: 8px; border: 1px solid #e0e4ea; font-size: 0.9rem; padding: 10px 14px; transition: var(--ndda-transition); }
.ndda-enquiry-card .form-control:focus { border-color: var(--ndda-orange); box-shadow: 0 0 0 3px rgba(218,104,41,0.15); }
.ndda-enquiry-card .btn { background: linear-gradient(135deg, var(--ndda-orange), var(--ndda-orange-dark)) !important; border: none !important; border-radius: 8px !important; padding: 12px 32px !important; font-weight: 600; transition: var(--ndda-transition); }
.ndda-enquiry-card .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(218,104,41,0.4); }

/* IMAGES keep aspect ratio when width/height attributes are set */
img { height: auto; }

/* YOUTUBE: thumbnail first, real player loads only on click (saves ~1 MB per video) */
.yt-facade { position:absolute; inset:0; width:100%; height:100%; border:0; padding:0; margin:0; background:#000; cursor:pointer; }
.yt-facade img { width:100%; height:100%; object-fit:cover; display:block; opacity:.9; transition:opacity .2s; }
.yt-facade:hover img { opacity:1; }
.yt-play { position:absolute; left:50%; top:50%; width:68px; height:48px; transform:translate(-50%,-50%); background:#f00; border-radius:14px; }
.yt-play::after { content:''; position:absolute; left:27px; top:14px; border-style:solid; border-width:10px 0 10px 18px; border-color:transparent transparent transparent #fff; }

/* Names under achiever / testimonial images (text Google can read) */
.ndda-caption { margin:8px 0 0; font-size:.85rem; font-weight:600; color:var(--ndda-navy); text-align:center; line-height:1.3; }

/* ONLOAD MODAL */
.modal-preview { position:fixed; width:100%; height:100vh; top:0; left:0; background-color:rgba(0,0,0,.55); display:none; justify-content:center; align-items:center; z-index:99999; backdrop-filter: blur(4px); }
.load-modal { width:min(475px,90%); border-radius: var(--ndda-radius); background:#fff; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: modalSlideIn 0.4s ease; }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
.load-modal-header { padding:10px 16px; background: linear-gradient(135deg, var(--ndda-orange), var(--ndda-orange-dark)); display:flex; align-items:center; justify-content:flex-end; }
#close-load-modal { background:transparent; border:none; color:#fff; font-size: 20px; opacity:.75; cursor: pointer; transition: var(--ndda-transition); }
#close-load-modal:hover { opacity:1; transform: rotate(90deg); }
.load-modal-body { padding: 20px; }

/* SLIDER (single definition — no duplicates) */
.slider-container { width:100%; overflow:hidden; position:relative; padding: 0 40px; }
.slider-track { display:flex; transition:transform .5s ease-in-out; width:100%; }
.slide { box-sizing:border-box; padding:8px; flex-shrink:0; }
.slide img { width:100%; height:auto; display:block; border-radius: var(--ndda-radius-sm); box-shadow: var(--ndda-shadow); transition: var(--ndda-transition); }
.slide img:hover { transform: scale(1.03); box-shadow: var(--ndda-shadow-hover); }
.slider-prev,.slider-next { position:absolute; top:50%; transform:translateY(-50%); background: var(--ndda-orange); color:#fff; padding:12px 15px; border:none; cursor:pointer; z-index:10; border-radius:50%; font-size: 16px; transition: var(--ndda-transition); box-shadow: 0 4px 12px rgba(218,104,41,0.3); }
.slider-prev { left:4px; }
.slider-next { right:4px; }
.slider-prev:hover,.slider-next:hover { background: var(--ndda-orange-dark); transform: translateY(-50%) scale(1.1); }
@media(max-width:768px){ .slide { flex:0 0 100%; } .slider-container { padding: 0 30px; } }
@media(min-width:769px){ .slide { flex:0 0 25%; } }

/* NDDA CUSTOM CAROUSEL (Achievers + Testimonials) */
.ndda-carousel-section { padding:20px 0 40px; }
.ndda-carousel-outer { position:relative; display:flex; align-items:center; gap:8px; max-width:1200px; margin:0 auto; padding:0 8px; }
.ndda-viewport { overflow:hidden; flex:1; }
.ndda-track { display:flex; gap:12px; transition:transform .45s cubic-bezier(.4,0,.2,1); will-change:transform; }
.ndda-item { flex:0 0 calc(20% - 10px); min-width:0; }
.ndda-item img { width:100%; height:auto; display:block; border-radius: var(--ndda-radius-sm); box-shadow: var(--ndda-shadow); transition: var(--ndda-transition); }
.ndda-item img:hover { transform: scale(1.04); box-shadow: var(--ndda-shadow-hover); }
.ndda-btn { width:44px; height:44px; border-radius:50%; border:none; background: var(--ndda-orange); color:#fff; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition: var(--ndda-transition); box-shadow: 0 4px 12px rgba(218,104,41,0.3); }
.ndda-btn:hover { background: var(--ndda-orange-dark); transform: scale(1.1); }
@media(max-width:992px){ .ndda-item { flex:0 0 calc(33.33% - 8px); } }
@media(max-width:600px){ .ndda-item { flex:0 0 calc(100% - 12px); } }

/* MAP */
.custom-map-container { position:relative; width:100%; height:450px; overflow:hidden; max-width:100vw; border-radius: var(--ndda-radius); }
.custom-map-container iframe { position:absolute; top:0; left:0; width:100%!important; height:100%!important; border:0!important; }
@media screen and (max-width:768px){ .custom-map-container { height:300px!important; } }

/* GOOGLE REVIEWS */
.google-reviews-wrapper { width:100%; max-width:100vw; overflow-x:hidden; margin:0 auto; padding:10px 0; }
.google-reviews-wrapper iframe { max-width:100%!important; }

/* SCROLL REVEAL */
.ndda-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.ndda-reveal.revealed { opacity: 1; transform: translateY(0); }

/* RESPONSIVE OVERLAP FIXES FOR MOBILE */
@media (max-width: 768px) {
  .ndda-section { padding-top: 40px; padding-bottom: 40px; }
  .ndda-hero-h1 { font-size: 1.3rem; }
  .ndda-stat-number { font-size: 1.8rem; }
  .ndda-stat-card { padding: 20px 12px; }
  .ndda-stats-section { padding: 40px 0; }
  .ndda-course-card, .ndda-why-card { padding: 20px 16px; height: auto; }
  .ndda-gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
  .ndda-gallery-item { height: 180px; }
  .ndda-features-grid { grid-template-columns: 1fr 1fr; }
  .ndda-section-title { font-size: 1.3rem; }
  #carouselExampleInterval,
  #carouselExampleInterval .carousel-inner,
  #carouselExampleInterval .carousel-item,
  #carouselExampleInterval .carousel-item img {
    height: auto !important;
  }
  .video-grid {
    grid-template-columns: 1fr !important;
    padding: 0 12px !important;
  }
  .ndda-admission-section { padding: 30px 10px; }
  .ndda-table-wrapper { padding: 14px; }
}
@media (max-width: 480px) {
  .ndda-features-grid { grid-template-columns: 1fr; }
}
