.course-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    column-gap: 20px;
    row-gap: 40px;
}

.course-card {
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform .2s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card-image-link {
    display: block;
    height: 232px;
    border-radius: 18px;
    overflow: hidden;
}

.course-card-image {
    width: 100%;
    height: 232px !important;
    object-fit: cover;
    display: block;
    z-index: 10;
    position: relative;
    border-radius: 18px !important;
}

.course-card-content {
    background-color: var(--soc-card-bg-color, #6A4B3F);
    color: var(--soc-card-title-color, #FFFFFF);
    font-family: var(--soc-card-font-family, sans-serif);
    padding: 24px 10px 0;
    height: 200px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-top: -16px;
    border-radius: 0 0 18px 18px;
    align-items: center;
}

.course-card-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.course-card-title a {
    color: var(--soc-card-title-color, #FFFFFF);
    text-decoration: none;
}

.course-card-title a:hover {
    color: #ffffff;
    opacity: 0.9;
}

.course-card-description {
    color: var(--soc-card-desc-color, #e0e0e0);
    font-size: .9rem;
    text-align: center;
    margin-bottom: 10px;
    flex-grow: 1;
    line-height: 1.5;
}

.course-card-link {
    background-color: var(--soc-card-btn-bg-color, #0081A7);
    color: var(--soc-card-btn-text-color, #FFFFFF) !important;
    display: inline-block;
    padding: 10px 28px;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-size: .9rem;
    font-weight: 500;
    transition: background-color .2s, color .2s;
    width: auto;
    margin-top: auto;
    margin-bottom: -20px;
}

.course-card-link:hover {
    background-color: #fff;
    color: var(--soc-card-btn-bg-color, #0081A7) !important;
}


.category-hero-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.category-hero-inner {
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.category-hero-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--soc-hero-overlay-color, #000);
    opacity: .5;
    z-index: 1;
}

.hero-content {
    color: var(--soc-hero-title-color, #FFFFFF);
    font-family: var(--soc-hero-font-family, sans-serif);
    padding: 20px;
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

.category-hero-title {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
}

.hero-description {
    font-size: 1.25rem;
    margin: 10px 0 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .5);
}


.course-faqs-accordion {
    width: 100%;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: #f7f7f7;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.15rem;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #eee;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

@media (max-width:768px) {
    .category-hero-inner { height: 30vh; }
    .category-hero-title { font-size: 2.5rem; }
    .hero-description { font-size: 1rem; }
}

@media (max-width:480px) {
    .category-hero-title { font-size: 2rem; }
    .hero-description { font-size: .9rem; }
}