/* ============================================
   AI MONTH — page hero
   Logo lockup (includes the wordmark) + intro copy.
   ============================================ */

.aimonth {
  padding: 18rem 10rem 10rem;    /* extra top padding clears the fixed navbar */
}

.aimonth__inner {
  width: 100%;
  max-width: 148rem;
  margin: 0 auto;
}

/* Logo carries the wordmark — no text heading */
.aimonth__logo {
  display: block;
  width: auto;
  height: 5.4rem;
  margin-bottom: 4rem;
}

.aimonth__lead {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.85);
  max-width: 130rem;
  margin: 0;
}

/* ============================================
   RESPONSIVE — hero
   ============================================ */

@media (max-width: 1280px) {
  .aimonth {
    padding: 16rem 6rem 8rem;
  }

  .aimonth__logo {
    height: 4.6rem;
    margin-bottom: 3.4rem;
  }

  .aimonth__lead {
    font-size: 2.2rem;
  }
}

@media (max-width: 700px) {
  .aimonth {
    padding: 14rem 3rem 6rem;
  }

  .aimonth__logo {
    height: 3.6rem;
    margin-bottom: 2.8rem;
  }

  .aimonth__lead {
    font-size: 2.2rem;
  }
}

/* ============================================
   AI MONTH — event cards
   image → logo → text → button
   ============================================ */

.aimonth__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 5rem;
}

.mcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;

  border-radius: 2rem;
  background: #0D1018;
  border: 0.1rem solid rgba(255, 255, 255, 0.08);
}

.mcard__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.mcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 3rem;
}

/* Logo carries the event name — no text heading.
   Each SVG has its own internal padding and proportions,
   so heights are tuned per card rather than set globally. */
.mcard__logo {
  display: block;
  width: auto;
  height: 6.4rem;                 /* baseline — matches card 4 */
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 2.4rem;
  margin-right: auto;
}

/* Per-logo optical corrections */
.aimonth__grid .mcard:nth-child(1) .mcard__logo {
  height: 5.2rem;                 /* hackalem.ai */
}

.aimonth__grid .mcard:nth-child(2) .mcard__logo {
  height: 7.6rem;                 /* C5+1 */
}

.aimonth__grid .mcard:nth-child(3) .mcard__logo {
  height: 7.6rem;                 /* KAZHACKSTAN */
}

/* Card 4 (AAIFF) uses the 6.4rem baseline */

.aimonth__grid .mcard:nth-child(5) .mcard__logo {
  height: 5.2rem;                 /* GP & LP Summit */
}

.aimonth__grid .mcard:nth-child(6) .mcard__logo {
  height: 5.2rem;                 /* alem.ai Battle */
}

.mcard__text {
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 3rem;
}

.mcard__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;               /* pins the button to the bottom */

  padding: 1.6rem;
  border-radius: 1rem;

  background: rgba(255, 255, 255, 0.06);
  border: 0.1rem solid rgba(255, 255, 255, 0.14);

  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-white);

  transition: background 0.2s ease, border-color 0.2s ease;
}

.mcard__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   RESPONSIVE — event cards
   ============================================ */

@media (max-width: 1280px) {
  .aimonth__grid {
    gap: 1.6rem;
  }

  .mcard__body {
    padding: 2.6rem;
  }

  /* Desktop per-logo heights are intentionally
     not overridden at this breakpoint. */
}

@media (max-width: 900px) {
  .aimonth__grid {
    grid-template-columns: 1fr;
    margin-top: 4rem;
  }
}

@media (max-width: 700px) {
  .mcard__body {
    padding: 2.4rem;
  }

  .mcard__logo {
    height: 5.6rem;
    margin-bottom: 2rem;
  }

  /* Smaller logos */
  .aimonth__grid .mcard:nth-child(1) .mcard__logo,
  .aimonth__grid .mcard:nth-child(5) .mcard__logo,
  .aimonth__grid .mcard:nth-child(6) .mcard__logo {
    height: 4.6rem;
  }

  /* Larger logos */
  .aimonth__grid .mcard:nth-child(2) .mcard__logo,
  .aimonth__grid .mcard:nth-child(3) .mcard__logo {
    height: 6.6rem;
  }

  .mcard__text {
    font-size: 2rem;
    margin-bottom: 2.4rem;
  }

  .mcard__btn {
    font-size: 1.9rem;
    padding: 1.8rem;
  }
}

/* ============================================
   AI MONTH — SPONSORS
   Reuses the partners category pill + white pill.
   Multiple logos share one pill, evenly spaced.
   ============================================ */

.wsponsors {
  padding: 4rem 10rem 10rem;
}

.wsponsors__inner {
  width: 100%;
  max-width: 148rem;
  margin: 0 auto;
}

