.tax-course-tag .top-header{
		position: relative;
		z-index: 4;
		
	}    
.hero {
        padding: 1rem;
        min-height: calc(100vh - 200px);
        overflow: hidden;
    }

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }

    .hero__container {
        max-width: 1170px;
        margin-inline: auto;
        position: relative;
        z-index: 2;
    }

    .hero__subtitle {
        margin-top: 9rem;
        font-weight: 400;
        font-size: 1.3rem;
        color: white;
        margin-bottom: 0;
    }

    .hero__title {
        font-size: 3.5rem;
        font-weight: 700;
        margin: 0;
        color: white;
    }

    .hero__description {
        max-width: 700px;
        color: white;
        margin: 0;
    }

         .khwr-featured__container {
            display: block !important;
            top: -120px;
            position: relative;
            background-color: #ffffff;
            border-radius: 40px 40px 0px 0px;
            padding: 20px 20px 0px 30px;
			 z-index: 1;
        }

        .khwr-featured {
            max-width: 1170px;
            margin-inline: auto;
        }

        .khwr-featured__title {
            max-width: 900px;
            margin-inline: auto;
            text-align: center;
        }

        .khwr-featured__intro {
            display: flex;
            align-items: center;
            gap: 2rem;
            margin-top: 1rem;
            max-width: 1000px;
            margin-inline: auto;
        }

        .khwr-featured__logos {
            display: flex;
            gap: 2rem;
            width: 30%;
        }

        .khwr-featured__logos img {
            max-width: 200px;
            display: block;
            height: 100px;
            object-fit: contain;
        }

        .khwr-featured__text {
            width: 70%;
        }

        .khwr-featured__grid {
            width: 100%;
            max-width: 1170px;
            margin-inline: auto;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            margin-top: 2rem;
            gap: 2rem;
        }


        .khwr-featured-card {
            aspect-ratio: 16 / 9;
            background-repeat: no-repeat;
            background-position: center;
            background-size: cover;
            position: relative;
            width: 100%;
            /* ensures the card doesn't overflow */
        }


        .khwr-featured-card__content {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 400px;
            background-color: #f28522;
            height: fit-content;
            margin-bottom: 1rem;
        }


        .khwr-featured-card__title {
            font-size: 16px;
            font-weight: 600;
            color: #1a1a1a;
            line-height: 1.3;
            margin: 12px;
        }

        .khwr-featured-card__footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #fdbb7d;
            padding: 8px 12px;
        }

        .khwr-featured-card__cta {
            font-weight: 500;
            color: black;
        }

    .khwr-tax-courses__container {
        max-width: 1170px;
        margin-inline: auto;
        position: relative;
        padding: 1rem;
        margin-bottom: 19rem;
    }


    .khwr-tax-courses {
        max-width: 1170px;
        margin: 0 auto;
        padding: 0;
		position: relative;
    }

    .khwr-courses__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .khwr-courses__title {
        font-size: 24px;
        font-weight: 500;
        color: #1a1a1a;
        letter-spacing: 0.5px;
    }

    .khwr-courses__view-all {
        display: flex;
        align-items: center;
        gap: .5rem;
        color: #2196F3;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        transition: color 0.2s ease;
    }

    .khwr-courses__view-all:hover {
        color: #1976D2;
    }

    .khwr-tax-courses__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .khwr-card {
        position: relative;
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        width: 363px;
        /* aspect-ratio: 3/4; */
    }

    .khwr-card__img {
        display: block;
        width: 100%;
        aspect-ratio: 3/4;
        object-fit: cover;
    }

    .khwr-card__content {

        margin-top: 1rem;
    }

    .khwr-card__footer {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .khwr-card__title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #1a1a1a;
        width: 95%;
        line-height: 1.3;
        margin: 0;

    }

    .khwr-card__price {
        font-size: 18px;
        font-weight: 500;
        color: #1a1a1a;
    }

    .khwr-card__arrow {
        margin-top: 5px;
        font-size: 1rem;
        font-weight: 900;
        color: black;
    }

    /* Vertical text for "TOP COURSES" */
    .khwr-tax-courses__sidebar {
        position: absolute;
        left: -116px;
        top: 100px;
        transform: translateY(-50%) rotate(-90deg);
        font-size: 52px;
        font-weight: 700;
        color: #1a1a1a;
        letter-spacing: 4px;
        white-space: nowrap;
        z-index: 999;
    }

    .tax-course-tag .join-div {
        display: block !important;
    }

    @media(max-width: 1100px) {
        .khwr-card {
            width: 325px;
        }
    }


    /* Responsive design */
    @media (max-width: 1024px) {

        .khwr-tax-courses__grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .khwr-tax-courses {
            margin-left: 0;
        }

        .khwr-card {
            width: 300px;
        }

        .khwr-tax-courses__sidebar {
            display: block;
            position: relative;
            transform: translateY(0) rotate(0);
            inset: 0;
            font-size: 2rem;
            font-weight: 700;
        }

        .ads__intro {
            gap: 5rem;
        }

        .ad-card__content {
            width: 90%;
        }
    }

    @media(max-width: 1000px) {
        .tax-course-tag .join-div {
            display: none !important;
        }

        .khwr-tax-courses__container {
            margin-bottom: 0;
        }

    }

    @media(max-width:950px) {
        .khwr-card {
            width: 275px;
        }
    }

    @media (max-width: 768px) {
        .khwr-tax-courses__grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .khwr-card__image {
            height: 140px;
        }

    }

    @media (max-width:600px) {
        .hero__subtitle {
            font-size: 1.2rem;
        }

        .hero__title {
            font-size: 2rem;
        }

        .hero__description {
            width: 100%;
            font-size: 1rem;
        }

        .ads__title {
            font-size: 1.2rem;
        }

        .ads__intro {
            flex-direction: column-reverse;
            width: 100%;
            gap: 1rem;
        }

        .ads__text {
            width: 100%;
        }

        .ads__logos {
            width: 100%;
        }

        .khwr-courses__header {
            flex-direction: column-reverse;
        }

        .khwr-courses__title {
            align-self: flex-start;
        }

        .khwr-courses__view-all {
            align-self: flex-end;

        }

        .ads__grid {
            grid-template-columns: 1fr;
        }

        .khwr-card {
            width: 100%;
        }

        .khwr-courses__grid {
            grid-template-columns: 1fr;
        }
    }