
/* ========== Section First =========== */
.course-hero {
    inline-size: 100%;
    background: #f5f5f5;
}

.course-hero-inner {
    position: relative;
    inline-size: 100%;
    max-inline-size: 90%;
    margin-inline: auto;
}

.course-hero-img {
    inline-size: 100%;
    block-size: auto;
    display: block;
    border-radius: 0.4rem;
}

.course-hero-inner h3 {
    margin-top: -13rem;
    margin-bottom: 8rem;
    margin-left: 11rem;
    color: white;
    font-size: 4rem;
}

/* PHONES */
@media (max-width: 37.5em) {
    .course-hero-inner {
        max-inline-size: 100%;
    }

    img.course-hero-img {
        height: 20rem;
    }

    .course-hero-inner h3 {
        margin-top: -10rem;
        /* margin-bottom: 1rem; */
        margin-left: 2rem;
        color: white;
        font-size: 2.5rem;
    }
}

/* TABLETS */
@media (min-width: 48em) {
    .course-hero-inner {
        max-inline-size: 100%;
    }

        .course-hero-inner h3 {
            margin-top: -6rem;
            margin-bottom: 2rem;
            margin-left: 8rem;
            color: white;
            font-size: 3rem;
        }
}

/* LAPTOPS */
@media (min-width: 62em) {
    .course-hero-inner {
        max-inline-size: 100%;
    }

        .course-hero-inner h3 {
            margin-top: -10rem;
            margin-bottom: 5rem;
            margin-left: 11rem;
            color: white;
            font-size: 4rem;
        }
}

/* LARGE SCREENS */
@media (min-width: 75em) {
    .course-hero-inner {
        max-inline-size: 100%;
    }

        .course-hero-inner h3 {
            margin-top: -12rem;
            margin-bottom: 8rem;
            margin-left: 11rem;
            color: white;
            font-size: 4rem;
        }
}

/* ========== Section Second =========== */
.learn-content {
    background-color: #f2f2f2;
    padding: 1.5rem 2rem;
}

/* Container */
.container-course {
    width: 78%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-direction: column;
}

/* Left */
.left-content {
    /* border-left: 0.3rem solid #2bb673;*/
    padding-left: 1rem;
    display: flex;
}

    .left-content h1 {
        font-size: 2.8rem;
        font-weight: 700;
        color: #333;
    }

    .left-content p {
        font-size: 1.3rem;
        color: #777;
        letter-spacing: 0.08rem;
        margin-top: 1rem;
        margin-left: 1rem;
    }

/* Search */
.course-search-box {
    display: flex;
    align-items: center;
    border: 0.08rem solid #4f0071;
    overflow: hidden;
    height: 2.5rem;
}

    .course-search-box input {
        border: none;
        outline: none;
        padding: 0 1rem;
        height: 100%;
        width: 25rem;
    }

    .course-search-box button {
        background-color: #4f0071;
        border: none;
        padding: 0 1rem;
        height: 100%;
        cursor: pointer;
        font-size: 1rem;
    }

    .course-search-box img {
        margin-top: -0.5rem;
    }

/* Responsive Breakpoints */

/* Mobile */
@media (max-width: 36rem) {
    .search-box {
        width: 100%;
    }

        .search-box input {
            width: 100%;
        }

    .container-course {
        display: block;
        width: 100%;
    }

    .course-search-box {
        margin-top: 1rem;
    }

        .course-search-box input {
            width: 18rem;
        }
    .learn-content {
        margin-top: -4rem;
    }
}

/* Tablet */
@media (min-width: 48rem) {
}

/* Small Laptop */
@media (min-width: 62rem) {
}

/* Desktop */
@media (min-width: 75rem) {
    .learn-content {
        margin-top: -0.8rem;
    }
}

/* ========== Section Third =========== */

.announcement1-container {
    gap: 10rem;
}

.announcement1-container {
    padding: 0rem 3rem;
}

.announcement1-container {
    width: 85%;
    padding-left: 20rem;
}

.course-arrow {
    rotate: calc(0deg);
    background: white;
}

.cour-price {
    right: 18rem;
    top: 2rem;
    font-size: 1.1rem;
}

.dropdown-content {
    font-size: 1.3rem;
}

.announcement-list1 {
    width: 100%;
}

