/* Hero Pattern */
.hero-news {
    background-size: cover !important;
    background-position: center !important;
}

.hero-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-curve svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.article-content p {
    line-height: 2.1;
    margin-bottom: 2rem;
    color: #4b5563;
    font-size: 1.125rem;
}

.sticky-sidebar {
    position: sticky;
    top: 120px;
    left: 0;
}

.share-btn {
    transition: all 0.3s ease;
}
.share-btn:hover {
    transform: translateY(-3px);
    background: #15803d;
    color: white;
    border-color: #15803d;
}

/* Optimized Card Styling */
.news-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    border-color: rgba(21, 128, 61, 0.2);
}

.category-btn {
    transition: all 0.3s ease;
}
.category-btn.active {
    background-color: #15803d;
    color: white;
    border-color: #15803d;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}

/* single news */
.sticky-sidebar {
    top: 100px;
}

/* Image Accent */
.img-accent {
    position: relative;
}
.img-accent::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    background: #15803d;
    z-index: -1;
    border-radius: 20px;
}

/* event card */
.event-card {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.event-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.08);
    border-color: #15803d;
}

/* project details */
.impact-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.impact-card:hover {
    border-color: #15803d;
    transform: translateY(-5px);
}

/* تحسين مظهر المعرض */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
}
.gallery-img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(1);
}
.gallery-item:hover .gallery-img {
    transform: scale(1.1);
    filter: grayscale(0);
}

/* طبقة حماية للتفاعل */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(21, 128, 61, 0);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-item:hover .gallery-overlay {
    background: rgba(21, 128, 61, 0.4);
}
.gallery-overlay svg {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    color: white;
}
.gallery-item:hover .gallery-overlay svg {
    opacity: 1;
    transform: scale(1);
}

.fancybox__container {
    z-index: 9999 !important;
}
.icon-bounce:hover i {
    transform: scale(1.2);
    transition: all 0.3s ease;
}
