@import url('https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&family=Gasoek+One&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Elms Sans", sans-serif;
}

html,
body {
    overflow-x: hidden;
}

.nav {
    width: 100%;
    min-height: 80vh;
    position: relative;
}

.bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 15s infinite;
}

.bg1 {
    background-image: url("../images/ban4.png");
    animation-delay: 0s;
}

.bg2 {
    background-image: url("../images/ban1.png");
    animation-delay: 5s;
}

.bg3 {
    background-image: url("../images/ban2.png");
    animation-delay: 10s;
}

.nav::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, .55), rgba(0, 0, 0, .3), transparent);
    z-index: 1;
}

.navwrap,
.hero {
    position: relative;
    z-index: 2;
}


.navwrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(12px);
    z-index: 9999;
}

.main-nav {
    width: min(1400px, 92%);
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 120px;
    height: 70px;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 992px) {

    .logo img {
        width: 60px;
        height: 60px;
    }

}

/* Mobile */
@media (max-width: 768px) {

    .logo img {
        width: 52px;
        height: 52px;
    }

}

/* Small phones */
@media (max-width: 480px) {

    .logo img {
        width: 45px;
        height: 45px;
    }

}

.sections {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pages {
    height: 80px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .35s;
}

/* Hover effect for all navbar items except Donation */

.pages:not(.donation):hover {
    background: #d83529;
}

.pages:not(.donation):hover span {
    color: #fff;
}

.pages span {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.pages.active {
    background: #d83529;
}

.pages.active span {
    color: #fff;
}

.donation button {
    border: none;
    background: #e53935;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: .35s;
}

.donation button:hover {
    background: #ff5a4f;
    transform: translateY(-2px);
}

.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 2vh 0;
}

.herowrap {
    width: 92%;
    max-width: 1200px;
    margin: auto;
    color: #fff;
    padding-top: 80px;
}

.herowrap h3 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    word-break: break-word;
    transform: translateY(40px);
    animation: fadeUp .8s forwards;
}

.herowrap .sub {

    opacity: 0;

    transform: translateY(40px);

    animation: fadeUp .8s forwards;

    animation-delay: 1.7s;

}


.hero-fullform {

    margin: 22px 0 28px;

    width: 100%;
    max-width: 650px;

    border-left: 4px solid #f44336;

    padding-left: 18px;

    /* Animation */
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp .8s forwards;
    animation-delay: 1.35s;

}

.hero-fullform span {

    display: block;

    color: #f44336;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 8px;

    text-transform: uppercase;

}

.hero-fullform p {

    color: #f5f5f5;

    font-size: 18px;

    line-height: 1.8;

    font-weight: 300;

    word-break: break-word;

}

.hero-fullform strong {

    color: #ff6b57;

    font-weight: 700;

}

@media(max-width:768px) {

    .hero-fullform {

        margin: 18px 0 22px;

        padding-left: 14px;

    }

    .hero-fullform span {

        font-size: 12px;

        letter-spacing: 3px;

    }

    .hero-fullform p {

        font-size: 15px;

        line-height: 1.7;

    }

}

.sub {
    margin-top: 25px;
}

.sub p {
    width: min(550px, 100%);
    padding: 22px;
    border-radius: 18px;
    background: rgba(30, 30, 30, .35);
    backdrop-filter: blur(12px);
    border-left: 4px solid #8dd8ff;
    color: #fff;
    line-height: 1.8;
    font-size: clamp(15px, 2vw, 17px);
}

.herowrap h3:nth-child(1) {
    animation-delay: .2s;
}

.herowrap h3:nth-child(2) {
    animation-delay: .5s;
}

.herowrap h3:nth-child(3) {
    animation-delay: .8s;
}

.herowrap h3:nth-child(4) {
    animation-delay: 1.1s;
}

.herowrap .sub {
    opacity: 0;
    animation: fadeUp .8s forwards;
    animation-delay: 1.4s;
}

