.txt-bg {
    /* color: #ffffff;
    background: #e87777; */
    color: #198754;
    background: #53826c4d;
    width: 100%;
    text-align: center;
    padding: 5px;
}

.card-header {
    border-bottom: none !important;
}

* {
    /* transition: 0.5s; */
    transition: all .5s ease-in-out
}

.section {
    /* padding: 30px 0; */
    /* color: #333; */
    word-wrap: break-word;
    background-clip: border-box;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 0.7rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.section .top-side {
    text-align: center;
}

.section .top-side .title {
    font-weight: 500;
    font-size: 15px;
    display: inline-block;
}

.section .top-side .title:after {
    content: '';
    display: block;
    width: 50%;
    border-bottom: 1px solid #494949;
    margin: 8px auto;
}

.section .top-side h2 {
    font-weight: 700;
}

.section.portfolio .filters {
    text-align: center;
    /* margin-top: 50px; */
}

.section.portfolio .filters ul {
    padding: 0;
    margin: 0;
}

.section.portfolio .filters ul li {
    list-style: none;
    display: inline-block;
    padding: 9px;
    cursor: pointer;
    position: relative;
    /* width: 14rem; */
    border-bottom: 1px solid grey;
    border-right: 1px solid grey;
    border-left: 1px solid grey;
    margin: 10px 2px;
    height: 3rem;
    vertical-align: middle;
}

.section.portfolio .filters ul li:after {
    content: '';
    display: block;
    width: calc(0% - 60px);
    position: absolute;
    height: 2px;
    background: #333;
    transition: width .5s ease-in-out;
}

.section.portfolio .filters ul li:hover:after {
    width: calc(100% - 60px);
    transition: width .5s ease-in-out;
}

.section.portfolio .filters ul li.active:after {
    /* width: calc(100% - 60px); */
}

.section.portfolio .filters ul li.active {
    background: #fff6f6;
    text-transform: uppercase;
    font-weight: 900;
    color: black;
}

.section.portfolio .filters-content {
    margin: 5px 20px;
    /* padding-top: 10px; */
    background: var(--bs-white);
}

.section.portfolio .filters-content .show {
    opacity: 1;
    visibility: visible;
    transition: all .5s ease-in-out
}

.section.portfolio .filters-content .hide {
    opacity: 0;
    visibility: hidden;
    transition: all .5s ease-in-out
}

.section.portfolio .filters-content .item {
    text-align: center;
    cursor: pointer;
    margin-bottom: 30px;
}

.section.portfolio .filters-content .item .p-inner {
    padding: 20px 30px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.section.portfolio .filters-content .item .p-inner h5 {
    font-size: 15px;
}

.section.portfolio .filters-content .item .p-inner .cat {
    font-size: 13px;
}

.section.portfolio .filters-content .item img {
    width: 100%;
}


/* ////crads */

h2,
small {
    display: block;
    color: white;
    font-weight: 300;
    margin-right: 2rem;
}

.samples {
    display: flex;
    flex-wrap: wrap;
    /* max-width: 480px; */
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.sample {
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 128px;
    height: 96px;
    position: relative;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.2);
    margin-right: 1rem;
    margin-bottom: 1rem;
    position: relative !important;
}

.ribbon {
    position: absolute;
    right: var(--right, 10px);
    top: var(--top, -3px);
    filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.5));
}

.boxed>.content {
    color: white;
    font-size: 1.25rem;
    text-align: center;
    font-weight: 400;
    background: var(--color, #2ca7d8) linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.25) 100%);
    padding: 8px 2px 4px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 0 100%);
    /* width: var(--width, 32px);
    min-height: var(--height, 36px); */
    width: var(--width, 42px);
    min-height: var(--height, 49px);
    transition: clip-path 1s, padding 1s, background 1s;
}


/* .box>.content {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% calc(100% - 6px), 0 100%);
}

.box>.content {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 calc(100% - 12px));
}

.ribbon.down>.content {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 50% 100%, 0 calc(100% - 8px));
}

.ribbon.up>.content {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 8px), 0 100%);
} */

.boxed>.content {
    /* clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 40% 100%, 0 calc(100% - 12px)); */
    clip-path: polygon(0 0, 102% 0, 100% calc(100% - 15px), 50% 96%, 0 calc(100% - 16px))
}


