/* ============================================
   NIMASHA DILHANI PORTFOLIO — PLUGIN STYLES
   ============================================ */

:root {
  --nd-navy: #0a1628;
  --nd-navy-mid: #122040;
  --nd-navy-light: #1a3060;
  --nd-gold: #c9a84c;
  --nd-gold-light: #e8c96a;
  --nd-gold-pale: #f5e6b8;
  --nd-champagne: #f7f0de;
  --nd-white: #ffffff;
  --nd-off-white: #fafaf7;
  --nd-muted: #8a9bb5;
  --nd-border: rgba(201, 168, 76, 0.2);
  --nd-header-bg: rgba(10, 22, 40, 0.97);
  --nd-footer-bg: #060e1a;
  /* Grade colors — all themes use same gold for consistency */
  --nd-grade-a:  #c9a84c;
  --nd-grade-ab: #c9a84c;
  --nd-grade-b:  #c9a84c;
  --nd-grade-c:  #c9a84c;
}

/* ── RESET for plugin scope ── */
.nd-section, .nd-header, .nd-footer,
.nd-section *, .nd-header *, .nd-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.nd-section { font-family: 'Montserrat', sans-serif; }

/* ── HEADER ── */
.nd-header {
  position: relative;
  top: auto;
  z-index: 100;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  background: var(--nd-header-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nd-border);
  transition: padding 0.3s, background 0.3s;
  font-family: 'Montserrat', sans-serif;
}
.nd-header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nd-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--nd-white);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nd-logo span { color: var(--nd-gold); }
.nd-nav ul { display: flex; gap: 32px; list-style: none; }
.nd-nav ul a {
  color: var(--nd-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nd-nav ul a:hover { color: var(--nd-gold); }
.nd-nav-cta {
  background: var(--nd-gold) !important;
  color: var(--nd-navy) !important;
  padding: 10px 24px;
  border-radius: 2px;
  font-weight: 700 !important;
}
.nd-nav-cta:hover { background: var(--nd-gold-light) !important; }
.nd-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--nd-white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── SECTION BASE ── */
.nd-section { padding: 100px 0; }
.nd-dark { background: var(--nd-navy); position: relative; overflow: hidden; }
.nd-dark::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.nd-container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

/* ── LABELS & TITLES ── */
.nd-section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.nd-section-label-line { width: 32px; height: 2px; background: var(--nd-gold); flex-shrink: 0; }
.nd-section-label span {
  font-size: 0.72rem; color: var(--nd-gold);
  font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.nd-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700; color: var(--nd-navy);
  line-height: 1.15; letter-spacing: -0.01em;
}
.nd-light { color: var(--nd-white) !important; }
.nd-gold-italic { color: var(--nd-gold); font-style: italic; font-family: 'Cormorant Garamond', serif; }

/* ── BUTTONS ── */
.nd-btn-primary {
  background: var(--nd-gold); color: var(--nd-navy);
  padding: 16px 36px; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: all 0.3s; display: inline-block;
  box-shadow: 0 8px 32px rgba(201,168,76,0.3);
}
.nd-btn-primary:hover { background: var(--nd-gold-light); transform: translateY(-2px); color: var(--nd-navy); }
.nd-btn-secondary {
  background: transparent; color: var(--nd-white);
  padding: 14px 34px; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s; display: inline-block;
}
.nd-btn-secondary:hover { border-color: var(--nd-gold); color: var(--nd-gold); }

/* ── HERO ── */
.nd-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--nd-navy) 0%, var(--nd-navy-mid) 50%, var(--nd-navy-light) 100%);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative; overflow: hidden;
}
.nd-hero-bg-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 50%);
}
.nd-hero-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nd-hero-lines::before, .nd-hero-lines::after {
  content: ''; position: absolute;
  border: 1px solid rgba(201,168,76,0.08); border-radius: 50%;
}
.nd-hero-lines::before { width: 900px; height: 900px; top: -200px; right: -200px; }
.nd-hero-lines::after  { width: 600px; height: 600px; bottom: -100px; left: -100px; }

.nd-hero-image-col {
  position: relative; height: 100vh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.nd-hero-image-wrapper { width: 100%; height: 100%; position: relative; }
.nd-hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.nd-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 30%, rgba(10,22,40,0.6) 70%, var(--nd-navy-mid) 100%);
}
.nd-hero-overlay-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 30%;
  background: linear-gradient(to top, var(--nd-navy) 0%, transparent 100%);
}

