* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.background-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    background-color: #f8e8e8;
    z-index: -1;
    border-radius: 0 50% 50% 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin: 30px 0;
}

header h1 {
    font-size: 2.5rem;
}

header h1 span:first-child {
    color: #3498db;
}

header h1 span:last-child {
    color: #e74c3c;
}

.search-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.search-box {
    display: flex;
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
    flex-wrap: wrap;
}

.banner-text {
    flex: 1;
    min-width: 300px;
    margin-right: 20px;
}

.banner-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #444;
}

.banner-text h2 .highlight {
    color: #e74c3c;
}

.banner-text p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 15px;
}

.banner-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 400px;
}

.banner-image img {
    width: 100%;
    height: auto;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    color: white;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.badge-free {
    background: #27ae60;
    color: white;
}

.badge-premium {
    background: #f39c12;
    color: white;
}

.course-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    padding: 20px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #777;
}

.course-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.course-duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.course-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    min-height: 60px;
}

.course-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.course-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #006aff;
    border: 6px solid #c0dfff;
    color: white;
    gap: 8px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
    width: 100%;
}

.text {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 1px;
}

.svg {
    padding-top: 3px;
    height: 100%;
    width: fit-content;
}

.svg svg {
    width: 35px;
    height: 20px;
}

.button:hover {
    border: 6px solid #b1d8ff;
    background-color: #1b7aff;
    text-decoration: none;
}

.button:active {
    border: 4px solid #c0dfff;
}

.footer {
    background-color: #f9f9f9;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    margin-top: 50px;
}

.copyright-text {
    color: #333;
    font-size: 14px;
    margin: 0;
    padding: 5px 0;
}

.designer-text {
    color: #333;
    font-size: 14px;
    margin: 0;
    padding: 5px 0;
}

.designer-name {
    color: #ff3e3e;
    text-decoration: none;
    font-weight: 500;
}

.social-icons-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: #f9f9f9;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-icons a {
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.social-icons a i {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .banner {
        flex-direction: column;
    }

    .banner-text {
        margin-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .banner-image {
        justify-content: center;
    }

    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .filter-container {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}