/* General Styles */
.moodle-course-details * {
    font-family: inherit !important; /* Forces Montserrat */
}

body {
    font-family: inherit; /* Inherits Montserrat from the theme */
    background-color: #f9f9f9;
    color: #333;
}

/* Hero Banner */
.course-hero {
    position: relative;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: bold;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3); /* Darker shadow */
}

.course-hero-overlay {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px;
    text-align: center;
    width: 75%;
    border-radius: 8px;
}

.course-hero h1 {
    font-size: 36px; /* Bigger for better readability */
    margin: 0;
    color: #fff;
}

.course-meta {
    font-size: 18px;
    margin-top: 8px;
    opacity: 0.9;
}

/* Course Content Layout */
.course-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 50px;
    margin: auto;
}

/* Course Description */
.course-description {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2); /* Darker shadow */
}

.course-description h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
}

/* Gradient Divider Under Headings */
.course-description h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    margin-top: 5px;
}

/* Course Description Text */
.course-description p {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
}

/* Sidebar Section */
.course-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Course Card */
.course-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0px 5px 9px rgba(0, 0, 0, 0.2); /* Darker shadow */
}

.course-card h3 {
    font-size: 22px;
    color: #0073aa;
    margin-bottom: 10px;
}

/* Course Details List */
.course-card ul {
    list-style: none;
    padding: 0;
}

.course-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 18px;
}

/* Enroll Button */
.button {
    text-align: center;
    background: #ff6600;
    color: #fff;
    padding: 14px 22px;
    font-size: 20px; /* Bigger */
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    display: block;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Darker shadow */
}

.button:hover {
    background: #cc5200;
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .course-content {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .course-hero {
        height: 220px;
    }

    .course-hero-overlay {
        width: 85%;
    }
}
