
/* ==========================================
   AHMED ALSADEK - PORTFOLIO CARDS
   Class: aas-portfolio-card
========================================== */

/* GRID */
.aas-portfolio-card .row > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

/* CARD */
.aas-portfolio-card .article {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff !important;
    border: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px #00000012;
    transition: transform .35s ease, box-shadow .35s ease;
}

.aas-portfolio-card .article:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px #00000022;
}

/* IMAGE */
.aas-portfolio-card .article-intro-image {
    margin: 0;
    overflow: hidden;
}

.aas-portfolio-card .article-intro-image img {
    display: block;
    width: 100% !important;
    height: 270px !important;
    object-fit: cover !important;
    transition: transform .5s ease;
}

.aas-portfolio-card .article:hover
.article-intro-image img {
    transform: scale(1.06);
}

/* CARD CONTENT */
.aas-portfolio-card .article-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 18px 22px;
    text-align: center;
    font-family: Cairo, sans-serif;
}

/* TITLE */
.aas-portfolio-card .article-header {
    width: 100%;
}

.aas-portfolio-card .article-header h2 {
    margin: 0 0 10px;
    font: 700 18px/1.7 Cairo, sans-serif;
    text-align: center;
}

.aas-portfolio-card .article-header h2 a {
    color: #101e30 !important;
    font-family: Cairo, sans-serif;
    text-decoration: none !important;
    transition: color .3s ease;
}

.aas-portfolio-card .article-header h2 a:hover {
    color: #bd944c !important;
}

/* GOLD DIVIDER */
.aas-portfolio-card .article-header::after {
    content: "";
    display: block;
    width: 45px;
    height: 2px;
    margin: 0 auto 10px;
    background: #c9a35c;
    transition: width .3s ease;
}

.aas-portfolio-card .article:hover
.article-header::after {
    width: 85px;
}

/* CATEGORY */
.aas-portfolio-card .article-info {
    justify-content: center;
    font: 400 12px Cairo, sans-serif;
    margin-bottom: 4px;
}

/* INTRO TEXT */
.aas-portfolio-card .article-introtext {
    width: 100%;
    text-align: center;
}

/* READ MORE WRAPPER */
.aas-portfolio-card .article-introtext .readmore {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

/* READ MORE BUTTON */
body.view-category .aas-portfolio-card
.article-introtext .readmore > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 175px;
    min-height: 44px;
    padding: 9px 24px !important;
    margin-top: 12px !important;
    background: #101d2e !important;
    color: #fff !important;
    border: 1px solid #c9a35c !important;
    border-radius: 50px !important;
    font: 700 14px Cairo, sans-serif !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    transition: all .3s ease !important;
}

/* BUTTON HOVER */
body.view-category .aas-portfolio-card
.article-introtext .readmore > a:hover {
    background: #c9a35c !important;
    color: #101d2e !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,.2);
}

/* MOBILE */
@media (max-width: 767px) {

    .aas-portfolio-card .article-intro-image img {
        height: 230px !important;
    }

    .aas-portfolio-card .article-header h2 {
        font-size: 16px;
    }

    .aas-portfolio-card .article-body {
        padding: 18px 15px 20px;
    }

    body.view-category .aas-portfolio-card
    .article-introtext .readmore > a {
        margin-top: 10px !important;
    }
}

/* =====================================
   AHMED ALSADEK - LUXURY PAGINATION
   NAVY / GOLD / RTL
===================================== */

/* PAGINATION CONTAINER */
body.view-category .com-content-category-blog__navigation,
body.view-category .com-content-category-blog__navigation.w-100 {
    width: 100%;
    margin: 35px auto 25px;
    text-align: center;
}

/* PAGE NUMBERS */
body.view-category .pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 auto 15px;
    list-style: none;
}

/* EACH BUTTON */
body.view-category .pagination .page-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 43px;
    height: 43px;
    padding: 8px 12px !important;
    background: #fff !important;
    color: #101d2e !important;
    border: 1px solid #e4d8c4 !important;
    border-radius: 11px !important;
    font: 700 14px Cairo, sans-serif !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    transition: all .3s ease;
}

/* HOVER */
body.view-category .pagination .page-link:hover {
    background: #101d2e !important;
    color: #c9a35c !important;
    border-color: #c9a35c !important;
    transform: translateY(-3px);
}

/* ACTIVE PAGE */
body.view-category .pagination .active .page-link {
    background: #101d2e !important;
    color: #fff !important;
    border-color: #c9a35c !important;
    box-shadow: 0 5px 18px rgba(16,29,46,.2);
}

/* DISABLED BUTTON */
body.view-category .pagination .disabled .page-link {
    opacity: .35;
    pointer-events: none;
    box-shadow: none;
}

