/* ================================================================
   TekExplorers FinalGlow Stylesheet
   ================================================================ */
:root {
  --jamaica-green: #009B3A;
  --jamaica-gold: #FED100;
  --tech-blue: #0F5FFF;
  --black: #141414;
  --white: #ffffff;
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Poppins','Nunito',sans-serif;
}

body {
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   Global Link Styling
   ============================================================ */
a {
  color: var(--jamaica-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
a:hover,
a:focus {
  color: var(--tech-blue);
  text-shadow: 0 0 10px var(--black);
  text-decoration: underline;
}
a:visited { color: var(--black); }

/* ============================================================
   Navigation jamaica-gold jamaica-gold
   ============================================================ */
.topbar { position: fixed; top: 0; width: 100%; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); z-index: 999; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 2rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 50px; height: 50px; }
.brand-title { color: var(--jamaica-gold); font-weight: 700; }
.brand-tagline { font-size: 0.8rem; opacity: 0.85; display: block; }

.nav-links a { color: #fff; margin: 0 0.7rem; text-decoration: none; font-weight: 600; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--jamaica-gold); text-shadow: 0 0 10px var(--jamaica-gold); }

.menu-toggle { display: none; color: var(--jamaica-gold); font-size: 1.8rem; cursor: pointer; }
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; background: rgba(0,0,0,0.9); width: 100%; text-align: center; }
  .nav-links.show { display: flex; }
  .nav-links a { margin: 0.5rem 0; }
}

/* ============================================================
   Hero Section (Full Background Visibility)
   ============================================================ */
.hero {
  min-height: 85vh;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15,95,255,0.25),
    rgba(0,155,58,0.35),
    rgba(254,209,0,0.25)
  );
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
  background: rgba(0,0,0,0.3);
  border-radius: 1rem;
}
.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 0 12px rgba(254,209,0,0.6);
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--jamaica-gold);
}
.hero-text {
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    background-size: cover;
    background-position: center center;
  }
}

/* ============================================================
   Section & Typography
   ============================================================ */
.section {
  padding:6rem 2rem;
  text-align:center;
}
.section-title {
  font-size:2rem;
  color:var(--jamaica-gold);
  text-shadow:0 0 10px rgba(254,209,0,0.4);
  margin-bottom:1.5rem;
}
.section p {
  max-width: 850px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
  line-height: 1.75;
}

/* ============================================================
   Program Grid & Cards
   ============================================================ */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}
.program-card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: all 0.3s ease;
}
.program-card h3 {
  font-size: 1.1rem;
  color: var(--jamaica-gold);
  margin-bottom: 0.6rem;
}
.program-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.program-card:hover {
  box-shadow: 0 0 20px var(--jamaica-gold);
  transform: translateY(-4px);
}

/* ============================================================
   Contact Form Layout
   ============================================================ */
.form-wrap {
  max-width: 820px;
  margin: 2rem auto;
  background: rgba(255,255,255,0.05);
  padding: 2.2rem 2.4rem;
  border-radius: 1rem;
  text-align: left;
}
.form-row {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.form-row .form-group {
  flex: 1 1 48%;
  min-width: 240px;
}
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #fff;
}
.form-wrap input,
.form-wrap textarea {
  width: 100%;
  padding: 1.05rem 1rem;
  font-size: 1.02rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  outline: none;
}
.form-wrap input:focus,
.form-wrap textarea:focus {
  border-color: var(--jamaica-gold);
  box-shadow: 0 0 10px rgba(254,209,0,0.35);
}
.form-wrap textarea {
  min-height: 150px;
  resize: vertical;
}
.form-wrap .btn,
.form-wrap button[type="submit"] {
  display: inline-block;
  margin-top: 0.8rem;
}
@media (max-width: 768px) {
  .form-row { flex-direction: column; }
  .form-row .form-group { width: 100%; }
  .form-wrap { padding: 1.6rem 1.2rem; }
}

/* ============================================================
   Workshop Gallery & Lightbox
   ============================================================ */
