/* Review fixes for the supplied Bob-a-Thon static export. */
html {
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
}
main { padding-top: 3rem; }
main:focus { outline: none; }
img { max-width: 100%; }
.cds--css-grid-column { min-width: 0; }
.HeroSection_hero__pX_eD { margin-top: 0; }
.countdown-value {
  font-size: 2.625rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* The handoff replaces max-width:100% with 700px, causing phone overflow. */
main #whatisbob .Learn_sectionLearnText__uwlyf > div:nth-child(2),
main #learn .Learn_sectionLearnSelf__11dbN {
  width: min(100%, 700px) !important;
  max-width: 100% !important;
}
/* Keep logo styling from applying to every first-child div and grid. */
main #whatisbob > div.cds--css-grid {
  display: grid !important;
  margin: 0 auto !important;
}
main #whatisbob div.Learn_sectionLearnText__uwlyf {
  display: block !important;
  margin: 0 !important;
}
#vision .Details_Details__title__5ubXg,
.Award_section__XfOZL h2,
#whatisbob h2,
#timeline .Timeline_heading__PIh_N,
#themes .HackathonTheme_leftCol__PZVKk h2 {
  font-size: 2.625rem;
  font-weight: 300;
  line-height: 1.2;
}
.countDownStack p { color: #c6c6c6 !important; }

@media (max-width: 48rem) {
  .HeroSection_hero__pX_eD {
    height: auto;
    min-height: 0;
    padding: 3.5rem 1.5rem;
    background-image: linear-gradient(90deg, rgb(0 0 0 / 60%), rgb(0 0 0 / 20%)), url(/website_assets/enterprise-design-thinking-overview.png);
    background-position: 60% center;
  }
  .HeroSection_heroGrid__li5Fp { width: 100%; padding: 0; row-gap: 0; }
  .HeroSection_heroContent__biYoU { grid-column: 1 / -1; min-width: 0; }
  .HeroSection_heroGrid__li5Fp > :last-child { display: none; }
  .HeroSection_subtitle__02flJ {
    margin-bottom: 1.25rem;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    line-height: 1.5;
  }
  .HeroSection_title__MmAHZ {
    margin-bottom: 1.5rem;
    font-size: clamp(2.25rem, 10.5vw, 3.1rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  main .HeroSection_ctaButton__3o43P {
    max-width: 100%;
    min-height: 3.5rem !important;
    font-size: 1.125rem !important;
  }
  main .HeroSection_date__SffQY {
    margin-bottom: 1.25rem !important;
    color: #e0e0e0;
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .countDownStack {
    display: grid;
    width: 100%;
    max-width: 21rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .countDownStack > div { min-width: 0; margin: 0 !important; }
  .countdown-value { font-size: 2rem; }
  .countDownStack p { margin: 0.25rem 0 0; font-size: 0.8125rem; line-height: 1.5; }
  #vision .Details_Details__title__5ubXg,
  .Award_section__XfOZL h2,
  #whatisbob h2,
  #timeline .Timeline_heading__PIh_N,
  #rules .Rules_sectionTitle___GUOU,
  #themes .HackathonTheme_leftCol__PZVKk h2 { font-size: 2rem; line-height: 1.2; }
  .Details_Details__vev8B { padding: 3rem 1.5rem; }
  .Award_section__XfOZL,
  .Learn_learn__6UW0r { width: calc(100% - 3rem); margin-block: 0; padding-block: 3rem; }
  main #whatisbob .Learn_sectionLearnText__uwlyf > div:first-child { margin-bottom: 2.5rem !important; }
  #whatisbob .cds--css-grid,
  #learn .cds--css-grid,
  .Award_section__XfOZL .cds--css-grid { padding-inline: 0; }
  #vision p,
  #whatisbob p,
  #rules .Rules_rulesList__Ua4lw,
  #rules li,
  #themes .HackathonTheme_trackText__8GfzF,
  #learn .Learn_sectionLearnText__uwlyf p,
  #learn .Learn_sectionLearnSelf__11dbN p { line-height: 1.6; }
  #timeline { padding-top: 3rem; padding-bottom: 1.5rem !important; }
  .Timeline_headingGrid__aF6fN,
  .Timeline_sectionGrid__cbvEz { width: calc(100% - 3rem); padding-inline: 0; }
  #timeline .Timeline_heading__PIh_N { margin-top: 0 !important; }
  #timeline .Timeline_sectionGrid__cbvEz {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.5rem;
    padding-bottom: 0;
    row-gap: 0;
  }
  #timeline .Timeline_timelineCol__5OCz9 {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 40%);
    padding-block: 1.5rem;
  }
  #timeline .Timeline_icon__zkgY4 { width: 3rem; height: 3rem; grid-row: span 3; margin: 0; }
  #timeline .Timeline_date__7v9u6,
  #timeline .Timeline_title__qxMcy,
  #timeline .Timeline_text__7Dav_ { grid-column: 2; }
  #timeline .Timeline_date__7v9u6 { margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 300; line-height: 1.5; }
  #timeline .Timeline_title__qxMcy { min-height: 0; font-size: 1.25rem; line-height: 1.3; }
  #timeline .Timeline_text__7Dav_ { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.5; }
  #rules { margin-top: 0; margin-bottom: 0 !important; padding-block: 3rem; }
  .Rules_rulesGrid__Y3KFa,
  .HackathonTheme_themeGrid__6imQs { width: calc(100% - 3rem); padding-inline: 0; }
  main #themes { padding-block: 3rem !important; }
  .HackathonTheme_leftCol__PZVKk { margin-bottom: 0; padding-right: 0; }
  #themes .HackathonTheme_icon__D9Lkt { width: 5rem !important; height: 5rem !important; }
  main #learn { padding-bottom: 3rem !important; }
  #learn .Learn_sectionLearnText__uwlyf { margin-bottom: 2rem !important; }
  #learn .Learn_links__ycDc9 { gap: 1.5rem !important; }
  #learn .Learn_linkItem__dwXsb { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; align-items: center; }
  #learn .Learn_icon__kbUGT { margin: 0 !important; }
  #learn .Learn_link__OMdG4 { display: flex; min-height: 2.75rem; align-items: center; margin: 0 !important; }
  .Footer_footerQuestions__fzcko .Footer_footerGrid__M4aA_ { width: calc(100% - 3rem) !important; padding-inline: 0; }
  .Footer_footerQuestions__fzcko p { overflow-wrap: anywhere; line-height: 1.6; }
}

.award-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.award-item {
  background: #f4f4f4;
  border-top: 3px solid #0f62fe;
  padding: 2.25rem 1.75rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}
.award-item:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
@media (max-width: 48rem) {
  .award-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}

#learn .coming-header { text-align: center; margin-bottom: 3rem; }
#learn .coming-header h2 { font-size: 2.625rem; font-weight: 300; line-height: 1.2; margin-bottom: 1rem; }
#learn .coming-header p { font-size: 1rem; font-weight: 300; line-height: 1.6; }
.coming-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.coming-item {
  background: #f4f4f4;
  border-top: 3px solid #0f62fe;
  padding: 2.25rem 1.75rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}
.coming-item h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.875rem; color: #161616; }
.coming-item p { font-size: 0.9375rem; font-weight: 300; line-height: 1.65; color: #525252; margin-bottom: 0; }
.coming-item:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.coming-links { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
@media (max-width: 48rem) {
  #learn .coming-header h2 { font-size: 2rem; }
  .coming-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ==========================================================================
   Editorial & Book Page-Like Scroll Experience
   ========================================================================== */

/* Top Reading Progress Indicator */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f62fe 0%, #4589ff 50%, #8a3ffc 100%);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 0.05s linear;
  box-shadow: 0 0 8px rgba(15, 98, 254, 0.6);
}

/* Subtle Book-spread / Editorial Texture on Page Container */
body {
  position: relative;
  background-color: var(--cds-background, #fff);
}

/* Subtle binding shadow / gutter line on desktop */
@media (min-width: 64rem) {
  main {
    position: relative;
  }
}


/* Section Editorial Card Styling & Book-like Border Accents */
main section {
  position: relative;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll Reveal Classes (Page turning & Rising entry) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

/* Full-width sections must stay within the viewport during their entrance. */
.scroll-reveal.reveal-left,
.scroll-reveal.reveal-right {
  transform: translateY(32px);
}

.scroll-reveal.reveal-flip {
  transform: perspective(1000px) rotateX(-8deg) translateY(24px);
  transform-origin: top center;
}

/* In-View Active State */
.scroll-reveal.is-revealed,
.scroll-reveal:focus-within {
  opacity: 1;
  transform: none !important;
}

.scroll-reveal:focus-within {
  transition: none;
}

/* Staggered Item Delays */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* Interactive Card Animations */
.Timeline_timelineCol__5OCz9,
.HackathonTheme_themeGrid__6imQs > div,
.Rules_rulesSection__aR7C0 {
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hero Title Split / Reveal Flare */
.HeroSection_title__MmAHZ {
  position: relative;
}

/* Dynamic Accent Marker (Underline / Circle highlight feel) */
.book-accent-underline {
  position: relative;
  display: inline-block;
}

.book-accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: #0f62fe;
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.is-revealed .book-accent-underline::after,
.is-revealed.book-accent-underline::after {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .reading-progress-bar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Past Event (2025 Hackathon Highlight) Section Styling
   ========================================================================== */
.past-event-section {
  position: relative;
  background-image: linear-gradient(135deg, rgba(22, 22, 22, 0.88) 0%, rgba(22, 22, 22, 0.72) 100%), url(/website_assets/2025-hackathon-group-photo.jpg);
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  color: #ffffff;
  padding: 5rem 0;
  width: 100%;
}

.past-event-container {
  width: 80%;
  max-width: 1326px;
  margin: 0 auto;
}

.past-event-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 98, 254, 0.25);
  border: 1px solid rgba(15, 98, 254, 0.6);
  color: #a6c8ff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
}

.past-event-title {
  font-size: 2.625rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  color: #ffffff;
}

.past-event-desc {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 48rem;
  color: #e0e0e0;
  margin-bottom: 3rem;
}

.past-event-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.past-stat-card {
  background: rgba(38, 38, 38, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 3px solid #0f62fe;
  padding: 1.75rem 1.25rem;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.past-stat-card:hover {
  transform: translateY(-3px);
  border-top-color: #4589ff;
  background: rgba(38, 38, 38, 0.9);
}

.past-stat-num {
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.past-stat-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: #c6c6c6;
  line-height: 1.4;
}

.past-event-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #0f62fe;
  color: #ffffff;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.past-event-cta:hover {
  background: #0353e9;
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 48rem) {
  .past-event-section { padding: 3.5rem 1.5rem; }
  .past-event-container { width: 100%; }
  .past-event-title { font-size: 2rem; }
  .past-event-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .past-stat-num { font-size: 2.25rem; }
}

/* Rules Section Multi-Card Grid */
.rules-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.rules-card {
  background: #f4f4f4;
  border-top: 3px solid #0f62fe;
  padding: 2.25rem 1.75rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}

.rules-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  color: #161616;
}

.rules-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.rules-card ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style-type: disc;
  color: #525252;
}

.rules-card li {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.rules-card li:last-child {
  margin-bottom: 0;
}

@media (max-width: 48rem) {
  .rules-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
