/* ==================================================
   AMP-L100 Training System - Custom Styles
   Premium Learning Platform Design
   ================================================== */

/* ==========================================
   BREADCRUMB OVERRIDE - Remove bullet divider
   ========================================== */

.modern-breadcrumb-item:not(:last-child)::after {
  display: none !important;
}

/* ==========================================
   HERO SECTION - STADIUM STYLE L-SHAPE
   ========================================== */

.hero-section {
  position: relative;
  background: #ffffff;
  overflow: hidden;
  width: 100%;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

/* Blue Left Stripe - 12% width, extends down full hero */
.hero-left-stripe {
  position: absolute;
  left: 0;
  top: 0;
  width: 12%;
  height: 100%;
  background: #003466;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vertical Slider Navigation (Circles with Lines) */
.hero-slider-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.nav-line {
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.nav-line-top,
.nav-line-bottom {
  height: 40px;
}

.nav-line-middle {
  height: 30px;
}

.hero-nav-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
}

.hero-nav-dot:hover {
  background: rgba(255, 232, 3, 0.6);
  transform: scale(1.2);
}

.hero-nav-dot.active {
  background: #ffe803;
  border-color: #ffe803;
  box-shadow: 0 0 12px rgba(255, 232, 3, 0.6);
}

/* Main Slider Area */
.hero-slider-area {
  margin-left: 12%;
  width: 88%;
  height: 550px;
  position: relative;
  overflow: hidden;
}

.hero-slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 0;
  padding-left: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Keep slide 2/3 artwork pinned to left edge */
.hero-slide-2,
.hero-slide-3 {
  background-position: left center !important;
}

/* Desktop only: Add hero-1.jpg background to first slide */
@media (min-width: 992px) {
  .hero-slide:first-child {
    background-image: url('../img/hero-1.jpg') !important;
    background-blend-mode: overlay;
  }

  .hero-slide-2 {
    background-image: url('../img/hero_3.jpg') !important;
    background-blend-mode: overlay;
  }
}

/* Tablet hero image (768px–991px) — uncomment when hero-tablet.jpg is ready */
 @media (min-width: 768px) and (max-width: 991.98px) {
  .hero-slide:first-child {
    background-image: url('../img/hero1-tablet.jpg') !important;
    background-blend-mode: overlay;
  }

  .hero-slide-2 {
    background-image: url('../img/hero_3.jpg') !important;
    background-blend-mode: overlay;
  }
} 

/* Mobile hero image (≤767px) — uncomment when hero-mobile.jpg is ready */
 @media (max-width: 767.98px) {
  .hero-slide:first-child {
    background-image: url('../img/hero1_mobile.jpg') !important;
    background-blend-mode: overlay;
    background-position: center top;
  }

  .hero-slide-2 {
    background-image: url('../img/hero3_mobile.jpg') !important;
    background-blend-mode: overlay;
  }
}

.slide-content {
  width: auto;
  max-width: 65%;
  text-align: left;
  color: #ffffff;
  margin-left: 0;
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: 24px;
}

.slide-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0px;
  letter-spacing: -0.02em;
}

.slide-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 1.9vw, 2rem);
  font-weight: 700;
  margin-bottom: 0px;
  opacity: 0.95;
}

.slide-description {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 1.1vw, 1.25rem);
  line-height: 1.7;
  opacity: 0.9;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

/* Typewriter Animation */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 2s steps(40) 0.5s forwards;
  max-width: 0;
  display: block;
  position: relative;
}

.typewriter::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #ffe803;
  animation: blink 0.75s step-end 0.5s 3, removeCursor 0.1s 3s forwards;
}

.typewriter-delay-1 {
  animation: typing 2s steps(40) 2.7s forwards;
  max-width: 0;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.typewriter-delay-1::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #ffe803;
  animation: blink 0.75s step-end 2.7s 3, removeCursor 0.1s 5s forwards;
}

.typewriter-delay-2 {
  animation: typing 3s steps(60) 5s forwards;
  max-width: 0;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.typewriter-delay-2::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #ffe803;
  animation: blink 0.75s step-end 5s 4, removeCursor 0.1s 8s forwards;
}

.typewriter-delay-3 {
  animation: typing 3s steps(60) 8s forwards;
  max-width: 0;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.typewriter-delay-3::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #ffe803;
  animation: blink 0.75s step-end 8s infinite;
}

@keyframes typing {
  from { max-width: 0; }
  to { max-width: 100%; }
}

