/* ==========================================================
   RIFA RESOURCES PAGE
   MODERN RESOURCE LIBRARY
========================================================== */
/* Mobile */

.navbar__mobile-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.menu-toggle{
    width:44px;
    height:44px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
}

.menu-toggle span{
    width:24px;
    height:2px;
    background:#fff;
    border-radius:5px;
}

/* Desktop */

@media(min-width:900px){

    .navbar__mobile-actions{
        display:none;
    }

}
.resources-page {
    background: #081C3B;
    color: #ffffff;
    overflow: hidden;
}


/* ==========================================================
   HERO
========================================================== */

.resources-hero {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    padding: 160px 0 120px;

    overflow: hidden;

    background: #081C3B;
}


/* ==========================================================
   HERO BACKGROUND IMAGE
========================================================== */

.resources-hero__media {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center center;

    display: block;

    z-index: 0;
}


/* ==========================================================
   HERO OVERLAY
========================================================== */

.resources-hero__overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(8, 28, 59, 0.98) 0%,
            rgba(8, 28, 59, 0.90) 30%,
            rgba(8, 28, 59, 0.68) 60%,
            rgba(8, 28, 59, 0.38) 100%
        );
}


/* ==========================================================
   HERO BOTTOM FADE
========================================================== */

.resources-hero__overlay::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 190px;

    background:
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(8, 28, 59, 0.30) 45%,
            #081C3B 100%
        );
}


/* ==========================================================
   HERO CONTENT
========================================================== */

.resources-hero .container {
    position: relative;

    z-index: 2;
}


/* ==========================================================
   HERO EYEBROW
========================================================== */

.resources-hero__eyebrow {
    display: flex;

    align-items: center;

    gap: 16px;

    width: fit-content;

    margin-bottom: 32px;

    color: #FFC83D;

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 4px;

    text-transform: uppercase;
}


.resources-hero__eyebrow::before {
    content: "";

    width: 55px;
    height: 2px;

    flex-shrink: 0;

    background: #FFC83D;

    box-shadow:
        0 0 12px rgba(255, 200, 61, 0.45);
}


/* ==========================================================
   HERO TITLE
========================================================== */

.resources-hero__title {
    display: flex;

    flex-direction: column;

    margin: 0;

    line-height: 0.88;

    letter-spacing: -4px;
}


/* RESOURCE */

.resources-hero__title span:first-child {
    font-size: clamp(4rem, 9vw, 8rem);

    font-weight: 900;

    color: transparent;

    -webkit-text-fill-color: transparent;

    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.95);

    text-shadow:
        0 0 30px rgba(255, 255, 255, 0.04);
}


/* LIBRARY */

.resources-hero__title span:last-child {
    margin-left: 80px;

    font-size: clamp(4rem, 9vw, 8rem);

    font-weight: 900;

    color: #ffffff;

    text-shadow:
        0 15px 50px rgba(0, 0, 0, 0.35);
}


/* ==========================================================
   HERO DESCRIPTION
========================================================== */

.resources-hero__description {
    max-width: 650px;

    margin-top: 42px;

    color: #D7E3F2;

    font-size: 1.08rem;

    line-height: 1.85;
}


/* ==========================================================
   RESOURCE LIST
========================================================== */

.resources-list {
    position: relative;

    padding: 30px 0 130px;

    background: #081C3B;
}


/* ==========================================================
   RESOURCE ITEM
========================================================== */

.resource-item {
    position: relative;

    display: grid;

    grid-template-columns: 70px minmax(0, 1fr) auto;

    align-items: center;

    gap: 40px;

    padding: 38px 28px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(255, 255, 255, 0.015);

    overflow: hidden;

    transition:
        transform 0.4s ease,
        background 0.4s ease,
        border-color 0.4s ease;
}


/* Last item border */

.resource-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* ==========================================================
   LEFT HOVER INDICATOR
========================================================== */

.resource-item::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 0;

    background: #FFC83D;

    transition: height 0.45s ease;
}