.menu-btn {
    display: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

@media(max-width:992px) {

    .menu-btn {
        display: block;
    }

    .sections {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: #111;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        transition: .4s;
        padding-top: 20px;
    }

    .sections.active {
        right: 0;
    }

    .pages {
        height: 60px;
        justify-content: flex-start;
        padding-left: 30px;
    }

    .donation {
        padding: 20px 30px;
    }

    .donation button {
        width: 100%;
    }

}

@media(max-width:768px) {

    .nav {
        min-height: 70vh;
    }

    .navwrap {
        height: 70px;
    }

    .hero {
        min-height: 70vh;
    }

    .herowrap {
        text-align: center;
        padding-top: 70px;
    }

    .sub p {
        margin: auto;
        text-align: center;
    }

}

@media(max-width:480px) {

    .sections {
        width: 100%;
    }

    .logo {
        width: 140px;
    }

    .herowrap h3 {
        line-height: 1.1;
    }

    .sub p {
        padding: 18px;
    }

}

@keyframes fadeSlide {

    0%,
    100% {
        opacity: 0;
    }

    6%,
    33% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #e53935;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff5a4f;
}





























/*=========================================
            EVENTS SECTION
=========================================*/

.events-section {
    width: 100%;
    padding: 90px 0;
    background: #f8fbff;
}

.events-section .container {
    width: 80%;
    max-width: 1450px;
    margin: auto;
}

/*=========================================
            HEADING
=========================================*/

.section-heading {
    text-align: center;
    margin-bottom: 70px;
}

.section-heading span {
    color: #2563eb;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
}

.section-heading h2 {
    font-size: 52px;
    margin: 18px 0;
    color: #102A43;
}

.section-heading p {
    max-width: 700px;
    margin: auto;
    color: #667085;
    line-height: 1.8;
}



/* library */

.resource-hero {
    width: 100%;
    min-height: 40vh;
    /* background:url("../images/resource-banner.jpg") center center/cover no-repeat; */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: rgba(214, 242, 251, 0.173);
    /* color: black; */
}

/* .resource-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.55)
    );
} */

.resource-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #131313;
    max-width: 850px;
    padding: 0 20px;
}

.resource-content h1 {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    animation: fadeUp .8s ease;
}

.resource-content p {
    font-size: 14px;
    line-height: 1.9;
    opacity: .95;
    margin-bottom: 45px;
    animation: fadeUp 1s ease;
}

/* .search-box{
    width:100%;
    max-width:650px;
    margin:auto;
    display:flex;
    align-items:center;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.2);
    border-radius:60px;
    overflow:hidden;
    animation:fadeUp 1.2s ease;
}

.search-box input{
    flex:1;
    height:60px;
    padding:0 25px;
    border:none;
    outline:none;
    background:transparent;
    color:#fff;
    font-size:16px;
}

.search-box input::placeholder{
    color:rgba(255,255,255,.75);
}

.search-box button{
    width:70px;
    height:60px;
    border:none;
    background:#d83529;
    color:#fff;
    font-size:18px;
    cursor:pointer;
    transition:.35s;
}

.search-box button:hover{
    background:#b91f14;
} */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@media(max-width:992px) {

    .resource-content h1 {
        font-size: 48px;
    }

    .resource-content p {
        font-size: 17px;
    }

}

@media(max-width:768px) {

    .resource-hero {
        min-height: 60vh;
    }

    .resource-content h1 {
        font-size: 38px;
    }

    .resource-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    .search-box {
        max-width: 100%;
    }

    .search-box input {
        font-size: 15px;
        padding: 0 18px;
    }

    .search-box button {
        width: 60px;
    }

}

@media(max-width:480px) {

    .resource-content h1 {
        font-size: 30px;
    }

    .resource-content p {
        font-size: 14px;
    }

    .search-box {
        height: 52px;
    }

    .search-box input {
        height: 52px;
    }

    .search-box button {
        height: 52px;
    }

}













/* library 2 */

.resource-library {
    width: 100%;
    padding: 50px 0;
    /* background: #f8f9fc00; */
}