/* ////////box/////////  */

:root {
    --red: hsl(0, 78%, 62%);
    --cyan: hsl(180, 62%, 55%);
    --orange: hsl(34, 97%, 64%);
    --blue: hsl(212, 86%, 64%);
    --varyDarkBlue: hsl(234, 12%, 34%);
    --grayishBlue: hsl(229, 6%, 66%);
    --veryLightGray: hsl(0, 0%, 98%);
    --weight1: 200;
    --weight2: 400;
    --weight3: 600;
}

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

h1:first-of-type {
    font-weight: var(--weight1);
    color: var(--varyDarkBlue);
}

h1:last-of-type {
    color: var(--varyDarkBlue);
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.5rem;
    }
}

.box-title {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: row;
    text-align: center;
}

.box-title h3 {
    margin: 1rem 0;
    text-transform: capitalize;
}

@media only screen and (max-width: 600px) {
    .box-title h3 {
        margin: 0.7rem 0 0.5rem !important;
        font-size: 21px;
    }
}

.box p {
    color: var(--bs-danger);
    font-style: italic;
    text-align: right;
}

.box {
    border-radius: 5px;
    box-shadow: 0px 30px 40px -20px var(--grayishBlue);
    padding: 0 20px 10px;
    margin: 10px 17px;
    position: relative !important;
    left: auto !important;
    top: 0px !important;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    background-color: var(--bs-white);
    flex-wrap: nowrap;
}

.boxed {
    border: 1.2px dashed #435ebe;
    border-radius: 5px;
    box-shadow: 0px 30px 40px -20px var(--grayishBlue);
    padding: 0 20px 10px;
    margin: 10px 17px;
    position: relative !important;
    left: auto !important;
    top: 0px !important;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
    align-items: stretch;
    /* max-width: 25%; */
    max-width: 300px;
    background: white;
}

img {
    float: right;
}

@media (max-width: 450px) {
    .boxed {
        height: 200px;
    }
}

@media (max-width: 950px) and (min-width: 450px) {
    .boxed {
        /* text-align: center; */
        /* height: 180px; */
    }
}

@media screen and (max-width:1199px) {
    .boxed {
        width: 25%;
    }
}

@media only screen and (max-width: 600px) {
    .boxed {
        width: 100%;
        max-width: 100%;
    }
    .boxed h5 {
        font-size: 15px;
    }
    .box p {
        font-size: 13px;
    }
}

li.all {
    border-top: 1px solid var(--bs-gray);
}

.orange,
li[data-filter*=".monthly"],
li[data-filter*=".n-ebooks"] {
    border-top: 6px solid var(--bs-orange);
    background: #fd7e1433;
}


/* .boxed.month {
   background: #fd7e1454;
} */


/* li[data-filter*=".monthly"] {
    border: 1px solid var(--bs-orange);
} */

.red,
li[data-filter*=".video"] {
    border-top: 6px solid var(--bs-danger);
}

.yellow,
li[data-filter*=".book"],
li[data-filter*=".j-ebooks"] {
    border-top: 6px solid var(--bs-yellow);
    background: #ffc10733;
}

.green,
li[data-filter*=".ecopy"] {
    border-top: 6px solid var(--bs-green);
    background: #19875433;
}

.indigo,
li[data-filter*=".pqp"] {
    border-top: 6px solid var(--bs-indigo);
    background: #6610f22b;
}

.purple,
li[data-filter*=".annual"],
li[data-filter*=".neet"] {
    border-top: 6px solid var(--bs-purple);
    background: #6f42c133;
}

.pink,
li[data-filter*=".live_classes"],
li[data-filter*=".jee"] {
    border-top: 6px solid var(--bs-pink);
    background: #d6338433;
}

.gray,
li[data-filter*=".certificates"] {
    border-top: 6px solid var(--bs-gray);
    background: #6c757d33;
}

h2 {
    color: var(--varyDarkBlue);
    font-weight: var(--weight3);
}

@media (min-width: 950px) {
    .row1-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .row2-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .box-down {
        position: relative;
        top: 150px;
    }
    .boxed {
        /* width: 20%; */
    }
    .header p {
        width: 30%;
    }
}