:root {
  --gold: #FFD700;
  --gold-dark: #C9A800;
  --gold-light: #FFF9D6;
  --white: #FFFFFF;
  --green: #90EE90;
  --green-dark: #4CAF50;
  --green-deeper: #2D6A4F;
  --green-footer: #1a3d2b;
  --off-white: #F2FBF0;
  --text-dark: #111111;
  --text-mid: #444444;
  --text-light: #888888;
  --border: rgba(144,238,144,0.4);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:'Raleway',sans-serif; background:var(--off-white); color:var(--text-dark); overflow-x:hidden; }

.section-bg-pattern {
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:url('images/ee-pattern-bg.jpg');
  background-size:280px auto; background-repeat:repeat;
  opacity:0.10;
}

/* ========== NAV ========== */
nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  height:76px; display:flex; align-items:center; justify-content:space-between;
  padding:0 5%;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,215,0,0.15);
  transition:box-shadow 0.3s;
}
nav.scrolled { box-shadow:0 4px 28px rgba(255,215,0,0.1); }
.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.nav-logo img { height:42px; width:auto; object-fit:contain; }
.nav-links { display:flex; align-items:center; gap:28px; list-style:none; }
.nav-links a {
  font-family:'Montserrat',sans-serif; font-size:0.75rem; font-weight:600;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--text-mid);
  text-decoration:none; position:relative; padding-bottom:4px; transition:color 0.2s;
}
.nav-links a::after {
  content:''; position:absolute; bottom:0; left:0; width:0; height:2px;
  background:var(--gold); transition:width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover { color:var(--text-dark); }
.nav-links a:hover::after { width:100%; }
.nav-cta {
  font-family:'Montserrat',sans-serif; font-size:0.75rem; font-weight:700;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--text-dark) !important;
  background:var(--gold); padding:11px 24px; border-radius:3px;
  text-decoration:none; transition:all 0.3s;
  box-shadow:0 2px 14px rgba(255,215,0,0.35);
}
.nav-cta:hover { background:var(--gold-dark); box-shadow:0 4px 22px rgba(144,238,144,0.45); transform:translateY(-1px); }
.nav-cta::after { display:none !important; }



/* ===== LEGAL PAGE HERO ===== */
.legal-hero {
  padding:140px 5% 70px; text-align:center; position:relative; z-index:1;
  background:linear-gradient(150deg,#EDFFF5 0%,#F0FFF4 50%,#FFFBDE 100%);
}
.legal-hero .eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Montserrat',sans-serif; font-size:0.68rem; font-weight:700;
  letter-spacing:0.18em; text-transform:uppercase; color:var(--green-deeper);
  border:1px solid var(--border); padding:8px 20px; border-radius:50px;
  margin-bottom:24px;
}
.legal-hero h1 {
  font-family:'Playfair Display',serif; font-size:clamp(2.2rem,5vw,4rem);
  font-weight:900; line-height:1.1; color:var(--text-dark); margin-bottom:18px;
}
.legal-hero h1 em { font-style:italic; color:var(--green-deeper); }
.gold-bar { width:48px; height:3px; background:linear-gradient(90deg,var(--gold),var(--gold-dark)); margin:0 auto 20px; border-radius:2px; }
.legal-hero p {
  font-size:1rem; color:var(--text-mid); max-width:560px; margin:0 auto;
  line-height:1.8; font-weight:300;
}

/* ===== TAB NAV ===== */
.legal-tabs {
  position:sticky; top:76px; z-index:100;
  background:rgba(255,255,255,0.95); backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
  display:flex; justify-content:center; gap:0; padding:0 5%;
}
.legal-tab {
  font-family:'Montserrat',sans-serif; font-size:0.72rem; font-weight:700;
  letter-spacing:0.14em; text-transform:uppercase; padding:18px 32px;
  color:var(--text-light); border:none; background:none; cursor:pointer;
  border-bottom:3px solid transparent; transition:all 0.25s; text-decoration:none;
  display:inline-block;
}
.legal-tab:hover { color:var(--text-dark); }
.legal-tab.active { color:var(--green-deeper); border-bottom-color:var(--gold); }

