.intro-header {
  position: relative;
  /* Let clean-blog.css handle the padding for consistent ratio with about.html */
  margin-bottom: 0;
}
.intro-header:before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}
.intro-header .site-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  /* Use same padding as clean-blog.css for .page-heading to match about.html */
  padding: 100px 0 50px;
}
@media only screen and (min-width: 768px) {
  .intro-header .site-heading {
    padding: 150px 0;
  }
}

/* Event series title - match clean-blog.css subheading style */
.site-heading .event-series {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 10px;
  display: block;
  color: #ffffff;
}

/* Event title - match clean-blog.css h1 style */
.site-heading .event-title {
  margin-top: 0;
  font-size: 50px;
  color: #ffffff;
}

/* Subtitle / details - match clean-blog.css subheading style */
.site-heading .subheading {
  font-size: 24px;
  line-height: 1.1;
  display: block;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  margin: 10px 0 0;
  color: #ffffff;
}

/* Desktop styles - match clean-blog.css */
@media only screen and (min-width: 768px) {
  .site-heading .event-title {
    font-size: 80px;
  }
}

/* Body fonts: revert to Open Sans (already linked in index.html) */
body, p, li, a, .post-meta {
  font-family: 'Open Sans', 'Noto Sans KR', sans-serif;
}

/* Modern event overview section - better integration with background */
body {
  background: #f5f5f5;
}

.event-overview {
  background: #fafafa;
  border-radius: 24px 24px 0 0;
  padding: 56px 40px 48px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.12), 0 4px 20px rgba(0,0,0,0.06);
  margin-top: 60px;
  position: relative;
  z-index: 3;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Add spacing container for smooth transition */
.container .row {
  position: relative;
}

.event-overview .section-title {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 36px;
  color: #2c3e50;
  text-align: center;
  position: relative;
  padding-bottom: 16px;
}

.event-overview .section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #5a7ba7, #3d5a7f);
  border-radius: 2px;
}

/* Event banner image */
.event-banner {
  margin: 28px 0 36px;
  text-align: center;
  padding: 0 20px;
}

.banner-image {
  max-width: 70%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.banner-image:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

/* Grid layout for event info */
.event-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  border-left: 4px solid #5a7ba7;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.info-item:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.info-item-full {
  grid-column: 1 / -1;
}

.info-label {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.info-value {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #2c3e50;
  line-height: 1.6;
}

/* Event description section */
.event-description {
  margin-top: 40px;
  padding: 32px 36px;
  background: #ffffff;
  border-radius: 12px;
  border-left: 4px solid #5a7ba7;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.description-title {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 20px;
  color: #2c3e50;
}

.description-text {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #404040;
  line-height: 1.8;
  margin: 0 0 18px;
}

.description-text:last-child {
  margin-bottom: 0;
}

.description-text strong {
  font-weight: 600;
  color: #3d5a7f;
}

/* Contact section */
.contact-section {
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #4a6fa5 0%, #3d5a7f 100%);
  border-radius: 12px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 15px rgba(58, 90, 127, 0.3);
}

.contact-title {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #ffffff;
}

.contact-info {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  margin: 0;
  color: rgba(255,255,255,0.95);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .event-overview {
    margin-top: 40px;
    padding: 40px 24px 32px;
    border-radius: 20px 20px 0 0;
  }
  
  .event-overview .section-title {
    font-size: 26px;
    margin-bottom: 28px;
    padding-bottom: 12px;
  }
  
  .event-banner {
    margin: 20px 0 28px;
    padding: 0 10px;
  }
  
  .banner-image {
    max-width: 90%;
    border-radius: 8px;
  }
  
  .event-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .info-item {
    padding: 16px;
  }
  
  .info-label {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .info-value {
    font-size: 15px;
  }
  
  .contact-section {
    margin-top: 32px;
    padding: 24px 20px;
  }
  
  .contact-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .contact-info {
    font-size: 15px;
  }
  
  .event-description {
    margin-top: 32px;
    padding: 24px 20px;
  }
  
  .description-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .description-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
  }
}

/* Timeline Graphic Styles - Golden Line with Markers */
.timeline-page-container {
  background: #2c3e50;
  min-height: calc(100vh - 200px);
  padding: 80px 0 100px;
  margin-top: 0;
}

.timeline-page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
}