/* REPLACE BROKEN ICON FONTS */
body.view-category .pagination .page-link
[class*="icon-"] {
    font-size: 0 !important;
    font-family: Arial, sans-serif !important;
}

/* ARROW SYMBOLS */
body.view-category .pagination .page-link
[class*="icon-angle-left"]::after,
body.view-category .pagination .page-link
[class*="icon-chevron-left"]::after {
    content: "\2039";
    font-size: 25px;
}

body.view-category .pagination .page-link
[class*="icon-angle-right"]::after,
body.view-category .pagination .page-link
[class*="icon-chevron-right"]::after {
    content: "\203A";
    font-size: 25px;
}

body.view-category .pagination .page-link
[class*="icon-angle-double-left"]::after {
    content: "\00AB";
    font-size: 22px;
}

body.view-category .pagination .page-link
[class*="icon-angle-double-right"]::after {
    content: "\00BB";
    font-size: 22px;
}

/* PAGINATION COUNTER */
body.view-category .pagination-counter {
    text-align: center !important;
    color: #777;
    font: 400 12px Cairo, sans-serif;
    margin-top: 12px;
}

/* MOBILE */
@media (max-width: 767px) {
    body.view-category .pagination {
        gap: 5px;
    }

    body.view-category .pagination .page-link {
        min-width: 35px;
        height: 37px;
        padding: 6px 9px !important;
        font-size: 12px !important;
    }
}

/* AHMED ALSADEK - READ MORE BUTTON */

body.view-category .aas-portfolio-card
.article-introtext .readmore > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 175px;
    padding: 12px 26px !important;
    background: #101d2e !important;
    color: #ffffff !important;
    border: 2px solid #c9a35c !important;
    border-radius: 50px !important;
    font: 700 14px Cairo, sans-serif !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    transition: all .3s ease !important;
}

body.view-category .aas-portfolio-card
.article-introtext .readmore > a:hover {
    background: #c9a35c !important;
    color: #101d2e !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,.2);
}

body.view-category .aas-portfolio-card
.article-introtext .readmore {
    text-align: center !important;
}

/* FIX FONT AWESOME ICONS */

body span.fas,
body span.far,
body span.fab,
body span.fa,
body span.fa-solid,
body span.fa-regular,
body span.fa-brands {
    font-family: "Font Awesome 6 Free" !important;
}

body span.fab,
body span.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

body span.fas,
body span.fa-solid {
    font-weight: 900 !important;
}

body span.far,
body span.fa-regular {
    font-weight: 400 !important;
}

/* FIX WRONG MENU ICON */
#sp-menu .sp-megamenu-parent a span.fa-500px {
    display: none !important;
}

/* =====================================
   AHMED ALSADEK - SINGLE ARTICLE DESIGN
   ===================================== */

/* Article content container */
body.view-article #sp-main-body .article-details {
    max-width: 1050px;
    margin: 0 auto;
    padding: 35px 45px 55px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 55px rgba(16, 29, 46, .07);
    font-family: 'Cairo', sans-serif;
}

/* Main article image */
body.view-article #sp-main-body .article-details
.article-full-image {
    margin: 0 0 35px;
    overflow: hidden;
    border-radius: 15px;
}

body.view-article #sp-main-body .article-details
.article-full-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Article title */
body.view-article #sp-main-body .article-details
.article-header h1,
body.view-article #sp-main-body .article-details
.article-header h2 {
    font-family: 'Cairo', sans-serif !important;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.8;
    color: #101d2e;
    text-align: center;
    margin: 0 auto 15px;
}

/* Golden decorative line */
body.view-article #sp-main-body .article-details
.article-header::after {
    content: "";
    display: block;
    width: 85px;
    height: 3px;
    margin: 0 auto 22px;
    border-radius: 5px;
    background: linear-gradient(
        90deg,
        #a77c36,
        #e2c88b,
        #a77c36
    );
}

/* Article information */
body.view-article #sp-main-body .article-details
.article-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 20px;
    margin: 0 0 30px;
    padding: 12px 15px;
    border-bottom: 1px solid #eee6d8;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    color: #777;
}

/* Main article text */
body.view-article #sp-main-body .article-details
.article-can-edit,
body.view-article #sp-main-body .article-details
[itemprop="articleBody"] {
    font-family: 'Cairo', sans-serif;
    line-height: 2;
}

/* Images inside article */
body.view-article #sp-main-body .article-details
[itemprop="articleBody"] img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Paragraphs */
body.view-article #sp-main-body .article-details
[itemprop="articleBody"] p {
    font-family: 'Cairo', sans-serif;
    line-height: 2.1;
    color: #374151;
}

