:root {
    --background: 240 10% 99%;
    --foreground: 240 6% 10%;
    --card: 0 0% 100%;
    --primary: 171 87% 29%;
    --muted: 220 14% 96%;
    --muted-foreground: 220 9% 46%;
    --border: 220 13% 91%;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    margin: 0;
}

.section {
    padding-top: 5rem;
    padding-bottom: 7rem;
}

.section-muted {
    background-color: hsl(var(--muted) / 0.3);
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.courses-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.section-subheading {
    margin-top: 1.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

.courses-container {
    margin-top: 3rem;
    display: grid;
    gap: 3rem;
}

#categoryDropdown {
  display: none;
}

@media (min-width: 768px) {
    .courses-container {
        grid-template-columns: 240px 1fr;
    }
}
/* For mobile screens */
@media (max-width: 768px) {
    #categoryDropdown {
      display: block !important;
      width: 100%;
      padding: 8px;
      font-size: 16px;
      border: 1px solid #ccc;
      border-radius: 8px;
    }
    .category-button {
      display: none;
    }
    .categories-buttons select:focus-visible {
      outline: 2px solid #2c9e8b; 
      outline-offset: 0px;      
    }
}

.course-categories {
    /* Initially hidden on mobile, but we can show it for simplicity or use JS to hide */
}


.categories-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.categories-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.category-button {
    width: 100%;
    justify-content: flex-start;
    font-size: 1rem;
    line-height: 1.6;
    height: auto;
    padding: 0.75rem 1rem;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 0.375rem;
    color: hsl(var(--foreground));
    transition: background-color 0.2s, color 0.2s, font-weight 0.2s;
}

.category-button:hover {
    background-color: hsl(var(--primary) / 0.05);
}

.category-button.active {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    font-weight: 600;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 640px) {
    .course-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .course-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.course-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    height: 100%;
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    box-shadow: 0 6px 16px rgba(12, 18, 26, 0.04);
    transition: box-shadow 0.3s;
}

.course-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
}

.course-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-icon-container {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.course-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: hsl(var(--primary));
}

.course-title {
    font-family: 'Georgia', serif;
    margin-bottom: 0.75rem;
    flex-grow: 1;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-top: 0;
}

.course-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.course-link {
    padding: 0;
    height: auto;
    justify-content: flex-start;
    color: hsl(var(--primary));
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1em;
    align-self: flex-start;
}

.course-link:hover {
    text-decoration: underline;
}
