/* USE NON-SARIF FONTS */

/* ================================================================
   LEX:LEAD — Main Stylesheet
   ================================================================ */

/* --- Reset & Base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:   #1a2a4a;
    --gold:   #c8962a;
    --dark:   #111827;
    --text:   #2d2d2d;
    --muted:  #555;
    --light:  #f5f5f5;
    --white:  #ffffff;
    --border: #ddd;
    --blue:   #1a5276;
    --green:  #1a6b3c;
    --shadow: 0 2px 12px rgba(0,0,0,.10);
    --radius: 6px;
    --font:   'Georgia', 'Times New Roman', serif;
    --sans:   'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5rem; }

/* --- Layout -------------------------------------------------- */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================================================================
   HEADER / NAVBAR
   ================================================================ */
.site-header {
    background: var(--navy);
    position: sticky;
    max-width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.navbar {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 2rem;
}

/* Brand */
.brand-link { text-decoration: none !important; }
.brand-logo {
    font-family: var(--sans);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .5px;
}
.brand-colon { color: var(--gold); }

/* Nav menu */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
    margin-left: auto;
}

.nav-item { position: relative; }

.nav-link {
    display: block;
    padding: .75rem 1rem;
    color: rgba(255,255,255,.88);
    font-family: var(--sans);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,.12);
    text-decoration: none;
}
.nav-link .arrow { font-size: .7rem; }

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy);
    border-top: 3px solid var(--gold);
    min-width: 200px;
    list-style: none;
    padding: .5rem 0;
    box-shadow: var(--shadow);
    z-index: 500;
    max-height: 70vh;
    overflow-y: auto;
}
.dropdown li a {
    display: block;
    padding: .45rem 1.2rem;
    color: rgba(255,255,255,.85);
    font-family: var(--sans);
    font-size: .82rem;
    transition: background .15s;
}
.dropdown li a:hover {
    background: rgba(255,255,255,.1);
    color: var(--white);
    text-decoration: none;
}

.has-dropdown:hover .dropdown { display: block; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
    padding: 8px 10px;
    min-width: 44px;   /* minimum touch target */
    min-height: 44px;
    z-index: 1100;
    flex-shrink: 0;
    transition: border-color .2s;
}
.nav-toggle:hover { border-color: rgba(255,255,255,.5); }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}

/* Animate hamburger to X when open */
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
   ================================================================ */
.logo-image{
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  /* Optional: Adjust size */

}

.subtitle{
  font-family: sans-serif;
  font-size: 1.5rem;
  font-weight:100;
  text-align: center;
  padding-bottom: 20px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg{

}
.hero-image {
  
 margin:auto;
}

.hero-overlay {
    position: absolute;
    inset: 0;
 
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
    max-width: 900px;
}

.hero-title {
    font-family: var(--sans);
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0,0,0,.5);
    line-height: 1.25;
}

.hero-subtitle {
    font-family: var(--sans);
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0,0,0,.5);
}


.title-sub{
  text-align: center;
  font-weight:400;
  font-size:16px;
  line-height: 1.25;
  color: rgb(89, 89, 89);
  letter-spacing: 0.143em;
  max-width: 100%;
  margin-top: 8px;
  margin-bottom:55px;
}