.nd-hero-content { padding: 80px 64px 80px 40px; position: relative; z-index: 2; }
.nd-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.nd-eyebrow-line { width: 40px; height: 2px; background: var(--nd-gold); }
.nd-eyebrow span { color: var(--nd-gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }

.nd-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  font-weight: 700; color: var(--nd-white);
  line-height: 1.1; margin-bottom: 24px;
}
.nd-hero-title em { color: var(--nd-gold); font-style: italic; }

.nd-hero-subtitle {
  color: rgba(255,255,255,0.65); font-size: 0.92rem; line-height: 1.8; font-weight: 300;
  max-width: 440px; margin-bottom: 48px;
  border-left: 2px solid var(--nd-gold); padding-left: 20px;
}
.nd-hero-subtitle strong { color: var(--nd-gold-light); font-weight: 500; }

.nd-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.nd-hero-stats { display: flex; gap: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.nd-stat { text-align: left; }
.nd-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 700; color: var(--nd-gold); line-height: 1; display: block; }
.nd-stat-label { font-size: 0.68rem; color: var(--nd-muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px; display: block; }

/* ── TICKER ── */
.nd-ticker-bar { background: var(--nd-gold); padding: 14px 0; overflow: hidden; }
.nd-ticker-track { display: flex; animation: nd-ticker 25s linear infinite; width: max-content; }
.nd-ticker-item {
  white-space: nowrap; padding: 0 48px;
  font-size: 0.75rem; font-weight: 700;
  color: var(--nd-navy); letter-spacing: 0.15em; text-transform: uppercase;
}
.nd-ticker-item::after { content: '◆'; margin-left: 48px; opacity: 0.5; }
@keyframes nd-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── ABOUT ── */
.nd-about { background: var(--nd-white); }
.nd-about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.nd-about-image-col { position: relative; }
.nd-about-main-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: 2px; box-shadow: 0 32px 80px rgba(10,22,40,0.2); display: block; }
.nd-about-badge {
  position: absolute; bottom: 220px; right: -24px;
  background: var(--nd-navy); color: var(--nd-white);
  padding: 24px 28px; border-radius: 2px; text-align: center;
  box-shadow: 0 16px 48px rgba(10,22,40,0.3);
}
.nd-badge-num { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 700; color: var(--nd-gold); line-height: 1; display: block; }
.nd-badge-text { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nd-muted); display: block; margin-top: 6px; }

.nd-classroom-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 16px; overflow: hidden; }
.nd-classroom-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.4s; }
.nd-classroom-img:hover { transform: scale(1.03); }

.nd-about-intro { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--nd-navy); line-height: 1.6; margin: 24px 0; font-style: italic; }
.nd-about-text { font-size: 0.9rem; color: #4a5568; line-height: 1.9; margin-bottom: 20px; }

.nd-credential-list { list-style: none; margin: 32px 0; display: flex; flex-direction: column; gap: 14px; }
.nd-credential-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.88rem; color: var(--nd-navy); font-weight: 500; }
.nd-cred-icon { width: 32px; height: 32px; background: var(--nd-champagne); border: 1px solid var(--nd-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; }

/* ── CLASSES ── */
.nd-classes-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 60px; }
.nd-classes-desc { color: rgba(255,255,255,0.4); font-size: 0.85rem; max-width: 280px; text-align: right; line-height: 1.7; }
.nd-course-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.nd-course-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.15);
  border-radius: 2px; padding: 40px 32px; position: relative; overflow: hidden;
  transition: all 0.4s;
}
.nd-course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--nd-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.nd-course-card:hover { background: rgba(201,168,76,0.06); border-color: rgba(201,168,76,0.35); transform: translateY(-4px); }
.nd-course-card:hover::before { transform: scaleX(1); }
.nd-featured { background: linear-gradient(135deg, rgba(201,168,76,0.12) 0%, rgba(201,168,76,0.05) 100%) !important; border-color: rgba(201,168,76,0.4) !important; }
.nd-featured-badge { position: absolute; top: 20px; right: 20px; background: var(--nd-gold); color: var(--nd-navy); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 2px; }

.nd-course-year { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 700; color: var(--nd-gold); line-height: 1; margin-bottom: 16px; display: block; opacity: 0.85; }
.nd-course-name { font-size: 1.05rem; font-weight: 700; color: var(--nd-white); margin-bottom: 8px; }
.nd-course-type { font-size: 0.72rem; color: var(--nd-gold); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; margin-bottom: 24px; }
.nd-course-divider { width: 32px; height: 1px; background: var(--nd-gold); margin-bottom: 24px; }
.nd-location-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nd-location-list li { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.nd-loc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--nd-gold); flex-shrink: 0; }
.nd-course-features { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; gap: 8px; }
.nd-feature-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2); color: var(--nd-gold-light); border-radius: 2px; }