/* ===== LEGAL CONTENT ===== */
.legal-body {
  max-width:860px; margin:0 auto; padding:80px 5% 100px;
  position:relative; z-index:1;
}
.legal-panel { display:none; }
.legal-panel.active { display:block; }

.legal-intro {
  background:white; border-radius:20px; padding:40px 48px;
  border-left:4px solid var(--gold); margin-bottom:48px;
  box-shadow:0 4px 24px rgba(45,106,79,0.06);
}
.legal-intro p {
  font-size:1rem; color:var(--text-mid); line-height:1.9; font-weight:300;
}
.legal-intro strong { color:var(--text-dark); font-weight:600; }

.legal-section { margin-bottom:48px; }
.section-number {
  font-family:'Montserrat',sans-serif; font-size:0.65rem; font-weight:700;
  letter-spacing:0.2em; text-transform:uppercase; color:var(--gold-dark);
  margin-bottom:8px; display:block;
}
.legal-section h2 {
  font-family:'Playfair Display',serif; font-size:1.6rem; font-weight:700;
  color:var(--text-dark); margin-bottom:18px;
  padding-bottom:16px; border-bottom:1px solid var(--border);
}
.legal-section h3 {
  font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:700;
  color:var(--green-deeper); margin:24px 0 10px;
}
.legal-section p {
  font-size:0.97rem; color:var(--text-mid); line-height:1.9; margin-bottom:14px;
  font-weight:300;
}
.legal-section ul {
  padding-left:0; list-style:none; margin-bottom:14px;
}
.legal-section ul li {
  font-size:0.97rem; color:var(--text-mid); line-height:1.8; font-weight:300;
  padding:8px 0 8px 24px; border-bottom:1px solid rgba(144,238,144,0.2);
  position:relative;
}
.legal-section ul li::before {
  content:''; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:8px; height:8px; border-radius:50%;
  background:linear-gradient(135deg,var(--gold),var(--gold-dark));
}
.legal-section ul li:last-child { border-bottom:none; }

.highlight-box {
  background:linear-gradient(135deg,rgba(255,215,0,0.08),rgba(255,215,0,0.04));
  border:1px solid rgba(255,215,0,0.25); border-radius:12px;
  padding:24px 28px; margin:20px 0;
}
.highlight-box p { margin:0; font-size:0.93rem; color:var(--text-mid); }
.highlight-box strong { color:var(--green-deeper); }

.legal-updated {
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Montserrat',sans-serif; font-size:0.7rem; font-weight:600;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--text-light);
  background:var(--off-white); border:1px solid var(--border);
  padding:8px 16px; border-radius:50px; margin-bottom:40px;
}

.contact-cta {
  background:var(--green-footer); color:white; border-radius:20px;
  padding:48px; text-align:center; margin-top:60px;
}
.contact-cta h3 {
  font-family:'Playfair Display',serif; font-size:1.8rem; color:var(--gold);
  margin-bottom:12px;
}
.contact-cta p { color:rgba(255,255,255,0.7); margin-bottom:24px; font-weight:300; }
.btn-gold {
  display:inline-flex; align-items:center; gap:10px;
  background:var(--gold); color:var(--text-dark);
  font-family:'Montserrat',sans-serif; font-size:0.72rem; font-weight:700;
  letter-spacing:0.12em; text-transform:uppercase; text-decoration:none;
  padding:14px 32px; border-radius:6px; border:none; cursor:pointer;
  transition:all 0.3s;
}
.btn-gold:hover { background:var(--gold-dark); transform:translateY(-2px); }