/* Mobile */
@media (max-width: 767px) {
    body.view-article #sp-main-body .article-details {
        padding: 20px 15px 35px;
        border-radius: 12px;
    }

    body.view-article #sp-main-body .article-details
    .article-header h1,
    body.view-article #sp-main-body .article-details
    .article-header h2 {
        font-size: 22px;
    }

    body.view-article #sp-main-body .article-details
    .article-info {
        gap: 8px 12px;
        font-size: 11px;
    }
}

/* AAS ARTICLE CATEGORY HERO */

body.view-article .aas-category-hero {
    position: relative;
    width: 100%;
    padding: 75px 20px;
    margin-bottom: 55px;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%,
            rgba(201,163,92,.18), transparent 35%),
        linear-gradient(135deg, #0b1524, #182b43, #0b1524);
    border-bottom: 3px solid #c9a35c;
}

body.view-article .aas-category-hero::before {
    content: "";
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(201,163,92,.16);
    pointer-events: none;
}

body.view-article .aas-category-hero-title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffffff;
    font: 800 36px/1.7 'Cairo', sans-serif;
}

body.view-article .aas-category-hero-title::after {
    content: "";
    display: block;
    width: 75px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 5px;
    background: #c9a35c;
}

@media (max-width: 767px) {
    body.view-article .aas-category-hero {
        padding: 45px 15px;
        margin-bottom: 30px;
    }

    body.view-article .aas-category-hero-title {
        font-size: 25px;
    }
}

/* ======================================
   AAS PREMIUM ARTICLE SHARE BAR
   ====================================== */

body.view-article .aas-social-share {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    width: 100%;
    margin: 25px 0 32px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #f0ece5;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(16,29,46,.07);
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    overflow: hidden;
}

/* Decorative gold accent */
body.view-article .aas-social-share::before {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: linear-gradient(#e2c58d,#a77b34);
    border-radius: 8px;
}

body.view-article .aas-share-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

body.view-article .aas-share-symbol {
    width: 40px;
    height: 40px;
    color: #b58a44;
}

body.view-article .aas-share-heading h3 {
    margin: 0;
    color: #101d2e;
    font: 800 19px/1.6 'Cairo',sans-serif;
}

body.view-article .aas-share-heading p {
    margin: 2px 0 0;
    color: #8792a3;
    font: 500 12px/1.7 'Cairo',sans-serif;
}

body.view-article .aas-share-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}

body.view-article .aas-share-buttons a,
body.view-article .aas-share-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 45px;
    padding: 10px 15px;
    border: 0;
    border-radius: 10px;
    color: #fff !important;
    text-decoration: none !important;
    font: 700 12px 'Cairo',sans-serif !important;
    cursor: pointer;
    transition: transform .25s ease,
                box-shadow .25s ease;
}

body.view-article .aas-share-buttons svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    fill: currentColor;
}

body.view-article .aas-share-buttons a:hover,
body.view-article .aas-share-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16,29,46,.16);
}

body.view-article .aas-share-wa {background:#07883c}
body.view-article .aas-share-fb {background:#1763c6}
body.view-article .aas-share-x {background:#171b20}
body.view-article .aas-share-in {background:#00669f}
body.view-article .aas-share-tg {background:#078bc9}
body.view-article .aas-share-copy {background:#b18742}

body.view-article .aas-share-status {
    flex-basis: 100%;
    text-align: center;
    color: #07883c;
    font: 600 12px 'Cairo',sans-serif;
}

body.view-article .aas-share-status:empty {
    display: none;
}

@media (max-width: 1100px) {
    body.view-article .aas-social-share {
        justify-content: center;
    }

    body.view-article .aas-share-buttons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    body.view-article .aas-social-share {
        padding: 20px 14px;
        gap: 17px;
    }

    body.view-article .aas-share-heading {
        width: 100%;
        justify-content: center;
    }

    body.view-article .aas-share-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 8px;
    }

    body.view-article .aas-share-buttons a,
    body.view-article .aas-share-buttons button {
        min-width: 0;
        padding: 10px 5px;
        gap: 5px;
        flex-direction: column;
        font-size: 10px !important;
    }
}

/* Pinterest button */
body.view-article .aas-share-buttons .aas-share-pin {
    background: #bd081c;
}

/* SVG icons inside social buttons */
body.view-article .aas-share-buttons a,
body.view-article .aas-share-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.view-article .aas-share-buttons svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Share heading icon */
body.view-article .aas-share-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b58a44;
}

body.view-article .aas-share-symbol svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Mobile: fit all seven buttons */
@media (max-width: 600px) {
    body.view-article .aas-share-buttons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    body.view-article .aas-share-buttons a,
    body.view-article .aas-share-buttons button {
        min-width: 0;
        flex-direction: column;
        gap: 5px;
        padding: 10px 4px;
        font-size: 10px !important;
    }
}

