/* =========================================================================
   JYC CUSTOM STYLESHEET (2026)
   ========================================================================= */

:root{
  --ink:        #2A1712;
  --maroon:     #7B1E2B;
  --maroon-dark:#54121D;
  --ember:      #B5482F;
  --gold:       #C79A4B;
  --gold-soft:  #E8C888;
  --parchment:  #F6EEDA;
  --card:       #FBF6E9;
  --cream-line: rgba(199,154,75,.35);
  --font-display: "Playfair Display", serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1200px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--parchment);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* GLOBAL HEADINGS UPGRADE */
h1,h2,h3,h4{ 
  font-family:var(--font-display); 
  color:var(--maroon-dark); 
  margin:0;
  font-weight: 700;        /* Gives the serif curves clean, thick contrast */
  letter-spacing: -0.02em; /* Tightens characters for an editorial feel */
}
ul,ol{ margin:0; padding:0; list-style:none; }

.eyebrow{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--ember);
  margin:0 0 .6rem;
}

/* ---------------- Header Styling ---------------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,238,218,.9);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--cream-line);
}
.nav-wrap{
  max-width:var(--container); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:.7rem 1.5rem;
}
.brand-group{
  display:flex;
  align-items:center;
  gap:1.2rem; /* Spacing between the JIIT Logo and JYC Crest */
}
.jiit-mark{
  height:48px;
  width:auto;
  object-fit: contain;
}
.brand{ display:flex; align-items:center; gap:.7rem; }
.brand-mark{ width:44px; height:44px; object-fit: contain; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }

/* BRAND TEXT TYPOGRAPHY UPGRADE */
.brand-text strong{ 
  font-family:var(--font-display); 
  font-size:1.35rem;       /* Slightly enhanced hierarchy sizing */
  color:var(--maroon-dark); 
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text small{ 
  font-family:var(--font-body);
  font-size:.68rem; 
  letter-spacing:.06em; 
  color:var(--maroon); 
  opacity:.85; 
  font-weight: 500;
}

.main-nav{ display:flex; align-items:center; gap:1.8rem; }
.main-nav a{
  font-size:.95rem; font-weight:500; color:var(--ink);
  position:relative; padding:.2rem 0;
  white-space: nowrap;
}
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:-3px; height:2px; width:0;
  background:var(--ember); transition:width .25s ease;
}
.main-nav a:hover::after{ width:100%; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:36px; height:36px; background:none; border:none; cursor:pointer;
}
.nav-toggle span{ height:2px; background:var(--maroon-dark); border-radius:2px; width: 100%; }

/* ---------------- Hero Section ---------------- */
.hero{
  position:relative;
  min-height:90vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding:7rem 1.5rem 5rem;
  overflow:hidden;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(199,154,75,.35), transparent 60%),
    var(--parchment);
}
.hero-wings{
  display: none; /* Removes the background design completely */
  position:absolute; inset:0; z-index:0;
  background-repeat:no-repeat; background-position:center 58%;
  background-size:min(1400px, 190vw);
  opacity:.16;
  pointer-events:none;
  transform:scale(.9);
  transition:transform 1.4s cubic-bezier(.2,.8,.2,1), opacity 1.4s ease;
}
.hero-wings.spread{ transform:scale(1); opacity:.22; }
.hero-inner{ position:relative; z-index:1; max-width:820px; }
.hero-title{
  font-size:clamp(2.6rem, 6vw, 4.2rem);
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--maroon-dark);
}
.hero-tagline{
  font-family:var(--font-display);
  font-style:italic;
  font-weight:500;
  font-size:clamp(1.2rem, 2.4vw, 1.8rem);
  color:var(--ember);
  margin:.3rem 0 1.4rem;
}
.hero-sub{
  font-size:1.05rem; color:var(--ink); opacity:.85;
  max-width:720px; margin:0 auto 1.8rem;
}
.hero-actions{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

.btn{
  display:inline-block; padding:.8rem 1.6rem; border-radius:100px;
  font-weight:600; font-size:.95rem; border:1.5px solid transparent;
  transition:transform .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--maroon); color:var(--gold-soft); }
.btn-primary:hover{ background:var(--maroon-dark); }
.btn-ghost{ border-color:var(--maroon); color:var(--maroon-dark); }
.btn-ghost:hover{ background:var(--maroon); color:var(--gold-soft); }

