/* =============================================== */
/* --- Fonts & Global Variables --- */
/* =============================================== */
:root {
    --primary-color: #4F46E5; /* Indigo */
    --primary-hover: #4338CA;
    --secondary-color: #FBBF24; /* Amber for highlights */
    --dark-color: #111827; /* Dark Gray */
    --body-color: #f8f9fa; /* Light Gray background */
    --text-color: #374151;
    --heading-font: 'Raleway', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

body {
    font-family: var(--body-font);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

/* =============================================== */
/* --- Custom Button Styling --- */
/* =============================================== */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* =============================================== */
/* --- Navbar --- */
/* =============================================== */
.navbar-brand-text {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}


/* =============================================== */
/* --- Hero Section --- */
/* =============================================== */
.hero {
    background: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.7)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?fit=crop&w=1351&q=80') center center/cover no-repeat;
    padding: 100px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================== */
/* --- Courses Section --- */
/* =============================================== */
.courses-section {
    background-color: #ffffff;
}

.section-title {
    color: var(--dark-color);
    font-weight: 800;
    font-size: 2.5rem;
}

/* --- Course Card Styling --- */
.course-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensures image corners are rounded */
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.course-card .card-title {
    color: var(--dark-color);
    font-size: 1.25rem;
}

.course-card .course-price {
    color: var(--primary-color);
    font-weight: 700;
}

.course-card .course-rating {
    font-size: 0.9rem;
    color: #6B7280; /* Gray-500 */
}

.course-card .course-rating .bi-star-fill {
    color: var(--secondary-color);
}

/* =============================================== */
/* --- Footer --- */
/* =============================================== */
.footer {
    background-color: var(--dark-color);
}

.footer .footer-brand {
    font-family: var(--heading-font);
    font-weight: 800;
    color: #ffffff;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color) !important;
}

.footer .bi {
    font-size: 1.5rem;
}

/* =============================================== */
/* --- Responsive Design --- */
/* =============================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .footer {
        text-align: center;
    }
}