
/* =========================================================
   TOP HEADER
========================================================= */

.top-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    direction: ltr;
}


/* =========================================================
   HEADER CONTAINER
========================================================= */

.header-container {
    width: 95%;
    max-width: 1850px;
    min-height: 100px;

    margin: auto;

    display: flex;
    align-items: center;

    gap: 18px;
}


/* =========================================================
   TOP ADVERTISEMENT
========================================================= */

.top-ad {
    width: 100%;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f1f1f1;

    flex: 1 1 auto;
    min-width: 0;
}

.top-ad a {
    display: block;

    width: 100%;
    height: 100%;
}

.top-ad img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   AD PLACEHOLDER
========================================================= */

.top-ad > span {
    color: #888;

    font-family: Arial, sans-serif;
    font-size: 14px;
}


/* =========================================================
   SEPARATOR
========================================================= */

.header-separator {
    width: 1px;
    height: 38px;

    display: block;

    background: #d71920;

    flex-shrink: 0;
}


/* =========================================================
   CENTER
========================================================= */

.header-center {
    display: flex;
    align-items: center;

    direction: rtl;

    flex-shrink: 0;
}


/* =========================================================
   CENTER LINKS
========================================================= */

.header-center-links {
    display: flex;
    align-items: center;

    gap: 25px;

    margin: 0;
    padding: 0;

    list-style: none;

    white-space: nowrap;
}

.header-center-links li {
    margin: 0;
    padding: 0;
}

.header-center-links a {
    color: #222;

    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 400;

    transition: color .2s ease;
}

.header-center-links a:hover {
    color: #d71920;
}


/* =========================================================
   LAST LINK
========================================================= */

.header-center-links li:last-child a {
    color: #c37c12;
    font-weight: 600;
}

.header-center-links li:last-child a:hover {
    color: #362e2e;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    width: 450px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;

    flex-shrink: 0;
}

.logo a {
    display: block;

    text-decoration: none;
}

