/* Custom styles for the eLearning platform */


/* Navbar styles */
.navbar {
  background: linear-gradient(90deg, #1a2980 0%, #26d0ce 100%) !important;
  box-shadow: 0 2px 8px rgba(26,41,128,0.08);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: #fff !important;
  font-size: 1.7rem;
  letter-spacing: 1px;
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s, background 0.2s;
  border-radius: 4px;
}

.nav-link:hover, .nav-link.active {
  color: #26d0ce !important;
  background: rgba(255,255,255,0.08);
}

.navbar-toggler {
  border: none;
}

.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.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.dropdown-menu {
  background: #1a2980;
  border: none;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(26,41,128,0.12);
}

.dropdown-item {
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: #26d0ce;
  color: #fff;
}

.btn-outline-primary {
  color: #fff;
  border-color: #fff;
  background: transparent;
  margin-right: 0.5rem;
}
.btn-outline-primary:hover {
  background: #26d0ce;
  color: #fff;
  border-color: #26d0ce;
}
.btn-primary {
  background: #26d0ce;
  border: none;
}
.btn-primary:hover {
  background: #1a2980;
  color: #fff;
}

/* Main content styles */
body {
  background-color: #f8f9fa;
  color: #2c3e50;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Carousel styles */
.carousel {
  margin-bottom: 2rem;
  margin-top: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.carousel-item {
  max-height: 600px;
}

.carousel-caption {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 8px;
}

/* Footer styles */
.footer {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer h5 {
  color: #3498db;
  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: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #3498db;
}

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

.social-links a {
  color: #ffffff;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #3498db;
}

.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;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

/* 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: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  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;
}

.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: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Responsive slide images */
@media (max-width: 768px) {
  .slide-image {
    height: 300px;
  }
  
  .slide-thumbnail {
    height: 150px;
  }
}
/* Custom Carousel Styles */
.home-hero {
  position: relative;
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  z-index: 2;
}

.carousel-item {
  position: relative;
  min-height: 260px; /* safety for very small viewports */
}

.slide-image {
  width: 100vw !important;
  min-width: 100vw !important;
  max-width: 100vw !important;
  height: 600px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

@media (max-width: 768px) {
  .slide-image {
    height: 320px;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
  }
  .home-hero {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 !important;
  }
}

.slide-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  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);
}
.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.
 *



 */
