/* RTL Support for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'Cairo';
    src: url('fonts/Cairo-Regular.ttf') format('tff'),
        url('fonts/Cairo-Regular.ttf') format('ttf'),
        url('fonts/Cairo-Regular.ttf') format('tff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('fonts/Cairo-Bold.tff') format('tff'),
        url('fonts/Cairo-Bold.tff') format('tff'),
        url('fonts/Cairo-Bold.ttf') format('tff');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Enhanced Navigation Styles */
.nav-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(140, 198, 63, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced text contrast for navigation */
.nav-link {
    text-shadow: 0 1px 2px rgba(250, 249, 249, 0.367);
}

.nav-link:hover {
    text-shadow: 0 1px 3px rgba(140, 198, 63, 0.3);
}

.mobile-nav-link {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-nav-link:hover {
    text-shadow: 0 1px 3px rgba(140, 198, 63, 0.4);
}

.nav-link--active {
    color: #8CC63F !important;
    text-shadow: 0 1px 3px rgba(140, 198, 63, 0.5);
    font-weight: 800;
}

.nav-link--active .absolute {
    width: 100% !important;
}

.nav-link--active span {
    background: linear-gradient(135deg, #8CC63F 0%, #76A731 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu slide animation */
.mobile-menu {
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered animation for mobile menu items */
.mobile-nav-link {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInLeft 0.3s ease-out forwards;
}

.mobile-nav-link:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-link:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-nav-link:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-nav-link:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-nav-link:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Legacy button effects - now handled by unified button system */

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(140, 198, 63, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(140, 198, 63, 0.6);
    }
}

/* Custom animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* JavaScript state classes - Updated for new carousel structure */
.carousel__slide {
    position: absolute;
    /* كل الشرائح فوق بعض */
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;

}

.carousel__slide.is-active {
    opacity: 1;
    z-index: 10;
}

.carousel__dot.is-active {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.2);
}

.activity-tab-active {
    background-color: #8CC63F !important;
    color: white !important;
    border-color: #8CC63F !important;
}

/* Modal styles */
.modal-active {
    display: flex !important;
}

/* Fix modal scroll issues */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
}

/* Ensure modals are properly positioned */
.modal-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8CC63F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5A8E2E;
}

/* Floating particles animations */
@keyframes float-1 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-10px) translateX(-15px);
    }

    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    33% {
        transform: translateY(-15px) translateX(-20px);
    }

    66% {
        transform: translateY(-25px) translateX(15px);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    20% {
        transform: translateY(-25px) translateX(-10px);
    }

    40% {
        transform: translateY(-15px) translateX(20px);
    }

    60% {
        transform: translateY(-35px) translateX(-5px);
    }

    80% {
        transform: translateY(-20px) translateX(15px);
    }
}

@keyframes float-4 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-40px) translateX(25px);
    }
}

@keyframes float-5 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(-30px) translateX(-20px);
    }

    75% {
        transform: translateY(-20px) translateX(30px);
    }
}

/* Animation classes for particles */
.animate-float-1 {
    animation: float-1 8s ease-in-out infinite;
    top: 15%;
    left: 8%;
}

.animate-float-2 {
    animation: float-2 12s ease-in-out infinite;
    top: 70%;
    right: 12%;
}

.animate-float-3 {
    animation: float-3 10s ease-in-out infinite;
    top: 25%;
    right: 20%;
}

.animate-float-4 {
    animation: float-4 15s ease-in-out infinite;
    top: 80%;
    left: 15%;
}

.animate-float-5 {
    animation: float-5 9s ease-in-out infinite;
    top: 35%;
    left: 75%;
}

/* Additional particle animations for better distribution */
.animate-float-6 {
    animation: float-1 11s ease-in-out infinite reverse;
    top: 55%;
    left: 5%;
}

.animate-float-7 {
    animation: float-2 14s ease-in-out infinite reverse;
    top: 10%;
    right: 8%;
}

/* Performance optimizations */
.particle {
    will-change: transform;
    backface-visibility: hidden;
}

/* Optimize animations for better performance */
.animate-float-1,
.animate-float-2,
.animate-float-3,
.animate-float-4,
.animate-float-5 {
    will-change: transform;
    backface-visibility: hidden;
}