.logo img {
    width: 280px;
    height: 75px;

    display: block;

    object-fit: contain;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .header-container {
        width: 100%;
        max-width: 100%;

        gap: 12px;

        padding: 0 15px;

        box-sizing: border-box;
    }

    .top-ad {
        width: 25%;
        flex: 1 1 25%;

        min-width: 0;
    }

    .header-center {
        min-width: 0;
    }

    .header-center-links {
        gap: 15px;
    }

    .header-center-links a {
        font-size: 16px;
    }

    .logo {
        width: 300px;
    }

    .logo img {
        width: 260px;
        height: 75px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .top-header {
        display: none;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .top-header {
        display: none;
    }

}


    /* =========================================================
   MOBILE SEARCH 
========================================================= */

    .msearch-form {
        position: relative;
        width: 100%;
        margin: 20px 0;
        direction: rtl;
        z-index: 100;
    }


    /* =========================================================
   SEARCH BOX
========================================================= */

    .msearch-box {
        width: 100%;
        height: 50px;

        display: flex;
        align-items: center;

        position: relative;

        background: #fff;

        border: 1px solid #ddd;
        border-radius: 8px;

        overflow: hidden;

        transition: .25s ease;
    }


    /* Focus */

    .msearch-box:focus-within {
        border-color: #d71920;

        box-shadow:
            0 0 0 3px rgba(215, 25, 32, .08);
    }


    /* =========================================================
   SEARCH ICON
========================================================= */

    .msearch-icon {
        width: 45px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: #777;

        font-size: 18px;

        flex-shrink: 0;
    }


    /* =========================================================
   INPUT
========================================================= */

    .msearch-box input {
        flex: 1;

        width: 100%;
        height: 100%;

        border: 0;
        outline: 0;

        background: transparent;

        padding: 0 5px;

        color: #222;

        font-family: inherit;
        font-size: 14px;

        direction: rtl;
    }

    .msearch-box input::placeholder {
        color: #999;
    }


    /* =========================================================
   SUBMIT BUTTON
========================================================= */

    .msearch-submit {
        width: 45px;
        height: 100%;

        border: 0;

        background: #d71920;
        color: #fff;

        display: flex;
        align-items: center;
        justify-content: center;

        cursor: pointer;

        font-size: 17px;

        transition: .2s ease;

        flex-shrink: 0;
    }

    .msearch-submit:hover {
        background: #b9141a;
    }


    /* =========================================================
   SEARCH RESULTS
========================================================= */

    .msearch-results {
        position: absolute;

        top: calc(100% + 6px);

        right: 0;
        left: 0;

        background: #fff;

        border: 1px solid #e5e5e5;

        border-radius: 8px;

        box-shadow:
            0 10px 30px rgba(0, 0, 0, .12);

        overflow: hidden;

        display: none;

        max-height: 320px;

        overflow-y: auto;

        z-index: 9999;
    }


    /* Active */

    .msearch-results.msearch-show {
        display: block;
    }


    /* =========================================================
   RESULT ITEM
========================================================= */

    .msearch-item {
        display: flex;

        align-items: center;

        gap: 12px;

        padding: 12px;

        border-bottom: 1px solid #eee;

        color: #222;

        text-decoration: none;

        direction: rtl;

        transition: .2s ease;
    }

    .msearch-item:last-child {
        border-bottom: 0;
    }

    .msearch-item:hover {
        background: #f8f8f8;
    }


    /* =========================================================
   RESULT ICON
========================================================= */

    .msearch-item-icon {
        width: 36px;
        height: 36px;

        border-radius: 6px;

        background: #f5f5f5;

        color: #d71920;

        display: flex;

        align-items: center;
        justify-content: center;

        flex-shrink: 0;
    }


    /* =========================================================
   RESULT CONTENT
========================================================= */

    .msearch-item-content {
        min-width: 0;

        display: flex;

        flex-direction: column;

        gap: 3px;
    }

    .msearch-item-content strong {
        font-size: 13px;

        line-height: 1.5;

        color: #222;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }

    .msearch-item-content span {
        color: #d71920;

        font-size: 11px;
    }


    /* =========================================================
   NO RESULTS
========================================================= */

    .msearch-empty {
        padding: 18px;

        text-align: center;

        color: #888;

        font-size: 13px;
    }


    /* =========================================================
   SCROLLBAR
========================================================= */

    .msearch-results::-webkit-scrollbar {
        width: 5px;
    }

    .msearch-results::-webkit-scrollbar-thumb {
        background: #ccc;

        border-radius: 10px;
    }


    /* =========================================================
   DESKTOP
========================================================= */
@media (min-width: 901px) {

    .msearch-form {
        display: none;
    }

}


    /* =========================================================
   SEARCH PAGE ADS
========================================================= */

    .search-ad {
        width: 100%;
        min-height: 120px;

        margin: 25px 0;

        background: #f7f7f7;

        border: 1px solid #e5e5e5;

        display: flex;
        align-items: center;
        justify-content: center;

        position: relative;

        overflow: hidden;

        box-sizing: border-box;
    }


    /* =========================================================
   AD LABEL
========================================================= */

    .search-ad span {
        position: absolute;

        top: 8px;
        left: 50%;

        transform: translateX(-50%);

        color: #999;

        font-size: 11px;

        font-family: Arial, sans-serif;

        white-space: nowrap;
    }


    /* =========================================================
   TOP AD
========================================================= */

    .search-ad-top {

        min-height: 140px;

        margin-top: 25px;

        margin-bottom: 30px;

    }


    /* =========================================================
   BETWEEN NEWS ADS
========================================================= */

    .search-ad-between {

        min-height: 120px;

        margin: 30px 0;

    }


    /* =========================================================
   BOTTOM AD
========================================================= */

    .search-ad-bottom {

        min-height: 140px;

        margin-top: 35px;

        margin-bottom: 30px;

    }


    /* =========================================================
   NO RESULTS AD
========================================================= */

    .search-ad-no-results {

        max-width: 700px;

        min-height: 120px;

        margin: 30px auto;

    }


    /* =========================================================
   HOME BUTTON
========================================================= */

    .search-home-button {

        display: inline-block;

        margin-top: 20px;

        padding: 10px 20px;

        background: #d71920;

        color: #fff;

        text-decoration: none;

        border-radius: 5px;

        transition: .2s ease;
    }


    .search-home-button:hover {

        background: #b9141a;

        color: #fff;

    }

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .search-ad {

        width: 100%;
        max-width: 100%;
        min-width: 0;

        min-height: 100px;

        margin: 20px 0;

        box-sizing: border-box;

        overflow: hidden;

    }


    .search-ad-top {

        width: 100%;
        max-width: 100%;
        min-width: 0;

        min-height: 100px;

        margin-top: 20px;

        margin-bottom: 20px;

        box-sizing: border-box;

        overflow: hidden;

    }


    .search-ad-between {

        width: 100%;
        max-width: 100%;
        min-width: 0;

        min-height: 100px;

        margin: 20px 0;

        box-sizing: border-box;

        overflow: hidden;

    }


    .search-ad-bottom {

        width: 100%;
        max-width: 100%;
        min-width: 0;

        min-height: 100px;

        margin-top: 25px;

        margin-bottom: 25px;

        box-sizing: border-box;

        overflow: hidden;

    }


    .search-ad-no-results {

        width: 100%;
        max-width: 100%;
        min-width: 0;

        min-height: 100px;

        margin: 25px auto;

        box-sizing: border-box;

        overflow: hidden;

    }


    .search-ad img,
    .search-ad-top img,
    .search-ad-between img,
    .search-ad-bottom img,
    .search-ad-no-results img {

        max-width: 100%;
        height: auto;

        object-fit: cover;

    }

}


    /* =========================================================
   TOP ADVERTISEMENT
========================================================= */

.home-top-ad {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 430px;

    overflow: hidden;

    background: #f5f5f5;

    border: 1px solid #e5e5e5;
}

.home-ad-link {
    display: block;

    width: 100%;
    height: 100%;
}

.home-top-ad-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .45s ease;
}

.home-ad-link:hover .home-top-ad-image {
    transform: scale(1.03);
}


/* =========================================================
   EMPTY / GOOGLE AD
========================================================= */

.home-top-ad .ad-inner {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    text-align: center;

    color: #888;
}

.home-top-ad .ad-label {
    position: absolute;

    top: 12px;
    right: 12px;

    padding: 4px 9px;

    border-radius: 4px;

    background: #e9e9e9;

    color: #777;

    font-size: 9px;

    font-weight: 800;
}

.home-top-ad .ad-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ececec;

    color: #999;

    font-size: 24px;
}

