/* COURSE CARDS */

.course_card_fixed_width {
    /* width: 18rem;
    margin: 0 1rem 1rem 0; */
}

/* HERO SECTION */

.hero {
    display: flex; 
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 0.5rem solid var(--blue);

}

.hero .overlay {
    padding: 3rem 0 4rem 0;
}

.hero .video {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
    filter: blur(0.2rem);
    opacity: 0.4;
}

.hero .image {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
    filter: blur(4px);
    opacity: 0.4;
}



.hero .overlay .title {
    line-height: 6rem;
    font-size: 5.5rem;
    transform: translateY(4rem);
    animation: fadeInUp 2s ease forwards;
    z-index: 2;
    span { color: var(--blue) }
}

.hero .overlay .slogan {
    margin: 0;
    font-size: 1.5rem;
    transform: translateY(4rem);
    animation: fadeInUp 2s ease forwards;

    :nth-child(3) {
        margin-top: 0.1rem;
        display: block;
    }
}

.hero_title__underline {
    width: 29rem;
    margin-top: -2.5rem;
    margin-left: 7rem;
    margin-bottom: 1rem;
    z-index: 1;
}

.hero .overlay .search {
    display: flex;
    width: 40rem;
    height: 3.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--light-blue);
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    transform: translateY(4rem);
    animation: fadeInUp 2s ease forwards;
    margin-top: 2rem;
    z-index: 1;
}

.hero .overlay .search .icon {
    height: 2.5rem;
    width: 2.5rem;
    margin-right: 1rem;
    filter: invert(61%) sepia(17%) saturate(1046%) hue-rotate(152deg) brightness(95%) contrast(98%);
    cursor: pointer;    
}

.hero .overlay .search .input {
    width: 100%;
    border: none;
    padding: 0;
    /* margin-top: 0.5rem; */
    margin-left: 1rem;
    margin-right: 1rem;
    background-color: var(--light-blue);
    font-size: clamp(0.5rem, 5vh, 1.5rem);
    &:
    focus {
        outline: none;
    }
}

.hero .overlay .search {
    position: relative;
}

.hero .overlay .search .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* Removed max-height and overflow-y to show all content without scrollbar */
    background-color: white;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Added high z-index to ensure it appears above other elements */
    display: none;
}

.hero .overlay .search .search-results.show {
    display: block;
}

.hero .overlay .search .search-results .search-result-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.hero .overlay .search .search-results .search-result-item:hover {
    background-color: var(--light-blue);
}

.hero .overlay .search .search-results .search-result-item.view-all {
    font-weight: 600;
    color: var(--blue);
    text-align: center;
    border-bottom: none;
}

.hero .overlay .search .search-results .search-result-item .highlight {
    font-weight: bold;
}

@keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

@media (max-width: 740px) {
    
    .hero .overlay {
        bottom: 3rem;
    }

    .hero .overlay .title {
        font-size: 4rem;
    }

    .hero_title__underline {
        width: 23rem;
        margin-top: -2.5rem;
        margin-left: 4rem;
        margin-bottom: 1rem;
    }

    .hero .overlay .slogan {
        font-size: 1.6rem;
        :nth-child(2) {
            display: block;
        }    
    }

    .hero .overlay .search {
        width: 100%;
    }

    .hero .overlay .search .input {
        font-size: 2vh;
    }
}


