/**
 * Courses Page Styles
 */

/* Main Container */
.courses-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

/* Hero Section */
.courses-hero {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.courses-hero h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.courses-hero .subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
}

/* Tab Filter Menu */
.courses-tabs {
    margin-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.tab-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-menu li {
    margin: 0 1rem;
    padding: 0.8rem 0;
}

.tab-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
}

.tab-menu li.active a {
    color: #9c7c38;
    font-weight: 600;
}

.tab-menu li.active {
    border-bottom: 3px solid #9c7c38;
}

.tab-menu li a:hover {
    color: #9c7c38;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    color: #333;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #333;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Course Card */
.course-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.course-thumb {
    position: relative;
    overflow: hidden;
}

.course-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.course-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.course-tag.video {
    background-color: #9c7c38;
}

.course-tag.audio {
    background-color: #8b5e3c;
}

.course-tag.live {
    background-color: #b12025;
}

.course-title {
    font-size: 1.3rem;
    margin: 1.2rem 1.5rem 0.6rem;
    color: #333;
    line-height: 1.3;
}

.course-desc {
    color: #666;
    font-size: 0.95rem;
    margin: 0 1.5rem 1rem;
    line-height: 1.5;
}

.course-meta {
    padding: 0 1.5rem;
    margin-bottom: 1.2rem;
}

.course-instructor {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: #444;
}

.course-instructor span {
    color: #777;
}

.course-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
}

.course-stats span {
    display: flex;
    align-items: center;
}

.course-stats i {
    margin-right: 0.4rem;
    font-size: 1rem;
}

.course-cta {
    display: block;
    text-align: center;
    background-color: #9c7c38;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    margin: 0 1.5rem 1.5rem;
    transition: background-color 0.3s ease;
}

.course-cta:hover {
    background-color: #8b6d29;
}

/* View More Button */
.view-more {
    text-align: center;
    margin-bottom: 3rem;
}

.btn-view-more {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 2px solid #9c7c38;
    color: #9c7c38;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    background-color: #9c7c38;
    color: #fff;
}

/* Featured Course Section */
.featured-course {
    background-color: #f8f5f0;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.featured-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-text {
    flex: 0 0 55%;
    padding-right: 2rem;
}

.featured-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.featured-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.featured-highlights li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #444;
}

.featured-highlights li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #9c7c38;
    font-weight: bold;
}

.featured-image {
    flex: 0 0 40%;
}

.featured-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-featured {
    display: inline-block;
    background-color: #9c7c38;
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-featured:hover {
    background-color: #8b6d29;
}

/* Course Benefits Section */
.course-benefits {
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-icon i {
    font-size: 3rem;
    color: #9c7c38;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .featured-content {
        flex-direction: column;
    }
    
    .featured-text {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .featured-image {
        flex: 0 0 100%;
    }
}

@media screen and (max-width: 768px) {
    .courses-hero h1 {
        font-size: 2rem;
    }
    
    .tab-menu {
        flex-wrap: wrap;
    }
    
    .tab-menu li {
        margin: 0 0.5rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-highlights li {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .courses-hero {
        padding: 3rem 0;
    }
    
    .tab-menu li {
        margin: 0 0.3rem;
    }
    
    .tab-menu li a {
        font-size: 0.9rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-text h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2,
    .section-title {
        font-size: 1.6rem;
    }
}
