﻿/* ========================= */
/* إعادة التعيين العام (Reset) */
/* ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================= */
/* الهيكل العام للصفحة */
/* ========================= */
html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Cairo', sans-serif;
    /* تدرج داكن فوق الخلفية */
    background: linear-gradient( rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4) ), url('/img/p.jpg') top center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-color: #f1f8e9;
    /* padding أسفل الصفحة ليظهر المحتوى كاملًا دون أن يغطيه الفوتر */
    padding-bottom: 60px; /* عدل القيمة لتطابق ارتفاع الفوتر */
}

/* ========================= */
/* الخلفية المتحركة */
/* ========================= */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: slideBg 60s linear infinite;
    opacity: 0.08;
}

/* ========================= */
/* شريط التنقل (Navbar) */
/* ========================= */
.navbar {
    background: rgba(18, 151, 72, 0.85);
    box-shadow: 0 4px 15px rgba(18, 151, 72, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 0 0 15px 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    .navbar:hover {
        background: #0f8c47;
        box-shadow: 0 6px 20px rgba(15, 140, 71, 0.7);
    }

.navbar-brand {
    font-weight: 900;
    color: #fff !important;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s ease;
}

    .navbar-brand:hover {
        color: #c0f2b4 !important;
    }

.navbar-nav {
    display: flex;
    list-style: none;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

    .navbar-nav .nav-item {
        margin: 0 15px;
    }

    .navbar-nav .nav-link {
        color: #e1e98f;
        font-weight: 700;
        font-size: 1rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        text-decoration: none;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            background-color: #c0f2b4;
            color: #004d00 !important;
            box-shadow: 0 0 8px #a3dca6;
        }

.navbar-toggler {
    border: none;
    font-size: 1.8rem;
    color: #e1e98f;
    background: transparent;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .navbar-toggler:hover {
        color: #c0f2b4;
    }

/* ========================= */
/* زر النبض (Pulse) */
/* ========================= */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(18,151,72,0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 10px rgba(18,151,72,0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(18,151,72,0);
    }
}

.pulse-button {
    animation: pulse 2.5s infinite;
    display: inline-block;
    padding: 10px 25px;
    background-color: #129748;
    color: #fff;
    font-weight: 900;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 5px rgba(18,151,72,0.7);
    transition: transform 0.3s ease;
    user-select: none;
}

    .pulse-button:hover {
        transform: scale(1.1);
        animation-play-state: paused;
        box-shadow: 0 0 15px 5px rgba(18,151,72,0.9);
    }

/* ========================= */
/* الفوتر (Footer) — النمط القديم */
/* ========================= */
footer.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    color: #FFEB3B;
    text-align: center;
    padding: 8px 10px;
    font-size: 1em;
    line-height: 1.4;
    z-index: 999;
    cursor: pointer;
}

    footer.footer p {
        display: inline-block;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.1 !important;
        transition: transform 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
    }

        footer.footer p:hover {
            transform: scale(1.1);
            text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
        }

/* ========================= */
/* المحتوى الرئيسي (Home) */
/* ========================= */
.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}

    .home-content h1 {
        color: #58cb58;
        font-size: 3rem;
        margin-bottom: 20px;
        font-weight: 900;
        text-shadow: 2px 2px 5px #ffffff45;
    }

    .home-content p {
        font-size: 1.2rem;
        color: rgb(242,249,240);
        margin-bottom: 30px;
        font-weight: 900;
        text-shadow: 2px 2px 5px rgb(255,255,255);
    }

    .home-content .btn {
        font-size: 1.1rem;
        padding: 10px 20px;
        font-weight: 900;
    }
.logo-img {
    width: 190px !important;
    top: auto !important; /* إزالة أي إزاحة عمودية */
}
/* ========================= */
/* ألوان وأسلوب عام */
/* ========================= */
.bg-green {
    background: #12974863;
}

.nav-link:hover {
    color: #ffffff !important;
}

/* ========================= */
/* طباعة (Print) */
/* ========================= */
@media print {
    .navbar, footer.footer, .animated-bg, .pagination {
        display: none !important;
    }
}

/* ========================= */
/* Responsive Adjustments */
/* ========================= */
@media (max-width: 991px) {
    .navbar-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

        .navbar-nav .nav-item {
            margin: 5px 10px;
        }
}

@media (max-width: 768px) {
    /* ضبط حجم الشعار للشاشات الصغيرة */
    .logo-img {
        width: 140px !important;
        top: auto !important; /* إزالة أي إزاحة عمودية */
    }

    /* ننقح شريط التنقل */
    .navbar {
        padding: 0.4rem 0.6rem;
        border-radius: 0 0 10px 10px;
    }

    .navbar-brand {
        font-size: 1.3rem;
        flex-grow: 1;
        display: flex;
        align-items: center;
        height: 40px;
        white-space: nowrap;
    }

    .navbar-toggler {
        font-size: 1.8rem;
        height: 40px;
        padding: 0;
    }

    .navbar-nav {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center !important;
    }

        .navbar-nav .nav-link {
            font-size: 0.9rem;
            padding: 0.4rem 0.7rem;
        }

    /* نُصغر النص في الفوتر إذا لزم الأمر */
    footer.footer {
        font-size: 0.75em;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }

    .pulse-button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .home-content {
        padding: 30px 15px !important;
    }

        .home-content h1 {
            font-size: 2rem !important;
            margin-bottom: 15px;
        }

        .home-content p {
            font-size: 0.8rem !important;
            margin-bottom: 20px;
        }

        .home-content .btn {
            font-size: 1rem !important;
            padding: 8px 18px !important;
        }
}

@media (min-width: 769px) {
    .logo-img {
        width: 180px !important;
        top: auto !important; /* إزالة أي إزاحة عمودية */
    }
}