/* ---------------- Metric Strip ---------------- */
.about-strip{
  background:var(--maroon-dark);
  padding:2.6rem 1.5rem;
}
.about-grid {
  max-width: var(--container); 
  margin: 0 auto;
  display: grid; 
  grid-template-columns: repeat(3, 1fr); /* Changed from 4 to 3 columns */
  gap: 1.5rem;
  text-align: center;
}

/* Optional mobile layout adjustment */
@media (max-width: 860px) {
  .about-grid { 
    grid-template-columns: 1fr; /* Stack vertically on smaller screens */
  }
}
.about-stat .num{
  display:block; font-family:var(--font-display); font-weight:700;
  font-size:clamp(1.8rem,3.4vw,2.8rem); color:var(--gold-soft);
}
.about-stat .label{
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.08em;
  text-transform:uppercase; color:rgba(251,246,233,.75);
}

/* ---------------- Sections Structural Layouts ---------------- */
.section{ max-width:var(--container); margin:0 auto; padding:6rem 1.5rem; }
.section-alt{ background:var(--card); max-width:none; }
.section-alt > *{ max-width:var(--container); margin-left:auto; margin-right:auto; }
.section-head{ max-width:700px; margin-bottom:3rem; }
.section-head h2{ font-size:clamp(1.8rem,3.4vw,2.5rem); margin: 0.4rem 0 0; }
.section-sub{ opacity:.8; margin-top:.6rem; font-size:1.02rem; }

/* ---------------- COMPACT COMPRESSION PLACARDS (31 HUBS) ---------------- */
.hub-placard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
}
.hub-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(84,18,29,.08);
  border-color: var(--gold);
}
.hub-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.hub-card h3 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.hub-card p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0.15rem 0 0 0;
}

/* ---------------- Media Showcase Cards (Events) ---------------- */
.filter-row{ display:flex; gap:.6rem; flex-wrap:wrap; margin-bottom:2rem; }
.filter-chip{
  font-family:var(--font-mono); font-size:.75rem;
  padding:.45rem 1rem; border-radius:100px; border:1px solid var(--maroon);
  color:var(--maroon-dark); background:transparent; cursor:pointer;
  transition:all .2s ease;
}
.filter-chip.active, .filter-chip:hover{ background:var(--maroon); color:var(--gold-soft); }

.event-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:2rem; }
.event-card{
  background:var(--parchment); border-radius:14px; overflow:hidden;
  border:1px solid var(--cream-line);
  display:flex; flex-direction:column;
}
/* Find .event-photo in styles.css and replace it with this: */
.event-photo { 
  aspect-ratio: 16/10; 
  position: relative; 
  overflow: hidden;
  background-color: var(--maroon-dark);
}

/* Force the dynamic image tag to stretch and fill the layout container cleanly */
.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* Fits the entire image into the box without zooming */
  object-position: center;  /* Centers it cleanly */
  padding: 0.5rem;          /* Optional: Adds a nice breathing frame around the photo */
}
.event-photo .hub-tag{
  position:absolute; top:.7rem; left:.7rem;
  font-family:var(--font-mono); font-size:.65rem;
  background:var(--maroon-dark); color:var(--gold-soft);
  padding:.25rem .6rem; border-radius:100px;
}
.event-body{ padding:1.4rem; background: var(--card); flex-grow: 1; }
.event-date{ font-family:var(--font-mono); font-size:.75rem; color:var(--ember); font-weight: 500; }
.event-body h3{ font-size:1.2rem; margin:.35rem 0 .5rem; line-height: 1.3; }
.event-body p{ font-size:.9rem; opacity:.85; margin:0; }

/* ---------------- Governance & Administration Team ---------------- */
.team-subhead{ font-size:1.4rem; margin:0 0 1.5rem; position: relative; padding-bottom: 0.3rem; border-bottom: 2px solid var(--cream-line); }
.team-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:2rem; }
.team-card{ background: var(--card); border: 1px solid var(--cream-line); padding: 1.5rem 1rem; border-radius: 12px; text-align:center; }
.team-photo{
  width:120px; height:120px; border-radius:50%; overflow:hidden;
  background:var(--gold-soft); margin: 0 auto 1rem;
  display:flex; align-items:center; justify-content:center;
  border:3px solid var(--card); box-shadow:0 0 0 2px var(--gold);
}
.team-photo img{ width:100%; height:100%; object-fit:cover; }
.team-photo .initials{ font-family:var(--font-display); font-weight:600; font-size:1.8rem; color:var(--maroon-dark); }
.team-card h4{ font-size:1.1rem; margin-bottom:.3rem; font-family: var(--font-body); font-weight: 700; }
.team-card p{ font-size:.85rem; opacity:.75; margin:0; line-height: 1.4; color: var(--ink); }

