/* ═══════════════════════════════════════
   SHARED INNER PAGE STYLES — Green Kingdom Theme
   Matches the design system from index.html
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --noir:        #FDFBF7; /* Warm cream / main bg */
  --noir-2:      #F3EFE8; /* Soft cream / alt bg */
  --noir-3:      #FFFFFF; /* Pure white / cards */
  --green:       #4A8C65;
  --green-light: #7BBF95;
  --green-pale:  #C8E6D5;
  --gold:        #D4AF37;
  --gold-light:  #F0D070;
  --text-bright: #0A1C11; /* Dark forest green / headings */
  --text-mid:    #1B3B26; /* Mid green / body */
  --text-dim:    #4A8C65; /* Lighter green / small text */
  --border:      rgba(10,28,17,0.15);
  --border-soft: rgba(10,28,17,0.08);
  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-body:   'Jost', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--noir); }
body {
  font-family: var(--font-body);
  background: var(--noir);
  color: var(--text-bright);
  overflow-x: hidden;
  line-height: 1.7;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* CUSTOM CURSOR */
.cursor-ring {
  position: fixed; width: 44px; height: 44px;
  background: rgba(74,140,101,0.1);
  border: 1px solid rgba(74,140,101,0.3);
  border-radius: 50%; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.25,1,0.5,1), height 0.3s cubic-bezier(0.25,1,0.5,1), background 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.cursor-dot {
  position: fixed; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out;
}
body:has(a:hover) .cursor-ring, body:has(button:hover) .cursor-ring, body:has(.nav-cta:hover) .cursor-ring { 
  width: 64px; height: 64px; 
  background: rgba(74,140,101,0.05); 
  border-color: rgba(74,140,101,0.6); 
}
body:has(a:hover) .cursor-dot, body:has(button:hover) .cursor-dot, body:has(.nav-cta:hover) .cursor-dot { 
  transform: translate(-50%, -50%) scale(0.5); 
}

/* GRAIN */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035; pointer-events: none; z-index: 9998;
  animation: grain 0.4s steps(1) infinite;
}
@keyframes grain {
  0%,100%{transform:translate(0,0)} 10%{transform:translate(-2%,-3%)} 20%{transform:translate(3%,2%)}
  30%{transform:translate(-1%,4%)} 40%{transform:translate(2%,-2%)} 50%{transform:translate(-3%,1%)}
  60%{transform:translate(1%,-4%)} 70%{transform:translate(-2%,3%)} 80%{transform:translate(3%,-1%)} 90%{transform:translate(-1%,2%)}
}

/* TYPOGRAPHY */
.label {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--green);
}
.green-line {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
}
.green-line::before, .green-line::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}
.green-line.left::before { display: none; }
.green-line.left::after { flex: 0 0 60px; }

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

/* HEADER */
header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 900; padding: 28px 0;
  transition: all 0.5s cubic-bezier(0.25,1,0.5,1);
}
header.scrolled {
  padding: 16px 0; background: rgba(253,251,247,0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 400;
  font-style: italic; letter-spacing: 0.02em; color: var(--text-bright);
  display: flex; align-items: center; gap: 12px; line-height: 1.15;
}
.nav-logo img { height: 42px; width: auto; object-fit: contain; flex-shrink: 0; }
.nav-logo .logo-text { display: flex; flex-direction: column; }
.nav-logo .logo-main {
  font-size: 1.3rem; font-weight: 700; font-style: normal;
  color: var(--text-bright); letter-spacing: 0.02em;
}
.nav-logo .logo-sub {
  font-style: normal; font-weight: 300; color: var(--text-dim);
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 1px;
}
.nav-links { display: flex; gap: 44px; }
.nav-links a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-mid); transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; width: 0; height: 1px;
  bottom: -3px; left: 0; background: var(--green-light); transition: width 0.35s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px;
  border: 1px solid var(--green); border-radius: 2px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: #FFFFFF;
  background: var(--green); cursor: pointer; transition: all 0.4s ease;
}
.nav-cta:hover {
  background: var(--text-bright); color: #FFFFFF; border-color: var(--text-bright);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,140,101,0.2);
}
.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--text-bright); font-size: 1.8rem; cursor: none;
}

/* PAGE HERO BANNER */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(74,140,101,0.15) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 300; line-height: 1; letter-spacing: -0.01em;
  color: var(--text-bright); margin-bottom: 16px;
}
.page-hero-title em { font-style: italic; color: var(--green-light); }
.page-hero-sub { font-size: 1rem; color: var(--text-mid); max-width: 500px; margin: 0 auto; }

/* SECTION */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-alt { background: var(--noir-2); }
.section-title-lg {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1; letter-spacing: -0.01em; color: var(--text-bright);
}
.section-title-lg em { font-style: italic; color: var(--green-light); }