.home-top-ad .ad-inner strong {
    color: #555;

    font-size: 15px;

    font-weight: 900;
}

.home-top-ad .ad-inner small {
    color: #999;

    font-size: 10px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .home-top-ad {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        min-height: 250px;

        box-sizing: border-box;

        overflow: hidden;
    }

}


@media (max-width: 600px) {

    .home-top-ad {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        min-height: 200px;

        box-sizing: border-box;

        overflow: hidden;
    }

    .home-top-ad img {
        width: 100%;
        max-width: 100%;
        height: auto;

        object-fit: cover;
    }

}

/* =========================================================
   PAPER ARCHIVE
========================================================= */

.papers-showcase {

    width: 100%;

    margin: 60px 0;

    padding: 35px 0 10px;

    direction: rtl;

}


/* =========================================================
   HEADER
========================================================= */

.papers-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 25px;

    padding-bottom: 18px;

    border-bottom: 2px solid #111;

}


.papers-kicker {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 7px;

    color: #b00000;

    font-size: 11px;

    font-weight: 900;

}


.papers-kicker i {

    font-size: 14px;

}


.papers-header h2 {

    margin: 0;

    color: #111;

    font-size: 30px;

    font-weight: 900;

}


.papers-header p {

    margin: 6px 0 0;

    color: #777;

    font-size: 12px;

}


/* =========================================================
   SCROLL CONTAINER
========================================================= */

.papers-scroll {

    display: flex;

    gap: 22px;

    width: 100%;

    overflow-x: auto;

    overflow-y: hidden;

    padding: 10px 5px 25px;

    scroll-behavior: smooth;

    scroll-snap-type: x mandatory;

    scrollbar-width: thin;

    box-sizing: border-box;

}


/* =========================================================
   SCROLLBAR
========================================================= */

.papers-scroll::-webkit-scrollbar {

    height: 7px;

}


.papers-scroll::-webkit-scrollbar-track {

    background: #eee;

    border-radius: 20px;

}


.papers-scroll::-webkit-scrollbar-thumb {

    background: #b00000;

    border-radius: 20px;

}


.papers-scroll::-webkit-scrollbar-thumb:hover {

    background: #850000;

}


/* =========================================================
   PAPER CARD
   DESKTOP = 4 CARDS
========================================================= */

.paper-card {

    flex: 0 0 calc((100% - 66px) / 4);

    width: calc((100% - 66px) / 4);

    max-width: calc((100% - 66px) / 4);

    min-width: 0;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 5px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .07);

    scroll-snap-align: start;

    box-sizing: border-box;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.paper-card:hover {

    transform: translateY(-7px);

    box-shadow:
        0 16px 35px rgba(0, 0, 0, .13);

}


/* =========================================================
   COVER
========================================================= */

.paper-card-cover {

    position: relative;

    width: 100%;

    height: 325px;

    overflow: hidden;

    background: #eee;

}


.paper-card-cover img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .5s ease;

}


.paper-card:hover
.paper-card-cover img {

    transform: scale(1.04);

}


/* =========================================================
   NO COVER
========================================================= */

.paper-card-no-cover {

    width: 100%;

    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    background:
        linear-gradient(
            145deg,
            #222,
            #444
        );

    color: #fff;

}


.paper-card-no-cover i {

    font-size: 55px;

}


.paper-card-no-cover strong {

    font-size: 16px;

}


/* =========================================================
   PDF BADGE
========================================================= */

.paper-pdf-badge {

    position: absolute;

    top: 12px;

    right: 12px;

    padding: 6px 9px;

    background: #b00000;

    color: #fff;

    border-radius: 3px;

    font-size: 10px;

    font-weight: 900;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, .2);

}


