/* ================================
   Hero Section (Full Display)
================================ */
.courses-hero {
  position: relative;
  background: url('../images/course-1.jpg') center/cover no-repeat;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.courses-hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* overlay for readability */
  z-index: 1;
}

.courses-hero .hero-content {
  position: relative;
  z-index: 2;
}

.courses-hero .hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.courses-hero .breadcrumbs {
  margin-bottom: 15px;
  font-size: 1rem;
}

/* ================================
   Wrapper Section
================================ */
.courses-section-wrapper {
    width: 100%;
    background: url('../images/work-9.jpg') center/cover no-repeat;
    padding: 60px 0; /* vertical padding */
}

/* Container for sidebar + courses */
.about-sections {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap; /* allow wrapping on small screens */
}

/* ================================
   Sidebar Filter
================================ */
.sidebar {
    flex: 1;
    min-width: 200px;
}
.sidebar h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 20px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar li {
    margin-bottom: 10px;
}
.sidebar li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 5px;
    background: rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}
.sidebar li a:hover {
    background: #1f8f82;
}
.sidebar li.active-class a {
    background: #1f8f82;
    font-weight: bold;
}

/* ================================
   Courses Grid
================================ */
.courses-container {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 80px; /* gap between cards */
}

/* ================================
   Flip Card Styles
================================ */
.flip-box {
    width: 100%;
    height: 250px;
    perspective: 1000px;
}
.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 10px;
}
.flip-box:hover .flip-box-inner {
    transform: rotateY(180deg);
}

/* Front & Back */
.flip-box-front, 
.flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Front */
.flip-box-front {
    background-color: #fff;
    color: #141452;
}
.flip-box-front h5 {
    font-size: 22px; /* course name size */
    margin-bottom: 10px;
}
.flip-box-front p {
    font-size: 18px; /* class name size */
    color: #666;
}

/* Back */
.flip-box-back {
    background-color: #C8C8C8;
    transform: rotateY(180deg);
    color: #141452;
    overflow-y: auto;
}
.flip-box-back h6 {
    font-size: 20px;
    margin-bottom: 10px;
}
.flip-box-back p {
    font-size: 18px;
    line-height: 1.5;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 5px;
    color: #3939ac; 
}

/* Scrollbar for description */
.flip-box-back p::-webkit-scrollbar {
    width: 6px;
}
.flip-box-back p::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}
.flip-box-back p::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

/* Button inside back */
.flip-box-back .btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: #141452;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}
.flip-box-back .btn:hover {
    background: #1f8f82;
}

/* ================================
   Responsive
================================ */
@media (max-width: 992px) {
    .about-sections {
        flex-direction: column;
    }
    .sidebar {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .courses-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 40px; /* reduce gap on small screens */
    }
}
.no-course {
  color: #fff;
  font-size: 22px;
  text-align: center;
  margin-top: 20px;
}