/* DIRECTORY (Students) */
.batch-accordion {
  margin-bottom: 24px;
  background: var(--noir-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.batch-accordion summary {
  padding: 24px 32px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-bright);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--noir-3);
  transition: all 0.3s;
}
.batch-accordion summary::-webkit-details-marker { display: none; }
.batch-accordion summary::after {
  content: '+';
  font-size: 2rem;
  color: var(--green);
  transition: transform 0.3s;
}
.batch-accordion[open] summary::after {
  transform: rotate(45deg);
}
.batch-accordion[open] summary {
  border-bottom: 1px solid var(--border);
}
.batch-content {
  padding: 24px;
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}
.directory-item {
  display: flex; align-items: center; gap: 20px; padding: 20px 28px;
  background: var(--noir-3); border: none;
  transition: all 0.4s cubic-bezier(0.25,1,0.5,1);
  position: relative; overflow: hidden;
}
.directory-item::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.directory-item:hover::before { transform: scaleX(1); }
.directory-item:hover { background: #0F2A1A; }
.directory-num {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 300;
  color: var(--border); font-style: italic; min-width: 44px; line-height: 1;
  transition: color 0.3s;
}
.directory-item:hover .directory-num { color: rgba(74,140,101,0.4); }
.directory-id {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 600;
  color: var(--green); letter-spacing: 0.15em; text-transform: uppercase;
}
.directory-name {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 400;
  font-style: italic; color: var(--text-bright); transition: color 0.3s;
}
.directory-item:hover .directory-name { color: var(--green-light); }

/* BUTTONS */
.btn-green {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px;
  background: linear-gradient(135deg, #2C4C3B, #3A6B50); color: var(--text-bright);
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; border: none; border-radius: 2px;
  cursor: none; transition: all 0.4s ease; position: relative; overflow: hidden;
}
.btn-green::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%); transition: 0.6s;
}
.btn-green:hover::before { transform: translateX(100%); }
.btn-green:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(74,140,101,0.4); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 36px;
  background: transparent; color: var(--green-light); font-family: var(--font-body);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--border); border-radius: 2px; cursor: none; transition: all 0.4s ease;
}
.btn-outline:hover { background: var(--border); transform: translateY(-3px); border-color: var(--green); }

/* REVEAL ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25,1,0.5,1), transform 0.9s cubic-bezier(0.25,1,0.5,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* GALLERY */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3px;
}
.gallery-cell { aspect-ratio: 1; position: relative; overflow: hidden; cursor: none; }
.gallery-cell img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
  transition: all 0.5s cubic-bezier(0.25,1,0.5,1);
}
.gallery-cell:hover img { transform: scale(1.06); filter: brightness(0.9) saturate(1); }
.gallery-cell-overlay {
  position: absolute; inset: 0; background: rgba(4,16,10,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-cell:hover .gallery-cell-overlay { opacity: 1; }
.gallery-cell-overlay ion-icon { color: var(--green-light); font-size: 2rem; }

/* VIDEO / LESSON CARD */
.lesson-card {
  background: var(--noir-3); position: relative; overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25,1,0.5,1); cursor: none;
}
.lesson-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease;
}
.lesson-card:hover::before { transform: scaleX(1); }
.lesson-card:hover { background: #0F2A1A; }
.lesson-card-video { position: relative; padding-bottom: 56.25%; height: 0; }
.lesson-card-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.lesson-card-body { padding: 36px 40px; }
.lesson-card-title {
  font-family: var(--font-display); font-size: 2rem; font-style: italic;
  font-weight: 400; color: var(--text-bright); margin-bottom: 12px;
  transition: color 0.3s;
}
.lesson-card:hover .lesson-card-title { color: var(--green-light); }
.lesson-card-desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 28px; }

/* ═══════════════════════════════════════
   FOOTER (Dark Anchor)
═══════════════════════════════════════ */
footer { background: #04100A; padding: 80px 0 32px; border-top: 1px solid var(--border-soft); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 64px; padding-bottom: 64px; border-bottom: 1px solid rgba(74,140,101,0.12); margin-bottom: 40px; }
.footer-brand-name { font-family: var(--font-display); font-size: 2.2rem; font-style: italic; font-weight: 400; color: #7BBF95; margin-bottom: 6px; }
.footer-brand-tag { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: #5A8A6A; margin-bottom: 24px; }
.footer-desc { font-size: 0.88rem; color: #5A8A6A; line-height: 1.8; max-width: 280px; margin-bottom: 32px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social-btn { width: 40px; height: 40px; border: 1px solid rgba(74,140,101,0.25); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #5A8A6A; transition: all 0.3s ease; }
.footer-social-btn:hover { background: #4A8C65; color: #FFFFFF; border-color: #4A8C65; transform: translateY(-3px); }
.footer-col-title { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: #4A8C65; margin-bottom: 28px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.88rem; color: #5A8A6A; transition: color 0.3s; }
.footer-links a:hover { color: #7BBF95; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; color: #5A8A6A; }
.footer-contact-item ion-icon { color: #4A8C65; font-size: 1rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact-item span { font-size: 0.88rem; color: #5A8A6A; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.78rem; color: #5A8A6A; letter-spacing: 0.04em; }
.footer-copy a { color: #7BBF95; }
.footer-made { font-size: 0.75rem; color: #5A8A6A; font-family: var(--font-display); font-style: italic; }

/* MOBILE */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: rgba(253,251,247,0.98); backdrop-filter: blur(24px);
    flex-direction: column; align-items: center; justify-content: center; gap: 36px;
    transition: right 0.4s cubic-bezier(0.25,1,0.5,1);
    border-left: 1px solid var(--border); z-index: 800;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 0.95rem; color: #4A8C65; }
  .nav-links a:hover, .nav-links a.active { color: #1F3F2D; }
  .nav-links a::after { background: #4A8C65; }
  .mobile-menu-btn { display: block; z-index: 901; }
  .nav-cta { display: none; }
  .directory-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