.tabs {
    font-size: 1.4rem;
    margin: 1rem 1.9rem;
    margin-top: 1rem;
    gap: 1rem;
    width: 100%;
    margin-left: 45rem;
}

    .tabs span {
        color: #4f0071;
        border: 0.1rem solid #bebaba;
        padding: 1rem;
        padding-top: 0;
        padding-bottom: 0.4rem;
        cursor: pointer;
    }

        /* hover */
        .tabs span:hover {
            background: #4f0071;
            color: white;
        }

        /* active button */
        .tabs span.active {
            background: #4f0071;
            color: white;
            border-color: #4f0071;
        }

.explore {
    text-align: center;
    padding: 1rem;
    margin-bottom: 2rem;
}

    .explore a {
        text-decoration: none;
        color: #4f0071;
        font-size: 1.3rem;
    }

        .explore a:hover {
            border-bottom: 0.2rem solid #4f0071;
        }

/* default list view */

.events-list {
    display: flex;
    flex-direction: column;
    width: 104%;
    margin-left: -4rem;
}

.explore-card1 {
    display: grid;
    grid-template-columns: 7fr 3fr 0.2fr;
    align-items: center;
    gap: 1rem;
    border: 0.1rem solid rgb(199, 195, 195);
    padding: 1.2rem;
    border-radius: 0rem;
    margin-top: 0.2rem;
    margin-right: 0rem;
}

    .explore-card1:hover {
        transform: translateY(-4px); /* Halka sa upar uthega */
        box-shadow: 1px 1px 3px 2px #cccbca;
        background: #fcfbff;
    }
a.course-link {
    color: #000000;
    text-decoration: none;
}

/* grid view */
/*
.events-list.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

    .events-list.grid-view .explore-card1 {
        display: block;
    }

    .events-list.grid-view .cour-price {
        margin-left: -5rem;
        margin-right: -16.5rem;
        margin-top: 18rem;
    }

    .events-list.grid-view .meta {
        margin-top: 3rem;
        margin-bottom: -2rem;
        border-top: 0.1rem solid #dfd8d8;
        font-size: 0.8rem;
    }

    .events-list.grid-view .explore-image img {
        width: 116%;
        height: 12.5rem;
        margin-left: -1.2rem;
        margin-top: -27.4rem;
    }

    .events-list.grid-view .explore {
        margin-left: 8rem;
        margin-right: -46rem;
        margin-bottom: 2rem;
    }

    .events-list.grid-view .explore-content h3 {
        margin: 14.4rem 0 1rem;
        font-size: 1rem;
    }

    .events-list.grid-view .cour-tag {
        display: none;
    }
    */



/* CARD */
.events-list.grid-view .explore-card1 {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #cfcfcf;
    background: #e9e9e9;
}

/* IMAGE FIX */
.events-list.grid-view .explore-image {
    height: 190px;
    overflow: hidden;
}

    .events-list.grid-view .explore-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* CONTENT */
.events-list.grid-view .explore-content {
    padding: 14px;
    flex-grow: 1;
}

    /* TITLE FIX HEIGHT */
    .events-list.grid-view .explore-content h3 {
        font-size: 18px;
        line-height: 1.3;
        min-height: 48px; /* ye sab titles same height karega */
        margin-bottom: 10px;
    }

/* META BOTTOM */
.events-list.grid-view .meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #cfcfcf;
}

.events-list.grid-view .events-list {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    align-items: stretch;
}


/* Sidebar */
/*
.sidebar {
  margin-top: 4.5rem;
  margin-left: 3rem;
  margin-right: -5rem;
}

.filter-wrapper {
  width: 100%;
  max-width: 18rem;
  border: 0.06rem solid #d8cce6;
  background: #fff;
}

.filter-box {
  border-bottom: 0.06rem solid #eee;
  padding: 1rem;
  padding-bottom: 5rem;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: #4f0071;
}

.course-arrow {
  transition: 0.3s;
}

.course-arrow img {
  margin-top: -0.6rem;
  margin-left: 0.3rem;
}

.filter-body {
  margin-top: 0.8rem;
  display: none;
  flex-direction: column;
  gap: 0.6rem;
}

.filter-box.active .filter-body {
  display: flex;
}

.filter-box.active .course-arrow {
  transform: rotate(180deg);
}

.filter-header {
  font-size: 2rem;
}

.filter-body span {
  font-size: 1.3rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.check input {
  width: 0.9rem;
  height: 0.9rem;
  accent-color: #4f0071;
}

.reset {
  text-align: center;
  padding: 1rem;
}

.reset a {
  text-decoration: none;
  color: #4f0071;
  font-size: 1.3rem;
}

.reset a:hover {
  border-bottom: 0.2rem solid #4f0071;
}

.filter-body {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.filter-box.active .filter-body {
  display: flex;
}

.filter-box.active .course-arrow {
  transform: rotate(180deg);
}
*/

