/* ============================================
   State Page Styles - Education Services
   Brand Colors: Blue (#0090C2) & Orange (#F89725)
   ============================================ */

/* CSS Variables for Brand Colors */
:root {
  --brand-blue: #0090c2;
  --brand-orange: #f89725;
  --brand-blue-dark: #007399;
  --brand-blue-light: #00a8e0;
  --brand-orange-dark: #d67a1a;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6a6a6a;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  background: #ffffff !important;
  background-color: #ffffff !important;
  min-height: 65vh;
  position: relative;
}

.hero-section::before {
  display: none;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.95;
  font-weight: 400;
}

/* Carousel Enhancements */
.carousel-fade .carousel-item {
  transition: opacity 0.6s ease;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  transition: all var(--transition-fast);
}

.carousel-indicators .active {
  background-color: var(--brand-orange);
  width: 12px;
  height: 12px;
}

/* Additional carousel fixes */
.image-gallery {
  margin-bottom: 2rem;
}

#imageCarousel {
  background-color: var(--bg-light);
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

#imageCarousel .carousel-item {
  position: relative;
  overflow: hidden;
}

#imageCarousel .carousel-item img {
  width: 100%;
  height: auto;
  min-height: 250px;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#imageCarousel .carousel-indicators {
  bottom: 10px;
  margin-bottom: 0;
}

#imageCarousel .carousel-indicators [data-bs-target] {
  background-color: rgba(0, 0, 0, 0.3);
}

#imageCarousel .carousel-indicators .active {
  background-color: var(--brand-orange);
}

/* Carousel Controls */
#imageCarousel .carousel-control-prev,
#imageCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

#imageCarousel .carousel-control-prev:hover,
#imageCarousel .carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.5);
}

#imageCarousel .carousel-control-prev {
  left: 10px;
}

#imageCarousel .carousel-control-next {
  right: 10px;
}

#imageCarousel .carousel-control-prev-icon,
#imageCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Carousel Fallback Styles */
#imageCarousel.carousel-fallback {
  position: relative;
}

#imageCarousel.carousel-fallback .carousel-indicators,
#imageCarousel.carousel-fallback .carousel-control-prev,
#imageCarousel.carousel-fallback .carousel-control-next {
  display: none;
}

#imageCarousel.carousel-fallback .carousel-item {
  opacity: 1 !important;
}

#imageCarousel.carousel-initialized {
  opacity: 1;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  border-radius: 8px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all var(--transition-smooth);
  border: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cta {
  background: var(--brand-orange);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(248, 151, 37, 0.3);
}

.btn-cta:hover {
  background: var(--brand-orange-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248, 151, 37, 0.4);
}

.btn-cta-secondary {
  background: var(--brand-blue);
  color: var(--bg-white);
}

.btn-cta-secondary:hover {
  background: var(--brand-blue-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ============================================
   Content Section
   ============================================ */
.content-section {
  background: var(--bg-light);
}

/* Typography */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.subsection-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.content-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-medium);
}

.content-text p {
  margin-bottom: 1rem;
}

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

/* ============================================
   Cards
   ============================================ */
.content-card,
.feature-card,
.list-card,
.links-card {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.content-card:hover,
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.content-card .card-body,
.feature-card .card-body,
.list-card,
.links-card {
  padding: 2rem;
}

/* Feature Cards */
.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-blue-light), var(--brand-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.feature-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin: 0;
}

/* ============================================
   Custom Lists
   ============================================ */
.custom-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.custom-list li:last-child {
  border-bottom: none;
}

.custom-list li:hover {
  padding-left: 8px;
}

.custom-list li i {
  color: var(--brand-orange);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.custom-list li span {
  color: var(--text-medium);
  line-height: 1.6;
}

/* ============================================
   Links Section
   ============================================ */
.links-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-list li {
  margin-bottom: 12px;
}

.links-list li:last-child {
  margin-bottom: 0;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  padding: 8px 0;
}

.link-item:hover {
  color: var(--brand-blue-dark);
  padding-left: 8px;
}

.link-item i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar-card {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.sidebar-card:hover {
  box-shadow: var(--shadow-md);
}

.sidebar-card .card-body {
  padding: 1.75rem;
}

.sidebar-card .card-header {
  background: var(--brand-blue);
  color: var(--bg-white);
  padding: 1rem 1.75rem;
  border: none;
}

.card-header-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* Custom Navbar */
.custom-navbar {
  border-bottom: 3px solid var(--brand-blue);
  box-shadow: 0 2px 4px rgba(0, 144, 194, 0.1);
  padding: 0.5rem 0;
  min-height: 70px;
}

.custom-navbar .navbar-brand {
  color: var(--text-dark) !important;
  font-weight: 600;
}

.custom-navbar .navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: color 0.2s ease;
}

.custom-navbar .navbar-nav .nav-link:hover {
  color: var(--brand-blue) !important;
}

.custom-navbar .navbar-nav .nav-link.active {
  color: var(--brand-blue) !important;
  font-weight: 700;
}

.custom-navbar .navbar-toggler {
  border-color: var(--brand-blue);
  padding: 0.25rem 0.5rem;
}

.custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 144, 194, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em;
  height: 1.5em;
}

/* Navbar Logo */
.navbar-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