/* ==========================================================
   BOTTOM HOVER LINE
========================================================== */

.resource-item::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background: #FFC83D;

    box-shadow:
        0 0 15px rgba(255, 200, 61, 0.6);

    transition: width 0.5s ease;
}


/* ==========================================================
   RESOURCE ITEM HOVER
========================================================== */

.resource-item:hover {
    transform: translateX(8px);

    background:
        linear-gradient(
            90deg,
            rgba(255, 200, 61, 0.06),
            rgba(255, 255, 255, 0.02)
        );

    border-color: rgba(255, 200, 61, 0.18);
}


.resource-item:hover::before {
    height: 100%;
}


.resource-item:hover::after {
    width: 100%;
}


/* ==========================================================
   RESOURCE NUMBER
========================================================== */

.resource-item__number {
    position: relative;

    color: #FFC83D;

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: 2px;

    opacity: 0.85;
}


/* ==========================================================
   RESOURCE CONTENT
========================================================== */

.resource-item__content h2 {
    margin: 0;

    color: #ffffff;

    font-size: 1.45rem;

    font-weight: 750;

    letter-spacing: -0.3px;

    transition: color 0.3s ease;
}


.resource-item:hover .resource-item__content h2 {
    color: #FFC83D;
}


.resource-item__content p {
    max-width: 680px;

    margin: 11px 0 0;

    color: #AFC0D8;

    font-size: 0.95rem;

    line-height: 1.75;
}


/* ==========================================================
   RESOURCE BUTTON
========================================================== */

.resource-item__button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    min-width: 130px;

    padding: 13px 18px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    color: #ffffff;

    text-decoration: none;

    text-transform: uppercase;

    font-size: 0.7rem;

    font-weight: 800;

    letter-spacing: 2px;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}


.resource-item__button span {
    font-size: 1.1rem;

    transition:
        transform 0.35s ease;
}


/* Button hover */

.resource-item:hover .resource-item__button {
    color: #081C3B;

    background: #FFC83D;

    border-color: #FFC83D;

    transform: translateY(-2px);
}


.resource-item:hover .resource-item__button span {
    transform: translateX(5px);
}


/* ==========================================================
   CTA
========================================================== */

.resources-cta {
    position: relative;

    padding: 140px 0;

    text-align: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 200, 61, 0.06),
            transparent 50%
        ),
        #071932;
}


/* ==========================================================
   CTA GRID
========================================================== */

.resources-cta::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    pointer-events: none;
}


/* ==========================================================
   CTA CONTENT
========================================================== */

.resources-cta .container {
    position: relative;

    z-index: 2;
}


/* ==========================================================
   CTA EYEBROW
========================================================== */

.resources-cta__eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    color: #FFC83D;

    text-transform: uppercase;

    letter-spacing: 4px;

    font-size: 0.7rem;

    font-weight: 800;
}


.resources-cta__eyebrow::before,
.resources-cta__eyebrow::after {
    content: "";

    width: 45px;
    height: 1px;

    background: #FFC83D;

    opacity: 0.7;
}


/* ==========================================================
   CTA TITLE
========================================================== */

.resources-cta h2 {
    max-width: 900px;

    margin: 32px auto 24px;

    color: #ffffff;

    font-size: clamp(2.8rem, 6vw, 5.8rem);

    line-height: 0.95;

    font-weight: 900;

    letter-spacing: -3px;
}


/* ==========================================================
   CTA DESCRIPTION
========================================================== */

.resources-cta p {
    max-width: 680px;

    margin: 0 auto 42px;

    color: #B9C8DB;

    font-size: 1rem;

    line-height: 1.85;
}


/* ==========================================================
   CTA BUTTON
========================================================== */