@keyframes wrapText {
  to { 
    white-space: normal;
    max-width: 40%;
  }
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes removeCursor {
  to {
    opacity: 0;
  }
}

/* Three Feature Boxes - Stadium Style - Responsive Bootstrap Alignment */
.hero-feature-boxes {
  display: flex;
  height: 90px;
  position: relative;
  width: 100%;
  padding: 8px 0;
  max-width: 1320px;
  margin: 0 auto;
  background: #eaeaea;
}

/* Blue L-Shape Extension - Ends at "Getting Started" kicker position (18.7%) */
.hero-feature-boxes::before {
  content: '';
  position: absolute;
  left: calc(-1 * ((100vw - 1320px) / 2));
  top: 0;
  width: calc(((100vw - 1320px) / 2) + 247px);
  height: 100%;
  background: #003466;
  z-index: 1;
}

@media (max-width: 1320px) {
  .hero-feature-boxes::before {
    left: 0;
    width: 18.7%;
  }
}

/* White background for right section */
.hero-feature-boxes::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 100%;
  background: #eaeaea;
  z-index: 0;
}

/* Desktop wide screens: extend right panel into viewport gutter */
@media (min-width: 1321px) {
  .hero-feature-boxes::after {
    right: calc(-1 * ((100vw - 1320px) / 2));
  }
}

.feature-box {
  width: calc(81.3% / 3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 10px;
  position: relative;
  z-index: 2;
  border-right: 1px solid #000;
}

.feature-box:first-child {
  margin-left: 18.7%;
}

.feature-box:last-child {
  border-right: none;
}

.feature-box-icon {
  color: #000;
  flex-shrink: 0;
}

.feature-box-icon svg {
  width: 53px;
  height: 53px;
  stroke-width: 2;
}

.feature-box-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-box-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 25px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  color: #212529;
}

.feature-box-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600 !important;
  margin: 0;
  color: #000;
  line-height: 1.2;
}

/* ==========================================
   RESPONSIVE: TABLET & MOBILE
   ========================================== */