.resource-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    background: #fff;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: .35s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.filter-btn:hover {
    background: #d83529;
    color: #fff;
    transform: translateY(-4px);
}

.filter-btn.active {
    background: #d83529;
    color: #fff;
    box-shadow: 0 15px 35px rgba(216, 53, 41, .35);
}

/* .resource-filter button{
    padding:12px 28px;
    border:none;
    border-radius:50px;
    background:#fff;
    color:#444;
    font-size:15px;
    font-weight:500;
    cursor:pointer;
    transition:.35s ease;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
} */

.resource-filter button:hover,
.resource-filter .active {
    background: #d83529;
    color: #fff;
    transform: translateY(-4px);
}

.resource-grid.one-card {
    display: flex;
    justify-content: center;
}

.resource-grid.one-card .resource-card {
    width: 380px;
}

.resource-grid.two-cards {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.resource-grid.two-cards .resource-card {
    width: 380px;
}

.resource-grid {
    /* height: 50vh; */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 5vh 16vh;
    transition: .4s ease;
}

/* .resource-grid.two-cards{
    grid-template-columns:repeat(2,380px);
    justify-content:center;
} */

.resource-card {
    height: auto;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    transition: .45s ease;
}

/* Hide Animation */

.resource-card {
    opacity: 1;
    transform: scale(1);
    transition:
        opacity .35s ease,
        transform .35s ease;
}

.resource-card.hide {
    opacity: 0;
    transform: scale(.9);
    pointer-events: none;
    display: none;
}


/* .resource-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
} */

.resource-card:hover img {
    transform: scale(1.08);
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(216, 53, 41, .18);
}

.resource-info {
    padding: 28px;
}

.resource-info span {
    display: inline-block;
    background: #ffe7e5;
    color: #d83529;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.resource-info h3 {
    font-size: 26px;
    color: #222;
    margin-bottom: 15px;
    transition: .35s;
}

.resource-card:hover h3 {
    color: #d83529;
}

.resource-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.resource-info a {
    text-decoration: none;
    color: #d83529;
    font-weight: 600;
    transition: .35s ease;
}

.resource-card:hover .resource-info a {
    letter-spacing: 1px;
}

.resource-btn {
    text-align: center;
    margin-top: 60px;
}

.resource-btn button {
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    background: #d83529;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: .35s ease;
}

.resource-btn button:hover {
    background: #111;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

@media(max-width:992px) {

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width:768px) {

    .resource-filter {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 35px;
    }

    .filter-btn {
        width: auto;
        padding: 10px 18px;
        font-size: 14px;
    }

    .resource-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .resource-card {
        max-width: 500px;
        width: 100%;
        margin: auto;
    }

}

/* ===========================
   Small Phones
=========================== */

@media (max-width:480px) {

    .resource-filter {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-btn {
        width: auto;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 30px;
    }

    .resource-grid {
        padding: 3vh 4vh;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .resource-card {
        width: 100%;
        height: 76vh;
        max-width: 100%;
        margin: auto;
    }

    .resource-card img {
        height: 200px;
    }

    .resource-info span {
        font-size: 2vh;
    }

    .resource-info h3 {
        font-size: 2.6vh;
    }

    .resource-info p {
        font-size: 1.6vh;
    }

}

@media (max-width:426px) {

    .resource-library {
        padding: 5vh 0;
    }

    .resource-filter {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 3vh;
    }

    .filter-btn {
        width: auto;
        padding: 7px 12px;
        font-size: 12px;
        border-radius: 30px;
    }

    .resource-grid {
        padding: 2vh;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .resource-card {
        width: 100%;
        height: 62vh;
        border-radius: 16px;
    }

    .resource-card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

    .resource-info {
        padding: 16px;
    }

    .resource-info span {
        font-size: 1.7vh;
    }

    .resource-info h3 {
        font-size: 2.2vh;
        margin: 1vh 0;
    }

    .resource-info p {
        font-size: 1.5vh;
        line-height: 1.5;
    }

    .resource-info a {
        font-size: 1.5vh;
    }

}


@media (max-width:360px) {

    .resource-library {
        padding: 4vh 0;
    }

    .resource-filter {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 2.5vh;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 25px;
    }

    .resource-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 2vh 1.5vh;
    }

    .resource-card {
        width: 100%;
        height: auto;
        border-radius: 14px;
    }

    .resource-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .resource-info {
        padding: 15px;
    }

    .resource-info span {
        font-size: 11px;
    }

    .resource-info h3 {
        font-size: 18px;
        margin: 8px 0;
    }

    .resource-info p {
        font-size: 13px;
        line-height: 1.5;
    }

    .resource-info a {
        font-size: 13px;
    }

}


html {
    scroll-behavior: smooth;
}

.resource-library {
    position: relative;
    overflow: hidden;
}

.resource-library::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    /* background: radial-gradient(circle, rgba(216, 53, 41, .08), transparent 70%); */
    top: -180px;
    left: -180px;
    z-index: 0;
}

.resource-library::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(216, 53, 41, .06), transparent 70%);
    right: -150px;
    bottom: -150px;
    z-index: 0;
}

.resource-library .container {
    position: relative;
    z-index: 2;
}

.resource-card {
    display: block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .35);
}

