/* courses-style-v2.css */

:root {
    --primary-color: #004080; /* Deep Blue */
    --secondary-color: #1e90ff; /* Dodger Blue */
    --accent-color: #f0f8ff;   /* Alice Blue */
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #ffffff;
    --background-grey: #f9f9f9;
}

/* Hero Section */
.courses-hero {
    background: linear-gradient(rgba(0, 64, 128, 0.8), rgba(30, 144, 255, 0.7)), url('https://images.pexels.com/photos/267885/pexels-photo-267885.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    color: white;
    padding: 120px 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.courses-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.courses-hero p {
    font-size: 1.6rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* Section General Styles */
.section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light grey background */
}

/* Course Category */
.course-category {
    margin-bottom: 60px;
    background: var(--background-light);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.category-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.category-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.course-card-v2 {
    background: var(--background-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 40px 25px;
}

.course-card-v2 .card-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1;
}

.course-card-v2 .course-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.course-card-v2 .course-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .courses-hero {
        clip-path: none;
        padding: 100px 0;
    }

    .category-title {
        font-size: 2.2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }
}