/* ── RESULTS ── */
.nd-results { background: var(--nd-off-white); }
.nd-results-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 72px; }
.nd-results-highlight { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-style: italic; color: var(--nd-navy); line-height: 1.5; padding: 24px; border-left: 3px solid var(--nd-gold); background: var(--nd-champagne); border-radius: 0 2px 2px 0; }
.nd-results-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.nd-result-card { background: var(--nd-white); border: 1px solid #e8e0d0; border-radius: 2px; padding: 32px 24px; text-align: center; transition: all 0.3s; }
.nd-result-card:hover { border-color: var(--nd-gold); box-shadow: 0 12px 40px rgba(10,22,40,0.1); transform: translateY(-3px); }
.nd-result-grades { font-family: 'Montserrat', sans-serif; font-size: 2.4rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.nd-grade-a  { color: var(--nd-grade-a); }
.nd-grade-ab { color: var(--nd-grade-ab); }
.nd-grade-b  { color: var(--nd-grade-b); }
.nd-grade-c  { color: var(--nd-grade-c); }
.nd-result-name { font-size: 0.9rem; font-weight: 700; color: var(--nd-navy); margin-bottom: 4px; }
.nd-result-school { font-size: 0.72rem; color: #8a9bb5; letter-spacing: 0.05em; margin-bottom: 16px; }
.nd-district-rank { display: inline-flex; align-items: center; gap: 6px; background: var(--nd-navy); color: var(--nd-gold); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 2px; }
.nd-rank-alt { background: var(--nd-navy-light); }

/* ── WHY ── */
.nd-why-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; margin-top: 60px; border: 1px solid rgba(201,168,76,0.15); }
.nd-why-item { padding: 48px 40px; border: 1px solid rgba(201,168,76,0.08); background: rgba(255,255,255,0.02); transition: background 0.3s; }
.nd-why-item:hover { background: rgba(201,168,76,0.05); }
.nd-why-number { font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 700; color: rgba(201,168,76,0.12); line-height: 1; display: block; margin-bottom: 16px; }
.nd-why-title { font-size: 1rem; font-weight: 700; color: var(--nd-gold); margin-bottom: 12px; letter-spacing: 0.03em; }
.nd-why-text { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.8; }

/* ── CONTACT ── */
.nd-contact { background: var(--nd-white); }
.nd-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.nd-contact-intro { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-style: italic; color: var(--nd-navy); line-height: 1.6; margin: 24px 0 40px; }
.nd-contact-detail { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e8e0d0; }
.nd-contact-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--nd-champagne); border: 1px solid var(--nd-gold); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.nd-contact-label { font-size: 0.68rem; color: var(--nd-muted); letter-spacing: 0.12em; text-transform: uppercase; display: block; }
.nd-contact-value { font-size: 0.92rem; font-weight: 600; color: var(--nd-navy); display: block; margin-top: 3px; }

.nd-contact-form { background: var(--nd-off-white); border: 1px solid #e8e0d0; padding: 48px 40px; border-radius: 2px; }
.nd-form-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--nd-navy); margin-bottom: 32px; }
.nd-form-group { margin-bottom: 20px; }
.nd-form-group label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nd-navy); margin-bottom: 8px; font-family: 'Montserrat', sans-serif; }
.nd-form-group input, .nd-form-group select, .nd-form-group textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #d8d0c0; border-radius: 2px;
  font-family: 'Montserrat', sans-serif; font-size: 0.88rem; color: var(--nd-navy);
  background: var(--nd-white); outline: none; transition: border-color 0.3s;
}
.nd-form-group input:focus, .nd-form-group select:focus, .nd-form-group textarea:focus { border-color: var(--nd-gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.08); }
.nd-form-group textarea { resize: vertical; min-height: 100px; }
.nd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nd-btn-submit { width: 100%; background: var(--nd-navy); color: var(--nd-gold); padding: 16px; border: none; cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; border-radius: 2px; transition: all 0.3s; margin-top: 8px; }
.nd-btn-submit:hover { background: var(--nd-gold); color: var(--nd-navy); box-shadow: 0 8px 32px rgba(201,168,76,0.3); }
.nd-form-success { margin-top: 16px; padding: 14px; background: #f0fff4; border: 1px solid #68d391; color: #276749; border-radius: 2px; font-size: 0.88rem; text-align: center; }

/* ── FOOTER ── */
.nd-footer { background: var(--nd-footer-bg); padding: 60px 0 32px; font-family: 'Montserrat', sans-serif; }
.nd-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.nd-footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.nd-footer-name { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--nd-white); margin-bottom: 12px; }
.nd-footer-name span { color: var(--nd-gold); }
.nd-footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.35); line-height: 1.8; max-width: 280px; }
.nd-footer-col-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--nd-gold); margin-bottom: 20px; }
.nd-footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nd-footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.3s; }
.nd-footer-links a:hover { color: var(--nd-gold); }
.nd-footer-bottom { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.nd-footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.2); letter-spacing: 0.05em; }
.nd-footer-credit { font-size: 0.72rem; color: rgba(255,255,255,0.2); }
.nd-footer-credit a { color: rgba(201,168,76,0.5); text-decoration: none; transition: color 0.3s; }
.nd-footer-credit a:hover { color: var(--nd-gold); }

