/* =========================================
   COURSES PAGE: HERO SECTION
   ========================================= */

.courses-hero {
    /* CHANGED: Pushes the entire section down so the background starts exactly below the header */
    margin-top: 115px; 
    
    /* CHANGED: Reduced the top padding from 160px to 60px since the margin now handles the header gap */
    padding: 60px 5% 120px; 
    
    /* Background Image Settings */
    background-color: #F8F8FF; 
    background-size: cover; 
    
    /* Ensuring the image aligns properly to the right */
    background-position: center right; 
    background-repeat: no-repeat;
}
.courses-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    /* We removed the grid layout so the content just sits naturally */
    display: block; 
}

.courses-hero-content {
    /* This restricts the text and search bar to the left half of the screen */
    max-width: 550px; 
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.breadcrumbs a {
    color: var(--sub-text);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--brand-primary);
}

.breadcrumbs .separator {
    color: var(--sub-text);
    margin: 0 12px;
    font-size: 0.7rem;
}

.breadcrumbs .current {
    color: var(--body-text);
}

/* --- Typography --- */
.courses-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--body-text);
    margin-bottom: 15px;
    line-height: 1.1;
}

.courses-desc {
    font-size: 1.15rem;
    color:  #000000 ;
    line-height: 1.6;
    margin-bottom: 40px;
    padding-right: 8%;
}

/* --- Search Bar --- */
.course-search-bar {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 8px 8px 8px 20px;
    width: 100%; /* Fills the 550px container */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); 
}

.search-icon-left {
    color: #94A3B8;
    font-size: 1.1rem;
    margin-right: 12px;
}

.search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--body-text);
    background: transparent;
}

.search-input::placeholder {
    color: #94A3B8;
}

/* The Purple Search Button */
.search-btn {
    background-color: var(--brand-primary);
    color: #FFFFFF;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.search-btn:hover {
    background-color: var(--body-text);
    transform: scale(1.05);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .courses-hero {
        /* Adjust background position for mobile so graphics might hide or center */
        background-position: center; 
    }
    
    .courses-hero-content {
        max-width: 100%;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.8); /* Adds a readable overlay on mobile */
        padding: 30px;
        border-radius: 16px;
    }

    .breadcrumbs {
        justify-content: center;
    }
}
/* =========================================
   COURSES PAGE: MAIN CONTENT & SIDEBAR
   ========================================= */

.all-courses-section {
    padding: 60px 5%;
    background-color: #FFFFFF;
}

.all-courses-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr; /* 280px Sidebar, remaining space for grid */
    gap: 40px;
    align-items: start;
}

/* --- LEFT SIDEBAR FILTERS --- */
.course-filters {
    background-color: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-title {
    font-size: 1.05rem;
    color: var(--body-text);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Custom Checkboxes & Radios */
.custom-checkbox, .custom-radio {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--sub-text);
    user-select: none;
}

.custom-checkbox input, .custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark, .radiomark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #FFFFFF;
    border: 2px solid #CBD5E1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.radiomark {
    border-radius: 50%; /* Circle for radio */
}

/* Hover & Active States */
.custom-checkbox:hover input ~ .checkmark,
.custom-radio:hover input ~ .radiomark {
    border-color: var(--brand-primary);
}

.custom-checkbox input:checked ~ .checkmark,
.custom-radio input:checked ~ .radiomark {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* Checkmark Icon */
.checkmark:after, .radiomark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after,
.custom-radio input:checked ~ .radiomark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-radio .radiomark:after {
    left: 4px;
    top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

/* Range Slider */
.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--sub-text);
    margin-bottom: 10px;
}

.price-slider {
    width: 100%;
    accent-color: var(--brand-primary); /* Modern way to style sliders */
}

/* Filter Buttons */
.filter-btn-apply {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.filter-btn-reset {
    width: 100%;
    background: none;
    border: none;
    color: var(--sub-text);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.2s;
}



.pill.active {
    background-color: var(--brand-primary);
    color: #FFFFFF;
    border-color: var(--brand-primary);
}

/* Results Meta Bar */
.results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: var(--sub-text);
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.catalog-card {
    background-color: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(139, 92, 246, 0.1);
}

.catalog-img-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.catalog-img {
    width: 100%;
    height: 100%;
    /* 'contain' ensures the whole image is visible without being cut off */
    /* 'cover' would fill the box but might crop the edges of your image */
    object-fit: contain; 
    
    /* Remove the blend mode since you want the original backgrounds */
    mix-blend-mode: normal;
    
    /* Add a little padding so the image doesn't touch the edges of the box */
   
}
.catalog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Small Subject Badges */
.course-badge {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.badge-blue { background-color: #E0E7FF; color: #4338CA; }
.badge-purple { background-color: #F3E8FF; color: #7E22CE; }
.badge-pink { background-color: #FCE7F3; color: #BE185D; }

.catalog-title {
    font-size: 1.15rem;
    color: var(--body-text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.catalog-desc {
    font-size: 0.9rem;
    color: var(--sub-text);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Card Stats */
.catalog-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--sub-text);
    margin-bottom: 25px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 20px;
}

.rating-icon { color: #F59E0B; }
.user-icon, .duration-icon { color: #94A3B8; }

/* Card Footer (Price & Button) */
.catalog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.catalog-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--body-text);
}

.catalog-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller desktops */
    }
}

@media (max-width: 900px) {
    .all-courses-container {
        grid-template-columns: 1fr; /* Stacks sidebar on top of results */
    }
    
    .course-filters {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 650px) {
    .catalog-grid {
        grid-template-columns: 1fr; /* 1 column for phones */
    }
    
    .results-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
/* =========================================
   COURSES PAGE: HELP BANNER
   ========================================= */

.help-banner-section {
    padding: 20px 5% 80px; /* Provides spacing below the course grid */
    background-color: #FFFFFF;
}

.help-banner-container {
    max-width: 1300px;
    margin: 0 auto;
    background-color: #F3E8FF; /* Soft lavender background */
    border-radius: 16px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.help-banner-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* 3D-style App Icon Box */
.help-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #A855F7, #7E22CE); /* Rich purple gradient */
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 2.2rem;
    box-shadow: 0 8px 16px rgba(126, 34, 206, 0.25);
}

.help-text h3 {
    font-size: 1.4rem;
    color: var(--body-text);
    margin-bottom: 6px;
    font-weight: 800;
}

.help-text p {
    font-size: 1.05rem;
    color: var(--sub-text);
}

/* Custom Banner Button */
.help-banner-btn {
    background-color: var(--brand-primary);
    color: #FFFFFF;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background-color 0.3s;
    white-space: nowrap; /* Prevents button text from wrapping */
}

.help-banner-btn:hover {
    background-color: var(--body-text); /* Changes to dark slate on hover */
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .help-banner-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .help-banner-left {
        flex-direction: column;
        gap: 15px;
    }
    
    .help-banner-btn {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}