/* =========================================================
   SCANDINDIA CHESS & CARROM ASSOCIATION
   Complete responsive stylesheet
   ========================================================= */

/* ---------- FONTS ---------- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto+Slab:wght@600;700;800&display=swap');


/* ---------- GLOBAL ---------- */

:root {
  --navy: #06113F;
  --navy-light: #10245D;
  --navy-soft: #192F70;

  --orange: #F56B00;
  --orange-light: #FF8A1F;

  --gold: #F7C84B;
  --gold-light: #FFE39A;

  --cream: #FFF8EA;
  --cream-dark: #F4E7CD;

  --white: #FFFFFF;

  --text: #20243A;
  --muted: #687087;
  --line: #E7DDCA;

  --shadow: 0 10px 30px rgba(6, 17, 63, 0.08);
  --shadow-hover: 0 16px 38px rgba(6, 17, 63, 0.14);

  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;

  color: var(--text);
  background: var(--white);

  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: calc(100% - 32px);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}

::selection {
  color: var(--white);
  background: var(--navy);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: var(--white);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 4px 20px rgba(6, 17, 63, 0.08);
}

.nav-wrap {
  min-height: 88px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;

  flex-shrink: 0;

  text-decoration: none;
  line-height: 0;
}

.brand img {
  width: 72px;
  height: 72px;

  max-width: 72px;
  max-height: 72px;

  object-fit: contain;
}


/* ---------- NAVIGATION ---------- */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 8px;
  min-width: 0;
}

.main-nav a {
  display: inline-block;

  padding: 10px 13px;

  color: var(--navy);
  text-decoration: none;

  font-weight: 700;
  font-size: 0.94rem;

  border-radius: 10px;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.main-nav a:hover {
  color: var(--orange);
  background: var(--cream);
}

.main-nav a.active {
  color: var(--white);
  background: var(--navy);
}

.menu-toggle {
  display: none;

  align-items: center;
  gap: 7px;

  padding: 9px 12px;

  color: var(--navy);
  background: var(--white);

  border: 2px solid var(--navy);
  border-radius: 10px;

  font-weight: 800;
  cursor: pointer;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4 {
  margin-top: 0;

  color: var(--navy);

  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 800;

  line-height: 1.2;

  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

.eyebrow {
  margin: 0 0 10px;

  color: var(--orange);

  font-size: 0.76rem;
  font-weight: 800;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.text-link {
  color: var(--orange);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--navy);
  text-decoration: underline;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  padding: 88px 0 94px;
  color: var(--white);
  background:
    radial-gradient(
      circle at 82% 20%,
      rgba(245, 107, 0, 0.25),
      transparent 32%
    ),
    radial-gradient(
      circle at 15% 90%,
      rgba(247, 200, 75, 0.12),
      transparent 30%
    ),
    var(--navy);
  overflow: hidden;
}


.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  color: var(--white);
}

.hero h1 span {
  color: var(--orange);
}

.hero-text {
  max-width: 650px;

  color: #E5EAF7;

  font-size: 1.12rem;
  line-height: 1.8;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.hero-actions,
.event-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 46px;

  padding: 11px 18px;

  border: 2px solid transparent;
  border-radius: 11px;

  font-weight: 800;
  text-decoration: none;
  text-align: center;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--orange);

  box-shadow: 0 7px 18px rgba(245, 107, 0, 0.2);
}

.button-primary:hover {
  color: var(--white);
  background: #D95700;
}

.hero .button-primary {
  color: var(--navy);
  background: var(--gold);
}

.hero .button-primary:hover {
  background: var(--gold-light);
}

.button-secondary {
  color: var(--navy);
  background: transparent;
  border-color: var(--line);
}

.hero .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .button-secondary:hover {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}

.button-light {
  color: var(--navy);
  background: var(--white);
}

.button-light:hover {
  background: var(--gold);
}

.button-small {
  min-height: 39px;
  padding: 8px 13px;
  font-size: 0.88rem;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--cream);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 22px;
  margin-bottom: 30px;

  min-width: 0;
}

.section-heading h2 {
  margin: 0;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}


/* =========================================================
   ANNOUNCEMENTS
   ========================================================= */

.announcement-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;

  min-width: 0;
}

