/* Open Enrollment Page Specific Styles */
.enrollment-hero {
  background: var(--bg-gradient);
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.enrollment-hero h1 {
  font-family: "DM Serif Display", serif;
  color: var(--heading-text-color);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.enrollment-hero p {
  font-size: 1.2rem;
  color: var(--body-text-color);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

.coming-soon-section {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  margin-bottom: 3rem;
  text-align: center;
  border-left: 4px solid var(--link-color);
}

.coming-soon-icon {
  width: 80px;
  height: 80px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--link-color);
}

.coming-soon-icon i {
  font-size: 2.5rem;
}

.coming-soon-section h2 {
  color: var(--heading-text-color);
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: "DM Serif Display", serif;
}

.coming-soon-section p {
  color: var(--body-text-color);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 1000px;
}

.coming-soon-section p.red-text {
  font-weight: 600;
  color: #bd0d0d;
}

[data-theme="dark"] .coming-soon-section p.red-text {
  color: #ff6b6b;
}

.coming-soon-section .btn {
  background: var(--link-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 300px;
}

.coming-soon-section .btn-text {
  font-size: 0.9rem;
  text-align: left;
  white-space: nowrap;
}

.coming-soon-section .btn:hover {
  background: var(--link-hover-color);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.coming-soon-section .btn i {
  color: white;
}

/* Button grid inside Coming Soon section */
.coming-soon-section .btn-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 auto;
  margin-top: 2rem;
  max-width: 1000px;
  width: 100%;
}

.coming-soon-section .btn-stack .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.coming-soon-section .btn-stack .btn i {
  font-size: 1.2rem;
}

/* Quick Navigation */
.quick-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.quick-nav .btn {
  background: var(--link-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-nav .btn:hover {
  background: var(--link-hover-color);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.quick-nav .bx {
  color: white;
}

/* Dark Theme Overrides */
[data-theme="dark"] .coming-soon-section {
  background: var(--card-bg-color);
  border-color: #444;
}

[data-theme="dark"] .coming-soon-section .btn {
  background: var(--secondary-color);
  color: var(--light-text-color);
}

[data-theme="dark"] .coming-soon-section .btn:hover {
  background: var(--gold);
  color: white;
}

[data-theme="dark"] .quick-nav .btn {
  background: var(--secondary-color);
  color: var(--light-text-color);
}

[data-theme="dark"] .quick-nav .btn:hover {
  background: var(--gold);
  color: white;
}

/* Tablet Responsiveness */
@media screen and (max-width: 992px) {
  .coming-soon-section .btn-stack {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .coming-soon-section .btn-stack .btn {
    min-height: 55px;
    padding: 0.875rem 1.25rem;
  }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .enrollment-hero {
    padding: 2rem 0;
  }

  .enrollment-hero h1 {
    font-size: 2rem;
  }

  .coming-soon-section {
    padding: 2rem 1.5rem;
  }

  .coming-soon-section h2 {
    font-size: 1.5rem;
  }

  .quick-nav {
    flex-direction: column;
    align-items: center;
  }

  .quick-nav .btn {
    width: 100%;
    max-width: 300px;
  }

  .coming-soon-section .btn-stack {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .coming-soon-section .btn-stack .btn {
    min-height: 50px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .coming-soon-section {
    padding: 1.5rem 1rem;
  }

  .coming-soon-icon {
    width: 60px;
    height: 60px;
  }

  .coming-soon-icon i {
    font-size: 2rem;
  }
}

/* =========================================
   Enrollment Timeline Infographic
   ========================================= */

.enrollment-timeline-section {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
  border-left: 4px solid #1a6b6a;
}

.enrollment-timeline-section h2 {
  font-family: "DM Serif Display", serif;
  color: var(--heading-text-color);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.enrollment-timeline-section h2 i {
  color: #1a6b6a;
  font-size: 1.6rem;
}

.enrollment-timeline-section > p {
  color: var(--body-text-color);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Chart layout */
.tl-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.tl-date-row,
.tl-bar-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tl-label-spacer,
.tl-row-label {
  width: 130px;
  flex-shrink: 0;
}

.tl-row-label {
  text-align: right;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--heading-text-color);
}

/* Date markers */
.tl-dates {
  flex: 1;
  position: relative;
  height: 1.5rem;
}

.tl-date {
  position: absolute;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--body-text-color);
  transform: translateX(-50%);
  white-space: nowrap;
}

.tl-date-start {
  left: 0%;
  transform: none;
}

.tl-date-end {
  left: 100%;
  transform: translateX(-100%);
}

/* Track and bars */
.tl-track {
  flex: 1;
  position: relative;
  height: 44px;
  background: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
}

/* Overlap highlight zone: Apr 15 (31.82%) to May 1 (68.18%) */
.tl-overlap-zone {
  position: absolute;
  top: 0;
  height: 100%;
  left: 31.82%;
  width: 36.36%;
  background: rgba(255, 255, 255, 0.12);
  border-left: 2px dashed rgba(255, 255, 255, 0.3);
  border-right: 2px dashed rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 2;
}

.tl-bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  z-index: 1;
  padding: 0 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-bar-lpb {
  background: #1a6b6a;
}

.tl-bar-state {
  background: var(--royal-blue);
}

/* Legend */
.tl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.9rem;
  color: var(--body-text-color);
}

.tl-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tl-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

.tl-swatch-lpb {
  background: #1a6b6a;
}

.tl-swatch-state {
  background: var(--royal-blue);
}

.tl-swatch-overlap {
  background: linear-gradient(135deg, #1a6b6a 50%, var(--royal-blue) 50%);
}

/* Dark theme */
[data-theme="dark"] .enrollment-timeline-section {
  background: var(--card-bg-color);
}

[data-theme="dark"] .tl-track {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile */
@media screen and (max-width: 600px) {
  .enrollment-timeline-section {
    padding: 1.5rem 1rem;
  }

  .tl-label-spacer {
    display: none;
  }

  .tl-row-label {
    width: 80px;
    font-size: 0.85rem;
  }

  .tl-bar {
    font-size: 0.72rem;
  }

  /* Hide Apr 15 and May 1 tick labels on small screens to avoid crowding */
  .tl-date:not(.tl-date-start):not(.tl-date-end) {
    display: none;
  }

  .tl-legend {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* =========================================
   Resource Cards
   ========================================= */

.resource-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 680px;
  margin: 2rem auto 0;
  text-align: left;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-color, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: var(--body-text-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--body-text-color);
}

.resource-card:focus-visible {
  outline: 3px solid var(--link-hover-color);
  outline-offset: 2px;
}

.resource-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.resource-card-icon.icon-pdf {
  background: #fce4e4;
  color: #c0392b;
}

.resource-card-icon.icon-excel {
  background: #dff5e3;
  color: #1e7e34;
}

.resource-card-icon.icon-video {
  background: #e8e0f7;
  color: #6a1b9a;
}

.resource-card-icon.icon-ppt {
  background: #fde8e0;
  color: #d4511e;
}

.resource-card-icon.icon-word {
  background: #dce8f8;
  color: #2b579a;
}

.resource-card-body {
  flex: 1;
  min-width: 0;
}

.resource-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--link-color);
  line-height: 1.3;
}

.resource-card:hover .resource-card-title {
  color: var(--link-hover-color);
}

.resource-card-subtitle {
  font-size: 0.82rem;
  color: #595280;
  margin-top: 0.15rem;
}

[data-theme="dark"] .resource-card-subtitle {
  color: #b0adc0;
}

.resource-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  flex-shrink: 0;
  background: var(--secondary-color);
  color: var(--heading-text-color);
}

/* Dark theme */
[data-theme="dark"] .resource-card {
  background: var(--card-bg-color);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .resource-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .resource-card-icon.icon-pdf {
  background: rgba(192, 57, 43, 0.15);
  color: #e74c3c;
}

[data-theme="dark"] .resource-card-icon.icon-excel {
  background: rgba(30, 126, 52, 0.15);
  color: #52c76a;
}

[data-theme="dark"] .resource-card-icon.icon-video {
  background: rgba(106, 27, 154, 0.15);
  color: #b47cdb;
}

[data-theme="dark"] .resource-card-icon.icon-ppt {
  background: rgba(212, 81, 30, 0.15);
  color: #e8845a;
}

[data-theme="dark"] .resource-card-icon.icon-word {
  background: rgba(43, 87, 154, 0.15);
  color: #6a9edb;
}

[data-theme="dark"] .resource-card-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--body-text-color);
}

/* Mobile */
@media screen and (max-width: 480px) {
  .resource-card {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  .resource-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .resource-card-title {
    font-size: 0.92rem;
  }

  .resource-card-badge {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .resource-card {
    transition: none;
  }
}

/* =========================================
   Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators */
.coming-soon-section .btn:focus,
.quick-nav .btn:focus {
  outline: 3px solid var(--link-hover-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .coming-soon-section {
    border: 2px solid var(--heading-text-color);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .coming-soon-section .btn,
  .quick-nav .btn {
    transition: none;
  }
}