/* Custom Footer */
.custom-footer {
  border-top: 3px solid var(--brand-blue);
  box-shadow: 0 -2px 4px rgba(0, 144, 194, 0.1);
  padding: 1.5rem 0;
  min-height: 80px;
}

.footer-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-title {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-text {
  color: var(--text-medium);
  font-size: 0.9rem;
}

.footer-copyright {
  color: var(--text-medium);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Main Header */
.main-header {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Sidebar Text */
.sidebar-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.sidebar-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin: 0;
}

/* CTA Card */
.cta-card {
  background: white;
  border: 2px solid var(--brand-orange);
  box-shadow: 0 4px 14px rgba(248, 151, 37, 0.15);
}

.cta-card .card-body {
  padding: 2rem;
}

.cta-icon {
  width: 64px;
  height: 64px;
  background: rgba(248, 151, 37, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--brand-orange);
  font-size: 1.75rem;
}

.cta-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
}

.cta-text {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cta-card .btn-cta-secondary {
  background: var(--bg-white);
  color: var(--brand-orange);
  font-weight: 700;
}

.cta-card .btn-cta-secondary:hover {
  background: var(--bg-light);
  color: var(--brand-orange-dark);
}

/* Join Academy button in CTA card - Maximum specificity */
.sidebar-card.cta-card .card-body .d-grid .btn-outline-primary {
  background: white !important;
  border: 2px solid #0090c2 !important;
  color: #0090c2 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.sidebar-card.cta-card .card-body .d-grid .btn-outline-primary:hover {
  background: #0090c2 !important;
  color: white !important;
  border-color: #0090c2 !important;
  opacity: 1 !important;
}

/* Fallback for any remaining conflicts */
.cta-card .btn-outline-primary {
  background: white !important;
  border: 2px solid #0090c2 !important;
  color: #0090c2 !important;
}

/* Contact Card */
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  color: var(--brand-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-link {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--brand-blue);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
  .hero-section {
    min-height: 50vh;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .sidebar-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .content-card .card-body,
  .feature-card .card-body {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .content-card .card-body,
  .feature-card .card-body,
  .list-card,
  .links-card {
    padding: 1.25rem;
  }
}

/* Navigation Get Free Plan Button */
.nav-free-plan-btn {
  background-color: var(--brand-orange) !important;
  color: white !important;
  border: 2px solid var(--brand-orange) !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(248, 151, 37, 0.2) !important;
}

.nav-free-plan-btn:hover {
  background-color: var(--brand-orange-dark) !important;
  border-color: var(--brand-orange-dark) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(248, 151, 37, 0.3);
}

.nav-free-plan-btn:focus {
  box-shadow: 0 0 0 3px rgba(248, 151, 37, 0.25);
}

/* Navigation Join Academy Button */
.nav-join-btn {
  border: 2px solid var(--brand-blue) !important;
  color: var(--brand-blue) !important;
  background-color: rgba(0, 144, 194, 0.05) !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none !important;
  margin-left: 15px !important;
  box-shadow: 0 2px 4px rgba(0, 144, 194, 0.1) !important;
}

.nav-join-btn:hover {
  background-color: var(--brand-blue) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 144, 194, 0.3);
}

.nav-join-btn:focus {
  box-shadow: 0 0 0 3px rgba(0, 144, 194, 0.25);
}

/* Mobile responsiveness for nav buttons */
@media (max-width: 991.98px) {
  .nav-free-plan-btn,
  .nav-join-btn {
    margin-left: 0 !important;
    margin-top: 10px !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .nav-free-plan-btn {
    margin-bottom: 8px !important;
  }
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 12px 15px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* Mobile-specific CTA button styles */
.mobile-sticky-free-plan-btn {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  padding: 12px 8px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all var(--transition-fast) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  background-color: var(--brand-orange) !important;
  color: white !important;
  border: 2px solid var(--brand-orange) !important;
  box-shadow: 0 2px 4px rgba(248, 151, 37, 0.2) !important;
}

.mobile-sticky-free-plan-btn:hover {
  background-color: var(--brand-orange-dark) !important;
  border-color: var(--brand-orange-dark) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(248, 151, 37, 0.3);
}

.mobile-sticky-join-academy-btn {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  padding: 12px 8px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all var(--transition-fast) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  border: 2px solid var(--brand-blue) !important;
  color: var(--brand-blue) !important;
  background-color: rgba(0, 144, 194, 0.1) !important;
  box-shadow: 0 2px 4px rgba(0, 144, 194, 0.2) !important;
}

.mobile-sticky-join-academy-btn:hover {
  background-color: var(--brand-blue) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 144, 194, 0.3);
}

.mobile-sticky-free-plan-btn i,
.mobile-sticky-join-academy-btn i {
  font-size: 0.8rem !important;
}

/* Add bottom padding to body to prevent content from being hidden behind sticky bar */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 80px !important;
  }
}

/* ============================================
   Performance Optimizations
   ============================================ */

/* 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;
  }
}

/* Optimize font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* GPU acceleration for transforms */
.btn,
.content-card,
.feature-card,
.sidebar-card {
  will-change: transform;
}

/* Remove will-change after animation */
.btn:hover,
.content-card:hover,
.feature-card:hover {
  will-change: auto;
}