.announcement-card,
.content-card,
.event-card {
  background: var(--white);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--shadow);

  min-width: 0;
}

.announcement-card {
  padding: 24px;

  border-top: 4px solid var(--orange);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.announcement-card h3 {
  margin: 8px 0 10px;

  font-family: "Montserrat", Arial, sans-serif;

  font-size: 1.05rem;
  font-weight: 800;
}

.announcement-card p:last-child {
  margin-bottom: 0;
}

.announcement-date {
  color: var(--orange);

  font-size: 0.84rem;
  font-weight: 800;
}


/* =========================================================
   EVENT GRID
   ========================================================= */

.event-grid {
  display: grid;

  grid-template-columns: minmax(0, 1fr);

  gap: 20px;

  width: 100%;
  min-width: 0;
}

.event-grid-wide {
  grid-template-columns: minmax(0, 1fr);
}


/* =========================================================
   EVENT CARD
   ========================================================= */

/*
   IMPORTANT:
   Desktop = date column + content
   Mobile = completely single column

   This prevents the narrow/cropped card problem.
*/

.event-card {
  display: grid;

  grid-template-columns:
    105px minmax(0, 1fr);

  width: 100%;
  max-width: 100%;
  min-width: 0;

  overflow: hidden;

  margin: 0;

  border-radius: 16px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}


/* ---------- EVENT DATE ---------- */

.event-date {
  display: flex;

  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  min-width: 0;

  padding: 26px 10px;

  color: var(--white);
  background: var(--navy);

  text-align: center;
}

.event-date strong {
  color: var(--white);

  font-family: "Roboto Slab", Georgia, serif;

  font-size: 1.45rem;
  line-height: 1.2;

  overflow-wrap: break-word;
}

.event-date span {
  margin-top: 7px;

  color: var(--gold);

  font-size: 0.84rem;
  font-weight: 700;
}


/* ---------- EVENT BODY ---------- */

.event-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  padding: 28px 30px;

  overflow: hidden;
}

.event-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  flex-wrap: wrap;

  gap: 10px;

  width: 100%;
  min-width: 0;

  margin-bottom: 12px;
}

.event-top .tag {
  display: inline-block;

  max-width: 100%;

  padding: 5px 10px;

  color: var(--white);
  background: var(--orange);

  border-radius: 999px;

  font-size: 0.78rem;
  font-weight: 700;

  text-transform: uppercase;

  overflow-wrap: break-word;
}

.event-body h3 {
  width: 100%;
  max-width: 100%;

  margin: 0 0 18px;

  color: var(--navy);

  font-family: "Roboto Slab", Georgia, serif;

  font-size: 1.8rem;
  line-height: 1.2;

  overflow-wrap: anywhere;
}

.event-description {
  width: 100%;
  max-width: 100%;

  margin: 18px 0;

  color: var(--muted);

  line-height: 1.7;

  overflow-wrap: anywhere;
}


/* =========================================================
   EVENT SCHEDULE
   ========================================================= */

.event-schedule {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin: 20px 0 24px;

  padding: 20px;

  background: var(--cream);

  border: 1px solid rgba(245, 107, 0, 0.18);
  border-left: 5px solid var(--orange);

  border-radius: 10px;
}

.event-schedule h4 {
  margin: 0 0 15px;

  color: var(--navy);

  font-family: "Roboto Slab", Georgia, serif;

  font-size: 1.15rem;
}


/* Each schedule row */

.schedule-item {
  display: grid;

  grid-template-columns:
    minmax(150px, 210px)
    minmax(0, 1fr);

  gap: 18px;

  width: 100%;
  min-width: 0;

  padding: 13px 0;

  border-bottom: 1px solid rgba(6, 17, 63, 0.10);
}

.schedule-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-item:first-of-type {
  padding-top: 0;
}

.schedule-date {
  min-width: 0;

  color: var(--navy);

  font-weight: 700;

  overflow-wrap: anywhere;
}

.schedule-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-details strong {
  display: block;
  font-weight: 700;
}

.schedule-details span {
  display: block;
  color: #555;
}


/* =========================================================
   EVENT DETAILS
   ========================================================= */

.event-card .details {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;

  width: 100%;
  min-width: 0;

  margin-top: 22px;
  padding-top: 20px;

  border-top: 1px solid rgba(6, 17, 63, 0.10);
}