footer {
  background:var(--green-footer);
  color:rgba(255,255,255,0.78); padding:72px 5% 40px;
  box-shadow:none;
}
.footer-top {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px;
  margin-bottom:56px;
}
.footer-brand img {
  height:56px; width:auto; object-fit:contain;
  background:white; border-radius:8px; padding:4px 8px;
  opacity:0.95; margin-bottom:14px;
}
.footer-brand p {
  font-size:0.84rem; color:rgba(255,255,255,0.45);
  line-height:1.7; margin-bottom:20px;
}
.footer-social { display:flex; gap:12px; }
.footer-social a {
  width:36px; height:36px; border-radius:8px;
  background:rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,0.65); transition:all 0.25s;
}
.footer-social a:hover { background:var(--gold); color:var(--text-dark); transform:translateY(-2px); }
.footer-col h5 {
  font-family:'Montserrat',sans-serif; font-size:0.7rem; font-weight:700;
  letter-spacing:0.16em; text-transform:uppercase; color:var(--gold);
  margin-bottom:20px;
}
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:10px; }
.footer-col ul li a {
  font-size:0.88rem; color:rgba(255,255,255,0.6);
  text-decoration:none; transition:color 0.2s;
}
.footer-col ul li a:hover { color:var(--gold); }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.1); padding-top:28px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
}
.footer-bottom p { font-size:0.8rem; color:rgba(255,255,255,0.38); font-family:'Montserrat',sans-serif; }
.footer-bottom a { color:var(--gold); font-size:0.8rem; font-family:'Montserrat',sans-serif; text-decoration:none; }

::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:#f5f5f5; }
::-webkit-scrollbar-thumb { background:var(--gold); border-radius:3px; }

@media(max-width:900px) {
  .model-grid { grid-template-columns:repeat(2,1fr); }
  .about-grid,.apply-grid,.contact-grid,.footer-top { grid-template-columns:1fr; gap:36px; }
  .news-grid { grid-template-columns:1fr 1fr; }
  .sponsors-logos { grid-template-columns:repeat(2,1fr); }
  .nav-links li:not(:last-child):not(:nth-last-child(2)) { display:none; }
}
@media(max-width:600px) {
  .model-grid { grid-template-columns:1fr 1fr; }
  .news-grid { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr 1fr; }
  .form-row { grid-template-columns:1fr; }
}

/* ========== EDITABLE NEWS IMAGES ========== */
.news-thumb {
  position:relative; height:220px; overflow:hidden; cursor:pointer; display:block;
}
.news-thumb img {
  width:100%; height:100%; object-fit:cover;
  transition:transform 0.4s;
}
.news-card:hover .news-thumb img { transform:scale(1.05); }
.news-img-edit-btn {
  position:absolute; bottom:10px; right:10px; z-index:10;
  background:rgba(255,215,0,0.9); color:#111; border:none;
  border-radius:6px; padding:6px 12px; font-size:0.7rem; font-weight:700;
  font-family:'Montserrat',sans-serif; letter-spacing:0.08em; text-transform:uppercase;
  cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px;
}
.news-img-edit-btn:hover { background:var(--gold-dark); transform:translateY(-1px); }
.news-img-input { display:none; }


.about-img-wrap img { border-radius:16px; }
.about-badge {
  position:absolute; bottom:24px; right:-18px;
  background:linear-gradient(135deg,var(--gold),var(--gold-dark));
  border-radius:14px; padding:20px 24px; text-align:center;
  box-shadow:0 8px 32px rgba(255,215,0,0.35);
}


#sponsors .sec-label { color:var(--gold); }
#sponsors .sec-title { color:white; }
#sponsors .sec-title em { color:var(--gold); }
#sponsors .sec-sub { color:rgba(255,255,255,0.82); }
.sponsor-tile { background:rgba(255,255,255,0.95); }
.sponsor-tile:hover { background:white; }



@media(max-width:768px) {
  .legal-body { padding:50px 5% 80px; }
  .legal-intro { padding:28px 24px; }
  .legal-tabs { overflow-x:auto; justify-content:flex-start; gap:0; }
  .legal-tab { padding:16px 20px; white-space:nowrap; }
  .footer-top { grid-template-columns:1fr; }
}

@media(max-width:600px) {
  footer { padding:34px 18px 24px; }
  .footer-top {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px 18px;
    margin-bottom:30px;
  }
  .footer-brand { grid-column:1 / -1; }
  .footer-brand img { height:42px; margin-bottom:10px; }
  .footer-brand p { font-size:0.76rem; line-height:1.45; margin-bottom:14px; }
  .footer-social a { width:30px; height:30px; }
  .footer-col h5 { font-size:0.62rem; margin-bottom:12px; }
  .footer-col ul li { margin-bottom:7px; }
  .footer-col ul li a,
  .footer-bottom p,
  .footer-bottom a { font-size:0.72rem; }
  .footer-bottom { align-items:flex-start; padding-top:18px; }
}