.resource-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .45),
            transparent);
    transform: skewX(-25deg);
    transition: .8s;
}

.resource-card:hover::before {
    left: 150%;
}

.resource-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    border: 2px red solid;
    /* background:linear-gradient(135deg,#d83529,#ff8c6b); */

    /* -webkit-mask-composite:xor; */
    mask-composite: exclude;
    opacity: 0;
    transition: .4s;
}

.resource-card:hover::after {
    opacity: 1;
}

.resource-info a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.resource-info a::after {
    content: "→";
    transition: .3s;
}

.resource-card:hover .resource-info a::after {
    transform: translateX(6px);
}

.resource-filter button {
    position: relative;
    overflow: hidden;
}

.resource-filter button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .15);
    transform: translateX(-100%);
    transition: .45s;
}

.resource-filter button:hover::before {
    transform: translateX(100%);
}

.search-box {
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.search-box:focus-within {
    box-shadow: 0 20px 45px rgba(216, 53, 41, .25);
}

.search-box button {
    transition: .35s;
}

.search-box button:hover {
    transform: scale(1.05);
}

.resource-btn button {
    position: relative;
    overflow: hidden;
}

.resource-btn button::before {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, .18);
    transition: .4s;
}

.resource-btn button:hover::before {
    width: 100%;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f2f2f2;
}

::-webkit-scrollbar-thumb {
    background: #d83529;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b92018;
}

/* Card appears smoothly */
.resource-card {
    animation: cardFade .8s ease both;
}

.resource-card:nth-child(2) {
    animation-delay: .1s;
}

.resource-card:nth-child(3) {
    animation-delay: .2s;
}

.resource-card:nth-child(4) {
    animation-delay: .3s;
}

.resource-card:nth-child(5) {
    animation-delay: .4s;
}

.resource-card:nth-child(6) {
    animation-delay: .5s;
}

@keyframes cardFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating cards */
.resource-card {
    animation:
        cardFade .8s ease both,
        floating 6s ease-in-out infinite;
}

.resource-card:nth-child(even) {
    animation-delay: .2s;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Image brightness */
.resource-card img {
    filter: brightness(.9);
    transition: .5s;
}

.resource-card:hover img {
    filter: brightness(1);
}

/* Category badge */
.resource-info span {
    transition: .35s;
}


/* Heading animation */
.resource-info h3 {
    transition: .35s;
}

.resource-card:hover h3 {
    letter-spacing: .5px;
}

/* Paragraph animation */
.resource-info p {
    transition: .35s;
}

.resource-card:hover .resource-info p {
    color: #444;
}

/* Button */
.resource-info a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.resource-info a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #d83529;
    bottom: -5px;
    left: 0;
    transition: .35s;
}