.event-card .details > div {
  display: grid;

  grid-template-columns:
    minmax(120px, auto)
    minmax(0, 1fr);

  align-items: start;

  gap: 10px;

  min-width: 0;

  padding: 12px 14px;

  background: var(--cream);

  border-radius: 10px;
}

.event-card .details > div > span:first-child {
  font-size: 1rem;
}

.event-card .details strong {
  min-width: 0;

  color: var(--navy);

  font-size: 0.88rem;

  overflow-wrap: anywhere;
}

.event-card .details > div > span:last-child {
  min-width: 0;

  color: #555555;

  font-size: 0.9rem;

  overflow-wrap: anywhere;
}


/* =========================================================
   EVENT ACTIONS
   ========================================================= */

.event-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  width: 100%;
  min-width: 0;

  margin-top: 24px;
  padding-top: 20px;

  border-top: 1px solid rgba(6, 17, 63, 0.10);
}

.event-actions .button {
  min-width: 130px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
  width: 100%;

  padding: 30px;

  color: var(--muted);

  background: var(--white);

  border: 2px dashed var(--line);
  border-radius: var(--radius);

  text-align: center;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-section {
  padding: 0 0 72px;

  background: var(--cream);
}

.cta-box {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding: 40px;

  color: var(--white);

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(245, 107, 0, 0.2),
      transparent 32%
    ),
    var(--navy);

  border: 2px solid var(--orange);
  border-radius: 24px;

  box-shadow: var(--shadow-hover);
}

.cta-box h2 {
  color: var(--white);
}

.cta-box p:not(.eyebrow) {
  max-width: 700px;
  color: #E2E7F5;
}

.cta-box .eyebrow {
  color: var(--gold);
}


/* =========================================================
   INNER PAGE HERO
   ========================================================= */

.page-hero {
  padding: 62px 0;

  background:
    linear-gradient(135deg, var(--cream), var(--white));

  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 12px;

  font-size: clamp(2.3rem, 6vw, 4rem);
}

.page-hero p:last-child {
  margin-bottom: 0;

  color: var(--muted);

  font-size: 1.05rem;
}


/* =========================================================
   CONTENT CARDS
   ========================================================= */

.content-card {
  width: 100%;
  min-width: 0;

  padding: 30px;
}

.content-card h2,
.content-card h3 {
  margin-top: 0;
}

.notice {
  padding: 16px 18px;

  color: var(--navy);

  background: #FFF5D9;

  border-left: 4px solid var(--orange);
  border-radius: 8px;
}

.content-card a:not(.button),
.notice a {
  color: var(--orange);
  font-weight: 700;
}

.content-card a:not(.button):hover,
.notice a:hover {
  color: var(--navy);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;

  min-width: 0;
}

.contact-grid .content-card {
  min-width: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 45px 0 20px;

  color: #E6EAF5;

  background: var(--navy);

  border-top: 5px solid var(--orange);
}

.footer-grid {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 30px;

  min-width: 0;
}

.footer-grid strong {
  color: var(--white);

  font-family: "Roboto Slab", Georgia, serif;

  font-size: 1.25rem;
}

.footer-grid p {
  margin-top: 6px;
  color: #BCC6DF;
}

.footer-links {
  display: flex;

  flex-wrap: wrap;

  gap: 12px 20px;
}