.resources-cta .btn-primary {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 54px;

    padding: 0 30px;

    background: #FFC83D;

    border: 1px solid #FFC83D;

    color: #081C3B;

    text-decoration: none;

    font-size: 0.75rem;

    font-weight: 900;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


.resources-cta .btn-primary:hover {
    transform: translateY(-4px);

    background: #ffffff;

    border-color: #ffffff;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.25);
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 992px) {

    .resources-hero {
        min-height: 620px;

        padding: 140px 0 100px;
    }


    .resources-hero__media {
        object-position: 60% center;
    }


    .resources-hero__title span:last-child {
        margin-left: 45px;
    }


    .resources-hero__description {
        max-width: 600px;
    }


    /* Resource items */

    .resource-item {
        grid-template-columns: 55px minmax(0, 1fr);

        gap: 25px;

        padding: 35px 20px;
    }


    .resource-item__button {
        grid-column: 2;

        width: fit-content;

        margin-top: 5px;
    }


    /* CTA */

    .resources-cta {
        padding: 110px 0;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    /* HERO */

    .resources-hero {
        min-height: 620px;

        padding: 120px 0 90px;

        align-items: center;
    }


    .resources-hero__media {
        object-position: 65% center;
    }


    .resources-hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 28, 59, 0.97) 0%,
                rgba(8, 28, 59, 0.85) 55%,
                rgba(8, 28, 59, 0.58) 100%
            );
    }


    .resources-hero__eyebrow {
        gap: 10px;

        margin-bottom: 25px;

        font-size: 0.65rem;

        letter-spacing: 2.5px;
    }


    .resources-hero__eyebrow::before {
        width: 35px;
    }


    .resources-hero__title {
        letter-spacing: -2px;
    }


    .resources-hero__title span:first-child,
    .resources-hero__title span:last-child {
        font-size: clamp(3.2rem, 15vw, 5rem);
    }


    .resources-hero__title span:first-child {
        -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
    }


    .resources-hero__title span:last-child {
        margin-left: 0;
    }


    .resources-hero__description {
        margin-top: 30px;

        font-size: 0.95rem;

        line-height: 1.75;
    }


    /* ======================================================
       RESOURCE LIST
    ====================================================== */

    .resources-list {
        padding: 10px 0 80px;
    }


    .resource-item {
        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

        padding: 30px 18px;
    }


    .resource-item:hover {
        transform: none;
    }


    .resource-item__number {
        font-size: 0.85rem;
    }


    .resource-item__content h2 {
        font-size: 1.25rem;
    }


    .resource-item__content p {
        margin-top: 8px;

        font-size: 0.9rem;

        line-height: 1.7;
    }


    .resource-item__button {
        width: 100%;

        margin-top: 8px;
    }


    /* ======================================================
       CTA
    ====================================================== */

    .resources-cta {
        padding: 90px 20px;
    }


    .resources-cta__eyebrow {
        gap: 9px;

        font-size: 0.62rem;

        letter-spacing: 2.5px;
    }


    .resources-cta__eyebrow::before,
    .resources-cta__eyebrow::after {
        width: 25px;
    }


    .resources-cta h2 {
        margin-top: 25px;

        font-size: clamp(2.4rem, 12vw, 3.8rem);

        letter-spacing: -2px;
    }


    .resources-cta p {
        font-size: 0.92rem;

        line-height: 1.75;
    }


    .resources-cta .btn-primary {
        width: 100%;

        padding: 0 20px;
    }

}


/* ==========================================================
   VERY SMALL SCREENS
========================================================== */

@media (max-width: 480px) {

    .resources-hero {
        min-height: 590px;

        padding: 110px 0 80px;
    }


    .resources-hero__media {
        object-position: 70% center;
    }


    .resources-hero__title span:first-child,
    .resources-hero__title span:last-child {
        font-size: 3.1rem;
    }


    .resources-hero__description {
        font-size: 0.88rem;
    }


    .resource-item {
        padding: 27px 15px;
    }


    .resource-item__content h2 {
        font-size: 1.15rem;
    }


    .resources-cta h2 {
        font-size: 2.35rem;
    }

}