/* Custom styles for the eLearning platform */

/* Modern Color Scheme */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-bg: #1a202c;
  --card-bg: #f7fafc;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --border-color: #e2e8f0;
}

/* Ensure navbar is always visible */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.navbar.scrolled {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

body {
  /* Reserve space for the fixed navbar so content (carousel) doesn't sit under it */
  padding-top: var(--navbar-height, 76px) !important;
}

.navbar-brand {
  font-weight: 700;
  color: #ffffff !important;
  font-size: 1.7rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-link {
  color: rgba(255,255,255,0.95) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s, background 0.2s;
  border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff !important;
  background: rgba(255,255,255,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.dropdown-menu {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.dropdown-item {
  color: var(--text-primary);
  padding: 0.7rem 1.2rem;
  transition: background 0.2s, color 0.2s;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: var(--primary-gradient);
  color: #fff;
}

.btn-outline-primary {
  color: #667eea;
  border-color: #667eea;
  background: transparent;
  margin-right: 0.5rem;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
}
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3b91 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Main content styles */
body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
  padding-top: 0;
  padding-bottom: 2rem;
  overflow-x: hidden;
}

/* Remove all spacing on home page */
body.home-index .main-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Remove spacing from carousel/slider on home page */
body.home-index #homeCarousel,
body.home-index .home-hero-modern,
body.home-index .carousel {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Ensure alerts don't add space on home page */
body.home-index .alert {
  margin-top: 0 !important;
}

/* Carousel styles */
.home-hero {
  position: relative;
  margin-top: 0;
  margin-bottom: 2rem;
}

.carousel {
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Make carousel height flexible so images are not cropped. Carousel items will center their image. */
.carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  overflow: hidden;
  padding: 0; /* no extra spacing that might push image */
  background: #ffffff;
}

/* Image should be fully visible. Use max constraints so it fits viewport minus navbar. */
.carousel-item img.slide-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - var(--navbar-height, 76px));
  object-fit: contain;
  object-position: center;
}

.carousel-caption {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
  padding: 20px;
  border-radius: 12px;
  bottom: 40px;
  max-width: 800px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.carousel-indicators {
  z-index: 3; /* Above the gradient overlay */
  margin-bottom: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 3; /* Above the gradient overlay */
  width: 10%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home-hero {
    margin-top: -56px; /* Adjust for smaller navbar on mobile */
  }
  
  .carousel-item {
    height: calc(100vh - 56px);
    min-height: 400px;
    max-height: 600px;
  }
  
  .carousel::after {
    height: 56px;
  }
  
  .carousel-caption {
    bottom: 20px;
    padding: 15px;
  }
}

/* Footer styles */
.footer {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: #ffffff;
  padding: 4rem 0 2rem;
  margin-top: auto;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.footer h5 {
  color: #4facfe;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4facfe;
}

.social-links {
  font-size: 1.5rem;
}

.social-links a {
  color: #ffffff;
  margin-right: 1rem;
  transition: color 0.3s ease, transform 0.2s;
  display: inline-block;
}

.social-links a:hover {
  color: #4facfe;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
}

/* Card styles */
.card {
  border: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Course and Blog Card Styles */
.courses-grid, .blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.course-card-link, .blog-card-link {
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-link:hover, .blog-card-link:hover {
  transform: translateY(-8px);
  text-decoration: none !important;
}

.course-card, .blog-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card-link:hover .course-card,
.blog-card-link:hover .blog-card {
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.course-card .course-content,
.blog-card .blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card .course-actions,
.blog-card .blog-actions {
  margin-top: auto;
  padding-top: 1rem;
}

/* Sidebar Layout */
.courses-layout {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: -2rem;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-content {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 2rem;
}

.sidebar h3 {
  color: #1a202c;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-section h4 {
  color: #2d3748;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.search-box {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.filter-option:hover {
  color: #667eea;
}

.filter-option input[type="radio"] {
  margin: 0;
}

.sort-select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
}

.main-content {
  flex: 1;
}

/* Compact Course Cards */
.courses-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.course-card-compact-link {
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-compact-link:hover {
  transform: translateY(-5px);
  text-decoration: none !important;
}

.course-card-compact {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.course-card-compact-link:hover .course-card-compact {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-image-compact {
  position: relative;
  overflow: hidden;
}

.course-content-compact {
  padding: 1rem;
}

/* Auth pages layout and styles are defined in auth_pages.css and loaded only on Devise pages. */


.course-title-compact {
  color: #1a202c;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.course-description-compact {
  color: #718096;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.course-stats-compact {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stat-item-compact {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #718096;
  font-size: 0.75rem;
}

.stat-item-compact i {
  color: #667eea;
}

.course-footer-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.course-price-compact {
  color: #38a169;
  font-weight: 600;
  font-size: 1rem;
}

.course-action-compact {
  color: #667eea;
  font-size: 0.9rem;
}

/* Header Styles */
.courses-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.courses-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.courses-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Featured blog styles */
.featured-blog-link:hover .blog-featured {
  transform: translateY(-5px);
}

.featured-blog-link:hover {
  text-decoration: none !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .courses-grid-compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .courses-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .sidebar-content {
    position: static;
  }
  
  .courses-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .courses-grid, .blogs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .courses-grid-compact {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .blog-featured > div {
    flex-direction: column !important;
    min-height: auto !important;
  }
  
  .blog-featured .blog-image {
    flex: none !important;
    height: 200px;
  }
  
  .blog-featured .blog-content {
    flex: none !important;
  }
  
  .courses-layout {
    padding: 1rem;
  }
}

/* Button hover effects */
.btn-view, .btn-read {
  transition: all 0.3s ease;
}

.course-card-link:hover .btn-view,
.blog-card-link:hover .btn-read,
.featured-blog-link:hover .btn-read {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


.slide-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: contain !important;
  background-color: #f8f9fa;
  border-radius: 8px;
}

/* Ensure slides maintain aspect ratio */
.carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

/* Responsive slide images */
@media (max-width: 768px) {
  .slide-image {
    height: 300px;
  }
  
  .slide-thumbnail {
    height: 150px;
  }
}
/* Custom Carousel Styles - Updated for Modern Look */
.home-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 0;
  min-height: 500px;
}

.carousel-item {
  position: relative;
  min-height: 400px;
  height: auto;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.slide-image {
  max-width: 90%;
  height: auto !important;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .slide-image {
    max-width: 95%;
    height: auto !important;
    margin: 0 auto;
  }
  .home-hero {
    width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 !important;
  }
  .carousel-item {
    min-height: 250px;
    padding: 1rem 0;
  }
  .carousel-caption {
    position: relative;
    right: auto;
    left: auto;
    padding: 1rem;
  }
}

.slide-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .carousel-item {
    aspect-ratio: 16 / 5;
    height: auto;
  }
}
.carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  bottom: 2rem;
}

.carousel-caption h5 {
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 1.5rem;
}

.carousel.carousel-fade .carousel-item {
    transition-property: opacity;
}

.carousel.carousel-fade .carousel-item,
.carousel.carousel-fade .active.left,
.carousel.carousel-fade .active.right {
    opacity: 0;
}

.carousel.carousel-fade .active,
.carousel.carousel-fade .next.left,
.carousel.carousel-fade .prev.right {
    opacity: 1;
}

.carousel.carousel-fade .next,
.carousel.carousel-fade .prev,
.carousel.carousel-fade .active.left,
.carousel.carousel-fade .active.right {
    left: 0;
    transform: translate3d(0, 0, 0);
}
/* Fix for carousel overlap with navbar */
.home-hero {
  margin-top: 0;
  position: relative;
  z-index: 1; /* Lower than navbar */
}

/* Set proper height for carousel items */
.carousel-item {
  height: 600px; /* Fixed height */
  overflow: hidden;
  background: #ffffff;
}

/* Image sizing and positioning */
.carousel-item img.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This will cover the area without stretching */
  object-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-item {
    height: 400px;
  }
  
  .navbar {
    position: fixed !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #ffffff !important;
  }
}

/* Ensure navbar stays on top */
.navbar {
  position: fixed !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
/* Modern Home Page Styles */

/* ===== Hero Section ===== */
.home-hero-modern {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  min-height: 700px;
  background: #000;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.home-hero-modern .carousel-item {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.slide-image-modern {
  width: 100%;
  height: 700px;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.35) 0%, rgba(118, 75, 162, 0.4) 100%);
  z-index: 1;
}

.carousel-caption-modern {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  text-align: center;
  bottom: auto;
  right: auto;
}

.caption-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  background: rgba(30, 30, 50, 0.75);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 2rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Compact variant: only two small buttons */
.hero-cta.only-buttons {
  gap: 0.9rem;
  background: transparent;
}
.carousel-caption-modern .hero-cta.only-buttons {
  padding: 0;
}
.hero-cta.only-buttons .btn-hero-primary,
.hero-cta.only-buttons .btn-hero-outline {
  padding: 1rem 2.4rem;
  font-size: 1rem;
  border-radius: 40px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* Position caption at bottom when using bottom-buttons */
.carousel-caption-modern.bottom-buttons {
  top: auto;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  right: auto;
  text-align: center;
}

@media (max-width: 768px) {
  .carousel-caption-modern.bottom-buttons {
    bottom: 24px;
  }
  .hero-cta.only-buttons .btn-hero-primary,
  .hero-cta.only-buttons .btn-hero-outline {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
  }
}

.btn-hero-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  color: #5a67d8;
  border: none;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-hero-primary:hover::before {
  width: 400px;
  height: 400px;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.3);
  color: #4c51bf;
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.9);
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.btn-hero-outline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-hero-outline:hover::before {
  width: 400px;
  height: 400px;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #5a67d8;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Carousel Controls */
.home-hero-modern .carousel-control-prev,
.home-hero-modern .carousel-control-next {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.home-hero-modern .carousel-control-prev {
  left: 30px;
}

.home-hero-modern .carousel-control-next {
  right: 30px;
}

.home-hero-modern .carousel-control-prev:hover,
.home-hero-modern .carousel-control-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.home-hero-modern .carousel-control-prev-icon,
.home-hero-modern .carousel-control-next-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.home-hero-modern .carousel-indicators {
  bottom: 30px;
  margin-bottom: 0;
}

.home-hero-modern .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  margin: 0 6px;
}

.home-hero-modern .carousel-indicators .active {
  width: 40px;
  border-radius: 6px;
  background-color: #ffffff;
  transform: scale(1.1);
}

/* Hero Fallback */
.hero-fallback {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
}

/* ===== Statistics Section ===== */
.stats-section {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 1px solid #e9ecef;
}

.stat-card {
  padding: 2rem 1rem;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #6c757d;
  font-weight: 500;
  margin: 0;
  font-size: 1.1rem;
}

/* ===== Features Section ===== */
.features-section {
  background: #f8f9fa;
}

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-align: center;
}

.feature-desc {
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1rem;
}

.feature-link {
  display: inline-block;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.feature-link::after {
  content: ' →';
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.feature-link:hover {
  color: #764ba2;
}

.feature-link:hover::after {
  margin-left: 10px;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.5;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section .btn-light {
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  background: white;
}

/* ===== Trust Badges ===== */
.trust-section {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.trust-badge {
  padding: 1rem;
  transition: transform 0.3s ease;
}

.trust-badge:hover {
  transform: scale(1.1);
}

.trust-badge i {
  transition: transform 0.3s ease;
}

.trust-badge:hover i {
  transform: rotate(10deg) scale(1.1);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .home-hero-modern .carousel-item {
    min-height: 500px;
  }
  
  .slide-image-modern {
    height: 500px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.95rem;
  }
  
  .feature-card {
    margin-bottom: 1rem;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
  
  .cta-section .lead {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .home-hero-modern .carousel-item {
    min-height: 400px;
  }
  
  .slide-image-modern {
    height: 400px;
  }
  
  .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

.animate__delay-1s {
  animation-delay: 0.3s;
}

.animate__delay-2s {
  animation-delay: 0.6s;
}

/* ===== Carousel Controls Enhancement ===== */
.home-hero-modern .carousel-control-prev-icon,
.home-hero-modern .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 2rem;
  backdrop-filter: blur(5px);
}

.home-hero-modern .carousel-control-prev:hover .carousel-control-prev-icon,
.home-hero-modern .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.home-hero-modern .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  opacity: 0.7;
}

.home-hero-modern .carousel-indicators button.active {
  opacity: 1;
  background-color: white;
}
.devise-container { position: relative; z-index: 10; }
/* Safeguard: ensure no accidental overlays block input interaction */
form input, form select, form textarea, form button { position: relative; z-index: 11; }
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *






 */

/* Force override all backgrounds and navbar to clean white theme */
body {
  background-color: #ffffff !important;
}

.navbar {
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

.navbar-brand {
  color: #1a2980 !important;
}

.nav-link {
  color: #2c3e50 !important;
}

.nav-link:hover,
.nav-link:focus {
  color: #007bff !important;
}

.carousel-item {
  background: #ffffff !important;
}

.featured-courses-section {
  background: #ffffff !important;
}

.course-slider-section {
  background: #f8f9fa !important;
}

.dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #e9ecef !important;
}

.dropdown-item {
  color: #2c3e50 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: #007bff !important;
  color: #ffffff !important;
}