.footer-links a,
.footer-bottom a {
  color: #E6EAF5;
  text-decoration: none;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 30px;
  padding-top: 16px;

  color: #BCC6DF;

  border-top: 1px solid rgba(255, 255, 255, 0.2);

  font-size: 0.88rem;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .announcement-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .event-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .event-grid-wide {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 3px;
  }

  .main-nav a {
    padding: 9px 10px;
    font-size: 0.88rem;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

  .container {
    width: calc(100% - 24px);
    max-width: none;
  }


  /* ---------- HEADER ---------- */

  .nav-wrap {
    min-height: 72px;
    gap: 12px;
  }

  .brand img {
    width: 60px;
    height: 60px;

    max-width: 60px;
    max-height: 60px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .main-nav {
    display: none;

    position: absolute;

    top: 75px;
    left: 12px;
    right: 12px;

    z-index: 110;

    flex-direction: column;
    align-items: stretch;

    gap: 4px;

    padding: 12px;

    background: var(--white);

    border: 2px solid var(--orange);
    border-radius: 14px;

    box-shadow: var(--shadow-hover);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    display: block;

    padding: 12px 14px;

    font-size: 0.95rem;
  }


  /* ---------- HERO ---------- */

  .hero {
    padding: 58px 0 66px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.6rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }


  /* ---------- SECTIONS ---------- */

  .section {
    padding: 52px 0;
  }

  .section-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 23px;
  }

  .announcement-grid,
  .event-grid,
  .contact-grid {
    display: grid;

    grid-template-columns: minmax(0, 1fr);

    width: 100%;
  }

  .event-grid-wide {
    grid-template-columns: minmax(0, 1fr);
  }


  /* =====================================================
     THE IMPORTANT MOBILE EVENT FIX
     ===================================================== */

  .event-card {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0 0 22px;

    overflow: hidden;
  }

  /*
     Date becomes a horizontal header.
     This removes the narrow 64/76px date column
     that was causing the cropped appearance.
  */

  .event-date {
    width: 100%;
    min-width: 0;

    min-height: 52px;

    padding: 12px 16px;

    display: flex;

    flex-direction: row;

    align-items: center;
    justify-content: center;

    gap: 8px;

    text-align: center;
  }

  .event-date strong {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .event-date span {
    margin-top: 0;

    font-size: 0.82rem;
  }


  /* ---------- EVENT BODY ---------- */

  .event-body {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding: 20px 16px;

    overflow: hidden;
  }

  .event-top {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
    justify-content: flex-start;

    gap: 8px;

    width: 100%;
  }

  .event-top .muted {
    max-width: 100%;
  }

  .event-body h3 {
    width: 100%;

    margin: 0 0 18px;

    font-size: 1.4rem;
    line-height: 1.25;

    overflow-wrap: anywhere;
  }


  /* ---------- SCHEDULE ---------- */

  .event-schedule {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 18px 0 20px;

    padding: 15px;

    border-left-width: 4px;
  }

  .event-schedule h4 {
    font-size: 1.05rem;
  }

  .schedule-item {
    display: block;

    width: 100%;
    min-width: 0;

    padding: 12px 0;
  }

  .schedule-date {
    display: block;

    width: 100%;

    margin-bottom: 5px;

    font-size: 0.92rem;
  }

  .schedule-details {
    display: block;

    width: 100%;
    min-width: 0;
  }

  .schedule-details strong,
  .schedule-details span {
    display: block;

    width: 100%;
    min-width: 0;

    overflow-wrap: anywhere;
  }


  /* ---------- DESCRIPTION ---------- */

  .event-description {
    width: 100%;

    margin: 16px 0;

    font-size: 0.94rem;

    overflow-wrap: anywhere;
  }


  /* ---------- DETAILS ---------- */

  .event-card .details {
    display: grid;

    grid-template-columns: minmax(0, 1fr);

    width: 100%;
    min-width: 0;

    gap: 9px;

    margin-top: 18px;
    padding-top: 18px;
  }

.event-card .details > div {
  display: grid;

  grid-template-columns:
    minmax(110px, auto)
    minmax(0, 1fr);

  width: 100%;
  min-width: 0;

  gap: 8px;

  padding: 10px 12px;

  align-items: start;
}

  .event-card .details strong,
  .event-card .details > div > span:last-child {
    min-width: 0;

    overflow-wrap: anywhere;
  }


  /* ---------- BUTTON ---------- */

  .event-actions {
    display: flex;

    flex-direction: column;

    width: 100%;

    gap: 10px;

    margin-top: 20px;
    padding-top: 18px;
  }

  .event-actions .button {
    width: 100%;
    min-width: 0;
  }


  /* ---------- OTHER MOBILE ELEMENTS ---------- */

  .announcement-card {
    padding: 21px;
  }

  .cta-section {
    padding-bottom: 50px;
  }

  .cta-box {
    align-items: flex-start;

    flex-direction: column;

    padding: 28px 22px;
  }

  .content-card {
    padding: 22px;
  }

  .page-hero {
    padding: 45px 0;
  }

  .footer-grid,
  .footer-bottom {
    align-items: flex-start;

    flex-direction: column;

    gap: 16px;
  }

  .footer-links {
    gap: 12px 16px;
  }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

  .container {
    width: calc(100% - 20px);
  }

  .brand img {
    width: 52px;
    height: 52px;

    max-width: 52px;
    max-height: 52px;
  }

  .menu-toggle {
    padding: 8px 9px;
    font-size: 0.88rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .button {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .event-body {
    padding: 18px 13px;
  }

  .event-schedule {
    padding: 13px;
  }

.event-card .details > div {
  grid-template-columns:
    minmax(100px, auto)
    minmax(0, 1fr);

  padding: 10px;
}

  .event-card .details strong {
    font-size: 0.82rem;
  }

  .event-card .details > div > span:last-child {
    font-size: 0.84rem;
  }
}
/* Homepage featured events - full width */
#featured-events {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#featured-events .event-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 720px) {
  #featured-events {
    display: block;
    width: 100%;
  }

  #featured-events .event-card {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}


/* Homepage upcoming events */
.homepage-events {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.homepage-events .event-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);

  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 720px) {
  .homepage-events {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .homepage-events .event-card {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
/* ================================
   Registration status vs action
   ================================ */

/* Status: clearly a label, NOT a button */
.event-status {
  display: inline-block;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 4px;
  background: #e8f3e8;
  color: #246b35;
  border: 1px solid #9ac69f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Register: clearly the clickable action */
.event-actions .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e87522;
  color: #ffffff;
  border: 2px solid #e87522;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.event-actions .button-primary:hover {
  background: #c95d12;
  border-color: #c95d12;
  color: #ffffff;
}

/* ================================
   PAST EVENT PHOTOS
   ================================ */

.event-photos {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.event-photos h4 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.15rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.photo-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f3f3f3;
  border-radius: 8px;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.photo-grid a:hover img {
  transform: scale(1.04);
}

/* Tablet */
@media (max-width: 720px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Small phones */
@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   EVENT PHOTO GALLERY
   ========================================= */

.event-photos {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.event-photos h4 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.15rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.photo-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f3f3f3;
  border-radius: 8px;
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.photo-item:hover img {
  transform: scale(1.04);
}

.photo-item:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.photo-wrapper {
  min-width: 0;
}

.photo-caption {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
  text-align: center;
}

/* =========================================
   PHOTO LIGHTBOX
   ========================================= */

body.lightbox-open {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 60px 80px;

  background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
}

.lightbox-image {
  display: block;

  max-width: 100%;
  max-height: calc(100vh - 130px);

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 6px;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  margin-top: 12px;

  color: #ffffff;

  font-size: 0.9rem;
  text-align: center;
}


/* Close button */

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;

  width: 46px;
  height: 46px;

  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;

  font-size: 2rem;
  line-height: 1;

  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}


/* Previous / next buttons */

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 52px;
  height: 64px;

  border: 0;
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;

  font-size: 3rem;
  line-height: 1;

  cursor: pointer;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.3;
  cursor: default;
}


/* Mobile */

@media (max-width: 720px) {

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-lightbox {
    padding: 55px 15px 50px;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 150px);
  }

  .lightbox-close {
    top: 10px;
    right: 12px;

    width: 42px;
    height: 42px;

    font-size: 1.8rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 12px;
    transform: none;

    width: 48px;
    height: 44px;

    font-size: 2.2rem;
  }

  .lightbox-prev {
    left: 20px;
  }

  .lightbox-next {
    right: 20px;
  }
}

@media (max-width: 480px) {

  .photo-grid {
    grid-template-columns: 1fr;
  }
}

.detail-wide {
  grid-column: 1 / -1 !important;
  display: block !important;
  padding: 12px 14px !important;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   SICCA HOMEPAGE HERO
   Full-width image + HTML text on left
   ========================================================= */

.hero.hero-home {
  position: relative;

  width: 100%;
  min-height: 650px;

  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;

  overflow: hidden;

  color: #102f5b;

  background-color: #f5f3ed;

background-image:
  linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.94) 18%,
    rgba(255, 255, 255, 0.65) 30%,
    rgba(255, 255, 255, 0.20) 40%,
    rgba(255, 255, 255, 0) 52%
  ),
  url("images/sicca-hero-games.png");

background-size: cover;
background-position: 58% center;
   
  background-repeat: no-repeat;

}


/* ---------- HERO CONTENT ---------- */

.hero-home .hero-home-content {
  position: relative;
  z-index: 5;

  width: 50%;
  max-width: 620px;

  margin: 0;
  padding: 70px 30px 70px 40px;

  box-sizing: border-box;
}


/* ---------- EYEBROW ---------- */

.hero-home .eyebrow {
  margin: 0 0 18px;

  color: #173a6a;

  font-weight: 800;
  letter-spacing: 0.08em;
}


/* ---------- HEADING ---------- */

.hero-home h1 {
  max-width: 560px;

  margin: 0;

  color: #102f5b;

  font-size: clamp(2.5rem, 4vw, 4rem);

  line-height: 1.05;

  letter-spacing: -0.035em;
}


/* ---------- DESCRIPTION ---------- */

.hero-home .hero-text {
  max-width: 500px;

  margin: 24px 0 0;

  color: #173a6a;

  font-size: 1.08rem;

  line-height: 1.6;
}


/* ---------- BUTTONS ---------- */

.hero-home .hero-actions {
  display: flex;
  align-items: center;

  gap: 15px;

  margin-top: 28px;
}

.hero-home .button-primary {
  background: #1769e0;
  color: #ffffff;
  border: 2px solid #1769e0;
}

.hero-home .button-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #1769e0;
  border: 2px solid #1769e0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .hero.hero-home {
    min-height: 600px;

   background-size: cover;
   background-position: right center;
  }

  .hero-home .hero-home-content {
    width: 52%;
    max-width: 560px;

    padding-left: 30px;
  }

  .hero-home h1 {
    font-size: 3rem;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .hero.hero-home {
    min-height: 760px;

    align-items: flex-start;

    /*
       On a phone there isn't enough horizontal space
       for the desktop composition.
    */
    background-size: cover;
    background-position: 40% center;
  }

  .hero-home .hero-home-content {
    width: 100%;
    max-width: 500px;

    padding: 55px 24px;
  }

  .hero-home h1 {
    max-width: 430px;

    font-size: 2.65rem;
  }

  .hero-home .hero-text {
    max-width: 400px;

    font-size: 1rem;
  }

  .hero-home .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-home .hero-tagline {
    margin-top: 38px;
    font-size: 1.5rem;
  }
}

/* =========================================================
   WIDE HEADER
   Keep logo near the left edge of the screen
   ========================================================= */

@media (min-width: 901px) {

  .site-header .container {
    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;

    padding-left: 28px;
    padding-right: 28px;
  }

}

/* =========================================================
   SICCA CLUB
   ========================================================= */

.club-section {
  padding: 55px 0 60px;
  background: #ffffff;
}

.club-highlight {
  max-width: 850px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.club-highlight h2 {
  margin: 0 0 18px;
  color: #102f5b;
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 800;
}

.club-text {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #30476a;
  font-size: 1.2rem;
  line-height: 1.65;
  font-weight: 500;
}

.club-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 600px) {
  .club-section {
    padding: 45px 20px 50px;
  }

  .club-highlight h2 {
    font-size: 1.8rem;
  }

  .club-text {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}


/* =========================================================
   EVENT SCHEDULE — SIMPLE BULLET LIST
   ========================================================= */

.schedule-detail {
  display: block !important;
  padding: 12px 14px !important;
}

/* Remove any nested box styling */
.schedule-detail .event-schedule {
  display: block !important;
  margin: 10px 0 0 !important;
  padding: 0 0 0 24px !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Each schedule item */
.schedule-detail .event-schedule li {
  display: list-item !important;
  margin: 8px 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  color: var(--muted);
  line-height: 1.55;
}

/* Date */
.schedule-detail .event-schedule li strong {
  color: #30476a;
  font-weight: 700;
}

/* Category and time */
.schedule-detail .event-schedule li span {
  color: var(--muted);
}

/* Mobile */
@media (max-width: 720px) {
  .schedule-detail .event-schedule {
    padding-left: 22px !important;
  }

  .schedule-detail .event-schedule li {
    margin: 9px 0 !important;
  }
}
