/* Course Hero Section Styling */
.course-hero-section {
    background-color: #F0F4FF;
    padding: 60px 0;
    margin-bottom: 40px;
}

.course-hero-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 20px;
}

.course-hero-section .course-hero-content {
    max-width: 600px;
}

.course-hero-content {
    flex: 1;
}

.course-hero-category {
    background: #D9E4FF;
    color: #01598c;
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.course-hero-content h1 {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.course-hero-subtext {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.6;
}

.course-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #ffffff;
}

.meta-item i {
    color: #01598c;
    font-size: 18px;
}

.course-hero-image {
    flex: 0 0 500px;
}

.course-hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.course-enroll-btn {
    background-color: #01598c;
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-enroll-btn:hover {
    background-color: #2a5bd7;
    color: #fff;
    transform: translateY(-2px);
}

/* Icons */
.course-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    fill: #01598c;
}

@media (max-width: 991px) {
    .course-hero-container {
        flex-direction: column;
        text-align: center;
    }

    .course-hero-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
    }

    .course-hero-meta {
        justify-content: center;
    }
}

/* Course Tabs Styling */
.course-tabs-wrapper {
    margin-bottom: 50px;
    border-bottom: 1px solid #e1e7ec;
}

.course-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid #eee;
}

.course-tabs-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tab-content p,
.tab-content li {
    font-size: 18px;
    line-height: 32px;
}

.tab-link {
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #5d6d7e;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}

.tab-link:hover {
    color: #01598c;
}

.tab-link.active {
    color: #01598c;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #01598c;
}

.course-tabs-content {
    padding: 40px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h3 {
    margin-bottom: 20px;
}

.container {
    margin: 0 auto;
    max-width: 1300px;
    width: 100%;
}

@media (max-width: 768px) {
    .tab-link {
        padding: 12px 15px;
        font-size: 14px;
    }

    .tab-content p,
    .tab-content li {
        font-size: 16px;
        line-height: 28px;
    }

    .tab-content {
        padding: 0 15px;
    }
}

/* Related Courses Section */
.related-courses-section {
    padding: 40px 0 0;
}

.related-courses-header {
    margin-bottom: 50px;
}

.related-courses-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #000;
}

.related-courses-header p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
}

.related-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.course-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.course-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card-cat {
    color: #01598c;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.course-card-body h3 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-card-body h3 a {
    color: #000;
    text-decoration: none;
}

.course-card-body p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.course-card-footer {
    margin-top: auto;
}

.view-course-btn {
    background: #01598c;
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    font-size: 15px;
    transition: background 0.3s ease;
}

.view-course-btn:hover {
    background: #2a5bd7;
    color: #fff;
}

section.course-hero-section.commonbg {
    padding-top: 200px;
}

@media (max-width: 991px) {
    .related-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-courses-grid {
        grid-template-columns: 1fr;
    }

    .related-courses-header h2 {
        font-size: 28px;
    }
}