/* Typography and Colors */
:root {
    --primary-blue: #007bff;
    --dark-gray: #343a40;
    --light-gray: #f8f9fa;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    background-color: #fff; 
}

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

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0056b3;
}

/* Header and Navigation */
header {
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: #fff;
}

header .container {
    padding: 0 1rem !important; /* Add horizontal padding */
    margin: 0 auto !important;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px !important; /* Force the height */
    min-height: 60px !important; /* Force the min-height */
    margin: 0 !important;
}

/* Course Cards */
.course-section {
    margin-top: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

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

.course-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.course-card a {
    text-decoration: none;
    color: inherit;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Arrange items vertically */
    height: 100%; /* Make the link fill the card */
}

.course-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card-content {
    padding: 1.5rem;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Arrange items vertically */
    flex-grow: 1; /* Allow content to grow and fill available space */
}

.course-card-title {
    margin-top: 0;
    font-size: 1.25rem;
}

.course-card-description {
    font-size: 1rem;
    color: #6c757d;
    flex-grow: 1; /* Allow description to grow and push the button down */
}

.course-card-button {
    display: block; /* Make the button a block element */
    margin-top: auto; /* Push the button to the bottom */
    padding: 0.5rem 1rem;
    background-color: var(--primary-blue);
    color: #fff;
    border-radius: 4px;
    text-align: center;
}

/* Footer */
footer {
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    background-color: var(--light-gray);
}
