/* Courses Page Styles */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
    font-weight: 800;
}

/* Courses Filter Section */
.courses-filter {
    background-color: white;
    padding: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 5px 0 0 5px;
    font-family: var(--font-body);
}

.search-box button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.filter-dropdown select {
    padding: 0.8rem 2rem 0.8rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    background-color: white;
    font-family: var(--font-body);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 0.5rem) center;
}

/* Featured Course */
.featured-course {
    padding: 5rem 0;
}

.featured-course-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-course-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.featured-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.featured-course-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 800;
    line-height: 1.3;
}

.course-description {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.course-meta span i {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.course-instructor {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.course-instructor img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--primary);
}

.instructor-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.instructor-title {
    font-size: 0.85rem;
    color: var(--gray);
}

.course-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    font-family: var(--font-heading);
}

.enroll-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.enroll-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.featured-course-image {
    position: relative;
    overflow: hidden;
}

.featured-course-image::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background-color: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
}

.featured-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Courses Grid */
.courses-grid {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.course-level {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.beginner {
    background-color: #10b981; /* Green */
}

.intermediate {
    background-color: #f59e0b; /* Amber */
}

.advanced {
    background-color: #ef4444; /* Red */
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.4;
}

.course-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.course-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.course-details span {
    display: flex;
    align-items: center;
    color: var(--gray);
    font-size: 0.85rem;
}

.course-details span i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-course {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.view-course:hover {
    color: var(--primary-dark);
}

.view-course:after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.view-course:hover:after {
    transform: translateX(3px);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
}

.testimonial-content i {
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -5px;
}

.testimonial-content p {
    color: var(--gray);
    line-height: 1.8;
    font-style: italic;
    padding-left: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--primary);
}

.testimonial-author h4 {
    margin-bottom: 0.2rem;
    color: var(--dark);
}

.testimonial-author p {
    color: var(--gray);
    font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-section .cta-button {
    background-color: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.cta-section .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/courses-header.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-course-card {
        grid-template-columns: 1fr;
    }
    
    .featured-course-image {
        height: 300px;
        order: -1;
    }
    
    .courses-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}