/* ---------------- Media Photo Gallery ---------------- */
.gallery-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; }
.gallery-item{ border-radius:12px; overflow:hidden; cursor:pointer; position:relative; aspect-ratio:4/3; border: 1px solid var(--cream-line); }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.gallery-item:hover img{ transform:scale(1.06); }
.gallery-cap{
  position:absolute; bottom:0; left:0; right:0; padding:.6rem .8rem;
  background:linear-gradient(transparent, rgba(42,23,18,.85));
  color:var(--gold-soft); font-size:.8rem;
}

/* ---------------- Running Operational Calendar Timelines ---------------- */
.updates-list{ display:flex; flex-direction:column; gap:0rem; max-width:850px; }
.update-item{
  display:grid; grid-template-columns:140px 1fr; gap:1.6rem;
  padding:1.5rem 0; border-bottom:1px solid var(--cream-line);
}
.update-date{ font-family:var(--font-mono); font-size:.82rem; color:var(--ember); font-weight: 600; }
.update-item h3{ font-size:1.1rem; margin-bottom:.3rem; font-family: var(--font-body); font-weight: 600; }
.update-item p{ font-size:.92rem; opacity:.8; margin:0; }

/* ---------------- Footer Layout ---------------- */
.site-footer{ background:var(--maroon-dark); color:var(--parchment); padding:4rem 1.5rem 1.6rem; }
.footer-grid{
  max-width:var(--container); margin:0 auto;
  display:grid; grid-template-columns:1.20fr 1fr 1fr 1fr; gap:2.4rem;
  padding-bottom:2.4rem; border-bottom:1px solid rgba(232,200,136,.2);
}
.footer-mark{ width:56px; height:56px; object-fit: contain; margin-bottom:.8rem; }
.footer-brand p{ font-size:.9rem; opacity:.8; margin:0; }
.footer-col h4{ color:var(--gold-soft); font-size:.85rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:.8rem; font-family:var(--font-mono); }
.footer-col p{ font-size:.9rem; margin:.4rem 0; opacity:.85; }
.footer-col a:hover{ color:var(--gold-soft); text-decoration: underline; }
.footer-fine{ text-align:center; font-size:.78rem; opacity:.6; margin-top:1.6rem; }

/* ---------------- Lightbox Overlay Modal ---------------- */
.lightbox{
  position:fixed; inset:0; background:rgba(42,23,18,.94);
  display:none; align-items:center; justify-content:center; z-index:100; padding:2rem;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-width:90vw; max-height:85vh; border-radius:8px; border: 2px solid var(--gold-soft); }
.lightbox-close{
  position:absolute; top:1.4rem; right:1.6rem; background:none; border:none;
  color:var(--gold-soft); font-size:2.5rem; cursor:pointer; line-height:1;
}

/* ---------------- Media Breakpoints ---------------- */
@media (max-width: 860px){
  .main-nav{
    position:absolute; top:100%; left:0; right:0;
    background:var(--parchment); flex-direction:column; align-items:flex-start;
    padding:1.2rem 1.5rem; gap:1rem; border-bottom:1px solid var(--cream-line);
    display:none;
  }
  .main-nav.open{ display:flex; }
  .nav-toggle{ display:flex; }
  .about-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .update-item { grid-template-columns: 1fr; gap: 0.3rem; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero-wings{ transition:none; }
}

/* Footer Social Icons Polish */
.footer-col a i {
  font-size: 1.1rem;      /* Makes the logo match the font height cleanly */
  color: var(--gold-soft); /* Applies your base theme gold accent to the logo */
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-col a:hover i {
  color: var(--parchment); /* Flips the icon color neatly on text hover */
  transform: scale(1.1);   /* Gives the logo a subtle clicky pop effect */
}