:root{
  --bg:#ffffff;
  --text:#0f0f0f;
  --muted:#5b5b5b;
  --line:#e9e9e9;
  --accent:#0f0f0f;
  --max: 1020px;
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a{ color: inherit; }
a:hover{ opacity:.85; }

.container{
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 1rem; top: 1rem; width:auto; height:auto;
  background:#fff; border:1px solid var(--line); padding:.5rem .75rem; z-index:9999;
}



.brand{
  display:flex;
  align-items:center;
  gap:.85rem;
  text-decoration:none;
}

.brand img{
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand .title{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.brand .title strong{
  letter-spacing:.02em;
  font-weight: 800;
}
.brand .title span{
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
}

.nav{
  display:flex;
  gap: 1.2rem;
  align-items:center;
}

.nav a{
  text-decoration:none;
  font-weight: 700;
  font-size: .95rem;
  padding: .35rem .25rem;
  border-bottom: 2px solid transparent;
}

.nav a[aria-current="page"]{
  border-bottom-color: var(--accent);
}

.nav-cta{
  border: 1px solid var(--text);
  padding: .55rem .9rem !important;
  border-radius: 999px;
}

/* Mobile menu */
.menu-btn{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  padding:.55rem .75rem;
  border-radius: 12px;
  font-weight: 750;
}

.mobile-panel{
  display:none;
  border-top: 1px solid var(--line);
}
.mobile-panel a{
  display:block;
  text-decoration:none;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}
.mobile-panel a:last-child{ border-bottom:none; }

/* Hero */
.hero{
  position: relative;
  min-height: 64vh;
  display:flex;
  align-items:flex-end;
  color:#fff;
  background:
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.72)),
    url("../assets/hero.jpg") center/cover no-repeat;
}

.hero .hero-inner{
  padding: 4.25rem 0 3.2rem;
}

.kicker{
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 850;
  font-size: .82rem;
  opacity: .92;
}

.hero h1{
  margin: .4rem 0 .7rem;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.hero .sub{
  max-width: 70ch;
  font-size: 1.1rem;
  opacity: .95;
}

/* Sections */
.section{
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type{ border-bottom:none; }

.section h2{
  font-size: 1.4rem;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
}

.lead{
  color: var(--muted);
  max-width: 85ch;
}

/* Cards */
.grid-2{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items:start;
}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
  background:#fff;
}

.card h3{
  margin:0 0 .5rem;
  font-size: 1.05rem;
}
.card p{ margin:.35rem 0; color: var(--muted); }

/* Buttons */
.btn{
  display:inline-block;
  text-decoration:none;
  border: 1px solid var(--text);
  padding: .75rem 1rem;
  border-radius: 999px;
  font-weight: 850;
}

.btn.primary{
  background: var(--text);
  color:#fff;
  border-color: var(--text);
}

/* Schedule list */
.schedule{
  margin: 1.25rem 0 0;
  padding: 0;
  list-style:none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}
.schedule li{
  display:flex;
  justify-content:space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  background:#fff;
}
.schedule li:last-child{ border-bottom:none; }
.schedule .date{ font-weight: 850; }
.schedule .venue{ color: var(--muted); }
}
.sponsor-logo {
  max-width: 240px;
  width: 100%;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 1rem auto;
}
/* Pro course layout */
.course-grid{
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.25rem;
  align-items: start;
}

.course-figure{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.course-figure img{
  width: 100%;
  height: 520px;          /* consistent card height on desktop */
  object-fit: contain;    /* keeps the full map visible */
  display: block;
  background: #fff;
}

.course-caption{
  padding: .85rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}

/* Stack on mobile */
@media (max-width: 900px){
  .course-grid{
    grid-template-columns: 1fr;
  }
  .course-figure img{
    height: auto;         /* natural height on mobile */
  }
}


/* Media */
.media{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
}
.media img{
  display:block;
  width:100%;
  height:auto;
}
.media img{
  max-height: 820px;
  object-fit: contain;
  background: #fff;
}

/* Tables */
.table{
  width:100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}
.table th, .table td{
  text-align:left;
  padding: .85rem .9rem;
  border-bottom: 1px solid var(--line);
}
.table th{
  background:#fafafa;
  font-weight: 850;
}
.table tr:last-child td{ border-bottom:none; }

/* Footer */
.site-footer{
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap:wrap;
}
/* ===== HERO-LEVEL HOME HEADER ===== */
.home-header{
  position: relative;
}

.home-header .header-inner{
  flex-direction: column;
  padding: 2.2rem 0 1.4rem;
  gap: 1rem;
}

/* Centered brand block */
.home-header .brand{
  flex-direction: column;
  text-align: center;
}

.home-header .brand img{
  width: 120px;
  height: 120px;
  margin-bottom: .75rem;
}

.home-header .brand .title strong{
  font-size: 1.75rem;
  letter-spacing: .08em;
}

.home-header .brand .title span{
  font-size: 1.05rem;
  color: var(--muted);
}

/* Nav below logo */
.home-header .nav{
  justify-content: center;
  margin-top: .5rem;
}

/* Mobile tweaks */
@media (max-width: 900px){
  .home-header .brand img{
    width: 96px;
    height: 96px;
  }

  .home-header .brand .title strong{
    font-size: 1.45rem;
  }
}



/* Responsive */
@media (max-width: 900px){
  .nav{ display:none; }
  .menu-btn{ display:inline-block; }
  .mobile-panel[data-open="true"]{ display:block; }
  .grid-2{ grid-template-columns: 1fr; }
  .hero{ min-height: 58vh; }
}
