/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../../uploads/kpi.png') no-repeat center center/cover; /* Replace hero-bg.jpg with an actual image in your assets/images folder */
    color: #fff;
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensures a good height for the hero section */
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Courses Section --- */
.container.my-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.text-center.mb-5 h2 {
    font-size: 2.5rem;
    color: #0056b3; /* A nice blue for headings */
    margin-bottom: 15px;
    font-weight: 600;
}

.text-center.mb-5 p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

/* Course Card Styles */
.course-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.course-card .card-img-top {
    width: 100%;
    height: 180px; /* Fixed height for consistent image display */
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-bottom: 1px solid #e0e0e0;
}

.course-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 180px - 60px); /* Adjust based on image and footer height */
}

.course-card .card-title {
    font-size: 1.35rem;
    color: #007bff; /* Bootstrap primary blue */
    margin-bottom: 10px;
    font-weight: 600;
}

.course-card .card-text {
    font-size: 0.95rem;
    color: #666;
    flex-grow: 1; /* Allows text to take up available space */
    margin-bottom: 15px; /* Space before the footer */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit text to 3 lines */
    -webkit-box-orient: vertical;
}

.course-card .card-footer {
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    text-align: center;
}

.course-card .btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 500;
}

.course-card .btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .text-center.mb-5 h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 80px 0;
        min-height: 300px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .text-center.mb-5 h2 {
        font-size: 1.8rem;
    }

    .course-card .card-img-top {
        height: 160px;
    }

    .course-card .card-title {
        font-size: 1.2rem;
    }

    .course-card .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 60px 0;
        min-height: 250px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .text-center.mb-5 h2 {
        font-size: 1.5rem;
    }

    .course-card .card-img-top {
        height: 140px;
    }
}