/* Tablet */
@media (max-width: 991.98px) {
  .hero-left-stripe {
    width: 8%;
  }
  
  .hero-slider-area {
    margin-left: 8%;
    width: 92%;
    height: 450px;
  }
  
  .slide-content {
    width: auto;
    max-width: 55%;
    margin-left: 0;
    padding-left: clamp(16px, 3vw, 40px);
    padding-right: 16px;
  }
  
  .slide-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  }
  
  .slide-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
  }
  
  .slide-description {
    font-size: clamp(0.9rem, 1.1vw, 1.125rem);
  }
  
  .hero-slide {
    padding: 40px 0;
    align-items: center;
  }
  
  /* Allow title to wrap at tablet — typewriter clips text at this width */
  .typewriter {
    white-space: normal;
    overflow: visible;
    max-width: none;
    animation: none;
  }
  
  .typewriter::after {
    display: none;
  }
  
  /* Adjust blue bar for tablet */
  .hero-feature-boxes::before {
    width: 30%;
  }
  
  .feature-box {
    width: 23.33%;
    flex-direction: column;
    gap: 10px;
    padding: 16px 12px;
    text-align: center;
  }
  
  .feature-box:first-child {
    margin-left: 30%;
  }
  
  .feature-box-icon svg {
    width: 50px;
    height: 50px;
  }
  
  .feature-box-number {
    font-size: 23px;
  }
  
  .feature-box-label {
    font-size: 0.75rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .hero-left-stripe {
    width: 0;
    display: none;
  }
  
  .hero-slider-area {
    margin-left: 0;
    width: 100%;
    height: 400px;
  }
  
  /* Center all text on mobile (except hero) */
  .section-kicker,
  .section-title,
  .section-description,
  .section-header,
  .getting-started-section,
  .curriculum-cards-section,
  .how-to-section,
  .community-section,
  .recommended-section {
    text-align: center;
  }


  .slide-content {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }
  
  .slide-title {
    font-size: 2rem;
    word-spacing: 100vw;
  }
  
  .slide-subtitle,
  .slide-description {
    display: none;
  }
  
  .hero-slide {
    padding: 30px 24px;
    align-items: center;
  }
  
  /* Hide all typewriter cursors on mobile */
  .typewriter::after,
  .typewriter-delay-1::after,
  .typewriter-delay-2::after,
  .typewriter-delay-3::after {
    display: none;
  }
  
  /* Ensure all typewriter elements wrap on mobile */
  .typewriter-delay-3 {
    animation: none;
    max-width: none;
    white-space: normal;
  }

  /* How-to card duration centered on mobile */
  .how-to-duration {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  
  /* Hide feature boxes on mobile */
  .hero-feature-boxes {
    display: none;
  }
  
  .hero-feature-boxes::before {
    display: none;
  }
  
  .hero-feature-boxes::after {
    width: 100%;
    background: #F8F9FA;
  }
  
  .feature-box {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    padding: 20px 24px;
    margin-left: 0 !important;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .feature-box:last-child {
    border-bottom: none;
  }
  
  .feature-box-icon svg {
    width: 45px;
    height: 45px;
  }
  
  .feature-box-text {
    text-align: left;
  }
  
  .feature-box-number {
    font-size: 20px;
  }
  
  .feature-box-label {
    font-size: 0.813rem;
  }
  
  /* Disable typewriter on mobile for better readability */
  .typewriter,
  .typewriter-delay-1,
  .typewriter-delay-2 {
    animation: none;
    max-width: none;
    border-right: none;
    white-space: normal;
  }
  
  .slide-content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ==========================================
   RECOMMENDED SECTION (PERSONALIZATION)
   ========================================== */

.recommended-section {
  padding: 60px 0;
  background: #f8f9fa;
}

/* Section Kicker - Match howto__kicker styling */
.section-kicker {
  display: inline-block !important;
  font-family: 'Montserrat', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  font-weight: 500 !important;
  font-size: 1.2rem !important;
  color: #000000 !important;
  margin-bottom: 15px !important;
  background-color: #FFE803 !important;
  padding: 4px 4px !important;
  line-height: 1 !important;
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
  font-synthesis: none !important;
  text-rendering: geometricPrecision !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
}

body.dark-mode .section-kicker {
  color: #000000 !important;
  background-color: #FFE803 !important;
}

.recommended-card {
  background: var(--line);
  border-radius: 6px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.recommended-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Personalization Header */
.personalization-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}

.user-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.personalization-header .user-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #003466 0%, #005cb9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  border: 2px solid rgba(0, 52, 102, 0.2);
}

.user-info {
  flex: 1;
}

.user-greeting {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1d1d1f;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.user-activity {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  color: #6e6e73;
  margin: 0;
}

.user-progress-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-ring {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.progress-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #003466;
}

.progress-stats {
  text-align: left;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6e6e73;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}

/* Divider */
.personalization-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 24px 0;
}

/* Badge */
.recommended-badge {
  display: inline-block;
  background: rgba(0, 52, 102, 0.1);
  color: #003466;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Course Recommendation Content */
.recommended-content {
  position: relative;
}

.recommended-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #6e6e73;
  margin-bottom: 8px;
  line-height: 1.2;
}

.recommended-course-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #1d1d1f;
  margin-bottom: 8px;
  line-height: 1.2;
}

.recommended-lesson-info {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #6e6e73;
  margin-bottom: 20px;
}

.recommended-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6e6e73;
}

.meta-item svg {
  color: #003466;
  opacity: 0.7;
}

.recommended-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-recommended-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: #003466;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 52, 102, 0.2);
}

.btn-recommended-primary:hover {
  background: #005cb9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 52, 102, 0.3);
  color: #ffffff;
}

.btn-recommended-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: transparent;
  color: #003466;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid #003466;
  transition: all 0.3s ease;
}