/* ── WHATSAPP FLOAT ── */
.nd-whatsapp-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 99999;
  display: flex; align-items: center; gap: 12px;
  background: #25d366; color: white; text-decoration: none;
  padding: 14px 20px; border-radius: 50px;
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
  font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.05em; transition: all 0.3s;
  animation: nd-float 3s ease-in-out infinite;
}
.nd-whatsapp-float:hover { transform: scale(1.05) translateY(-3px) !important; box-shadow: 0 12px 40px rgba(37,211,102,0.5); color: white; }
.nd-whatsapp-float svg { width: 22px; height: 22px; fill: white; flex-shrink: 0; }
@keyframes nd-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── SCROLL REVEAL ── */
.nd-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.nd-reveal.nd-visible { opacity: 1; transform: translateY(0); }

/* ── IMAGE MISSING PLACEHOLDER ── */
.nd-img-missing {
  background: #e8e0d0; padding: 40px 20px; text-align: center;
  font-size: 0.82rem; color: #888; border: 2px dashed #c9a84c;
  min-height: 200px; display: flex; align-items: center; justify-content: center;
}
.nd-img-missing-small {
  background: #e8e0d0; padding: 20px 10px; text-align: center;
  font-size: 0.7rem; color: #888; border: 2px dashed #c9a84c;
  min-height: 80px; display: flex; align-items: center; justify-content: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nd-header, .nd-header-sticky-clone { padding: 14px 20px !important; }
  .nd-nav { display: none; }
  .nd-nav.open { display: block; position: absolute; top: 60px; left: 0; right: 0; background: var(--nd-navy); padding: 20px; }
  .nd-nav.open ul { flex-direction: column; gap: 16px; }
  .nd-menu-toggle { display: block; }
  .nd-hero { grid-template-columns: 1fr; }
  .nd-hero-image-col { height: 50vh; }
  .nd-hero-content { padding: 40px 24px; }
  .nd-hero-stats { gap: 20px; flex-wrap: wrap; }
  .nd-about-grid, .nd-results-intro, .nd-contact-grid, .nd-classes-header, .nd-footer-top { grid-template-columns: 1fr; gap: 40px; }
  .nd-course-grid, .nd-results-grid, .nd-why-grid { grid-template-columns: 1fr; }
  .nd-container { padding: 0 20px; }
  .nd-form-row { grid-template-columns: 1fr; }
  .nd-about-badge { bottom: 220px; right: -8px; }
  .nd-classes-desc { text-align: left; max-width: 100%; }
  .nd-wa-label { display: none; }
  .nd-whatsapp-float { padding: 14px; border-radius: 50%; }
  .nd-footer-inner { padding: 0 20px; }
}

