/* Hero Section */
.hero-section {
    height: 400px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    display: flex;
    align-items: center;
    margin-top: 74px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-left: 20px;
    max-width: 500px;
}

.hero-content h1 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content .highlight {
    color: #FF9B10;
    font-size: 24px;
    font-weight: 800;
    margin: 20px 0;
}

.hero-content p {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.promo-btn {
    display: inline-block;
    background-color: white;
    color: #FF9B10;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 18px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.promo-btn:hover {
    background-color: #FFEECC;
}

/* Catalog Section */
.catalog-section {
    padding: 60px 0;
}

.catalog-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

/* Filter Section */
.filter-section {
    margin-bottom: 40px;
}

.filter-label, .categories-label {
    font-size: 14px;
    font-weight: 700;
    color: #ADB5BD;
    margin-bottom: 15px;
    display: block;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #4CAF50;
    transition: all 0.3s ease;
    background-color: white;
    color: #4CAF50;
    text-decoration: none;
}

.filter-btn.active {
    background-color: #1B760A;
    color: white;
    border-color: #1B760A;
}

.filter-btn:not(.active):not(.outline) {
    background-color: white;
    color: #4CAF50;
}

.filter-btn.outline {
    background-color: white;
    border-color: #4CAF50;
    color: #4CAF50;
}

/* Categories Section */
.categories-section {
    margin-bottom: 40px;
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px 15px;
}

.category-btn {
    padding: 20px 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background-color: #CFE5D9;
    color: #00695C;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.category-btn.active {
    background-color: #4CAF50;
    color: white;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background-color: #FAF9F6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 480px; /* Fixed height to match design */
}

.course-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .card-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #FF9B10;
    color: white;
    padding: 8px 15px;
    border-radius: 0 0 0 8px;
    font-size: 18px;
    font-weight: 400;
}

.top-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #FF1010;
    color: white;
    padding: 8px 15px;
    border-radius: 0 0 0 8px;
    font-size: 18px;
    font-weight: 400;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    color: #4CAF50;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-content p {
    color: #333;
    font-size: 12px;
    margin-bottom: 25px;
    font-weight: 300;
    line-height: 1.4;
}

.course-btn {
    display: block;
    width: 200px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin: auto auto 0;
    margin-top: auto;
}

.course-btn:hover {
    background-color: #388E3C;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #004B00;
    color: #004B00;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.pagination-item.active {
    background-color: #004B00;
    color: white;
}

.pagination-item:hover:not(.active) {
    background-color: #E8F5E9;
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 60px 0;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .category-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .course-btn {
        width: 100%;
    }
}