.timeline-page-title {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding-left: 60px;
}

.timeline-page-icon {
  color: #d4af37;
  font-size: 28px;
  margin-right: 15px;
}

.timeline-page-title span {
  background: #3d5a7f;
  color: #ffffff;
  padding: 10px 24px;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  border-radius: 4px;
}

.timeline-graphic {
  position: relative;
  padding-left: 60px;
}

.timeline-graphic::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #d4af37 0%, #b8941f 100%);
  z-index: 1;
}

.timeline-graphic-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 50px;
  z-index: 2;
}

.timeline-graphic-marker {
  position: absolute;
  left: -33px;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #000000;
  z-index: 3;
  box-sizing: border-box;
}

.timeline-graphic-marker-active {
  background: #d4af37;
  border: 3px solid #d4af37;
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.3);
}

.timeline-graphic-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-graphic-year {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 25px;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 6px;
}

.timeline-graphic-label {
  display: inline-block;
  background: #3d5a7f;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  width: fit-content;
  margin-bottom: 6px;
}

@media (max-width: 767px) {
  .timeline-page-container {
    padding: 60px 0 80px;
  }
  
  .timeline-page-wrapper {
    padding: 0 30px;
  }
  
  .timeline-page-title {
    padding-left: 20px;
    margin-bottom: 50px;
  }
  
  .timeline-page-icon {
    font-size: 24px;
    margin-right: 12px;
  }
  
  .timeline-page-title span {
    font-size: 22px;
    padding: 8px 20px;
  }
  
  .timeline-graphic {
    padding-left: 40px;
  }
  
  .timeline-graphic::before {
    left: 17px;
    width: 3px;
  }
  
  .timeline-graphic-item {
    padding-left: 35px;
    margin-bottom: 40px;
  }
  
  .timeline-graphic-marker {
    left: -23px;
    width: 16px;
    height: 16px;
    border-width: 2px;
  }
  
  .timeline-graphic-year {
    font-size: 15px;
    padding: 6px 14px;
  }
  
  .timeline-graphic-label {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* Resource Tabs Styles - More Specific Selectors */
.container .resource-tabs.nav-tabs {
  margin-top: 50px !important;
  margin-bottom: 0 !important;
  border-bottom: 3px solid #5a7ba7 !important;
  background-color: transparent !important;
  border-top: none !important;
}

.container .resource-tabs.nav-tabs > li {
  margin-bottom: -2px !important;
  float: none !important;
  display: inline-block !important;
}

.container .resource-tabs.nav-tabs > li > a {
  color: #2c3e50 !important;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  padding: 15px 30px !important;
  border: none !important;
  border-radius: 0 !important;
  margin-right: 5px !important;
  background-color: #f5f5f5 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.container .resource-tabs.nav-tabs > li > a:hover,
.container .resource-tabs.nav-tabs > li > a:focus {
  background-color: #e8e8e8 !important;
  color: #3d5a7f !important;
  border: none !important;
  text-decoration: none !important;
}

.container .resource-tabs.nav-tabs > li.active > a,
.container .resource-tabs.nav-tabs > li.active > a:hover,
.container .resource-tabs.nav-tabs > li.active > a:focus {
  background-color: #5a7ba7 !important;
  color: #ffffff !important;
  border: none !important;
  border-bottom: 4px solid #3d5a7f !important;
  position: relative !important;
  z-index: 1 !important;
  cursor: default !important;
}

.container .resource-tab-content.tab-content {
  background: #ffffff !important;
  padding: 40px 35px !important;
  border: 1px solid #e0e0e0 !important;
  border-top: none !important;
  border-radius: 0 0 8px 8px !important;
  margin-bottom: 50px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
  min-height: 400px !important;
  clear: both !important;
}

.container .resource-tab-content .tab-pane {
  display: none !important;
}

.container .resource-tab-content .tab-pane.active {
  display: block !important;
}

.tab-panel-content {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

.tab-panel-content h2 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #2c3e50 !important;
  margin-bottom: 30px !important;
  padding-bottom: 15px !important;
  border-bottom: 3px solid #5a7ba7 !important;
}

.tab-panel-content h3 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #3d5a7f !important;
  margin-top: 30px !important;
  margin-bottom: 15px !important;
}

.tab-panel-content h4 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #2c3e50 !important;
  margin-top: 20px !important;
  margin-bottom: 10px !important;
}

.tab-panel-content ul {
  margin-bottom: 20px !important;
  padding-left: 25px !important;
  list-style-type: disc !important;
}

.tab-panel-content li {
  margin-bottom: 10px !important;
  line-height: 1.7 !important;
  color: #404040 !important;
}

.tab-panel-content p {
  line-height: 1.8 !important;
  color: #404040 !important;
  margin-bottom: 15px !important;
}

.faq-item {
  margin-bottom: 30px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

.faq-item:last-child {
  border-bottom: none !important;
}

.faq-item h4 {
  color: #3d5a7f !important;
  margin-bottom: 8px !important;
}

.faq-item p {
  margin-left: 0 !important;
  color: #555 !important;
}

/* Rule Images */
.rule-image-container {
  margin: 25px 0;
  text-align: center;
}

.rule-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 15px 0;
}

.tab-panel-content .rule-image {
  max-width: 65%;
  border: 2px solid #e0e0e0;
}

/* Rule Figures */
.rule-figure {
  margin: 30px 0;
  text-align: center;
}

.rule-figure img {
  max-width: 65%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 2px solid #e0e0e0;
  display: block;
  margin: 0 auto;
}

/* Smaller size for first two figures (they are very high resolution: 2020x2366, 1817x2235) */
/* Other images are much smaller (323x499, 879x461, 1135x457), so we need to make these much smaller */
/* Using fixed max-width to match visual size of other images (~300-350px) */
.rule-figure-small img {
  max-width: 320px !important;
  max-height: 400px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.rule-figure-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Note Box */
.note-box {
  background: #f0f7ff;
  border-left: 4px solid #5a7ba7;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.note-box strong {
  color: #3d5a7f;
}

/* Rules Footer */
.rules-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* Rules Section Title */
.rules-section-title {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Rules TOC Card */
.rules-toc-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 30px;
  margin: 20px 0;
}

.rules-toc-card ol {
  margin: 0;
  padding-left: 20px;
}

.rules-toc-card ol ol {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Rule Block */
.rule-block {
  margin: 30px 0;
}

.rule-block h3 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: #3d5a7f;
  margin-top: 25px;
  margin-bottom: 15px;
}

.rule-block h4 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: #5a7ba7;
  margin-top: 20px;
  margin-bottom: 12px;
}

.rule-block ul {
  margin: 15px 0;
  padding-left: 25px;
}

.rule-block ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

.rule-block code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #d63384;
}

@media (max-width: 767px) {
  .container .resource-tabs.nav-tabs {
    margin-top: 30px !important;
  }
  
  .container .resource-tabs.nav-tabs > li > a {
    font-size: 14px !important;
    padding: 12px 15px !important;
  }
  
  .container .resource-tab-content.tab-content {
    padding: 25px 20px !important;
  }
  
  .tab-panel-content h2 {
    font-size: 24px !important;
  }
  
  .tab-panel-content h3 {
    font-size: 20px !important;
  }
  
  .tab-panel-content h4 {
    font-size: 16px !important;
  }
  
  .rule-image-container {
    margin: 20px 0;
  }
  
  .tab-panel-content .rule-image {
    max-width: 90%;
  }
  
  .rule-figure img {
    max-width: 90%;
  }
  
  .rule-figure-small img {
    max-width: 280px !important;
    max-height: 350px !important;
  }
}

/* Poster Popup Modal Styles */
.poster-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.poster-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.poster-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 75%;
  max-width: 90vw;
  max-height: 90vh;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.poster-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.poster-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

.poster-modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .poster-modal-content {
    width: 90%;
    height: 50%;
    padding: 15px;
  }
  
  .poster-modal-close {
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 30px;
  }
}