.wsponsors__title {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--color-white);
  margin: 0 0 4rem;
}

/* Row of logos inside a single white pill */
.partners__pill--row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6rem;
  padding: 3rem 4rem;
  min-height: 15rem;
}

.partners__pill--row .partners__logo {
  height: 6rem;
  width: auto;
  max-width: 26rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1280px) {
  .wsponsors {
    padding: 4rem 6rem 8rem;
  }

  .wsponsors__title {
    font-size: 5rem;
  }

  .partners__pill--row {
    gap: 4rem;
  }
}

@media (max-width: 700px) {
  .wsponsors {
    padding: 2rem 3rem 6rem;
  }

  .wsponsors__title {
    font-size: 4.4rem;
    margin-bottom: 3rem;
  }

  .partners__pill--row {
    gap: 3rem;
    padding: 3rem 2.4rem;
  }

  .partners__pill--row .partners__logo {
    height: 4.4rem;
    max-width: 20rem;
  }
}

/* ============================================
   AI MONTH — SCHEDULE
   Date column on the left, stacked event cards
   on the right. One day visible at a time.
   ============================================ */

.msched {
  padding: 4rem 10rem 10rem;
}

.msched__inner {
  width: 100%;
  max-width: 148rem;
  margin: 0 auto;
}

.msched__title {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--color-white);
  margin: 0 0 4rem;
}

.msched__layout {
  display: grid;
  grid-template-columns: 24rem 1fr;
  gap: 2.4rem;
  align-items: start;
}

/* ── Date column ── */

.msched__days {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.msched__day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 8.4rem;             /* taller */
  padding: 2.4rem 2rem;
  border-radius: 1.6rem;

  background: #0D1018;
  border: 0.1rem solid rgba(255, 255, 255, 0.08);

  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  cursor: pointer;

  transition: color 0.2s ease, background 0.2s ease;
}

.msched__day:hover:not([disabled]) {
  color: rgba(255, 255, 255, 0.8);
  background: #141926;
}

/* No events scheduled */
.msched__day[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.msched__day:hover {
  color: rgba(255, 255, 255, 0.8);
  background: #141926;
}

/* Active day — gradient border via masked ring */
.msched__day.is-active {
  color: var(--color-white);
  border-color: transparent;
}

.msched__day.is-active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.2rem;
  background: linear-gradient(120deg, #FF6B2D 0%, #8B5CF6 60%, #6C2EFF 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ── Panels ── */

.msched__panels {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.msched__panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.msched__panel[hidden] {
  display: none;
}

.msched__empty {
  padding: 4rem;
  border-radius: 2rem;
  background: #0D1018;
  border: 0.1rem solid rgba(255, 255, 255, 0.08);
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ── Event card ── */

.mevent {
  padding: 3rem;
  border-radius: 2rem;
  background: #0D1018;
  border: 0.1rem solid rgba(255, 255, 255, 0.08);
}

.mevent__title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin: 0 0 2rem;
}

/* Time + venue chips */
.mevent__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.mevent__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;

  padding: 1.2rem 1.6rem;
  border-radius: 0.8rem;

  background: rgba(255, 255, 255, 0.05);
  border: 0.1rem solid rgba(255, 255, 255, 0.1);

  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.mevent__chip svg {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.mevent__lead {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-white);
  margin: 0 0 1.6rem;
}

.mevent__text {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.6rem;
}

.mevent__text:last-child {
  margin-bottom: 0;
}

.mevent__for {
  font-size: 1.6rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.mevent__for strong {
  font-weight: 700;
  color: var(--color-white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1280px) {
  .msched {
    padding: 4rem 6rem 8rem;
  }

  .msched__title {
    font-size: 5rem;
  }

  .msched__layout {
    grid-template-columns: 20rem 1fr;
  }

  .mevent {
    padding: 2.6rem;
  }

  .mevent__title {
    font-size: 2.4rem;
  }
}

/* Date column becomes a horizontal scroller */
@media (max-width: 900px) {
  .msched__layout {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .msched__days {
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    scrollbar-width: none;
  }

  .msched__days::-webkit-scrollbar {
    display: none;
  }

  /* inside @media (max-width: 900px) */
  .msched__day {
    flex: 0 0 auto;
    min-height: 6.4rem;
    padding: 1.6rem 2.4rem;
    font-size: 1.9rem;
  }
}

@media (max-width: 700px) {
  .msched {
    padding: 2rem 3rem 6rem;
  }

  .msched__title {
    font-size: 4.4rem;
    margin-bottom: 3rem;
  }

  .mevent {
    padding: 2.4rem;
  }

  .mevent__title {
    font-size: 2.4rem;
  }

  .mevent__meta {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mevent__chip,
  .mevent__lead,
  .mevent__text,
  .mevent__for {
    font-size: 1.9rem;
  }
}