.hero-inner { min-height: 220px; }
.hero-short { min-height: 180px; background: linear-gradient(135deg, var(--navy) 0%, #2c4a80 100%); }
.hero-short .hero-title { font-size: clamp(1.3rem, 3.5vw, 2rem); }

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.main-content { background: var(--white); }

/* --- About Section ----------------------------------------------- */
.intro-section { padding: 2.5rem 1.5rem; border-bottom: 1px solid var(--border); }
.intro-text {
    font-size: 1.05rem;
    text-align: center;
    line-height: 1.85;
    color: var(--text);
}

.section-heading {
    font-family: var(--sans);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2rem 0 1rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid grey;
    display: inline-block;
}
.heading-dash { color: var(--muted); font-weight: 400; font-size: 1rem; }

.subsection-heading {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1.8rem 0 .8rem;
}

.page-heading {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin: 2rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid grey;
}

/* ================================================================
   NEWSFEED
   ================================================================ */
.newsfeed-section { padding: 2rem 1.5rem; border-bottom: 1px solid var(--border); }

.news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dotted var(--border);
}
.news-item:last-of-type { border-bottom: none; }

.news-title {
    font-family: var(--sans);
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .3rem;
}

.news-content { font-size: .95rem; color: var(--text); }

/* Photo gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.gallery-item { margin: 0; }
.gallery-placeholder {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}
.gallery-icon { font-size: 2rem; }
.gallery-placeholder p { font-size: .83rem; color: var(--muted); line-height: 1.5; }


/* ================================================================
   Welcome Section
   ================================================================ */

.welcome{
  display: grid;
  /* Create a grid with 2 equal-width columns */
  grid-template-columns: 1fr 1fr; 
  gap: 10px; /* Optional spacing between items */
}


/* ================================================================
   BRIEF / COUNTRIES
   ================================================================ */
.brief-section, .countries-section {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.brief-list {
    padding-left: 1.6rem;
    line-height: 1.9;
}
.brief-list li { margin-bottom: .5rem; }

.countries-intro { margin-bottom: 1.5rem; }

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.country-region {}
.region-title {
    font-family: var(--sans);
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: .5rem;
    font-style: italic;
}

.country-list {
    list-style: none;
    padding: 0;
    font-size: .9rem;
    line-height: 1.8;
}
.country-list li strong { font-weight: 600; }

.countries-legend {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ================================================================
   TEAM GRID
   ================================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
    align-items: start;
}

.team-card {
    background: var(--white);;
    
    padding: 5rem;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
    width: 15rem;
    height: 18.96rem;
}
.team-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.team-card--memorial {
    background: #f9f4ef;
    border-color: #c8a87a;
}

.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto .8rem;
    font-family: var(--sans);
}
.team-avatar--memorial { background: #8b6914; }

.team-name {
    font-family: var(--sans);
    font-size: .9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .25rem;
}
.team-title { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.team-org   { font-size: .78rem; color: var(--muted); margin-top: .25rem; font-style: italic; }

/* Advisory list */
.advisory-list {
    display: grid;
    grid-column: auto;
    justify-content: space-between;
    
    padding: 0;
    line-height: 2;
}
.advisory-list li { 
  border-bottom: 1px dotted var(--border);
  padding: .3rem 0; font-size: .93rem; 
}

/* ================================================================
   PAGE CONTENT (shared inner pages)
   ================================================================ */
.page-content { 
  padding: 2rem 1.5rem 3rem;
  overflow: hidden;
 }
.page-content p { margin-bottom: 1rem; }

/* ================================================================
   INFO BOXES
   ================================================================ */
.info-box {
    background: #eef4fb;
    border-left: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.info-box h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
}
.info-box--blue { background: #e8f0fa; border-left-color: #2471a3; }
.info-box--green { background: #eaf5ea; border-left-color: var(--green); }

/* ================================================================
   FORMS
   ================================================================ */
.contact-form { max-width: 590px; margin-top: 1.5rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-control {
    width: 100%;
    padding: .55rem .85rem;
    font-size: .93rem;
    font-family: var(--sans);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color .2s;
    margin-bottom: 1rem;
}
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,42,74,.12); }


#id_honouree_donor {
    width: 100%;
    padding: .55rem .85rem;
    font-size: .93rem;
    font-family: var(--sans);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color .2s;
    margin-bottom: 1rem;
}
#id_honouree_donor :focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,42,74,.12); }


.btn {
    display: inline-block;
    padding: .6rem 1.8rem;
    font-family: var(--sans);
    font-size: .93rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #243d6e; transform: translateY(-1px); color: var(--white); text-decoration: none; }

/* ================================================================
   ALERTS
   ================================================================ */
.messages-container { max-width: 1080px; margin: 1rem auto; padding: 0 1.5rem; }
.alert {
    padding: .85rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: .75rem;
    font-family: var(--sans);
    font-size: .93rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }


/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonial {
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #fffbf3;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--dark);
}
.testimonial cite {
    display: block;
    margin-top: .5rem;
    font-size: .88rem;
    font-style: normal;
    color: var(--muted);
}

/* ================================================================
   WINNERS
   ================================================================ */
.year-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius);
}
.year-nav-label {
    font-family: var(--sans);
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    margin-right: .25rem;
}
.year-badge {
    display: inline-block;
    padding: .25rem .65rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-family: var(--sans);
    font-size: .8rem;
    color: var(--navy);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.year-badge:hover { background: var(--navy); color: var(--white); text-decoration: none; border-color: var(--navy); }
.year-badge--active { background: var(--navy); color: var(--white); border-color: var(--navy); font-weight: 700; }

.year-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }

.essay-question{
  text-align: center;
  font-weight: bold;
  padding-bottom:2rem;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.winner-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    transition: box-shadow .2s;
}
.winner-card:hover { box-shadow: var(--shadow); }
.winner-flag { font-size: 1.8rem; flex-shrink: 0; }
.winner-name { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .2rem; }
.winner-country { font-size: .83rem; color: var(--muted); margin-bottom: .3rem; font-family: var(--sans); }
.winner-essay { font-size: .82rem; color: var(--text); }
.winner-notes { font-size: .8rem; color: var(--muted); }
.empty-state { padding: 2rem; text-align: center; color: var(--muted); font-style: italic; }
.back-link { margin-top: 2rem; font-family: var(--sans); font-size: .9rem; }

/* ================================================================
   COMPETITION REG / INTERNSHIPS / DONATIONS
   ================================================================ */
.key-dates, .req-list, .steps-list, .pub-list, .partners-list, .sponsors-list {
    margin: .75rem 0 1rem;
    line-height: 2;
}
.news-list { margin-top: 1rem; }
.news-article {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}
.news-article:last-child { border-bottom: none; }
.news-article-title {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.impact-stat {
    text-align: center;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem .75rem;
}
.stat-number {
    display: block;
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}
.stat-label {
    display: block;
    font-family: var(--sans);
    font-size: .78rem;
    opacity: .85;
    margin-top: .35rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: black;
    color: rgba(255,255,255,.75);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    text-align: center;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-copy { font-family: var(--sans); font-size: .82rem; margin-bottom: .75rem; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.footer-nav a {
    color: rgba(255,255,255,.8);
    font-family: var(--sans);
    font-size: .82rem;
    text-decoration: none;
}
.footer-nav a:hover { color: var(--white); text-decoration: underline; }

.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* reduced spacing */
    padding: 20px;
}

.socials a {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 50px;
    height: 30px;
  

    color: white;
    
     /* circle */
    text-decoration: none;

    transition: 0.2s;
}

#facebook{
  width:400%;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */




@media (max-width: 480px) {
    .countries-grid { grid-template-columns: 1fr; }
    .photo-gallery { grid-template-columns: 1fr; }
    .impact-stats { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   ADMIN NAV ITEMS
   ================================================================ */
.nav-link--admin {
  color: var(--gold) !important;
  font-weight: 700;
}
.nav-link--login {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  padding: .45rem .9rem !important;
  margin-left: .5rem;
  font-size: .82rem !important;
}
.nav-link--login:hover { background: rgba(255,255,255,.15); }

.dropdown-divider {
  border-top: 1px solid rgba(255,255,255,.15);
  margin: .35rem 0;
  list-style: none;
}
.dropdown-admin-link {
  color: var(--gold) !important;
  font-weight: 700 !important;
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.login-page {
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}
.login-card__header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-lock { font-size: 2.2rem; display: block; margin-bottom: .5rem; }
.login-card__header h2 {
  font-family: var(--sans);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: .35rem;
}
.login-card__header p { font-size: .88rem; color: var(--muted); }
.login-form .field-group { margin-bottom: 1.1rem; }
.btn-full { width: 100%; text-align: center; padding: .7rem; }
.login-hint {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* ================================================================
   COMPETITION ADMIN — SHARED
   ================================================================ */
.cadmin-hero { background: linear-gradient(135deg, #0d2040 0%, #1a3a6e 100%); }
.cadmin-hero .hero-sub {
  color: rgba(255,255,255,.8);
  font-family: var(--sans);
  font-size: .95rem;
  margin-top: .4rem;
}

.cadmin-page { padding: 1.5rem 1.5rem 3rem; }

.cadmin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding: .75rem 1rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cadmin-topbar__left, .cadmin-topbar__right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.cadmin-user {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.cadmin-badge {
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Two-column layout */
.cadmin-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Panels ──────────────────────────────────────────────────── */
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.panel--green { border-top: 3px solid var(--green); }
.panel--danger { border-top: 3px solid #c0392b; background: #fff8f8; }

.panel__title {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.panel__text { font-size: .85rem; color: var(--muted); margin-bottom: .85rem; }

/* ── Fields ──────────────────────────────────────────────────── */
.field-group { margin-bottom: 1rem; }
.field-label {
  display: block;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .3rem;
}
.field-label .opt { font-weight: 400; color: var(--muted); }
.field-label .req { color: #c0392b; }
.field-error {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  color: #c0392b;
  margin-top: .25rem;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-sm  { padding: .38rem .9rem;  font-size: .82rem; }
.btn-xs  { padding: .28rem .65rem; font-size: .75rem; }
.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { background: #145a32; color: var(--white); text-decoration: none; }
.btn-danger  { background: #c0392b; color: var(--white); }
.btn-danger:hover  { background: #962d22; color: var(--white); text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }

/* ================================================================
   YEAR CARDS (dashboard)
   ================================================================ */
.year-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.year-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}
.year-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.year-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .5rem;
}
.year-card__year {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.year-card__count {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  background: var(--light);
  padding: .15rem .5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.year-card__desc {
  font-size: .83rem;
  color: var(--muted);
  margin-bottom: .85rem;
  line-height: 1.5;
}
.year-card__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ================================================================
   WINNERS TABLE (year edit page)
   ================================================================ */
.winners-table-wrap { overflow-x: auto; margin-top: 1rem; }
.winners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.winners-table th {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--light);
  padding: .65rem .85rem;
  border-bottom: 2px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.winners-table td {
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.winner-row:hover td { background: #fafbff; }
.actions-cell { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

/* Inline edit row */
.edit-mode td { background: #fffbf0; padding: 1rem .85rem; }
.inline-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1rem;
  margin-bottom: .75rem;
}
.inline-edit-grid .field-group { margin-bottom: 0; }
.inline-edit-actions { display: flex; gap: .5rem; }


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    /* Show hamburger */
    .nav-toggle { display: flex; }

    /* Drawer slides in from the LEFT ─────────────────────────────
       The menu is fixed so it overlays the whole page, not just
       the navbar. Height = full viewport; left starts off-screen
       (translateX(-100%)) and slides in on .is-open.              */
    .nav-menu {
        display: flex;          /* always in the DOM for transition */
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 80vw); /* never wider than 80% of screen */
        background: var(--navy);
        padding: 70px 0 2rem;   /* 70px clears the sticky header */
        box-shadow: 4px 0 24px rgba(0,0,0,.4);
        z-index: 1050;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        visibility: hidden;     /* hide from screen readers when closed */
    }
    .nav-menu.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    /* Dark overlay behind the drawer */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 1040;
        opacity: 0;
        transition: opacity .3s ease;
    }
    .nav-overlay.is-visible {
        display: block;
        opacity: 1;
    }

    /* Compact nav links */
    .nav-link {
        padding: .65rem 1.4rem;
        font-size: .9rem;
        border-bottom: 1px solid rgba(255,255,255,.07);
        white-space: normal;    /* allow wrapping on narrow screens */
    }
    .nav-item:last-child .nav-link { 
      
      padding-bottom:30px;
    }

    /* Dropdown indented inside drawer */
    .dropdown {
        position: static;
        border-top: none;
        border-left: 3px solid var(--gold);
        border-right: none;
        border-bottom: none;
        box-shadow: none;
        margin: 0 0 0 1.4rem;
        max-height: none;
        background: rgba(0,0,0,.18);
        padding: .2rem 0;
    }
    .dropdown li a {
        padding: .55rem 1.2rem;
        font-size: .84rem;
        border-bottom: 1px solid rgba(255,255,255,.04);
    }
    .dropdown li a:last-child { border-bottom: none; }

    /* Disable hover-open; only open via JS tap */
    .has-dropdown:hover .dropdown { display: none; }
    .has-dropdown.is-open .dropdown { display: block; }

    /* Admin / login links */
    .nav-link--login {
        margin: .5rem 1rem;
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 6px;
        text-align: center;
    }
    .nav-item--admin .nav-link--admin { color: var(--gold) !important; }

    /* Other responsive fixes */
    .form-row { grid-template-columns: 1fr; }
    .countries-grid { grid-template-columns: 1fr 1fr; }
    .team-grid {
      display: flex;
      flex-direction: column;
    }
    .team-card{
      width: 346px;
    }
    .team-photo{  
        display: block;
        margin-left: auto;
        margin-right: auto;   
    }
   
}

@media (max-width: 480px) {
    .countries-grid { grid-template-columns: 1fr; }
    .photo-gallery { grid-template-columns: 1fr; }
    .impact-stats { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   ADMIN NAV ITEMS
   ================================================================ */
.nav-link--admin {
  color: var(--gold) !important;
  font-weight: 700;
}
.nav-link--login {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  padding: .45rem .9rem !important;
  margin-left: .5rem;
  font-size: .82rem !important;
}
.nav-link--login:hover { background: rgba(255,255,255,.15); }

.dropdown-divider {
  border-top: 1px solid rgba(255,255,255,.15);
  margin: .35rem 0;
  list-style: none;
}
.dropdown-admin-link {
  color: var(--gold) !important;
  font-weight: 700 !important;
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.login-page {
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}
.login-card__header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-lock { font-size: 2.2rem; display: block; margin-bottom: .5rem; }
.login-card__header h2 {
  font-family: var(--sans);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: .35rem;
}
.login-card__header p { font-size: .88rem; color: var(--muted); }
.login-form .field-group { margin-bottom: 1.1rem; }
.btn-full { width: 100%; text-align: center; padding: .7rem; }
.login-hint {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* ================================================================
   COMPETITION ADMIN — SHARED
   ================================================================ */
.cadmin-hero { background: linear-gradient(135deg, #0d2040 0%, #1a3a6e 100%); }
.cadmin-hero .hero-sub {
  color: rgba(255,255,255,.8);
  font-family: var(--sans);
  font-size: .95rem;
  margin-top: .4rem;
}

.cadmin-page { padding: 1.5rem 1.5rem 3rem; }

.cadmin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding: .75rem 1rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cadmin-topbar__left, .cadmin-topbar__right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.cadmin-user {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.cadmin-badge {
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Two-column layout */
.cadmin-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Panels ──────────────────────────────────────────────────── */
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.panel--green { border-top: 3px solid var(--green); }
.panel--danger { border-top: 3px solid #c0392b; background: #fff8f8; }

.panel__title {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.panel__text { font-size: .85rem; color: var(--muted); margin-bottom: .85rem; }

/* ── Fields ──────────────────────────────────────────────────── */
.field-group { margin-bottom: 1rem; }
.field-label {
  display: block;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .3rem;
}
.field-label .opt { font-weight: 400; color: var(--muted); }
.field-label .req { color: #c0392b; }
.field-error {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  color: #c0392b;
  margin-top: .25rem;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-sm  { padding: .38rem .9rem;  font-size: .82rem; }
.btn-xs  { padding: .28rem .65rem; font-size: .75rem; }
.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { background: #145a32; color: var(--white); text-decoration: none; }
.btn-danger  { background: #c0392b; color: var(--white); }
.btn-danger:hover  { background: #962d22; color: var(--white); text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }

/* ================================================================
   YEAR CARDS (dashboard)
   ================================================================ */
.year-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.year-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}
.year-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.year-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .5rem;
}
.year-card__year {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.year-card__count {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  background: var(--light);
  padding: .15rem .5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.year-card__desc {
  font-size: .83rem;
  color: var(--muted);
  margin-bottom: .85rem;
  line-height: 1.5;
}
.year-card__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ================================================================
   WINNERS TABLE (year edit page)
   ================================================================ */
.winners-table-wrap { overflow-x: auto; margin-top: 1rem; }
.winners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.winners-table th {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--light);
  padding: .65rem .85rem;
  border-bottom: 2px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.winners-table td {
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.winner-row:hover td { background: #fafbff; }
.actions-cell { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

/* Inline edit row */
.edit-mode td { background: #fffbf0; padding: 1rem .85rem; }
.inline-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1rem;
  margin-bottom: .75rem;
}
.inline-edit-grid .field-group { margin-bottom: 0; }
.inline-edit-actions { display: flex; gap: .5rem; }

/* ================================================================
   RESPONSIVE — admin
   ================================================================ */
@media (max-width: 860px) {
  .cadmin-layout { grid-template-columns: 1fr; }
  .cadmin-sidebar { display: contents; }
  .panel { margin-bottom: 1rem; }
  .inline-edit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .year-cards { grid-template-columns: 1fr; }
  .winners-table { font-size: .8rem; }
  .cadmin-topbar { flex-direction: column; align-items: flex-start; }
}

.field-help {
  font-family: var(--sans);
  font-size: .75rem;
  color: #999;
  margin-top: .3rem;
}

/* Smaller variant for the inline edit row */
.photo-drop-zone--sm { min-height: 76px; }
.photo-drop-zone--sm .photo-drop-zone__icon  { font-size: 1.3rem; }
.photo-drop-zone--sm .photo-drop-zone__text  { font-size: .75rem; }
.photo-drop-zone--sm .photo-drop-zone__preview { max-height: 120px; }

/* ================================================================
   WINNER THUMBNAIL — admin table
   ================================================================ */
.winner-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
}
.winner-thumb-empty {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--light);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .75rem;
  color: #bbb;
}

/* ================================================================
   INLINE EDIT — photo section
   ================================================================ */
.inline-photo-section {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: start;
  margin: .75rem 0 1rem;
  padding: .85rem;
  background: #f9f9fb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.inline-photo-current { text-align: center; }
.inline-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
  margin: 0 auto .3rem;
}
.inline-photo-empty {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--light);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .72rem;
  color: #bbb;
  margin: 0 auto .3rem;
}
.inline-photo-label {
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--muted);
}
.inline-photo-remove { grid-column: 1 / -1; }

/* ================================================================
   PUBLIC WINNERS GRID (with photos)
   ================================================================ */
.pub-winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  align-items: start;
}

.pub-winner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  transition: box-shadow .2s, transform .2s;
  text-align: center;
}
.pub-winner-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

.pub-winner-photo {
  width: 100%;
  overflow: hidden;
  background: var(--light);
}
.pub-winner-photo img {
  width: 100%;
  height: auto;          /* natural height — no cropping */
  display: block;
}

.pub-winner-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #2c4a80 100%);
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
}

.pub-winner-body {
  padding: 1rem;
}
.pub-winner-name {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}
.pub-winner-university {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .4rem;
}
.pub-winner-essay {
  font-size: .8rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: .3rem;
}
.pub-winner-notes {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 540px) {
  .pub-winners-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .inline-photo-section { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .pub-winners-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   ALL WINNERS PAGE
   ================================================================ */

/* Two-column layout: sticky sidebar + scrolling main */
.aw-page {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.aw-sidebar {
  position: sticky;
  top: 60px;           /* height of the fixed navbar */
  height: calc(100vh - 60px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--white);
  padding: 0;
}
.aw-sidebar__inner {
  padding: 1.5rem 1rem 2rem;
}
.aw-sidebar__title {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .85rem;
}
.aw-sidebar__empty {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--muted);
}

/* Year nav links in sidebar */
.aw-year-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 1.5rem;
}
.aw-year-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem .65rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s, color .15s;
  font-family: var(--sans);
}
.aw-year-link:hover { background: var(--light); text-decoration: none; }
.aw-year-link.is-active {
  background: var(--navy);
  color: var(--white);
}
.aw-year-link__year {
  font-size: .9rem;
  font-weight: 700;
  color: inherit;
}
.aw-year-link:not(.is-active) .aw-year-link__year { color: var(--navy); }
.aw-year-link__count {
  font-size: .72rem;
  color: inherit;
  background: rgba(0,0,0,.07);
  padding: .15rem .45rem;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}
.aw-year-link.is-active .aw-year-link__count { background: rgba(255,255,255,.25); }

.aw-cta { font-size: .82rem; padding: .55rem .75rem; text-align: center; }

/* ── Main scrolling area ─────────────────────────────────────── */
.aw-main {
   min-height: 80vh;
   padding-top:3rem;  
}

.competition-winners-title{
  text-align: center;
}

/* ── Year section ───────────────────────────────────────────── */
.aw-year-section {
  border-bottom: 2px solid var(--border);
}
.aw-year-section.is-open {
  border-bottom-color: var(--gold);
}

/* Year header / accordion trigger */
.aw-year-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  cursor: pointer;
  user-select: none;
  background: var(--white);
  transition: background .15s;
  gap: 1rem;
}
.aw-year-header:hover { background: #f7f9ff; }
.aw-year-section.is-open .aw-year-header { background: #f0f4ff; }

.aw-year-header__left {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  flex-wrap: wrap;
}
.aw-year-number {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

#edit-year{
  position: absolute;
  margin-left: 48rem;

}
.aw-year-count {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  padding: .2rem .65rem;
  border-radius: 20px;
}

.edit-year{
  
}

.aw-year-section.is-open .aw-year-count { background: var(--gold); }
.aw-year-desc {
  font-family: var(--sans);
  font-size: .83rem;
  color: var(--muted);
  font-style: italic;
}

.aw-toggle-icon {
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform .25s;
  flex-shrink: 0;
}

/* Collapsible body */
.aw-year-body {
  overflow: hidden;
  max-height: 4700px;           /* large enough for any year */
  transition: max-height .35s ease, opacity .3s ease, padding .3s ease;
  opacity: 1;
  padding: 1.5rem 2rem 0.5rem;
}
.aw-year-body.is-collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* ── Winner cards grid ──────────────────────────────────────── */
.aw-winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.aw-winner-card {
  background: var(--white);

 
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  text-align: center;
}



.aw-winner-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.11);
  transform: translateY(-3px);
}

/* Photo / avatar */
.aw-winner-photo {
  width: 100%;
  overflow: hidden;
  background: var(--light);
}
.aw-winner-photo img {
  width: 100%;
  height: auto;    /* natural height — no cropping */
  display: block;
}

.aw-winner-avatar {
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #2c4a80 100%);
  font-family: var(--sans);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,.55);
}

/* Text body */
.aw-winner-body {
  padding: .85rem .75rem;
}
.aw-winner-name {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .2rem;
  line-height: 1.3;
}
.aw-winner-university {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .3rem;
}
.aw-flag { font-size: .85rem; }
.aw-winner-essay {
  font-size: .75rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: .25rem;
}
.aw-winner-notes {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Year footer */
.aw-year-footer {
  display: flex;
  justify-content: flex-end;
  padding: .5rem 0 1rem;
}
.aw-back-top {
  position: sticky;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
}
.aw-back-top:hover { color: var(--navy); text-decoration: underline; }

/* Hero tagline */
.hero-tagline {
  font-family: var(--sans);
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin-top: .5rem;
}

/* ================================================================
   RESPONSIVE — all winners
   ================================================================ */
@media (max-width: 900px) {
  .aw-page {
    grid-template-columns: 1fr;
    overflow-x: hidden;
    width: 100%;
  }
  #edit-year{
  position: relative;
 }
  .aw-sidebar {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    align-items: center;
  }
  .aw-main{
    display: block;
    width:100%;
   
  }
  .competition-winners-title{
    text-align: center;
  }
 .aw-year-section{}
  .aw-sidebar__inner { padding: 1rem; }
  .aw-year-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .4rem;
  }
  .aw-year-link {
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .4rem .7rem;
    font-size: .8rem;
    border: 1px solid var(--border);
  }
  .aw-year-link.is-active { border-color: var(--navy); }

  .aw-year-header { padding: 1rem 1.25rem; }
  .aw-year-body   { padding: 1rem 1.25rem 0.5rem; }
  .aw-winners-grid {
    display: grid;
    grid-template-columns: repeat(2, 50%); /* Exactly 2 columns */
    gap: 10px;
    
  }
  .aw-winner-card{
  
  }

  .downloadables a{
    position:relative;
    margin-left:25px;
    
  }
}



@media (max-width: 540px) {
  
  .aw-year-number  { font-size: 1.3rem; }
}
@media (max-width: 340px) {
  .aw-winners-grid { grid-template-columns: 1fr; }
}

.all-winners-link {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  margin-right: .5rem;
}
.all-winners-link:hover { text-decoration: underline; }


/* ================================================================
   PHOTO UPLOAD — BUTTON STYLE (replaces broken drop zone)
   ================================================================ */

/* The label acts as the clickable upload button */
.photo-upload-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--navy);
  transition: background .15s, border-color .15s;
  width: 100%;
  box-sizing: border-box;
}
.photo-upload-btn:hover {
  background: #eef2f9;
  border-color: var(--navy);
}
.photo-upload-btn--sm { font-size: .78rem; padding: .4rem .7rem; }

.photo-upload-btn__icon { font-size: 1.1rem; flex-shrink: 0; }
.photo-upload-btn__text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

/* Hide the native file input visually but keep it functional */
.photo-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Preview image below the button */
.photo-preview-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: .5rem;
  display: block;
}

.field-help {
  font-family: var(--sans);
  font-size: .75rem;
  color: #999;
  margin-top: .3rem;
}

/* ================================================================
   COMPETITION STATUS BADGE
   ================================================================ */
.comp-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  padding: .35rem .85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  letter-spacing: .02em;
}
.comp-status--open   { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.comp-status--closed { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.page-updated {
  font-family: var(--sans);
  font-size: .75rem;
  color: #bbb;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Floating edit button (visible to staff on public page) ── */
.page-edit-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  padding: .65rem 1.1rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: background .2s, transform .15s;
}
.page-edit-fab:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Year-links "all years" badge variant */
.year-badge--all {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-weight: 700;
}
.year-badge--all:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ================================================================
   EDIT COMPETITION PAGE — LAYOUT
   ================================================================ */
.ep-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.ep-main { min-width: 0; }

/* ── Sections ─────────────────────────────────────────────── */
.ep-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.ep-section__title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--light);
}

/* 3-column grid inside key dates */
.ep-grid-3 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}

/* Live preview */
.ep-preview-hint {
  font-family: var(--sans);
  font-size: .82rem;
  background: #f7f9ff;
  border: 1px solid #d0d8f0;
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-top: .5rem;
  color: var(--text);
}
.ep-preview-list {
  margin: .4rem 0 0 1.2rem;
  padding: 0;
  font-size: .82rem;
  line-height: 1.8;
  color: var(--text);
}

/* ── Toggle switch ────────────────────────────────────────── */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}
.toggle-wrap {
  position: relative;
  flex-shrink: 0;
}
/* Hide default checkbox */
.toggle-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }

.toggle-slider {
  display: block;
  width: 52px;
  height: 28px;
  background: #ccc;
  border-radius: 28px;
  transition: background .25s;
  position: relative;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-checkbox:checked ~ .toggle-slider { background: var(--green); }
.toggle-checkbox:checked ~ .toggle-slider::after { transform: translateX(24px); }

.toggle-text { font-family: var(--sans); font-size: .9rem; }
.toggle-text strong { color: var(--navy); }

/* ── Sidebar panels ───────────────────────────────────────── */
.ep-sidebar { position: sticky; top: 72px; }

.ep-save-panel { border-top: 3px solid var(--green); }
.ep-save-btn { font-size: .95rem; padding: .7rem; }
.ep-save-btn--scrolled { box-shadow: 0 4px 14px rgba(0,100,0,.25); }

.ep-last-saved {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.6;
}

.ep-tips-panel { margin-top: 1rem; }
.ep-tips {
  padding-left: 1.1rem;
  margin: 0;
  font-family: var(--sans);
  font-size: .8rem;
  line-height: 1.8;
  color: var(--text);
}
.ep-tips li { margin-bottom: .25rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .ep-layout { grid-template-columns: 1fr; }
  .ep-sidebar { position: static; }
  .ep-grid-3 { grid-template-columns: 1fr; }
}

/* ================================================================
   TIMELINE SECTION
   ================================================================ */
.tl-section {
  background: linear-gradient(180deg, #f0f4fb 0%, var(--white) 100%);
  padding: 2rem 0 2.5rem;
  border-bottom: 2px solid var(--border);
}
.tl-intro {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

/* ── Year rail ──────────────────────────────────────────────── */
.tl-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.tl-year-rail {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.75rem;
  position: relative;
}

.tl-rail-arrow {
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
  transition: background .15s;
}
.tl-rail-arrow:hover { background: var(--navy); color: var(--white); }

.tl-year-track {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding: .25rem .1rem;
}
.tl-year-track::-webkit-scrollbar { display: none; }

.tl-year-btn {
  flex-shrink: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: .35rem .9rem;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.tl-year-btn:hover { background: #eef2f9; border-color: var(--navy); }
.tl-year-btn--active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(26,42,74,.3);
}

/* ── Carousel viewport ──────────────────────────────────────── */
.tl-carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.tl-carousel-track {
  display: flex;
}

/* Year panels hidden by default */
.tl-year-panel {
  display: none;
  flex-direction: column;
  width: 100%;
  flex-shrink: 0;
}
.tl-year-panel--active { display: flex; }

.tl-year-panel__header {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  margin-bottom: 1rem;
}
.tl-year-panel__num {
  font-family: var(--sans);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.tl-year-panel__count {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  background: var(--light);
  border: 1px solid var(--border);
  padding: .2rem .6rem;
  border-radius: 20px;
}

/* ── Slides wrapper inside a year ───────────────────────────── */
.tl-slides-wrap {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.tl-slide-arrow {
  flex-shrink: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  transition: background .15s, color .15s, border-color .15s;
  margin-top: 1rem;
  flex-shrink: 0;
}
.tl-slide-arrow:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.tl-slides {
  flex: 1;
  position: relative;
  min-height: 200px;
}

/* Individual slides */
.tl-slide {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  animation: slideFadeIn .3s ease;
}
.tl-slide--active { display: block; }

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Category chip */
.tl-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .65rem;
  border-radius: 20px;
  margin-bottom: .85rem;
}
.tl-chip--milestone    { background: #e8f0fe; color: #1a56a0; }
.tl-chip--competition  { background: #fef3e2; color: #9a5d00; }
.tl-chip--internship   { background: #e6f4ea; color: #1e6b3a; }
.tl-chip--publication  { background: #f3e8ff; color: #6b21a8; }
.tl-chip--award        { background: #fef9c3; color: #7a5a00; }
.tl-chip--partnership  { background: #e0f2fe; color: #0e5a7a; }

.tl-slide__heading {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
  line-height: 1.3;
}
.tl-slide__year-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}
.tl-slide__body {
  font-size: .93rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: .85rem;
}
.tl-slide__link {
  display: inline-block;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: .05rem;
  text-decoration: none;
  transition: color .15s;
}
.tl-slide__link:hover { color: var(--gold); text-decoration: none; }

/* Dot indicators */
.tl-dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
  margin-top: .85rem;
}
.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.tl-dot--active { background: var(--navy); transform: scale(1.35); }
.tl-dot:hover:not(.tl-dot--active) { background: #a0aec0; }

/* Outer nav */
.tl-outer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding: .6rem 0;
  border-top: 1px solid var(--border);
}
.tl-outer-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .38rem 1rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.tl-outer-btn:hover:not(:disabled) { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tl-outer-btn:disabled { opacity: .35; cursor: not-allowed; }
.tl-outer-label {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tl-slide { padding: 1.1rem 1.1rem; }
  .tl-slide-arrow { width: 32px; height: 32px; font-size: 1rem; }
  .tl-year-panel__num { font-size: 1.7rem; }
  .tl-slide__heading  { font-size: .95rem; }
}

/* ================================================================
   4-COLUMN NEWS CARDS GRID
   ================================================================ */
.newsfeed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .5rem;
}

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
  align-items: start;      /* each card only as tall as its own content */
}

.news-card {
  background: var(--white);
 

  overflow: hidden;

  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover {
  box-shadow: 0 5px 18px rgba(0,0,0,.11);
  transform: translateY(-3px);
}

/* Image area — fixed 16:9 aspect */
.news-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8edf5;
  flex-shrink: 0;
}
.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.news-card:hover .news-card__img img { transform: scale(1.05); }

.news-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8edf5 0%, #d4dce8 100%);
  font-size: 2.2rem;
  color: #a0aec0;
}

/* Text body */
.news-card__body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.news-card__date {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold);
}
.news-card__title {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}
.news-card__text {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* Responsive news grid */
@media (max-width: 1000px) {
  .news-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .news-cards-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   MANAGEMENT LIST (News & Timeline admin lists)
   ================================================================ */
.mgmt-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1rem;
}
.mgmt-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .7rem .85rem;
  transition: background .15s;
}
.mgmt-row:hover { background: #f7f9ff; }
.mgmt-row--inactive { opacity: .55; }

.mgmt-row__img {
  width: 48px;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}
.mgmt-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mgmt-row__info {
  flex: 1;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--text);
}
.mgmt-inactive-tag {
  background: #f8d7da;
  color: #721c24;
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 10px;
  margin-left: .4rem;
  vertical-align: middle;
}

/* ================================================================
   PAYMENT METHOD CARDS — public donations page
   ================================================================ */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0 2rem;
}

.payment-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}

.payment-card__icon {
  padding: 1.25rem 1.5rem .5rem;
}
.payment-card__icon svg { width: 36px; height: 36px; }

.payment-card__body {
  padding: .5rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.payment-card__title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.payment-card__desc {
  font-size: .88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* PayPal card accent */
.payment-card--paypal { border-top: 4px solid #009cde; }
/* Wire card accent */
.payment-card--wire   { border-top: 4px solid var(--gold); }

/* Wire transfer details block */
.wire-details {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-family: var(--sans);
  font-size: .85rem;
  line-height: 1.8;
  color: var(--text);
  margin: .25rem 0 .75rem;
  white-space: pre-line;
  word-break: break-word;
}

/* Payment buttons */
.btn-payment {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1.35rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  align-self: flex-start;
  margin-top: auto;
}
.btn-payment:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.18); text-decoration: none; }
.btn-payment:active { transform: translateY(0); }

.btn-payment--paypal {
  background: #009cde;
  color: var(--white);
}
.btn-payment--paypal:hover { background: #0079b0; color: var(--white); }

.btn-payment--wire {
  background: var(--navy);
  color: var(--white);
  font-size: .82rem;
  padding: .5rem 1rem;
}
.btn-payment--wire:hover { background: #243d6e; color: var(--white); }

/* ================================================================
   EDITOR — Donations page specific additions
   ================================================================ */
.ep-section--paypal { border-left: 4px solid #009cde; }
.ep-section--wire   { border-left: 4px solid var(--gold); }

.ep-section__desc {
  font-family: var(--sans);
  font-size: .83rem;
  color: var(--muted);
  margin: -.4rem 0 1rem;
}

/* 2-col grid for PayPal URL + label */
.ep-payment-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

/* 4-col grid for impact stats */
.ep-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Live button preview in editor */
.ep-btn-preview {
  margin-top: .85rem;
  padding: .85rem;
  background: #f5f8ff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.ep-preview-btn { pointer-events: none; opacity: .9; }

@media (max-width: 700px) {
  .ep-payment-grid { grid-template-columns: 1fr; }
  .ep-stats-grid   { grid-template-columns: 1fr 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
}

/* ================================================================
   DONORS & SPONSORS SECTION — public donations page
   ================================================================ */
.donors-section {
  margin: 2.5rem 0;
  padding: 2rem 0 1.5rem;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.donors-heading {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
}

.donors-thanks {
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.donors-thanks strong { color: var(--dark); }

/* 3-column grid */
.donors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.donors-col__heading {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}

.donors-col__tier {
  font-weight: 400;
  color: var(--muted);
  font-size: .88rem;
}
.donors-col__tier--gold { color: var(--gold); font-weight: 600; }

.donors-list {
  list-style: none;
  padding: 0;
  margin: 0;
 
}
.donors-list li {

  font-size: .88rem;
  line-height: 1.6;
  color: var(--text);
  padding: .18rem 0;
  display: flex;
  gap: .5rem;
}
.donors-list li::before {
  
  color: var(--muted);
  font-family: var(--sans);
  font-size: .82rem;
  min-width: 1.2rem;
  flex-shrink: 0;
  padding-top: .05rem;
}

/* Responsive donors grid */
@media (max-width: 860px) {
  .donors-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 540px) {
  .donors-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .donors-section { padding: 1.5rem 0 1rem; }
}

/* ================================================================
   DONORS EDITOR — edit_donations_page.html
   ================================================================ */
.ep-section--donors { border-left: 4px solid var(--gold); }

/* Year + thank-you note side by side */
.ep-donor-top-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* 3-col grid for the three donor tiers */
.ep-donor-cols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .ep-donor-cols-grid  { grid-template-columns: 1fr 1fr; }
  .ep-donor-top-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .ep-donor-cols-grid  { grid-template-columns: 1fr; }
}

/* ================================================================
   COMPETITION REGISTRATION PAGE — public
   ================================================================ */
.creg-page { background: var(--white); }

.creg-subheader {
  padding: 1.25rem 1.5rem .5rem;
  border-bottom: 1px solid var(--border);
}
.creg-subheader__title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}

.creg-body {
  padding: 2rem 1.5rem 4rem;
  max-width: 860px;
}

.creg-main-title {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  margin: 1.25rem 0 1.5rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.creg-awards-intro {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: .75rem;
  color: var(--text);
}

.creg-essay-q {
  font-size: 1rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  line-height: 1.7;
}

.creg-body-text {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* Reserved funding */
.creg-funding-label {
  font-size: .95rem;
  color: var(--text);
  margin-bottom: .5rem;
}
.creg-funding-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.75rem;
}
.creg-funding-list li {
  font-size: .93rem;
  line-height: 1.7;
  padding: .25rem 0;
  color: var(--text);
}

/* Section headings (matching original dashed style) */
.creg-section-heading {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2.25rem 0 .9rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.creg-dash { color: var(--muted); font-weight: 400; font-size: .95rem; }

/* Instructions download link */
.creg-download-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--navy);
  text-decoration: none;
  transition: background .15s, border-color .15s;
  margin-bottom: 1rem;
}
.creg-download-link:hover {
  background: #e8edf5;
  border-color: var(--navy);
  text-decoration: none;
}

/* Register intro paragraph */
.creg-register-intro {
  font-size: .93rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* ── Registration form ─────────────────────────────────────── */
.creg-form {
  max-width: 560px;
}

.creg-field {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid #eee;
}
.creg-field:last-of-type { border-bottom: none; }
.creg-field--error .creg-label { color: #c0392b; }

.creg-label {
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--text);
  min-width: 260px;
  flex-shrink: 0;
  line-height: 1.4;
}
.creg-req { color: #c0392b; margin-left: .15rem; }

/* Inputs */
.reg-input,
.reg-select {
  flex: 1;
  padding: .35rem .6rem;
  font-size: .88rem;
  font-family: var(--sans);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  min-width: 0;
  transition: border-color .2s;
}
.reg-input:focus,
.reg-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,42,74,.1);
}
.creg-field--error .reg-input,
.creg-field--error .reg-select { border-color: #c0392b; }

.creg-error-msg {
  font-family: var(--sans);
  font-size: .78rem;
  color: #c0392b;
  margin-top: .2rem;
  display: block;
  flex-basis: 100%;
}

.creg-submit-wrap { margin-top: 1.5rem; }

.creg-submit-btn {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: .93rem;
  font-weight: 700;
  padding: .6rem 2.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.creg-submit-btn:hover { background: #243d6e; transform: translateY(-1px); }

.creg-recaptcha-note {
  font-family: var(--sans);
  font-size: .73rem;
  color: #aaa;
  margin-top: .75rem;
  line-height: 1.5;
}
.creg-recaptcha-note a { color: #888; }

/* Success message */
.creg-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: var(--sans);
  font-size: .93rem;
  color: #155724;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Closed message */
.info-box--closed { border-left-color: #c0392b; background: #fdf2f2; }

/* Responsive */
@media (max-width: 640px) {
  .creg-field { flex-direction: column; gap: .3rem; align-items: stretch; }
  .creg-label { min-width: auto; }
  .reg-input, .reg-select { width: 100%; }
}

/* ================================================================
   TEAM CARDS WITH PHOTOS — About page
   ================================================================ */

/* Header row with inline "Manage Team" button */
.team-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .25rem;
}

/* Photo wrapper — square crop */
.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #e4e9f2;
  flex-shrink: 0;
}

.team-photo {

  object-fit: cover;
  object-position: center top;   /* favour faces */
  display: block;
  transition: transform .35s;
}
.team-card:hover .team-photo { transform: scale(1.04); }

/* Larger avatar when no photo */
.team-avatar--lg {
  width: 100%;
  height: 100%;
  border-radius: 8px 8px 0 0;
  font-size: 2.8rem;
}

/* Upgrade the existing .team-card so it clips the photo */
.team-card {
  overflow: hidden;          /* clips the photo at border-radius */
  padding: 0;                /* photo touches card edges */
  text-align: center;
}

/* Push text content to have padding */
.team-card .team-name,
.team-card .team-title,
.team-card .team-org,
.team-card .team-bio {
  padding-left: .85rem;
  padding-right: .85rem;
}
.team-card .team-name  { padding-top: .85rem; }
.team-card .team-bio   { padding-bottom: .85rem; }
.team-card:not(:has(.team-bio)) .team-org { padding-bottom: .85rem; }
.team-card:not(:has(.team-org)):not(:has(.team-bio)) .team-title { padding-bottom: .85rem; }

.team-bio {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: .3rem;
  font-style: italic;
}

/* Advisory board — tiny inline photo option */
.advisory-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: .5rem;
  border: 1px solid var(--border);
}

/* Edit photo card in edit_team_member.html */
.team-edit-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  margin-bottom: .75rem;
  display: block;
}

/* ================================================================
   TEAM MANAGEMENT LIST — manage_team.html
   ================================================================ */
.team-mgmt-group {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 1.5rem 0 .6rem;
}

.team-mgmt-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .75rem;
}

.team-mgmt-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .65rem .9rem;
  transition: background .15s;
}
.team-mgmt-card:hover { background: #f7f9ff; }

.team-mgmt-card__photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--light);
  border: 2px solid var(--border);
}
.team-mgmt-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-mgmt-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  background: linear-gradient(135deg, var(--navy) 0%, #2c4a80 100%);
}

.team-mgmt-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.team-mgmt-name {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--navy);
}
.team-mgmt-title,
.team-mgmt-org {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Team empty state (when no members added yet) */
.team-empty-state {
  background: var(--light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .88rem;
  margin-bottom: 1.5rem;
}
.team-empty-state p { margin-bottom: .75rem; }

/* ================================================================
   PUBLICATIONS — About page download lists
   ================================================================ */
.pub-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .25rem;
}

/* Year grouping */
.pub-year-list  { margin-bottom: 2rem; }
.pub-year-group { margin-bottom: 1.5rem; }

.pub-year-label {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: .4rem;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--border);
}

/* Download list */
.pub-download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pub-download-list li { border-bottom: 1px dotted #eee; }
.pub-download-list li:last-child { border-bottom: none; }

.pub-download-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .25rem;
  text-decoration: none;
  color: var(--navy);
  font-size: .9rem;
  transition: background .15s;
  border-radius: 4px;
}
.pub-download-link:hover {
  background: #eef2fb;
  text-decoration: none;
  color: var(--navy);
}
.pub-no-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .25rem;
  color: var(--muted);
  font-size: .9rem;
}

.pub-icon  { font-size: 1rem; flex-shrink: 0; }
.pub-title { flex: 1; line-height: 1.4; }
.pub-dl {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  color: var(--navy);
  background: #e8edf5;
  padding: .15rem .5rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-download-link:hover .pub-dl {
  background: var(--navy);
  color: var(--white);
}

/* ================================================================
   PUBLICATIONS — Admin management list
   ================================================================ */
.pub-mgmt-list { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }

.pub-mgmt-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .85rem;
  transition: background .15s;
}
.pub-mgmt-row:hover { background: #f7f9ff; }
.pub-mgmt-row--inactive { opacity: .5; }

.pub-mgmt-info {
  flex: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem;
  font-family: var(--sans);
  font-size: .83rem;
  min-width: 0;
}
.pub-mgmt-year  { font-weight: 700; color: var(--navy); flex-shrink: 0; }
.pub-mgmt-month { color: var(--muted); font-size: .78rem; flex-shrink: 0; }
.pub-mgmt-title { color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-mgmt-preview {
  font-size: .72rem;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.pub-mgmt-preview:hover { text-decoration: underline; }

/* Current file block in edit form */
.pub-current-file {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: #f5f7fb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}
.pub-current-label { font-family: var(--sans); font-size: .75rem; color: var(--muted); margin: 0 0 .2rem; }
.pub-current-link  { font-family: var(--sans); font-size: .88rem; color: var(--navy); }

/* ================================================================
   READ MORE / COLLAPSE COMPONENT
   ================================================================ */

/* The wrapper clamps text to --rm-lines lines by default */
.read-more-wrap {
  position: relative;
}

.read-more-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--rm-lines, 4);
  overflow: hidden;
  transition: -webkit-line-clamp 0s;   /* instant — no flicker */
}

/* When expanded, remove the clamp */
.read-more-wrap.is-expanded .read-more-text {
  -webkit-line-clamp: unset;
  display: block;
}

/* The toggle button */
.read-more-btn {
  display: inline-block;
  margin-top: .35rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.read-more-btn:hover { color: var(--gold); }

/* Variants for different contexts */
.read-more-wrap--news   { --rm-lines: 3; }
.read-more-wrap--slide  { --rm-lines: 5; }
.read-more-wrap--bio    { --rm-lines: 3; }
.read-more-wrap--body   { --rm-lines: 6; }
.read-more-wrap--about  { --rm-lines: 4; }

/* ================================================================
   HONOURABLE MENTION — badge & card variants
   ================================================================ */
.hm-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: #fef3e2;
  color: #9a5d00;
  border: 1px solid #f5c97a;
  padding: .15rem .55rem;
  border-radius: 20px;
  margin-bottom: .35rem;
}

/* Softer border accent for HM cards */
.pub-winner-card--hm  { border-top: 3px solid #f5c97a; }
.pub-winner-avatar--hm { background: linear-gradient(135deg, #9a5d00 0%, #c8962a 100%); }
.aw-winner-card--hm   { border-top: 3px solid #f5c97a; }
.aw-winner-avatar--hm  { background: linear-gradient(135deg, #9a5d00 0%, #c8962a 100%); }

.pub-winner-university,
.pub-winner-country {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .3rem;
}

/* Sub-section heading inside year panels */
.aw-subsection-heading {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 1.75rem 0 .85rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--border);
}

/* ── Judges horizontal strip ────────────────────────────────────── */
.aw-judges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 1rem;
}
.aw-judge-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .65rem .85rem;
  min-width: 200px;
  flex: 1 1 200px;
  max-width: 340px;
}
.aw-judge-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.aw-judge-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, #2c4a80 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  flex-shrink: 0;
}
.aw-judge-info {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.aw-judge-name {
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--navy);
}
.aw-judge-title,
.aw-judge-org {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── add-panel (collapsible <details>) ──────────────────────── */
.add-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--white);
}
.add-panel__trigger {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  padding: .75rem 1rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.add-panel__trigger::-webkit-details-marker { display: none; }
.add-panel[open] .add-panel__trigger { border-bottom: 1px solid var(--border); }
.add-panel__form { padding: 1rem; }

/* section-divider line */
.section-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2rem 0 0;
}

/* ================================================================
   FOOTER SOCIAL ICONS
   ================================================================ */
.footer-social {
  display: flex;
  justify-content: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
}
.footer-social__link:hover {
  background: rgba(255,255,255,.25);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-social__icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* ================================================================
   QUILL OUTPUT — public rendering of rich text fields
   ================================================================ */

/* Font families */
.ql-font-serif     { font-family: Georgia, 'Times New Roman', serif !important; }
.ql-font-monospace { font-family: 'Courier New', Courier, monospace !important; }

/* Font sizes */
.ql-size-small { font-size: .8em !important; }
.ql-size-large { font-size: 1.2em !important; }
.ql-size-huge  { font-size: 1.5em !important; }

/* Text alignment — Quill uses inline style OR class depending on version */
.ql-align-center  { text-align: center !important; }
.ql-align-right   { text-align: right  !important; }
.ql-align-justify { text-align: justify !important; }

/* Also handle inline style alignment Quill sometimes outputs */
[style*="text-align: center"]  { text-align: center  !important; }
[style*="text-align: right"]   { text-align: right   !important; }
[style*="text-align: justify"] { text-align: justify !important; }

/* Colours — Quill outputs inline styles so these work automatically */
/* but make sure colour spans aren't stripped */
span[style*="color"]      { color: inherit; }
span[style*="background"] { background-color: inherit; }

/* List styles inside rich text */
.rich-output ol { padding-left: 1.5rem; margin: .4em 0; list-style: decimal; }
.rich-output ul { padding-left: 1.5rem; margin: .4em 0; list-style: disc; }
.rich-output li { margin-bottom: .2em; }

/* Blockquote */
.rich-output blockquote {
  border-left: 4px solid var(--gold);
  padding: .5rem 1rem;
  margin: .75rem 0;
  color: var(--muted);
  font-style: italic;
}

/* Code block */
.rich-output pre {
  background: #f4f6fa;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .75rem 1rem;
  font-family: monospace;
  font-size: .85rem;
  overflow-x: auto;
  margin: .5rem 0;
}

/* ================================================================
   YEAR DOWNLOAD BUTTON — winners pages
   ================================================================ */
.year-download-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  margin-bottom: 1.25rem;
}
.year-download-btn:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}
.year-download-btn svg { flex-shrink: 0; }

/* Compact variant inside accordion year header */
.year-download-btn--sm {
  padding: .25rem .65rem;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 0;
  border-radius: 20px;
  background: rgba(26,42,74,.12);
  color: var(--navy);
  border: 1px solid rgba(26,42,74,.2);
}
.year-download-btn--sm:hover {
  background: var(--navy);
  color: var(--white);
  transform: none;
}

/* Current file display in admin panel */
.year-file-current {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .55rem .85rem;
  margin-bottom: .5rem;
  font-family: var(--sans);
  font-size: .83rem;
}
.year-file-icon { font-size: 1.2rem; flex-shrink: 0; }
.year-file-link { color: var(--navy); word-break: break-all; }

/* ================================================================
   YEAR FILE PICKER — competition_year_edit admin panel
   ================================================================ */

/* The year file input uses its own class — isolated from photo system */
.year-file-input {
  /* Visible native file input, properly sized */
  display: none;          /* hidden, triggered by label */
}

.year-file-pick {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .4rem;
  flex-wrap: wrap;
}

.year-file-pick__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  user-select: none;
}
.year-file-pick__btn:hover { background: #243d6e; }

.year-file-pick__name {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.year-file-preview {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  background: #eef5ee;
  border: 1px solid #b2d8b2;
  border-radius: var(--radius);
  padding: .45rem .85rem;
  font-family: var(--sans);
  font-size: .82rem;
  color: #1e6b3a;
}
.year-file-size {
  color: #4a9a4a;
  font-size: .75rem;
  margin-left: .25rem;
}

.item-list{
  display: grid;
  grid-template-columns: 2; /* Two equal columns */
  gap: 10px;
  list-style:none;
}



/* ================================================================
   HOME PAGE PHOTO GALLERY
   ================================================================ */
.gallery-section {
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
}

/* Full-width featured photo */
.gallery-featured-item {
  margin: 0 0 .75rem;

  overflow: hidden;
}
.gallery-featured-item img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* 2-column grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.gallery-grid-item {
  margin: 0;
  
  overflow: hidden;
}
.gallery-grid-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Caption below each photo */
.gallery-caption {
  font-family: sans-serif;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
  padding: .65rem .75rem .5rem;
  margin: 0;
}

/* Mobile */
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
  .gallery-grid-item img { height: 200px; }
  .gallery-featured-item img { max-height: 280px; }
}

/* 
 ================================================================
     CSS — paste at the end of style.css
     ================================================================
*/

.crop-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.crop-modal.is-open { display: flex; }

.crop-modal__box {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 740px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

.crop-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: #f8f9fb;
}
.crop-modal__title {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.crop-modal__aspects {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.crop-size-hint {
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--muted);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .2rem .65rem;
  margin-right: .35rem;
  white-space: nowrap;
}

.crop-aspect-btn {
  padding: .28rem .7rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.crop-aspect-btn:hover  { border-color: var(--navy); background: var(--light); }
.crop-aspect-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.crop-modal__canvas {
  flex: 1;
  overflow: hidden;
  max-height: 58vh;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crop-modal__canvas img {
  max-width: 100%;
  max-height: 58vh;
  display: block;
}

.crop-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: #f8f9fb;
  flex-wrap: wrap;
}
.crop-modal__tip {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--muted);
  font-style: italic;
}
.crop-modal__actions { display: flex; gap: .6rem; }

@media (max-width: 480px) {
  .crop-modal__header  { flex-direction: column; align-items: flex-start; }
  .crop-modal__footer  { flex-direction: column; align-items: stretch; }
  .crop-modal__actions { flex-direction: column; }
  .crop-modal__actions .btn { width: 100%; text-align: center; }
}

================================================================ -->
