/* =========================================================
   ARCHIVE CATEGORY LIST
   Dark / Red / Modern / Responsive
========================================================= */

:root {
    --archive-bg: #07090c;
    --archive-card: #11151a;
    --archive-card-hover: #171c22;

    --archive-red: #d71920;
    --archive-red-light: #ef3340;

    --archive-text: #f5f5f5;
    --archive-muted: #8f969f;

    --archive-border: rgba(255, 255, 255, .08);
}


/* =========================================================
   PAGE
========================================================= */

main.container.my-5 {
    min-height: 70vh;
}

main.container.my-5 > h2 {
    position: relative;

    margin-bottom: 45px;

    color: #fff;

    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;

    text-align: center;
}

main.container.my-5 > h2::after {
    content: "";

    display: block;

    width: 65px;
    height: 3px;

    margin: 13px auto 0;

    background: linear-gradient(
        90deg,
        var(--archive-red),
        var(--archive-red-light)
    );

    border-radius: 50px;

    box-shadow:
        0 0 15px rgba(215, 25, 32, .3);
}


/* =========================================================
   WRAPPER
========================================================= */

.wrapper {
    width: 100%;
    max-width: 1150px;

    margin: 0 auto;
}

.container-ar {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}


/* =========================================================
   ARCHIVE CARD
========================================================= */

.my-container {
    position: relative;

    min-height: 78px;

    display: flex !important;
    align-items: center;
    gap: 14px !important;

    padding: 15px 18px;

    overflow: hidden;

    color: var(--archive-text) !important;
    text-decoration: none !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.008)
        ),
        var(--archive-card);

    border: 1px solid var(--archive-border);

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.18);

    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}


/* red glow on right */

.my-container::before {
    content: "";

    position: absolute;

    top: -60px;
    right: -60px;

    width: 130px;
    height: 130px;

    background: radial-gradient(
        circle,
        rgba(215,25,32,.16),
        transparent 70%
    );

    pointer-events: none;

    transition: transform .4s ease;
}


/* red line */

.my-container::after {
    content: "";

    position: absolute;

    right: 0;
    top: 15px;
    bottom: 15px;

    width: 3px;

    background: linear-gradient(
        180deg,
        var(--archive-red-light),
        var(--archive-red)
    );

    border-radius: 10px;

    transform: scaleY(.3);

    opacity: .5;

    transition:
        transform .3s ease,
        opacity .3s ease;
}


/* =========================================================
   HOVER
========================================================= */

.my-container:hover {
    color: #fff !important;

    background:
        linear-gradient(
            145deg,
            rgba(215,25,32,.10),
            rgba(255,255,255,.015)
        ),
        var(--archive-card-hover);

    border-color: rgba(215,25,32,.38);

    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.35),
        0 0 25px rgba(215,25,32,.07);
}

.my-container:hover::before {
    transform: scale(1.5);
}

.my-container:hover::after {
    transform: scaleY(1);
    opacity: 1;
}


/* =========================================================
   ICONS
========================================================= */

.my-container > i {
    position: relative;
    z-index: 2;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--archive-red-light);

    font-size: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(215,25,32,.16),
            rgba(215,25,32,.04)
        );

    border: 1px solid rgba(215,25,32,.20);

    border-radius: 12px;

    transition:
        transform .3s ease,
        color .3s ease,
        background .3s ease;
}

.my-container:hover > i {
    color: #fff;

    background: var(--archive-red);

    border-color: var(--archive-red);

    transform: scale(1.08) rotate(-3deg);

    box-shadow:
        0 6px 18px rgba(215,25,32,.25);
}


/* =========================================================
   SECOND ICON
========================================================= */

.my-container > i + i {
    width: auto;
    height: auto;

    margin-right: -7px;

    color: #777e87;

    font-size: 11px;

    background: transparent;

    border: 0;

    box-shadow: none;
}

.my-container:hover > i + i {
    color: var(--archive-red-light);

    background: transparent;

    border: 0;

    transform: rotate(-15deg);
}


/* =========================================================
   TEXT
========================================================= */

.btn-file {
    position: relative;
    z-index: 2;

    flex: 1;

    min-width: 0;

    color: #e9eaec;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.8;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: color .25s ease;
}

.my-container:hover .btn-file {
    color: #fff;
}