.btn-recommended-secondary:hover {
  background: #003466;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================
   CURRICULUM CARDS - Use fireflystyles.css
   ========================================== */
/* All curriculum card styles handled by fireflystyles.css and index-custom.css */
/* NO OVERRIDES - keep 100% original styling */

/* ==========================================
   GETTING STARTED VIDEO - Match curriculum card styling
   ========================================== */

.intro-video {
  border: 6px solid #ffffff !important;
  border-radius: 6px !important;
}

/* Dark mode - adjust border color */
body.dark-mode .intro-video {
  border-color: #2d2d30 !important;
}

/* ==========================================
   HOW-TO CARDS
   ========================================== */

/* Match index.php curriculum card layout exactly */
.curriculum-cards-section .row {
  display: flex !important;
  flex-wrap: wrap;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 2rem;
}

/* Remove all column padding globally */
.curriculum-cards-section .row > [class*='col-'] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Two-column layout for training modules */
@media (min-width: 992px) {
  .curriculum-cards-section .row.mb-4 .col-lg-6 {
    display: flex !important;
    flex: 0 0 calc(50% - 0.5rem - 4px) !important;
    max-width: calc(50% - 0.5rem - 4px) !important;
  }
  
  .curriculum-cards-section .row.mb-4 .col-lg-6:first-child {
    margin-right: calc(1rem + 8px) !important;
  }
  
  .curriculum-cards-section .row.mb-4 .col-lg-6 .curriculum-card {
    height: 100%;
  }
}

/* Four-column layout for how-to cards */
.curriculum-cards-section .row.g-4 {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0;
}

.curriculum-cards-section .row.g-4 > [class*='col-'] {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

/* Align outer how-to edges with top curriculum cards */
@media (min-width: 768px) {
  .curriculum-cards-section .row.g-4 > [class*='col-']:first-child {
    padding-left: 0 !important;
  }

  .curriculum-cards-section .row.g-4 > [class*='col-']:last-child {
    padding-right: 0 !important;
  }
}

/* Curriculum cards spacing */
.curriculum-cards-section .curriculum-card {
  margin-bottom: 0 !important;
}

/* Add spacing between advanced curriculum cards that are full-width */
.curriculum-cards-section .curriculum-card.mb-4,
.curriculum-cards-section .curriculum-card:not(.row .col-lg-6 .curriculum-card) {
  margin-bottom: 2rem !important;
}

/* Add bottom margin to curriculum section before community section */
.curriculum-cards-section {
  padding-bottom: 4rem;
}

.how-to-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 0;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  height: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.how-to-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.how-to-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  margin: 0;
  border: 6px solid #ffffff;
  flex-shrink: 0;
}

.how-to-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 6px 6px 0 0;
}

.how-to-card:hover .how-to-image img {
  transform: scale(1.05);
}

.how-to-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 12px;
  line-height: 1.3;
  padding: 0 24px;
  margin-top: 20px;
}

.how-to-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #6e6e73;
  margin-bottom: 20px;
  padding: 0 24px;
}

.how-to-duration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #005cb9;
  padding: 0 24px 12px 24px;
}

.how-to-card-action {
  margin-top: auto;
  padding: 0 24px 24px 24px;
}

.how-to-card-action .btn-curriculum {
  width: 100%;
  justify-content: center;
}

/* Coming soon lock variant: yellow brand callout over locked state */
.coming-soon-card.curriculum-card-locked::before,
.coming-soon-card.how-to-card-locked::before {
  content: "🔒 Coming Soon";
  display: inline-flex;
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ffe803;
  color: #000000;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 12;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.how-to-card-locked {
  position: relative;
  cursor: not-allowed;
}

.how-to-card-locked .how-to-image img,
.how-to-card-locked .how-to-title,
.how-to-card-locked .how-to-description,
.how-to-card-locked .how-to-duration {
  filter: grayscale(100%);
}

/* Match curriculum locked behavior: no hover lift/zoom */
.how-to-card-locked:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.how-to-card-locked:hover .how-to-image img {
  transform: none;
}

/* Add the same soft lock wash used on curriculum cards */
.how-to-card-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(249, 249, 249, 0.5);
  z-index: 4;
  pointer-events: none;
}

.how-to-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
}

.how-to-lock-icon {
  color: #86868b;
  stroke-width: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

/* Force locked/coming-soon buttons to gray (non-clickable visual) */
.coming-soon-card .btn-curriculum.btn-curriculum-locked {
  background: #9da1aa !important;
  border: 1px solid #8a8f99 !important;
  color: #2f343d !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.coming-soon-card .btn-curriculum.btn-curriculum-locked:hover,
.coming-soon-card .btn-curriculum.btn-curriculum-locked:focus {
  background: #9da1aa !important;
  color: #2f343d !important;
  transform: none !important;
  box-shadow: none !important;
}

.coming-soon-card .btn-curriculum.btn-curriculum-locked .lock-icon-small {
  stroke: currentColor;
}

/* ==========================================
   COMMUNITY SECTION
   ========================================== */

.community-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.community-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.community-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.community-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8B5A 0%, #F4A261 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #ffffff;
}

.community-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1d1d1f;
  margin-bottom: 16px;
}

.community-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #6e6e73;
  margin-bottom: 24px;
}