/* Optimize hover effects */
.hover\:scale-105,
.hover\:scale-110 {
    will-change: transform;
    backface-visibility: hidden;
}

/* Enhanced UI improvements */
.hero-content-enter {
    animation: heroContentEnter 1s ease-out forwards;
}

@keyframes heroContentEnter {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Legacy hero button effects - now handled by unified button system */

/* Mobile optimizations */
@media (max-width: 640px) {
    .particle {
        opacity: 0.5;
        transform: scale(0.7);
    }

    /* Reduce animation intensity on mobile for better performance */
    .animate-float-1,
    .animate-float-2,
    .animate-float-3,
    .animate-float-4,
    .animate-float-5,
    .animate-float-6,
    .animate-float-7 {
        animation-duration: 15s;
    }

    /* Reduce transform effects on mobile for better performance */
    .hover\:scale-105:hover {
        transform: scale(1.02);
    }

    .hover\:scale-110:hover {
        transform: scale(1.05);
    }

    /* Better mobile spacing */
    .hero-content-mobile {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .animate-bounce,
    .animate-float-1,
    .animate-float-2,
    .animate-float-3,
    .animate-float-4,
    .animate-float-5,
    .animate-fade-in-up,
    .animate-slide-in-right {
        animation: none;
    }

    .hover\:scale-105:hover,
    .hover\:scale-110:hover {
        transform: none;
    }
}

/* Animation delays */
.animation-delay-300 {
    animation-delay: 300ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

.animation-delay-900 {
    animation-delay: 900ms;
}

.animation-delay-1200 {
    animation-delay: 1200ms;
}

/* Enhanced carousel dot styling */
.carousel-dot-active {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.2);
}

/* Improved button hover effects */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Text gradient effects */
.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}

/* Enhanced shadow effects */
.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-primary\/50:hover {
    box-shadow: 0 25px 50px -12px rgba(140, 198, 63, 0.5);
}

.hover\:shadow-secondary\/50:hover {
    box-shadow: 0 25px 50px -12px rgba(237, 28, 36, 0.5);
}

/* Enhanced Activities Section Styles */
.activity-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1) translateY(0);
}

.activity-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Filter Animation States */
.activity-card.filtering-out {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.activity-card.filtering-in {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    animation: filterIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.activity-card.hidden {
    display: none;
}

/* Amazing filter animations */
@keyframes filterIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px) rotateX(10deg);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05) translateY(-10px) rotateX(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

@keyframes filterOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
}

/* Stagger animation delays */
.activity-card.delay-1 {
    animation-delay: 0.1s;
}

.activity-card.delay-2 {
    animation-delay: 0.2s;
}

.activity-card.delay-3 {
    animation-delay: 0.3s;
}

.activity-card.delay-4 {
    animation-delay: 0.4s;
}

.activity-card.delay-5 {
    animation-delay: 0.5s;
}

.activity-card.delay-6 {
    animation-delay: 0.6s;
}

/* Performance optimizations for animations */
.activity-card,
.activity-tab {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
}

.activity-card.filtering-in,
.activity-card.filtering-out {
    will-change: transform, opacity, filter;
}

/* Smooth transitions for all states */
.activity-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus states for accessibility */
.activity-tab:focus {
    outline: 2px solid rgba(140, 198, 63, 0.5);
    outline-offset: 2px;
}

.activity-tab:focus:not(:focus-visible) {
    outline: none;
}

/* Line clamp utility for activity descriptions */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Activity search input enhancements */
#activity-search {
    transition: all 0.3s ease;
}

#activity-search:focus {
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.1);
    transform: scale(1.01);
}

/* Activity tab enhancements */
.activity-tab {
    position: relative;
    overflow: hidden;
    min-width: fit-content;
    white-space: nowrap;
    flex-shrink: 1;
    max-width: calc(25vw - 1rem);
    box-sizing: border-box;
}

.activity-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.activity-tab:hover::before {
    left: 100%;
}

/* Fix layout spacing issues */
.activities-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-bottom: 4rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.activities-filter-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 100%;
    overflow: hidden;
    justify-content: center;
}