/* Search */
.course-search-box1 {
    display: flex;
    align-items: center;
    border: 0.08rem solid #4f0071;
    overflow: hidden;
    height: 2.5rem;
    width: 82%;
    margin-left: 1.7rem;
    margin-bottom: 1rem;
}

    .course-search-box1 input {
        border: none;
        outline: none;
        padding: 0 1rem;
        height: 100%;
        width: 13rem;
    }

    .course-search-box1 button {
        background-color: #4f0071;
        border: none;
        padding: 0 0rem;
        height: 100%;
        cursor: pointer;
        font-size: 1rem;
    }

    .course-search-box1 img {
        margin-top: -0.5rem;
    }

/* Sidebar */
.sidebar {
    margin-top: 4rem;
    margin-left: 0rem;
    margin-right: -4rem;
}

.filter-wrapper {
    display: flex;
    flex-direction: column;
    width: 105%;
}

/* Filter Box Container */
.filter-box {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .filter-box.active {
        border-color: #4f0071; /* Soft Purple border when active */
    }

/* Header Styling */
.filter-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

    .filter-header span:first-child {
        font-weight: 700;
        color: #4f0071;
        font-size: 1.2rem;
    }

.course-arrow img {
    width: 12px;
    transition: transform 0.3s ease;
}

/* Arrow rotate logic (optional if you use JS) */
.filter-box.active .course-arrow img {
    transform: rotate(180deg);
}

/* Body & Checkbox Styling */
.filter-body {
    padding: 0 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.95rem;
    color: #636e72;
    transition: color 0.2s;
}

    .check:hover {
        color: #4f0071;
    }

    /* Hiding default checkbox and creating custom one */
    .check input {
        margin-right: 12px;
        width: 18px;
        height: 18px;
        accent-color: #6c5ce7; /* Modern browsers will use this */
        cursor: pointer;
    }

/* Styling the Reset Link */
.reset {
    margin-top: -0.6rem;
    text-align: right;
}

    .reset a {
        text-decoration: none;
        color: #4f0071;
        font-weight: 600;
        font-size: 1.2rem;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        transition: gap 0.3s ease, opacity 0.2s;
        margin-top: 0.2rem;
        margin-top: 0.3rem;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        text-decoration: underline;
    }

        .reset a:hover {
            gap: 10px;
            opacity: 0.8;
        }

/* Simple Animation for opening */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-box.active .filter-body {
    animation: fadeIn 0.4s ease forwards;
}
/* Individual Filter Box Hover */
.filter-box {
    border: 1px solid #f0f0f0;
    border-radius: 0;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth movement */
    cursor: pointer;
    margin-top: 2.9rem;
}

    .filter-box:hover {
        transform: translateY(-4px); /* Halka sa upar uthega */
        box-shadow: 0 12px 24px rgba(108, 92, 231, 0.12); /* Purple-ish soft shadow */
        border-color: #6c5ce7; /* Border ka color bhi change hoga */
        background: #fcfbff;
    }

/* Checkbox label hover effect */
.check:hover {
    background-color: #f8f7ff; /* Halka sa background highlight */
    border-radius: 8px;
    padding-left: 5px; /* Thoda sa shift effect */
    transition: all 0.2s ease;
}

/* tabs Header Styling */
.filter-header5 {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

    .filter-header5 span:first-child {
        font-weight: 700;
        color: #4f0071;
        font-size: 1.2rem;
        margin-bottom: -7rem;
        margin-left: -5rem;
    }



.filter-box h3 {
    color: #4f0071;
    font-size: 1.2rem;
    margin-bottom: -2rem;
    margin-top: 1rem;
    margin-left: 0.5rem;
}

/* responsive */

@media (max-width: 36em) {
    .announcement1-container {
        width: 100%;
        padding-left: 3rem;
    }
    .filter-header5 span:first-child {
        margin-left: -1rem;
    }
    .list-btn {
        display: none;
    }
    .grid-view {
        display: none;
    }
    .events-list {
        margin-left: 0rem;
    }
    .events-list.grid-view .explore-image img {
        width: 115%;
        height: 15rem;
        margin-left: -1.2rem;
        margin-top: -31rem;
    }
    .filter-wrapper {
        max-width: 100%;
        gap: 1rem;
    }

    .d-flex.my-2.my-lg-0.align-items-center.justify-content-end.right-brand {
        margin-right: 0rem;
    }

    button.navbar-toggler.d-lg-none {
        display: none;
    }

    aside.sidebar.aos-init.aos-animate {
        margin-left: 0;
        margin-right: 0;
    }

    .events-list.grid-view {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }

        .events-list.grid-view .cour-price {
            margin-right: -6rem;
            margin-top: 19rem;
        }

        .events-list.grid-view .explore {
            margin-left: 0;
            margin-right: 0;
        }
    .cour-price {
        right: 1rem;
        font-size: 1rem;
        top: 1.2rem;
    }
    .explore-card1 {
        margin-right: 0rem;
        display: grid;
    grid-template-columns: 23fr 0fr 0fr;
    }
    .explore-content h3 {
        font-size: 1.1rem;
        margin-bottom: -1rem;
    }
    .meta {
        margin-top: 3rem;
        font-size: 0.9rem;
    }
    .explore-image img {
        display: none;
    }
    .reset a {
        margin-top: 0.3rem;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        text-decoration: underline;
    }
    .filter-box {
        margin-top: 0rem;
    }

    .filter-box h3 {
        color: #4f0071;
        font-size: 1.2rem;
        margin-bottom: -2rem;
        margin-top: 1rem;
        margin-left: 0.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .filter-wrapper {
        max-width: 20rem;
    }

    .sidebar {
        margin-top: 4rem;
        margin-left: 0rem;
        margin-right: -4rem;
    }

    .tabs {
        width: 100%;
    }

    .events-list {
        width: 130%;
        margin-left: -4rem;
    }

    .cour-price {
        right: 12rem;
    }

    .events-list.grid-view .cour-price {
        right: 27rem;
    }

    .events-list.grid-view {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    } 

        .events-list.grid-view .explore {
            margin-left: 0;
            margin-right: 0;
        }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .announcement1-container {
        width: 65%;
        padding-left: 7rem;
    }
    .filter-wrapper {
        width: 144%;
    }

    .events-list {
        width: 100%;
        margin-left: 0.5rem;
    }
        .events-list.grid-view .explore-content h3 {
            font-size: 1rem;
        }

        .events-list.grid-view {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0;
            margin-left: 0.7rem;
        }

    .cour-price {
        right: 11rem;
        top: 1.3rem;
    }

    .events-list.grid-view .explore {
        margin-right: -13rem;
    }

    .events-list.grid-view .cour-price {
        right: 18rem;
        top: 0rem;
    }
    .tabs {
        margin-left: 29rem;
    }
    .course-search-box1 input {
        width: 11.1rem;
    }
    .explore-card1 {
        margin-right: 2.3rem;
    }
    .filter-header5 span:first-child {
        margin-left: 0rem;
    }
    .events-list.grid-view .explore-image img {
        width: 116%;
        height: 15rem;
        margin-left: -1.2rem;
        margin-top: -25.3rem;
    }
    .course-search-box1 {
        margin-left: 1.4rem;
    }
}

@media (min-width: 1200px) and (max-width: 1366px) {
    .filter-wrapper {
        max-width: 24rem;
    }

    .events-list {
        width: 100%;
        margin-left: -4rem;
    }

        .events-list.grid-view {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

    .cour-price {
        right: 14rem;
        top: 1rem;
    }
    .explore-card1 {
        display: grid;
        grid-template-columns: 8fr 3fr 0fr;
        margin-right: 0rem;
    }
    .explore-image img {
        width: 110%;
        margin-left: 0rem;
    }

    .events-list.grid-view .cour-price {
        right: 18.2rem;
        top: 1.3rem;
    }
    .course-search-box1 input {
        width: 12rem;
    }
    .announcement1-container {
        width: 100%;
        padding-left: 8rem;
    }
    .tabs {
        width: 100%;
        margin-left: 32rem;
    }
   
        .events-list.grid-view .explore-image img {
            width: 121%;
            height: 15rem;
            margin-left: -1.2rem;
            margin-top: -27.8rem;
        }
        .events-list.grid-view .meta {
            font-size: 0.9rem;
        }
    .filter-box {
        margin-top: 2.9rem;
    }
    .reset a {
        margin-top: 0.3rem;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        text-decoration: underline;
    }
    .filter-box h3 {
        color: #4f0071;
        font-size: 1.2rem;
        margin-bottom: -2rem;
        margin-top: 1rem;
        margin-left: 0.5rem;
    }
}