/* =========================================================
   OVERLAY
========================================================= */

.paper-card-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(0, 0, 0, .55);

    opacity: 0;

    transition:
        opacity .3s ease;

}


.paper-card:hover
.paper-card-overlay {

    opacity: 1;

}


.paper-view-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 11px 17px;

    background: #fff;

    color: #111 !important;

    border-radius: 4px;

    text-decoration: none;

    font-size: 11px;

    font-weight: 900;

    transition: .2s;

}


.paper-view-btn:hover {

    background: #b00000;

    color: #fff !important;

}


/* =========================================================
   CONTENT
========================================================= */

.paper-card-content {

    padding: 17px;

}


.paper-card-label {

    color: #b00000;

    font-size: 9px;

    font-weight: 900;

}


.paper-card-content h3 {

    height: 45px;

    overflow: hidden;

    margin: 6px 0 12px;

    color: #151515;

    font-size: 15px;

    font-weight: 900;

    line-height: 1.5;

}


/* =========================================================
   META
========================================================= */

.paper-card-meta {

    display: flex;

    align-items: center;

    gap: 10px;

    padding-top: 10px;

    border-top: 1px solid #eee;

}


.paper-card-meta span {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    color: #777;

    font-size: 9px;

}


.paper-card-meta i {

    color: #b00000;

}


/* =========================================================
   ACTIONS
========================================================= */

.paper-card-actions {

    display: flex;

    gap: 7px;

    margin-top: 15px;

}


.paper-card-actions a {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    min-height: 34px;

    border-radius: 3px;

    background: #111;

    color: #fff !important;

    text-decoration: none;

    font-size: 9px;

    font-weight: 800;

    transition: .2s;

}


.paper-card-actions a:hover {

    background: #b00000;

}

/* =========================================================
   LAPTOP / TABLET
   3 CARDS
========================================================= */

@media (max-width: 1100px) {

    .papers-showcase {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .paper-card {

        flex: 0 0 calc((100% - 44px) / 3);

        width: calc((100% - 44px) / 3);

        max-width: calc((100% - 44px) / 3);

        min-width: 0;

        box-sizing: border-box;

    }


    .paper-card-cover {

        height: 300px;

        width: 100%;
        max-width: 100%;

        object-fit: cover;

    }

}


/* =========================================================
   TABLET
   2 CARDS
========================================================= */

@media (max-width: 750px) {

    .papers-showcase {

        margin: 45px 0;

        width: 100%;
        max-width: 100%;
        min-width: 0;

    }


    .papers-header {

        margin-bottom: 20px;

        min-width: 0;

    }


    .papers-header h2 {

        font-size: 26px;

        line-height: 1.5;

        overflow-wrap: anywhere;

    }


    .paper-card {

        flex: 0 0 calc((100% - 22px) / 2);

        width: calc((100% - 22px) / 2);

        max-width: calc((100% - 22px) / 2);

        min-width: 0;

    }


    .paper-card-cover {

        height: 280px;

        width: 100%;
        max-width: 100%;

        object-fit: cover;

    }

}


/* =========================================================
   MOBILE
   1.5 CARD تقريبًا
========================================================= */

@media (max-width: 550px) {

    .papers-showcase {

        margin: 40px 0;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        overflow: hidden;

    }


    .papers-header {

        padding-bottom: 14px;

        min-width: 0;

    }


    .papers-header h2 {

        font-size: 23px;

        line-height: 1.5;

        overflow-wrap: anywhere;

    }


    .papers-header p {

        font-size: 10px;

        line-height: 1.7;

        overflow-wrap: anywhere;

    }


    .papers-scroll {

        gap: 14px;

        padding: 8px 5px 20px;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        overflow-x: auto;
        overflow-y: hidden;

        box-sizing: border-box;

    }


    .paper-card {

        flex: 0 0 75%;

        width: 75%;

        max-width: 75%;

        min-width: 0;

        box-sizing: border-box;

    }


    .paper-card-cover {

        height: 300px;

        width: 100%;
        max-width: 100%;

        object-fit: cover;

    }


    .paper-card-content {

        padding: 14px;

        min-width: 0;

        box-sizing: border-box;

    }


    .paper-card-content h3 {

        overflow-wrap: anywhere;

        line-height: 1.6;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .paper-card {

        flex: 0 0 82%;

        width: 82%;

        max-width: 82%;

        min-width: 0;

    }


    .paper-card-cover {

        height: 280px;

    }


    .paper-card-content {

        padding: 12px;

    }


    .paper-card-content h3 {

        font-size: 14px;

        line-height: 1.6;

        overflow-wrap: anywhere;

    }

}