/* Activities grid container fix */
.activities-grid-container {
    width: 100%;
    max-width: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Loading overlay for filtering */
.activities-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.activities-loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Loading spinner animation */
.filter-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(140, 198, 63, 0.2);
    border-top: 4px solid #8CC63F;
    border-radius: 50%;
    animation: filterSpinner 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes filterSpinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading dots animation */
.filter-loading-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-loading-dots .dot {
    width: 8px;
    height: 8px;
    background: #8CC63F;
    border-radius: 50%;
    animation: filterDots 1.4s ease-in-out infinite both;
}

.filter-loading-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.filter-loading-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes filterDots {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading text animation */
.filter-loading-text {
    color: #8CC63F;
    font-weight: 600;
    font-size: 1.1rem;
    animation: filterTextPulse 2s ease-in-out infinite;
}

@keyframes filterTextPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Ensure all containers don't exceed viewport width */
* {
    box-sizing: border-box;
}

.max-w-7xl {
    max-width: calc(100vw - 2rem) !important;
}

.max-w-6xl {
    max-width: calc(100vw - 2rem) !important;
}

.max-w-4xl {
    max-width: calc(100vw - 2rem) !important;
}

/* Status badge animations */
@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.activity-card .bg-green-500,
.activity-card .bg-blue-500,
.activity-card .bg-purple-500,
.activity-card .bg-orange-500,
.activity-card .bg-pink-500,
.activity-card .bg-green-600 {
    animation: badge-pulse 2s infinite;
}

/* Enhanced hover effects for activity images */
.activity-card .group-hover\:scale-110 {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating animation for activity icons */
@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.activity-card .fas {
    animation: float-icon 3s ease-in-out infinite;
}

/* Search results styling */
#search-results {
    animation: fadeInUp 0.5s ease-out;
}

/* Legacy load-more button effects - now handled by unified button system */

/* Activity statistics cards */
.activity-stats {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced filter button animations */
.activity-tab {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-tab:hover:not([style*="pointer-events: none"]) {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.activity-tab:active:not([style*="pointer-events: none"]) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-tab.activity-tab-active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(140, 198, 63, 0.4);
}

/* Disabled state for filter buttons during loading */
.activity-tab[style*="pointer-events: none"] {
    cursor: not-allowed;
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* Ripple effect for buttons */
.activity-tab {
    position: relative;
    overflow: hidden;
}

.activity-tab::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.activity-tab:active::after {
    width: 300px;
    height: 300px;
}

/* Responsive enhancements for activities */
@media (max-width: 768px) {
    .activity-card {
        margin-bottom: 1rem;
    }

    .activity-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .activity-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-width: auto;
    }

    .activities-filter-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        max-width: calc(100vw - 2rem);
        overflow: hidden;
    }

    .activity-tab {
        max-width: calc(50vw - 2rem);
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .activity-tab span {
        font-size: 0.8rem;
    }

    #activity-search {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    /* Reduce animation intensity on mobile */
    @keyframes filterIn {
        0% {
            opacity: 0;
            transform: scale(0.95) translateY(20px);
        }

        100% {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
}

/* Dark mode support for activities (future enhancement) */
@media (prefers-color-scheme: dark) {
    .activity-card {
        background: rgba(31, 41, 55, 0.8);
        border-color: rgba(75, 85, 99, 0.3);
    }

    .activity-stats {
        background: rgba(31, 41, 55, 0.8);
        border-color: rgba(75, 85, 99, 0.3);
    }
}

/* ===============================
   Enhanced News Section Styles
   =============================== */

/* News Filter Tabs */
.news-filter-tab {
    background: transparent;
    color: #6b7280;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-filter-tab.active {
    background: linear-gradient(135deg, #8CC63F, #5A8E2E);
    color: white;
    box-shadow: 0 4px 15px rgba(140, 198, 63, 0.3);
}

.news-filter-tab:hover:not(.active) {
    background: rgba(140, 198, 63, 0.1);
    color: #8CC63F;
    transform: translateY(-1px);
}

.news-filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.news-filter-tab:hover::before {
    left: 100%;
}

/* News Cards */
.news-card {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    perspective: 1000px;
}

.news-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* News card image overlay effects */
.news-card .group-hover\:scale-110 {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* News card content animations */
.news-card h3 {
    transition: color 0.3s ease;
}

.news-card .group\/btn {
    transition: gap 0.3s ease;
}

/* Category badge styles */
.news-card [class*="bg-primary"],
.news-card [class*="bg-yellow-500"],
.news-card [class*="bg-blue-500"],
.news-card [class*="bg-purple-500"],
.news-card [class*="bg-green-500"] {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Star rating animation */
.news-card .fas.fa-star,
.news-card .far.fa-star {
    transition: all 0.3s ease;
    animation: starTwinkle 2s infinite alternate;
}

@keyframes starTwinkle {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Heart and share button animations */
.news-card .fa-heart {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card .fa-heart:hover {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {

    0%,
    50%,
    100% {
        transform: scale(1);
    }

    25%,
    75% {
        transform: scale(1.2);
    }
}

.news-card .fa-share-alt {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card .fa-share-alt:hover {
    animation: shareWiggle 0.5s ease-in-out;
}

@keyframes shareWiggle {

    0%,
    50%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

/* Legacy load-more button effects - now handled by unified button system */

/* News filtering animations */
.news-card.filtering-out {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card.filtering-in {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    animation: newsFilterIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes newsFilterIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px) rotateX(10deg);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05) translateY(-10px) rotateX(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

/* News section background enhancements */
#news .absolute {
    animation-duration: 12s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* ===============================
   Enhanced About Us Section Styles
   =============================== */
/* Added: #about background with dark-green overlay and background-attachment */
#about {
    position: relative;
    /* ضع مسار صورتك هنا أو أزل background-image إذا تريد لون فقط */
    background-image: url('../assets/images/s1.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* يستخدم خاصية background-attachment كما طلبت */
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 0;
    overflow: hidden;
}

/* Dark green overlay */
#about::before {
    content: "";
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    background: rgba(6, 56, 29, 0.826);
    /* غامق - عدل الشفافية أو اللون حسب الحاجة */
    z-index: 1;
    pointer-events: none;
}

/* Ensure section children appear above the overlay */
#about>* {
    position: relative;
    z-index: 2;
}

/* Mobile fallback: بعض المتصفحات الهاتفية لا تدعم fixed جيداً => استخدم scroll */
@media (max-width: 768px) {
    #about {
        background-attachment: scroll;
        /* إذا أردت تقليل الحمل على الأجهزة المحمولة يمكنك ضبط الحجم أو إزالة الصورة */
        background-size: cover;
    }
}

/* About section cards */
/* .about-card {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
} */

/* About section icon animations */
.about-card .w-12.h-12 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover .w-12.h-12 {
    transform: scale(1.1) rotate(5deg);
}

/* Counter animation styles */
.counter-number {
    transition: all 0.3s ease;
}

/* Stats card hover effects */
.stats-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.stats-card .w-16.h-16 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover .w-16.h-16 {
    transform: scale(1.1) rotate(10deg);
}

/* Features section enhancements */
.feature-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(140, 198, 63, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Call to action section */
.cta-section {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Button hover effects */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.cta-button:active::after {
    width: 300px;
    height: 300px;
}

/* About section background elements */
#about .absolute {
    animation-duration: 15s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* Values grid enhancements */
.values-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.values-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(140, 198, 63, 0.2), transparent);
    transition: left 0.5s;
}

.values-item:hover::before {
    left: 100%;
}

.values-item:hover {
    background: rgba(140, 198, 63, 0.1);
    transform: translateX(5px);
}

/* Mobile responsiveness for news and about sections */
@media (max-width: 768px) {
    .news-filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .news-card {
        margin-bottom: 1.5rem;
    }

    .news-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .about-card {
        padding: 1.5rem;
    }

    .feature-card:hover {
        transform: translateY(-4px);
    }

    /* Reduce animation intensity on mobile */
    .news-card .group-hover\:scale-110 {
        transition-duration: 0.5s;
    }

    .about-card:hover {
        transform: translateY(-4px);
    }
}

/* Accessibility improvements */
.news-filter-tab:focus,
.cta-button:focus {
    outline: 2px solid rgba(140, 198, 63, 0.5);
    outline-offset: 2px;
}

.news-filter-tab:focus:not(:focus-visible),
.cta-button:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .news-card,
    .about-card,
    .feature-card,
    .stats-card {
        transition: none;
    }

    .news-card:hover,
    .about-card:hover,
    .feature-card:hover,
    .stats-card:hover {
        transform: none;
    }

    .news-card .fas.fa-star,
    .news-card .far.fa-star {
        animation: none;
    }

    .news-card .fa-heart:hover,
    .news-card .fa-share-alt:hover {
        animation: none;
    }

    .news-card.filtering-in {
        animation: none;
    }
}

/* Performance optimizations */
.news-card,
.about-card,
.feature-card,
.stats-card {
    will-change: transform, opacity, box-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
}

/* ===============================
   Unified Button System
   =============================== */

/* Base Button Style - All buttons inherit from this */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 1rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    border-radius: 1.25rem;
}

/* Primary Button - Green gradient */
.btn-primary {
    background: linear-gradient(135deg, #8CC63F 0%, #5A8E2E 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(140, 198, 63, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5A8E2E 0%, #4A7625 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(140, 198, 63, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(140, 198, 63, 0.3);
}

/* Secondary Button - Red gradient */
.btn-secondary {
    background: linear-gradient(135deg, #ED1C24 0%, #C41E3A 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(237, 28, 36, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #C41E3A 0%, #A01729 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(237, 28, 36, 0.3);
}

/* Outline Button - Transparent with colored border */
.btn-outline {
    background: transparent;
    color: #8CC63F;
    border: 2px solid #8CC63F;
    box-shadow: 0 4px 15px rgba(140, 198, 63, 0.1);
}

.btn-outline:hover {
    background: #8CC63F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(140, 198, 63, 0.3);
}

.btn-outline:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(140, 198, 63, 0.2);
}

/* Ghost Button - Transparent with white text/border */
.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.btn-ghost:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.15);
}

/* Text Button - Just text with hover effects */
.btn-text {
    background: transparent;
    color: #8CC63F;
    border: none;
    padding: 0.5rem;
    font-weight: 600;
}

.btn-text:hover {
    color: #5A8E2E;
    transform: translateX(3px);
}

.btn-text:active {
    transform: translateX(0);
}

/* Icon Button - Square button for icons */
.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-icon:hover {
    background: rgba(140, 198, 63, 0.1);
    color: #8CC63F;
    transform: translateY(-1px);
}

/* Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Shimmer Effect for buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Ripple Effect */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Button with loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: btn-spinner 1s linear infinite;
}

@keyframes btn-spinner {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .btn {
        min-height: 44px;
        /* Touch target size */
    }

    .btn-sm {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-md {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

    .btn-lg {
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
    }

    .btn-xl {
        padding: 1.5rem 2.25rem;
        font-size: 1.25rem;
    }

    /* Reduce hover effects on mobile */
    .btn:hover {
        transform: translateY(-1px);
    }
}

/* Accessibility improvements */
.btn:focus {
    outline: 2px solid rgba(140, 198, 63, 0.5);
    outline-offset: 2px;
}

.btn:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }

    .btn:hover,
    .btn:active {
        transform: none;
    }

    .btn::before,
    .btn::after {
        display: none;
    }
}

/* Enhanced Contact Section Styles */
#contact {
    position: relative;
}

/* Contact form enhancements */
.form-group {
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(140, 198, 63, 0.15);
}

.form-group label {
    transition: all 0.3s ease;
}

.form-group input:focus+label,
.form-group select:focus+label,
.form-group textarea:focus+label {
    color: var(--primary);
}

/* Error states */
.form-group input.border-red-500,
.form-group select.border-red-500,
.form-group textarea.border-red-500 {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Contact cards hover effects */
.contact-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Social media buttons */
.social-contact-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Map section enhancement */
.map-container {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.map-container:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

/* Loading states */
.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Success animation */
.form-success {
    animation: bounce-in 0.6s ease;
}

@keyframes bounce-in {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    70% {
        transform: scale(0.9);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Legacy submit button effects - now handled by unified button system */

/* Mobile optimizations for contact section */
@media (max-width: 768px) {
    #contact .grid {
        gap: 3rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .social-contact-btn {
        padding: 0.75rem;
    }

    .map-container {
        height: 200px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

    .contact-card,
    .social-contact-btn,
    .form-group input,
    .form-group select,
    .form-group textarea {
        transition: none;
        animation: none;
    }
}





/* body {
        font-family: 'Cairo', sans-serif;
        overflow-x: hidden;
        background: #f8f9fa;
    } */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.logo-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    filter: drop-shadow(0 15px 40px rgba(139, 195, 74, 0.25));
}

.logo-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    display: grid;
    place-items: center;
}

.preloader-logo {
    width: 80%;
    height: 90%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
}

/* دائرة التقدم المحسنة */
.circle-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 3;
    pointer-events: none;
}

.circle-bg {
    fill: none;
    stroke: #e8f5e9;
    stroke-width: 6;
}

.circle-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 6;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    stroke-dasharray: 880;
    stroke-dashoffset: 880;
    filter: drop-shadow(0 0 10px rgba(139, 195, 74, 0.4));
}

/* نقاط متحركة حول الدائرة */
.orbit-dot {
    fill: #8BC34A;
    r: 4;
    opacity: 0;
}

.loading-text {
    color: #2c3e50;
    font-size: 22px;
    margin-top: 40px;
    font-weight: 600;
    letter-spacing: 1px;
}

.percentage {
    display: block;
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 15px;
    font-family: 'Arial', sans-serif;
    text-shadow: 0 2px 10px rgba(139, 195, 74, 0.2);
}

.loading-dots {
    display: inline-block;
    margin-right: 8px;
}

.loading-dots span {
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
    font-size: 28px;
    color: #8BC34A;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {

    0%,
    80%,
    100% {
        opacity: 0;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* تأثيرات الخلفية */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.1) 0%, rgba(139, 195, 74, 0.05) 100%);
    border-radius: 50%;
}

.shape1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.shape2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.shape3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 10%;
}

/* محتوى الصفحة المحسن */
.main-content {
    min-height: 100vh;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.main-content h1 {
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 64px;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(139, 195, 74, 0.2);
}

.main-content p {
    font-size: 28px;
    color: #555;
    font-weight: 600;
    margin-bottom: 40px;
}

.welcome-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-top: 40px;
    transform: translateY(20px);
    opacity: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 195, 74, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-container {
        width: 220px;
        height: 220px;
    }

    .logo-mask {
        width: 160px;
        height: 160px;
    }

    .circle-progress {
        width: 220px;
        height: 220px;
    }

    .loading-text {
        font-size: 18px;
    }

    .percentage {
        font-size: 42px;
    }

    .main-content h1 {
        font-size: 42px;
    }

    .main-content p {
        font-size: 22px;
    }

    .welcome-card {
        padding: 30px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===============================
   News Owl Carousel — Premium Design
   =============================== */

/* Section styling */
.news-section {
    position: relative;
}

/* Progress Bar */
.news-progress-container {
    position: relative;
}

.news-progress-bar {
    will-change: width;
}

/* Carousel Wrapper */
.news-carousel-wrapper {
    position: relative;
}

/* Premium Card */
.news-premium-card {
    position: relative;
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(140, 198, 63, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(140, 198, 63, 0.2);
}

/* Card Top Accent */
.card-accent {
    height: 4px;
    background: linear-gradient(90deg, #8CC63F, #689F38, #8CC63F);
    background-size: 200% 100%;
    animation: accentShimmer 3s ease-in-out infinite;
}

@keyframes accentShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Image Container */
.card-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.news-premium-card:hover .card-image {
    transform: scale(1.08);
    filter: brightness(0.85);
}

/* Image Gradient Overlay */
.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.news-premium-card:hover .card-image-overlay {
    opacity: 1;
}

/* Hover Content Overlay */
.card-hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 198, 63, 0.0);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

.news-premium-card:hover .card-hover-overlay {
    background: rgba(140, 198, 63, 0.15);
    backdrop-filter: blur(2px);
}

.card-hover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-premium-card:hover .card-hover-content {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.card-hover-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #8CC63F;
    font-size: 18px;
}

.card-hover-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Cairo', sans-serif;
}

/* Date Badge */
.card-date-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #689F38;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(140, 198, 63, 0.15);
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.news-premium-card:hover .card-date-badge {
    background: rgba(140, 198, 63, 0.95);
    color: white;
    box-shadow: 0 4px 15px rgba(140, 198, 63, 0.3);
    border-color: transparent;
}

/* News Number Badge */
.card-number-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 4;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: #8CC63F;
    font-family: 'Cairo', sans-serif;
    border: 1px solid rgba(140, 198, 63, 0.15);
    transition: all 0.3s ease;
}

.news-premium-card:hover .card-number-badge {
    background: linear-gradient(135deg, #8CC63F, #689F38);
    color: white;
    border-color: transparent;
    transform: rotate(-5deg) scale(1.05);
}

/* Card Content */
.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.6;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-premium-card:hover .card-title {
    color: #689F38;
}

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* Read More Button */
.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8CC63F;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    position: relative;
    transition: all 0.3s ease;
}

.card-read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8CC63F, #689F38);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-read-more:hover {
    color: #689F38;
    gap: 12px;
}

.card-read-more:hover::after {
    width: 100%;
}

.card-read-more i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.card-read-more:hover i {
    transform: translateX(-4px);
}

/* Card Icon Badge */
.card-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(140, 198, 63, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8CC63F;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.news-premium-card:hover .card-icon-badge {
    background: rgba(140, 198, 63, 0.15);
    transform: rotate(5deg);
}

/* ---- Custom Navigation Buttons ---- */
.news-custom-nav {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 2.5rem;
}

.news-nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8CC63F, #689F38);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.news-nav-btn:hover {
    border-color: #8CC63F;
    color: white;
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(140, 198, 63, 0.25);
}

.news-nav-btn:hover::before {
    opacity: 1;
}

.news-nav-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.news-nav-btn:hover i {
    transform: scale(1.1);
}

.news-nav-btn:active {
    transform: scale(0.95);
}

/* ---- Owl Carousel Overrides ---- */
/* Carousel items spacing */
.news-owl-carousel .owl-item {
    padding: 10px 4px 16px;
}

.news-owl-carousel .owl-stage-outer {
    overflow: hidden;
    border-radius: 0;
}

/* Hide default nav */
.news-owl-carousel .owl-nav {
    display: none !important;
}

/* Dots */
.news-owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.news-owl-carousel .owl-dots .owl-dot {
    outline: none;
    border: none;
    padding: 0;
    background: none;
}

.news-owl-carousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4d4d8;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-owl-carousel .owl-dots .owl-dot:hover span {
    background: #a3d977;
    transform: scale(1.2);
}

.news-owl-carousel .owl-dots .owl-dot.active span {
    background: linear-gradient(135deg, #8CC63F, #689F38);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(140, 198, 63, 0.35);
}

/* ---- RTL Fixes ---- */
.owl-carousel[dir="rtl"] .owl-item,
html[dir="rtl"] .news-owl-carousel .owl-item {
    direction: rtl;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .card-image-container {
        aspect-ratio: 16 / 9;
    }

    .card-content {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .news-custom-nav {
        margin-top: 2rem;
    }

    .news-nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 14px;
    }

    .news-owl-carousel .owl-dots .owl-dot span {
        width: 8px;
        height: 8px;
    }

    .news-owl-carousel .owl-dots .owl-dot.active span {
        width: 22px;
    }
}

@media (max-width: 480px) {
    .card-hover-overlay {
        display: none;
    }

    .card-number-badge {
        width: 30px;
        height: 30px;
        font-size: 0.65rem;
        border-radius: 8px;
    }

    .card-date-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .news-nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 13px;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {

    .news-premium-card,
    .card-image,
    .card-hover-content,
    .card-date-badge,
    .card-number-badge,
    .card-read-more,
    .news-nav-btn,
    .news-owl-carousel .owl-dots .owl-dot span {
        transition: none !important;
        animation: none !important;
    }

    .news-premium-card:hover {
        transform: none;
    }

    .card-accent {
        animation: none;
    }
}