.workshop-card {
  margin:2rem 0;
  background:rgba(255,255,255,0.05);
  padding:1.5rem;
  border-radius:1rem;
  text-align:left;
}
.workshop-photos {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
  margin-top:1rem;
}
.workshop-photos figure {
  position:relative;
  overflow:hidden;
  border-radius:12px;
  background:rgba(255,255,255,0.05);
}
.workshop-photos img {
  width:100%;
  border-radius:12px;
  cursor:pointer;
  transition:all 0.35s ease;
  filter:brightness(0.9);
}
.workshop-photos img:hover {
  transform:scale(1.05);
  box-shadow:0 0 25px var(--jamaica-gold);
  filter:brightness(1);
}
.workshop-photos figcaption {
  text-align:center;
  margin-top:0.3rem;
  font-size:0.85rem;
  opacity:0.8;
}

/* Lightbox */
.lightbox {
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.95);
  justify-content:center;
  align-items:center;
  z-index:9999;
}
.lightbox img {
  max-width:90%;
  max-height:85%;
  border:3px solid var(--jamaica-gold);
  border-radius:10px;
  box-shadow:0 0 25px var(--jamaica-gold);
}
.lightbox-close {
  position:absolute;
  top:20px;
  right:35px;
  color:var(--jamaica-gold);
  font-size:2.5rem;
  cursor:pointer;
  transition:0.3s ease;
}
.lightbox-close:hover { color:var(--tech-blue); }
.lightbox-prev, .lightbox-next {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  color:var(--jamaica-gold);
  font-size:3rem;
  cursor:pointer;
  user-select:none;
  transition:0.3s ease;
}
.lightbox-prev:hover, .lightbox-next:hover {
  color:var(--tech-blue);
  transform:translateY(-50%) scale(1.1);
}
.lightbox-prev { left:40px; }
.lightbox-next { right:40px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display:inline-block;
  background:var(--tech-blue);
  color:#fff;
  padding:0.7rem 1.5rem;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition:all 0.3s ease;
  position:relative;
  overflow:hidden;
}
.btn::before {
  content:"";
  position:absolute;
  top:0; left:-75%;
  width:50%; height:100%;
  background:linear-gradient(120deg,rgba(254,209,0,0.25),rgba(15,95,255,0.25),rgba(254,209,0,0.25));
  transform:skewX(-20deg);
  animation:btnShimmer 3s infinite;
}
@keyframes btnShimmer { 0%{left:-75%;} 50%{left:125%;} 100%{left:125%;} }
.btn:hover {
  background:var(--jamaica-green);
  box-shadow:0 0 15px var(--jamaica-gold);
}
.btn-secondary { background:var(--jamaica-gold); color:var(--black); }
.btn-green { background:var(--jamaica-green); }

/* ============================================================
   Footer
   ============================================================ */
footer {
  text-align:center;
  padding:1.5rem;
  background:var(--black);
  box-shadow:0 -2px 10px rgba(0,0,0,0.3);
  font-size:0.9rem;
  color:rgba(255,255,255,0.8);
}
.footer-updated {
  display:block;
  font-size:0.8rem;
  opacity:0.6;
  margin-top:0.3rem;
}

/* ============================================================
   TekExplorers Custom: Default Black Links for Hero Buttons for Explore Programs and Join a Workshop Link on HOME Page
   ============================================================ */
a#explore-programs,
a#join-workshop,
#explore-programs.btn,
#join-workshop.btn {
  color: black !important;
  text-shadow: none;
}

a#explore-programs:hover,
a#join-workshop:hover,
#explore-programs.btn:hover,
#join-workshop.btn:hover {
  color: var(--jamaica-gold) !important;
  text-shadow: 0 0 10px var(--jamaica-gold);
}


/* Replaced Python Emoji with </> Inline emoji-sized </> icon */
/* Inline emoji-sized </> icon — transparent, clean, inline with text */
.emoji-inline {
  width: 1em;                /* matches font size */
  height: 1em;
  vertical-align: -0.15em;   /* aligns baseline */
  display: inline-block;
  background-color: transparent !important; /* ensure no background */
  mix-blend-mode: normal;    /* prevents color blending */
  filter: drop-shadow(0 0 0 rgba(0,0,0,0)); /* keep clean edge */
}

/* Add watermark to Images */
.protected-image::before {
  content: "TekExplorers™";
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.9rem;
  font-weight: bold;
  color: rgba(255, 215, 0, 0.55); /* Jamaican gold tone */
  pointer-events: none;
}

/* === Image Protection Layer === */
.protected-image {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.protected-image img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;          /* Prevent drag */
  -webkit-user-drag: none;
  user-select: none;             /* Prevent text/image selection */
}

/* Invisible overlay blocking clicks & right-clicks */
.protected-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: all;
}