.btn-community {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: #003466;
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-community:hover {
  background: #005cb9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 52, 102, 0.3);
  color: #ffffff;
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION
   ========================================== */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  padding: 8px 6px max(8px, env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  display: none;
}

.mobile-nav-state {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: stretch;
  gap: 4px;
}

body.user-logged-in .mobile-nav-logged-in {
  display: flex;
}

body.user-logged-out .mobile-nav-logged-out {
  display: flex;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 3px;
  padding: 8px 6px;
  color: #6e6e73;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.mobile-nav-item span {
  display: block;
}

.mobile-nav-item:active {
  transform: scale(0.96);
  background: rgba(0, 52, 102, 0.14);
}

.mobile-nav-item.active {
  color: #003466;
  background: rgba(0, 52, 102, 0.1);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Additional Responsive Adjustments */
@media (max-width: 991.98px) {
  /* section-title handled by fireflystyles.css */
  
  .recommended-card {
    padding: 28px;
  }
  
  .personalization-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  
  .user-progress-summary {
    width: 100%;
    justify-content: space-between;
  }
  
  .recommended-title {
    font-size: 1rem;
  }
  
  .recommended-course-name {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  /* section-title and section-description handled by fireflystyles.css */
  
  .recommended-card {
    padding: 20px;
  }
  
  .personalization-header {
    flex-direction: column;
    gap: 20px;
  }
  
  .user-welcome {
    width: 100%;
  }
  
  .user-greeting {
    font-size: 1.25rem;
  }
  
  .user-activity {
    font-size: 0.875rem;
  }
  
  .user-progress-summary {
    width: 100%;
    justify-content: flex-start;
  }
  
  .recommended-title {
    font-size: 0.9375rem;
  }
  
  .recommended-course-name {
    font-size: 1.375rem;
  }
  
  .recommended-lesson-info {
    font-size: 0.9375rem;
  }
  
  .recommended-meta {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .recommended-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .btn-recommended-primary,
  .btn-recommended-secondary {
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile: Match index.php curriculum card behavior */
  .curriculum-cards-section .row.mb-4 .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 1.5rem;
    margin-right: 0; /* Remove the 1rem right margin from first column */
  }
  
  .curriculum-cards-section .row.mb-4 .col-lg-6:last-child {
    margin-bottom: 0;
  }
  
  .community-section {
    padding: 60px 0;
  }
  
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Add padding to body to account for bottom nav */
  body.amp-training-page {
    padding-bottom: 70px;
  }
  
  .btn-certificate {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   DARK MODE SUPPORT
   ========================================== */

body.dark-mode .hero-section {
  background: #000000;
}

body.dark-mode .hero-feature-boxes::after {
  background: #000;
}

body.dark-mode .hero-feature-boxes {
  background: #000;
}

body.dark-mode .feature-box-number,
body.dark-mode .feature-box-label {
  color: #f5f5f7;
}

body.dark-mode .feature-box {
  border-right: 1px solid #c5defb !important;
}

body.dark-mode .hero-left-stripe {
  background: #003466;
}

body.dark-mode .recommended-section {
  background: #1d1d1f;
}

/* Dark mode section headers handled by fireflystyles.css */

/* Dark mode curriculum cards handled by fireflystyles.css */

body.dark-mode .how-to-card {
  background: #1d1d1f;
  border-color: #424245;
}

body.dark-mode .how-to-card:hover {
  background: #2d2d30;
  border-color: #0a84ff;
}

body.dark-mode .how-to-title {
  color: #f5f5f7;
}

body.dark-mode .how-to-description {
  color: #a1a1a6;
}

body.dark-mode .how-to-image {
  border-color: #2d2d30;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .community-section {
  background: #1d1d1f;
}

body.dark-mode .community-card {
  background: #2d2d30;
  border-color: #424245;
}

body.dark-mode .community-card:hover {
  background: #3d3d40;
}

body.dark-mode .community-title {
  color: #f5f5f7;
}

body.dark-mode .community-description {
  color: #a1a1a6;
}

body.dark-mode .mobile-bottom-nav {
  background: #1d1d1f;
  border-top-color: #424245;
}

body.dark-mode .mobile-nav-item {
  color: #a1a1a6;
}

body.dark-mode .mobile-nav-item.active {
  color: #0a84ff;
  background: rgba(10, 132, 255, 0.1);
}

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

.carousel-btn:focus,
.carousel-dot:focus {
  outline: 3px solid #ffe803;
  outline-offset: 2px;
}

.btn-hero:focus,
.btn-recommended:focus,
.btn-community:focus,
.btn-certificate:focus {
  outline: 3px solid #003466;
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .carousel-slide {
    transition: none;
  }
}