/* =========================================================
   CEREMONY ICON
========================================================= */

.fa-people-line {
    color: #e5e7eb;
}


/* =========================================================
   EMPTY
========================================================= */

.container-ar small {
    grid-column: 1 / -1;

    display: block;

    padding: 35px 20px;

    color: var(--archive-muted);

    text-align: center;

    background: var(--archive-card);

    border: 1px dashed rgba(255,255,255,.1);

    border-radius: 16px;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.wrapper > button {
    min-width: 120px;

    margin-top: 30px !important;

    padding: 8px 18px !important;

    color: #ddd;

    font-family: inherit;

    border: 1px solid rgba(255,255,255,.13) !important;

    border-radius: 50px !important;

    background: rgba(255,255,255,.02);

    transition:
        all .3s ease;
}

.wrapper > button:hover {
    color: #fff;

    background: var(--archive-red);

    border-color: var(--archive-red) !important;

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(215,25,32,.2);
}


/* =========================================================
   FADE IN
========================================================= */

.my-container {
    animation: archiveCardIn .5s ease both;
}

.my-container:nth-child(2) {
    animation-delay: .05s;
}

.my-container:nth-child(3) {
    animation-delay: .1s;
}

.my-container:nth-child(4) {
    animation-delay: .15s;
}

.my-container:nth-child(5) {
    animation-delay: .2s;
}

.my-container:nth-child(6) {
    animation-delay: .25s;
}

@keyframes archiveCardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .container-ar {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 15px;
    }

    .my-container {
        min-height: 72px;

        padding: 13px 15px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    main.container.my-5 {
        margin-top: 30px !important;
    }

    main.container.my-5 > h2 {
        margin-bottom: 30px;

        font-size: 23px;
    }

    .container-ar {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .my-container {
        min-height: 68px;

        padding: 12px 14px;

        border-radius: 14px;
    }

    .my-container > i {
        width: 38px;
        height: 38px;

        font-size: 15px;

        border-radius: 10px;
    }

    .my-container > i + i {
        width: auto;
        height: auto;

        margin-right: -5px;

        font-size: 9px;
    }

    .btn-file {
        font-size: 13px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    main.container.my-5 > h2 {
        font-size: 21px;
    }

    .my-container {
        min-height: 62px;

        padding: 10px 12px;
    }

    .my-container > i {
        width: 35px;
        height: 35px;

        font-size: 14px;
    }

    .btn-file {
        font-size: 12px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}






/* =========================================
   ARCHIVE GRID - DESKTOP
========================================= */

.container-ar {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px 25px;
}


/* =========================================
   ARCHIVE BUTTON
========================================= */

.my-container {
    width: 100% !important;
    min-width: 0;

    min-height: 92px;

    display: flex !important;
    align-items: center;

    padding: 18px 22px !important;

    box-sizing: border-box;

    margin: 0 !important;
}


/* =========================================
   ICON
========================================= */

.my-container > i:first-child {
    flex: 0 0 50px;

    width: 50px !important;
    height: 50px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px !important;
}


/* =========================================
   TEXT
========================================= */

.btn-file {
    flex: 1;

    min-width: 0;

    font-size: 15px !important;

    white-space: normal;

    overflow: hidden;

    text-overflow: ellipsis;

    line-height: 1.8;
}


/* =========================================
   DESKTOP
========================================= */

@media (min-width: 992px) {

    .container-ar {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        width: 95%;

        max-width: 1100px;

        margin-left: auto;
        margin-right: auto;
    }

    .my-container {
        min-height: 95px;
    }

}


/* =========================================
   LARGE DESKTOP
========================================= */

@media (min-width: 1400px) {

    .container-ar {
        max-width: 1200px;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 24px 30px;
    }

    .my-container {
        min-height: 100px;
    }

    .btn-file {
        font-size: 16px !important;
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .container-ar {
        grid-template-columns: 1fr 1fr;

        gap: 15px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .container-ar {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 13px;
    }

    .my-container {
        min-height: 75px;

        padding: 14px 16px !important;
    }

    .my-container > i:first-child {
        flex-basis: 43px;

        width: 43px !important;
        height: 43px !important;

        font-size: 16px !important;
    }

    .btn-file {
        font-size: 13px !important;
    }

}