/* ============================================
   GEMMOLOGY COURSES PUNE — STYLES
   Tone: Luxury/Refined · Palette: Monochrome Luxe + Gold
   Fonts: Cormorant Garamond + Plus Jakarta Sans
   ============================================ */

:root {
  --gold:        #B8860B;
  --gold-light:  #D4A843;
  --gold-pale:   #F5E6C0;
  --black:       #0F0F0F;
  --dark:        #1A1A1A;
  --mid:         #3A3A3A;
  --muted:       #7A7A7A;
  --light:       #E8E4DF;
  --off-white:   #F7F5F2;
  --white:       #FAFAFA;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Gem facets — decorative polygons */
.facet {
  position: absolute;
  opacity: 0.07;
  background: linear-gradient(135deg, var(--gold), transparent);
  animation: facetFloat 8s ease-in-out infinite;
}
.f1 { width: 420px; height: 420px; top: -80px; right: -60px; clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); animation-delay: 0s; }
.f2 { width: 280px; height: 280px; bottom: 60px; left: -40px; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); animation-delay: 1.5s; opacity: 0.05; }
.f3 { width: 180px; height: 180px; top: 30%; left: 10%; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); animation-delay: 3s; opacity: 0.06; }
.f4 { width: 320px; height: 320px; bottom: -60px; right: 20%; clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); animation-delay: 2s; opacity: 0.04; }
.f5 { width: 120px; height: 120px; top: 20%; right: 25%; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); animation-delay: 4s; opacity: 0.08; background: linear-gradient(135deg, var(--gold-light), transparent); }

@keyframes facetFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(3deg); }
}

/* Grain overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
  animation: heroReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  animation: heroReveal 1.2s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  animation: heroReveal 1.2s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 36px;
  animation: heroReveal 1.2s 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  animation: heroReveal 1.2s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--black);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: heroReveal 1.2s 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-body);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── NOTE SECTION ── */
.note-section {
  background: var(--off-white);
  padding: 32px 0;
  border-bottom: 1px solid var(--light);
}

.note-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #FFF8E7;
  border: 1px solid #E8D5A0;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.note-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.note-card p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.6;
}

.note-card strong { color: var(--dark); }

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--dark);
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ── COURSES SECTION ── */
.courses-section {
  padding: 100px 0;
  background: var(--white);
}

/* ── INSTITUTE BLOCK ── */
.institute-block {
  margin-bottom: 72px;
  padding: 48px;
  border: 1px solid var(--light);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.institute-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.institute-block.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, #FFFDF5 0%, var(--white) 60%);
  box-shadow: 0 4px 40px rgba(184, 134, 11, 0.08);
}

.institute-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.institute-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}

.institute-badge.budget { background: var(--dark); color: var(--white); }
.institute-badge.alt    { background: var(--light); color: var(--mid); }

.institute-meta { flex: 1; }

.institute-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
}

.institute-short {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.institute-link {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--light);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}

.institute-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.institute-desc {
  font-size: 0.97rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 780px;
}

/* ── COURSES GRID ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.course-card {
  background: var(--off-white);
  border: 1px solid var(--light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--light);
  transition: var(--transition);
}

.course-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.course-card:hover::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.course-card.gold {
  background: linear-gradient(160deg, #FFFBF0, var(--off-white));
  border-color: #E8D5A0;
}

.course-card.gold::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.course-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold);
  color: var(--black);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 12px;
}

.course-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 4px;
}

.course-abbr {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.course-details { margin-bottom: 16px; }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  gap: 12px;
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.detail-value {
  font-size: 0.88rem;
  color: var(--dark);
  text-align: right;
}

.detail-value.highlight {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
}

.course-note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--light);
  padding-top: 14px;
  margin-top: 4px;
}

/* ── NEXT COHORT BANNER ── */
.next-cohort {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1A1A1A, #2A2A2A);
  color: rgba(255,255,255,0.85);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.cohort-icon { font-size: 1.1rem; flex-shrink: 0; }
.next-cohort strong { color: var(--gold-light); }

/* ── RECOMMENDATION SECTION ── */
.recommend-section {
  padding: 100px 0;
  background: var(--dark);
}

.recommend-section .section-eyebrow { color: var(--gold); }
.recommend-section .section-title   { color: var(--white); }
.recommend-section .section-title em { color: var(--gold-light); }

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.recommend-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.recommend-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.recommend-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(184,134,11,0.4);
  transform: translateY(-4px);
}

.rec-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.recommend-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
}

.recommend-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: 20px;
}

.rec-answer {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(184,134,11,0.15);
  border: 1px solid rgba(184,134,11,0.35);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

/* ── FOOTER ── */
.footer {
  background: var(--black);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-text {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.03em;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .institute-block { padding: 28px 20px; }

  .institute-header { flex-direction: column; gap: 12px; }

  .courses-grid { grid-template-columns: 1fr; }

  .recommend-grid { grid-template-columns: 1fr 1fr; }

  .hero-title { font-size: 2.8rem; }
}

@media (max-width: 480px) {
  .recommend-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
}