.resource-card:hover .resource-info a::before {
    width: 100%;
}

/* Search input */
.search-box input:focus {
    color: #fff;
}

/* Search icon */
.search-box button i {
    transition: .35s;
}

.search-box button:hover i {
    transform: rotate(90deg);
}

/* Filter buttons */
.resource-filter button {
    transition: .35s;
}

.resource-filter button:hover {
    box-shadow: 0 10px 25px rgba(216, 53, 41, .3);
}

/* Load More */
.resource-btn button {
    letter-spacing: .5px;
}

.resource-btn button:hover {
    letter-spacing: 2px;
}

/* Section spacing */
.resource-library {
    padding-bottom: 120px;
}

/*======================================
        RESOURCE IMAGE
======================================*/

.resource-image {

    position: relative;

    width: 100%;

    height: 240px;

    overflow: hidden;

}

.resource-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: .6s ease;

}

/*======================================
        IMAGE OVERLAY
======================================*/

.image-overlay {

    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 35px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background: rgba(0, 0, 0, .82);

    opacity: 0;

    transform: translateY(100%);

    transition: .45s ease;

    z-index: 10;
}



/*======================================
        OVERLAY TEXT
======================================*/

.image-overlay span {

    display: inline-block;

    background: #d83529;

    color: #fff;

    padding: 6px 16px;

    border-radius: 30px;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 18px;

}

.image-overlay h3 {

    color: #fff !important;

    font-size: 28px;

    margin-bottom: 15px;

    transform: translateY(20px);

    transition: .45s ease;

}

.image-overlay p {

    color: #f5f5f5 !important;

    line-height: 1.8;

    font-size: 16px;

    transform: translateY(20px);

    transition: .45s ease;

}

/*======================================
            HOVER
======================================*/

.resource-card:hover .image-overlay {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

    cursor: pointer;

}

.resource-card:hover .image-overlay h3,

.resource-card:hover .image-overlay p {

    transform: translateY(0);

}

.resource-card:hover .resource-image img {

    transform: scale(1.08);

}

/*======================================
        PREMIUM CARD EFFECT
======================================*/

.resource-card {

    border-radius: 20px;
    overflow: hidden;

    background: #fff;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);

    transition: .45s ease;

}

.resource-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 25px 50px rgba(216, 53, 41, .18);

}


/*======================================
        GLASS OVERLAY
======================================*/

.image-overlay {

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

}


/*======================================
        SHINE EFFECT
======================================*/

.resource-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: -130%;

    width: 60%;
    height: 100%;

    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, .35),
            transparent);

    transform: skewX(-25deg);

    transition: .8s;

    z-index: 5;

}

.resource-card:hover::before {

    left: 160%;

}


/*======================================
        BADGE
======================================*/

.image-overlay span {

    transition: .35s;

    color: #d83529;

}

.resource-card:hover .image-overlay span {

    background: #fff;

    color: #d83529;

}


/*======================================
        TEXT ANIMATION
======================================*/

.image-overlay h3 {

    letter-spacing: .5px;

}

.image-overlay p {

    opacity: .9;

}


/*======================================
        IMAGE BRIGHTNESS
======================================*/

.resource-image img {

    filter: brightness(.92);

}

.resource-card:hover .resource-image img {

    filter: brightness(1);

}


/*======================================
        MOBILE
======================================*/

@media(max-width:768px) {

    .resource-image {

        height: 220px;

    }

    .image-overlay {

        padding: 18px;

    }

    .image-overlay h3 {

        font-size: 22px;

    }

    .image-overlay p {

        font-size: 14px;

        line-height: 1.6;

    }

}


@media(max-width:480px) {

    .resource-image {

        height: 180px;

    }

    .image-overlay {

        padding: 15px;

    }

    .image-overlay span {

        font-size: 11px;

    }

    .image-overlay h3 {

        font-size: 18px;

        margin-bottom: 10px;

    }

    .image-overlay p {

        font-size: 12px;

        line-height: 1.5;

    }

}