.modern-articles {
    padding: 80px 0;
}

.articles-header {
    text-align: center;
    margin-bottom: 50px;
}

.articles-header .title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 15px;
}

.articles-header .desc {
    max-width: 700px;
    margin: auto;
    font-size: 18px;
    opacity: 0.8;
}

/* Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Article Box */
.article-box {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transform: perspective(700px) rotateX(0deg) rotateY(0deg);
    transition: 0.5s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
}

.article-box:hover {
    transform: perspective(700px) rotateX(4deg) rotateY(4deg) scale(1.02);
    box-shadow: 0 18px 35px rgba(0,0,0,0.18);
}

/* Image */
.art-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Content */
.art-content {
    padding: 20px;
}

.art-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.art-content p {
    font-size: 16px;
    opacity: 0.85;
    min-height: 60px;
}

.read-more {
    margin-top: 10px;
    display: inline-block;
    color: #007bff;
    font-weight: bold;
    transition: 0.3s;
}

.article-box:hover .read-more {
    color: #0056b3;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* Slider Container */
.custom-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Slide */
.slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    transition: all 1s ease;
    opacity: 0;
}

/* Active Slide */
.slide.active {
    left: 0;
    opacity: 1;
}

/* Previous Slide */
.slide.prev {
    left: -100%;
}

/* Content inside slides */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    animation: fadeInUp 1.2s ease;
}

.slide-content h2 {
    font-size: 46px;
    margin-bottom: 15px;
}

.slide-content h4 {
    font-size: 22px;
    opacity: 0.9;
}

/* Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    font-size: 42px;
    transform: translateY(-50%);
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
    z-index: 20;
    transition: 0.3s;
}

.slider-btn:hover {
    color: #ddd;
}

/* LTR */
.custom-slider[dir="ltr"] .prev { left: 20px; }
.custom-slider[dir="ltr"] .next { right: 20px; }

/* RTL */
.custom-slider[dir="rtl"] .prev { right: 20px; }
.custom-slider[dir="rtl"] .next { left: 20px; }

/* Animation */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translate(-50%, -60%); }
    100% { opacity: 1; transform: translate(-50%, -50%); }
}

/* Overlay to darken images */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35); /* تقدر تغمّق بزيادة لو عايز */
    z-index: 5;
}

/* Clickable link covering the whole slide */
.slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15; /* فوق overlay وتحت النص */
}

/* Text shadow for visibility */
.slide-content h2,
.slide-content h4 {
    text-shadow: 0 3px 12px rgba(0,0,0,0.7);
    position: relative;
    z-index: 20;
}

.interactive-blogs {
    padding: 80px 0;
}

.section-header .title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-header .subtitle {
    font-size: 16px;
    color: #555;
    opacity: 0.8;
    max-width: 700px;
    margin: auto;
}

/* Blogs Stack */
.blogs-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

/* Blog Stack Card */
.blog-stack-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: transform 0.5s ease;
}

.blog-stack-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Image */
.card-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-stack-card:hover .card-img img {
    transform: scale(1.1);
}

/* Overlay gradient */
.overlay {
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
}

/* Content */
.card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    z-index: 2;
}

.card-content h4 {
    font-size: 22px;
    margin-bottom: 5px;
}

.card-content p {
    font-size: 15px;
    max-width: 90%;
    opacity: 0.9;
}

.read-more {
    margin-top: 10px;
    display: inline-block;
    font-weight: bold;
    color: #fff;
    text-decoration: underline;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.art-img {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.art-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* Hover Effect: تكبير الصورة + خفيف Blur */
.art-img:hover img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(0.85);
}

/* Optional: Shadow overlay على الصورة */
.art-img::after {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: 15px;
}

.art-img:hover::after {
    opacity: 1;
}

.service-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-card-link {
    text-decoration: none;
    flex: 1 1 300px; /* كل كارد يأخذ مساحة 300px تقريباً */
    max-width: 350px; /* لتجنب الكارد الكبير جداً */
}

.service-card {
    position: relative;
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.service-card:hover img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(0.75);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

.card-overlay p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.read-more {
    font-weight: bold;
    text-decoration: underline;
}

.categories-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.slider-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding-left: 10px;
    padding-right: 10px;
}

.category-card-link {
    text-decoration: none;
    flex: 0 0 250px;
}

.category-card {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h4 {
    margin: 0;
    font-size: 18px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: #555;
}

.left-btn { left: 10px; }
.right-btn { right: 10px; }

/* ===== SHARE SECTION ===== */
.share-box {
    text-align: center;
    margin-top: 40px;
}

.share-box h5 {
    font-weight: bold;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Share Buttons */
.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: popUp 0.6s forwards;
}

.share-btn:nth-child(1){ animation-delay: .1s; }
.share-btn:nth-child(2){ animation-delay: .2s; }
.share-btn:nth-child(3){ animation-delay: .3s; }
.share-btn:nth-child(4){ animation-delay: .4s; }
.share-btn:nth-child(5){ animation-delay: .5s; }
.share-btn:nth-child(6){ animation-delay: .6s; }

@keyframes popUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-btn:hover {
    transform: scale(1.15);
    transition: .2s ease-in-out;
}

/* Colors */
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }
.share-wa { background: #25D366; }
.share-ln { background: #0077B5; }
.share-tg { background: #0088cc; }
.share-copy { background: #333; }

/* ===== COPY POPUP ===== */
.copy-popup {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: #111 !important;
    padding: 12px 20px !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.35s ease !important;
    z-index: 999999999 !important;
}

.copy-popup.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.categories-slider-wrapper {
    position: relative;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffffdd;
    border: none;
    padding: 10px 14px;
    font-size: 28px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10;
}

.left-btn { left: 5px; }
.right-btn { right: 5px; }

.slide-btn:hover {
    background: #fff;
}
.slider-wrapper {
    display: flex;
}

.categories-slider {
    direction: ltr !important;
}
.categories-slider {
    overflow-x: auto;
    scroll-behavior: smooth;
    display: flex;
}

.slider-wrapper {
    display: flex;
    gap: 16px;
}