/* ── CONTACT LINKS ── */
.nd-contact-link { color: var(--nd-gold); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.nd-contact-link:hover { color: var(--nd-gold-light); text-decoration: underline; }
.nd-form-error { margin-top: 16px; padding: 14px; background: #fff5f5; border: 1px solid #fc8181; color: #c53030; border-radius: 2px; font-size: 0.88rem; text-align: center; }
.nd-form-error a { color: #c53030; font-weight: 700; }

/* ── FOOTER NAME LINK ── */
.nd-footer-name-link { text-decoration: none; }
.nd-footer-name-link .nd-footer-name { cursor: pointer; transition: opacity 0.2s; }
.nd-footer-name-link:hover .nd-footer-name { opacity: 0.8; }

/* ── GALLERY SECTION ── */
.nd-gallery { background: var(--nd-white); }
.nd-gallery-header { text-align:center; margin-bottom:48px; }
.nd-gallery-header .nd-section-label { justify-content:center; }
.nd-gallery-subtitle { color:#4a5568; font-size:0.9rem; margin-top:12px; max-width:600px; margin-left:auto; margin-right:auto; }

.nd-gallery-grid {
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:12px;
}
.nd-gallery-item {
  position:relative; overflow:hidden; cursor:pointer;
  aspect-ratio:4/3; border-radius:2px;
}
.nd-gallery-item img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.4s; }
.nd-gallery-item:hover img { transform:scale(1.06); }
.nd-gallery-overlay {
  position:absolute; inset:0;
  background:rgba(10,22,40,0); display:flex; align-items:center; justify-content:center;
  transition:background 0.3s;
}
.nd-gallery-overlay span { font-size:1.8rem; opacity:0; transition:opacity 0.3s; }
.nd-gallery-item:hover .nd-gallery-overlay { background:rgba(10,22,40,0.5); }
.nd-gallery-item:hover .nd-gallery-overlay span { opacity:1; }

.nd-gallery-empty {
  text-align:center; padding:80px 20px;
  background:var(--nd-off-white); border:2px dashed #c9a84c;
  border-radius:4px; color:#888;
}
.nd-gallery-empty-icon { font-size:3rem; margin-bottom:12px; }

/* Lightbox */
.nd-lightbox {
  display:none; position:fixed; inset:0; z-index:99999;
  background:rgba(0,0,0,0.92); align-items:center; justify-content:center;
}
.nd-lightbox.nd-lb-open { display:flex; }
.nd-lb-inner { max-width:90vw; max-height:90vh; }
.nd-lb-inner img { max-width:100%; max-height:90vh; object-fit:contain; border-radius:2px; }
.nd-lb-close,.nd-lb-prev,.nd-lb-next {
  position:fixed; background:rgba(255,255,255,0.1); border:none;
  color:#fff; font-size:1.8rem; cursor:pointer; border-radius:50%;
  width:48px; height:48px; display:flex; align-items:center; justify-content:center;
  transition:background 0.2s;
}
.nd-lb-close:hover,.nd-lb-prev:hover,.nd-lb-next:hover { background:rgba(201,168,76,0.4); }
.nd-lb-close { top:20px; right:20px; }
.nd-lb-prev  { left:16px; top:50%; transform:translateY(-50%); }
.nd-lb-next  { right:16px; top:50%; transform:translateY(-50%); }

/* ── WHY NUMBER FIX — brighter ── */
.nd-why-number { color: rgba(201,168,76,0.55) !important; }

/* ── STICKY HEADER — JS controlled ── */
/* nd-header sticky is handled by inline JS in header.php */
/* Elementor free: JS clones header into a fixed overlay */
.nd-header-sticky-clone {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  transform: translateY(-100%);
  transition: transform 0.3s ease, background 0.3s;
  background: var(--nd-header-bg) !important;
}
.nd-header-sticky-clone.nd-sticky-visible {
  transform: translateY(0);
}

/* ── COLOR THEMES ── */
/* Forest Green & Gold */
body.nd-theme-forest-gold {
  --nd-navy:       #0d2b1a;
  --nd-navy-mid:   #163d27;
  --nd-navy-light: #1f5235;
  --nd-header-bg:  rgba(10, 43, 26, 0.97);
  --nd-footer-bg:  #061508;
  /* Grade colors — all use same theme gold for visual consistency */
  --nd-grade-a:  #c9a84c;
  --nd-grade-ab: #c9a84c;
  --nd-grade-b:  #c9a84c;
  --nd-grade-c:  #c9a84c;
}
/* Deep Maroon & Gold */
body.nd-theme-maroon-gold {
  --nd-navy:       #1a0a14;
  --nd-navy-mid:   #2d1222;
  --nd-navy-light: #3f1a30;
  --nd-header-bg:  rgba(26, 10, 20, 0.97);
  --nd-footer-bg:  #0a0408;
  /* Grade colors — all use same theme gold for visual consistency */
  --nd-grade-a:  #d4a853;
  --nd-grade-ab: #d4a853;
  --nd-grade-b:  #d4a853;
  --nd-grade-c:  #d4a853;
}

/* Gallery responsive */
@media (max-width:900px) {
  .nd-gallery-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:500px) {
  .nd-gallery-grid { grid-template-columns:1fr 1fr; gap:6px; }
  .nd-lb-prev { left:4px; }
  .nd-lb-next { right:4px; }
}