@media (max-width: 470px) {


    .hero .video {
        display: none;
    }

    .hero .image {
        display: block;
    }
    
    .hero .overlay {
        bottom: 3rem;
    }

    .hero .overlay .title {
        line-height: 3.5rem;
        font-size: 2.5rem;
    }

    .hero_title__underline {
        width: 14rem;
        margin-top: -1.8rem;
        margin-left: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .hero .overlay .slogan {
        font-size: 1.2rem;
        :nth-child(2) {
            display: block;
        }    
    }

    .hero .overlay .search {
        width: 100%;
    }

    .hero .overlay .search .input {
        font-size: 0.9rem;
    }
}


.popular_categories_section {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}


.popular_categories_section .text_container {
    display: grid;
    row-gap: 1rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    /* font-weight: 600; */
    margin-bottom: 1rem;
}

.popular_categories_section .buttons  {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.popular_categories_section .buttons button  {
    width: 15rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.2rem;
    background-color: #57A7C8;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.popular_categories_section .buttons .catalog {
    border: 0.2rem solid #A7D86B;
    border-radius: 0.2rem;
    background-color: #FFFFFF;
    color: #000000;
}

.categories {
    display:grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--light-blue);
    box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    height: 4rem;
    cursor: pointer;
}

[el-is="category"]:last-child > a {
    background-color: white;
    box-shadow: none;
}

@media (max-width: 970px) {
    .categories {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 678px) {
    .categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .category {
        font-size: 1rem;
    }   
}

/* @media (max-width: 350px) {
    .categories {
        grid-template-columns: repeat(1, 1fr);
    }
} */

/* END TO END SKILLS */

.end_to_end_skills {
    display: flex;
    justify-content: center;
    position: relative;
    background-color: var(--grey);
    padding: 3rem 0;
}

.end_to_end_skills .container {
    display: grid;
}

.end_to_end_skills .text_container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.end_to_end_skills .skilljourneys {
    width:100%
}

.end_to_end_skills .skilljourneys .carousel {
    background: #F6F7F9;
}
    
.end_to_end_skills .skilljourneys .carousel-cell {
    height: 20rem;
    width: 15rem;
    margin-right: 1rem;
}

.end_to_end_skills .skilljourneys .carousel-cell .cell {
    border-radius: 0.5rem;
    box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.end_to_end_skills .skilljourneys .carousel-cell .image {
    height: 100%;
    width: 100%;
    filter: brightness(0.5);
    border-radius: 5px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.end_to_end_skills .skilljourneys .carousel-cell .cell:hover .image {
    filter: brightness(0.4);
    transform: scale(1.05);
}

.end_to_end_skills .skilljourneys .carousel-cell .title {
    position: absolute;
    bottom: 0;
    max-width: 200px;
    padding: 1rem 1rem 1rem 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
}

.end_to_end_skills .skilljourneys .carousel-cell .summary {
    display: none;
}

.end_to_end_skills .buttons  {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.end_to_end_skills .buttons button  {
    width: 15rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.2rem;
    background-color: #57A7C8;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.end_to_end_skills .buttons .catalog {
    border: 0.2rem solid #A7D86B;
    border-radius: 0.2rem;
    background-color: #FFFFFF;
    color: #000000;
}

@media (max-width: 840px) {


    .end_to_end_skills .buttons  {
        flex-direction: column;
    }

    .end_to_end_skills .buttons button {
        width: 100%;
        max-width: 400px;
    }
}

/* HOW WE DO THINGS */

.how_we_do_things {
    display: flex;
    justify-content: center;
    position: relative;
    background-color: #EEEFF0;
    padding: 3rem 0;
}

.how_we_do_things .container {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    align-items: center;
    justify-items: center;
    gap: 3rem;
}

.how_we_do_things .video {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    min-height: 300px;
    aspect-ratio: 16 / 9;
}

.how_we_do_things .text_container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}



.how_we_do_things .text_container .buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.how_we_do_things .text_container .buttons button {
    flex-grow: 1;
    border: none;
    border-radius: 0.2rem;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    background-color: #57a7c8;
    color: white;
}

@media (max-width: 1020px) {
    .how_we_do_things .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {

    .how_we_do_things .buttons  {
        flex-direction: column;
    }

    .how_we_do_things .buttons button {
        width: 100%;
    }
}



/* HANDS ON */

.hands_on {
    display: flex;
    justify-content: center;
    position: relative;
    background-color: #FFFFFF;
    padding: 3rem 0;
}

.hands_on .container {
    display: grid;
}

.hands_on .text_container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}


.hands_on .up_next_courses {
    display: grid;
    grid-template-columns: 0.2fr auto;
    grid-column-gap: 1rem;
}

.hands_on .up_next_courses .card {
    display: grid;
    height: auto;
    width: 14rem;
    border-top: 1.5rem solid #A7D86B;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #FFFFFF;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.1);
    text-align: left;
}

.hands_on .up_next_courses .card .heading1 {
    font-size: 2rem;
    font-weight: 600;
    color: #F87706;
}

.hands_on .up_next_courses .card .heading2 {
    font-size: 3rem;
    font-weight: 600;
    color: #000000;
}

.hands_on .divider {
    width: 100%;
    margin: 1.5rem 0 2rem 0;
}

.hands_on .new_and_trending {
    display: grid;
    grid-template-columns: 0.2fr auto;
    grid-column-gap: 1rem;
}

.hands_on .new_and_trending .card {
    display: grid;
    height: auto;
    width: 14rem;
    border-top: 1.5rem solid #A7D86B;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #FFFFFF;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.1);
    text-align: left;
}

.hands_on .new_and_trending .card .heading1 {
    font-size: 2rem;
    font-weight: 600;
    color: #F87706;
}

.hands_on .new_and_trending .card .heading2 {
    font-size: 3rem;
    font-weight: 600;
    color: #000000;
}



@media (max-width: 440px) {

    .hands_on .up_next_courses {
        grid-template: none;
        grid-row-gap: 1rem;

        .card {
            width: fit-content;
        }
    }

    .hands_on .new_and_trending {
        grid-template: none;
        grid-row-gap: 1rem;

        .card {
            width: fit-content;
        }
    }
}

/* SPECIAL OFFERS */

/* Section wrapper styles */
.special_offer_section {
    display: flex;
    justify-content: center;
    position: relative;
    background-color: #000000;
    padding: 3rem 0;
}

/* Component-specific styles moved to specialoffer.css */

/* QUICKSKILL EVENTS */
.quickskill_events_section {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--light-blue);
}


/* Banner */
.quickskill_events_section .banner {
    width: 100%;
    background-color: var(--orange);
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner_container {
    width: 100%;
    max-width: 1300px;
    margin-inline: 2rem;
}

.quickskill_events_section .banner h2 {
    color: var(--white);
    margin: 0;
}

/* Featured Webinar */
.quickskill_events_section .featured_webinar {
    display: grid;
    grid-template-columns: 0.3fr 1fr;
    gap: 3rem;
    margin: 3rem 2rem 1rem 2rem;
    max-width: 1300px;
    align-items: center;
}

.quickskill_events_section .image_container {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    border-radius: 0.5rem;
    overflow: hidden;
}

.quickskill_events_section .image_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quickskill_events_section .content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quickskill_events_section .label {
    color: var(--orange);
    font-weight: 600;
    font-size: 1.2rem;
}

.quickskill_events_section .details {
    display: flex;
    gap: 2rem;
}

.quickskill_events_section .details span {
    font-weight: 600;
}

/* More Webinars */
.quickskill_events_section .more_webinars {
    margin: 2rem 2rem 0 2rem;
}

.quickskill_events_section .webinar_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0 3rem 0;
    max-width: 1300px;
}

.quickskill_events_section .webinar_card {
    background: white;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 0.3rem 0 rgba(56, 56, 56, 0.2);

}

.webinar_card_banner {
    background-color: #A7D86B;
    padding: 0.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    text-align: center;
}

.quickskill_events_section .webinar_card:hover {
    transform: translateY(-5px);
}

.quickskill_events_section .webinar_card h4 {
    color: white;
}

.quickskill_events_section .webinar_card p {
    margin: 0.5rem;
    font-weight: 600;
}

.quickskill_events_section .view_all {
    display: flex;
    justify-content: center;
    width: 100%;
}

.quickskill_events_section .view_all button {
    padding: 1rem 2rem;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 0.3rem 0 rgba(56, 56, 56, 0.2);

}

/* Enhanced Responsive Design */
@media (max-width: 1100px) {
    .quickskill_events_section .featured_webinar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .quickskill_events_section .image_container {
        margin: 0 auto;
    }
    
    .quickskill_events_section .webinar_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .banner_container {
        text-align: center;
    }
    
    .quickskill_events_section .banner h2 {
        font-size: 1.6rem;
    }
    
    .quickskill_events_section .webinar_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quickskill_events_section .details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .quickskill_events_section .banner h2 {
        font-size: 1.3rem;
        padding: 0 1rem;
    }
    
    .quickskill_events_section .webinar_grid {
        grid-template-columns: 1fr;
    }
    
    .quickskill_events_section .view_all button {
        width: 100%;
        text-align: center;
    }
}

/* WHAT OUR LEARNERS THINK */


/* SPOTLIGHTS SECTION */

.spotlights_section {
    display: flex;
    justify-content: center;
    position: relative;
    background-color: #EEEFF0;
    padding: 3rem 0;
}

.spotlights_section .text_container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.spotlights_section .orange_text {
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 0;
}

.spotlights_section h1 {
    margin-bottom: 1rem;
}

.spotlights_section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.spotlights_section .articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.spotlights_section .article {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.spotlights_section .article:hover {
    transform: translateY(-5px);
}

.spotlights_section .article_image_container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.spotlights_section .article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.spotlights_section .article:hover img {
    transform: scale(1.05);
}

.spotlights_section .article_tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #FFFFFF;
    color: #000000;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.spotlights_section .article h3 {
    padding: 1.2rem;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.spotlights_section .view_all_container {
    display: flex;
    justify-content: center;
}

.spotlights_section .view_all_button {
    padding: 0.8rem 2rem;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 0.3rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.spotlights_section .view_all_button:hover {
    background-color: #4590ae;
}

@media (max-width: 900px) {
    .spotlights_section .articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .spotlights_section .articles {
        grid-template-columns: 1fr;
    }
    
}

/* COMING SOON */

.comingsoon_section {
    padding: 3rem 0;
}
