/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green:      #1a5c2a;
  --green-mid:  #237a38;
  --green-light:#e8f5eb;
  --gold:       #c8922a;
  --text:       #1a1a1a;
  --muted:      #555;
  --border:     #cde0d2;
  --white:      #ffffff;
  --max:        1100px;
  --radius:     8px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; color: var(--text); background: #fff; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utilities ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section    { padding: 56px 0; }
.section-alt { background: var(--green-light); }
.section-dark { background: var(--green); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p, .section-dark li  { color: rgba(255,255,255,.88); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .5em; color: var(--green); }
h3 { font-size: 1.15rem; margin-bottom: .4em; color: var(--green); }
p  { margin-bottom: 1em; }
ul { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: .35em; }
.label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: .35em; }
.btn { display: inline-block; padding: 12px 28px; background: var(--green); color: var(--white); border-radius: var(--radius); font-weight: 600; font-size: .95rem; transition: background .2s; }
.btn:hover { background: var(--green-mid); text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #a77520; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--gold); color: var(--white); margin-bottom: .6em; }

/* ── Navigation ── */
header { position: sticky; top: 0; z-index: 100; background: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: var(--max); margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none; }
.nav-logo:hover { text-decoration: none; }
.nav-logo span { display: block; font-size: .72rem; font-weight: 400; opacity: .8; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: rgba(255,255,255,.88); font-size: .88rem; padding: 6px 10px; border-radius: 4px; transition: background .15s; }
.nav-links a:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.nav-links .cta { background: var(--gold); color: #fff; font-weight: 600; }
.nav-links .cta:hover { background: #a77520; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ── Nav dropdown ── */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle { color: rgba(255,255,255,.88); font-size: .88rem; padding: 6px 10px; border-radius: 4px; transition: background .15s; cursor: pointer; white-space: nowrap; }
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--green); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.25); min-width: 210px; padding: 6px 0; z-index: 200; }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 9px 18px; color: rgba(255,255,255,.88); font-size: .88rem; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav-dropdown-menu .dd-divider { border-top: 1px solid rgba(255,255,255,.18); margin: 5px 0; }
.nav-dropdown-menu .dd-enter { color: var(--gold); font-weight: 700; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, #0d3818 0%, var(--green) 60%, #2e7d47 100%); color: var(--white); padding: 80px 20px 72px; text-align: center; }
.hero h1 { color: var(--white); margin-bottom: .6em; }
.hero .tagline { font-size: clamp(1rem, 2.5vw, 1.25rem); opacity: .88; max-width: 640px; margin: 0 auto 2em; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Impact strip ── */
.stats { display: flex; gap: 0; flex-wrap: wrap; }
.stat { flex: 1; min-width: 160px; text-align: center; padding: 32px 16px; border-right: 1px solid rgba(255,255,255,.18); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: .82rem; opacity: .82; margin-top: 6px; }

/* ── Competition highlight ── */
.highlight { background: var(--gold); color: var(--white); padding: 32px 20px; text-align: center; }
.highlight h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .4em; }
.highlight p { margin-bottom: 1em; opacity: .92; }
.highlight .btn { background: var(--white); color: var(--gold); }
.highlight .btn:hover { background: #f5f5f5; }

/* ── Two-col grid ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.card-icon { font-size: 2rem; margin-bottom: 12px; }

/* ── Team grid ── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: center; padding: 24px 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 1.6rem; font-weight: 700; color: var(--green); overflow: hidden; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; cursor: pointer; }
/* ── Photo modal ── */
#photo-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.75); z-index:1000; align-items:center; justify-content:center; }
#photo-modal.open { display:flex; }
@media (max-width:600px) { .submit-cards { grid-template-columns:1fr !important; } }
#photo-modal img { max-width:90vw; max-height:85vh; border-radius:var(--radius); box-shadow:0 8px 40px rgba(0,0,0,.5); object-fit:contain; }
#photo-modal-close { position:absolute; top:16px; right:20px; font-size:2rem; color:#fff; cursor:pointer; line-height:1; background:none; border:none; }
.team-name { font-weight: 700; font-size: .95rem; }
.team-role { font-size: .8rem; color: var(--muted); }
.team-cred { font-size: .78rem; color: var(--muted); margin-top: 6px; font-style: italic; }

/* ── Table ── */
.winners-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.winners-table th { background: var(--green); color: var(--white); padding: 10px 12px; text-align: left; font-size: .82rem; }
.winners-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.winners-table tr:nth-child(even) td { background: var(--green-light); }
.pos-badge { display: inline-block; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: .8rem; text-align: center; line-height: 28px; }
.pos-1 { background: #ffd700; color: #5a4200; }
.pos-2 { background: #c0c0c0; color: #2a2a2a; }
.pos-3 { background: #cd7f32; color: #fff; }
.pos-n { background: var(--green-light); color: var(--green); }
.edition-header { background: var(--green-mid); color: #fff; padding: 14px 20px; border-radius: var(--radius) var(--radius) 0 0; margin-top: 36px; }
.edition-header h3 { color: #fff; margin: 0; font-size: 1rem; }
.edition-header p { margin: 4px 0 0; opacity: .82; font-size: .85rem; }

/* ── Prize table ── */
.prize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prize-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.prize-head { background: var(--green); color: #fff; padding: 14px 20px; font-weight: 700; }
.prize-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.prize-row:last-child { border-bottom: none; }
.prize-row.gold { background: #fffbf0; }
.prize-amount { font-weight: 700; color: var(--green); }

/* ── Process steps ── */
.steps { counter-reset: steps; display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; counter-increment: steps; }
.step-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-num::before { content: counter(steps); }
.step-body h4 { font-size: .97rem; margin-bottom: .2em; color: var(--green); }
.step-body p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ── Form ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid #ccc; border-radius: 6px; padding: 10px 14px; font-size: .95rem; font-family: inherit;
  transition: border-color .2s; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.notice { background: var(--green-light); border-left: 4px solid var(--green); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .9rem; margin-bottom: 1.5em; }
.notice strong { color: var(--green); }

/* ── Status badge ── */
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 20px; font-size: .82rem; font-weight: 700; }

/* ── Photo gallery ── */
.photo-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-gallery.three { grid-template-columns: repeat(3, 1fr); }
.photo-frame { border-radius: var(--radius); overflow: hidden; }
.photo-frame img { width: 100%; height: 280px; object-fit: cover; display: block; }
.photo-caption { font-size: .78rem; color: var(--muted); margin-top: 6px; font-style: italic; }

/* ── Poster grid ── */
.poster-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.poster-card { border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: transform .2s, box-shadow .2s; cursor: zoom-in; }
.poster-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.poster-card img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; }

/* ── Video gallery ── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.video-card { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-card-label { padding: 10px 14px; background: var(--green); color: #fff; font-size: .82rem; font-weight: 600; }

/* ── LinkedIn widget ── */
.linkedin-widget { border: 2px solid #0a66c2; border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; gap: 20px; background: #fff; max-width: 560px; }
.li-logo { width: 48px; height: 48px; background: #0a66c2; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.li-text { flex: 1; }
.li-text strong { font-size: 1rem; color: var(--text); display: block; margin-bottom: 4px; }
.li-text p { font-size: .85rem; color: var(--muted); margin: 0; }
.li-follow-btn { background: #0a66c2; color: #fff; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; transition: background .2s; }
.li-follow-btn:hover { background: #004182; }
.insta-widget { border: 2px solid #c13584; border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; gap: 20px; background: #fff; max-width: 560px; margin-top: 16px; }
.insta-logo { width: 48px; height: 48px; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.insta-follow-btn { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; transition: opacity .2s; }
.insta-follow-btn:hover { opacity: .85; }
.yt-widget { border: 2px solid #ff0000; border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; gap: 20px; background: #fff; max-width: 560px; }
.yt-logo { width: 44px; height: 44px; background: #ff0000; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yt-follow-btn { background: #ff0000; color: #fff; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; transition: background .2s; }
.yt-follow-btn:hover { background: #cc0000; }

/* ── Footer ── */
footer { background: #0d2e14; color: rgba(255,255,255,.75); padding: 40px 20px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand .name { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: .85rem; }
.footer-col h4 { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .85rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ── Lightbox ── */
#lightbox { display:none; position:fixed; inset:0; z-index:2000; background:rgba(0,0,0,.88); align-items:center; justify-content:center; padding:20px; }
#lightbox.open { display:flex; }
#lightbox-img { max-width:min(90vw,680px); max-height:90vh; border-radius:var(--radius); box-shadow:0 12px 60px rgba(0,0,0,.6); }
#lightbox-close { position:fixed; top:16px; right:20px; font-size:2.2rem; color:#fff; cursor:pointer; background:none; border:none; line-height:1; opacity:.85; transition:opacity .15s; }
#lightbox-close:hover { opacity:1; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .two-col, .two-col.flip, .footer-grid, .prize-grid, .form-grid { grid-template-columns: 1fr; direction: ltr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 58px; left: 0; right: 0; background: var(--green); padding: 12px 20px 20px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 8px; }
  .nav-dropdown { flex-direction: column; align-items: stretch; }
  .nav-dropdown-menu { display: flex !important; flex-direction: column; position: static; box-shadow: none; background: rgba(0,0,0,.15); border-radius: var(--radius); padding: 4px 0; margin: 2px 0 4px 12px; }
  .nav-dropdown-menu a { padding: 7px 12px; font-size: .84rem; }
  .nav-dropdown-menu .dd-divider { display: none; }
  .hamburger { display: flex; }
  .stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.18); }
  .stat:last-child { border-bottom: none; }
  .photo-gallery, .photo-gallery.three { grid-template-columns: 1fr; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-frame img { height: 220px; }
  .linkedin-widget, .insta-widget, .yt-widget { flex-direction: column; text-align: center; max-width: 100%; }
}