/* Optional: subtle glow on hover to keep TekExplorers' vibe */
.protected-image:hover::after {
  box-shadow: 0 0 8px rgba(255, 223, 0, 0.6);  /* Jamaican gold glow */
  border-radius: 10px;
}

/*CSS and JS to Deter Simple Copying*/
img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/*This watermark makes captured images unattractive for reuse — the surest real-world protection.*/
.watermarked-image {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.watermarked-image img {
  width: 100%;
  height: auto;
  display: block;
}

.wm-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 2rem;
  color: rgba(255, 215, 0, 0.25);  /* Jamaican gold, faint */
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}


/* Rotating quote */
.rotating-quote {
  font-size: 1.8rem;
  font-weight: 600;
  padding: 2rem;
  max-width: 800px;         /* sets the maximum width */
  margin: 0 auto;           /* centers horizontally */
  text-align: center;       /* centers the text */
  white-space: normal;      /* allows natural wrapping */
  
  color: var(--white);
   /* animation: fadeInOut 5s infinite;  <-- REMOVE THIS. IT WAS CAUSING MULTIPLE ROTATION */
}
@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

.rotating-quote {
  transition: opacity 0.8s ease-in-out, text-shadow 0.8s ease-in-out;
}

.rotating-quote:not([style*="opacity: 0"]) {
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6); /* Jamaican gold glow */
}

/* This Centers the Rotating Quote */
.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh; /* adjust as desired */
}


/* Wisdom Page. Invisible 3-column static wisdom quotes */
.invisible-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.invisible-columns p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}
@media(max-width: 900px) {
  .invisible-columns {
    grid-template-columns: 1fr;
  }
}

/* for...The mind is the workshop*/
.featured-quote {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  color: var(--jamaica-gold);
  margin-bottom: 3rem;
  text-shadow: 0 0 12px rgba(254,209,0,0.4);
}
.featured-quote em {
  color: rgba(255,255,255,0.92);
}



/* keep the quote vertically centered but never pushed off-screen*/


  .rotating-quote-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
  min-height: 100vh;
  text-align: center;

}


/* ───────────────────────────────────────────
   Universal 4-card layout for desktop & mobile
   Applies to: Why TekExplorers, Learning Tracks,
   Creative Success (Wisdom page)
   ─────────────────────────────────────────── */

.section-row {
  display: flex;
  flex-wrap: wrap; /* allows mobile stacking */
  justify-content: space-between;
  gap: 1.8rem;     /* spacing between cards */
  width: 100%;
}

.section-column {
  flex: 1;
  min-width: 260px;      /* prevents squeezing on desktop */
  max-width: 24%;        /* ensures 4 cards fit on desktop */
  background: rgba(0,0,0,0.25);
  padding: 1.8rem;
  border-radius: 18px;
  text-align: center;
}

.section-column > div {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* centers content vertically */
  height: 100%;             /* makes inner card match height of other cards */
}


/* Mobile/tablet responsive behavior */
@media (max-width: 900px) {
  .section-column {
    max-width: 100%;
  }
}


/* ============================================================
   Core Learning Tracks — 4 cards in one row (desktop) + page.jpeg colors
   ============================================================ */
.core-tracks {
  /* dark green → deep blue gradient like page.jpeg */
  background: linear-gradient(90deg, #12261d, #0c1429);
  align-items: stretch; /* override .section { align-items:center } */
}

.core-tracks .program-grid {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 2rem;
  text-align: left;
}

/* Tablet: 2 per row */
@media (max-width: 1100px) {
  .core-tracks .program-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

/* Mobile: stack */
@media (max-width: 640px) {
  .core-tracks .program-grid {
    grid-template-columns: 1fr;
  }
}

.core-tracks .program-card {
  background: #0A4914; /* sampled from page.jpeg cards */
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 14px 35px rgba(0,0,0,0.35);
  text-align: center;
}

.core-tracks .program-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-start; /* matches the heading alignment in page.jpeg */
  color: var(--jamaica-gold);
  margin-bottom: 0.9rem;
}

.core-tracks .program-card p {
  color: rgba(255,255,255,0.88);
  font-size: 0.98rem;
}

/* Keep the TekExplorers glow vibe, but closer to the screenshot */
.core-tracks .program-card:hover {
  box-shadow: 0 0 0 1px rgba(254,209,0,0.25), 0 0 25px rgba(254,209,0,0.35);
  transform: translateY(-4px);
}
