
body{
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

button, .btn {
    font-weight: 600;
    text-transform: uppercase;
}

/* تثبيت توزيع العناصر */
.custom-navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* شعار اليمين */
.navbar-brand.order-1 {
    order: 1;
    margin-left: auto;
    display: flex;
}

/* زر التوجل في المنتصف */
.navbar-toggler.order-2 {
    order: 2;
    margin: 0 auto;
    z-index: 9999;
    position: relative;
}

/* القائمة */
#navbarMain {
    order: 3;
}

/* شعار الشمال */
.navbar-brand.order-4 {
    order: 4;
    margin-right: auto;
}
header {
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.modern-hero {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.slides {
    position: relative;
    height: 100%;
}

/* خلفيات السلايدر */
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: zoomEffect 15s ease-in-out infinite;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}

/* تأثير الزوم البطيء */
@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* النصوص */
.slide .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 3;
}
.slide .content h1 {
    text-transform: capitalize;
    color:#EEC044 ;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}
.slide .content p {
    font-size: 1.2rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    margin-bottom: 25px;
}

/* شريط البحث */
.hero-search {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 5px 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-search input {
    border: none;
    outline: none;
    flex: 1;
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 1rem;
}
.hero-search button {
    background: var(--secondary-color);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}
.hero-search button:hover {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .slide .content h1 { font-size: 2rem; }
    .slide .content p { font-size: 1rem; }
    .hero-search { max-width: 90%; }
}





.modal-backdrop {
    z-index: 1040;
}
.modal {
    z-index: 1050;
}

header .nav-link {
    color: var(--bs-success-rgb) !important;
    font-size: 0.80rem;
    margin: 0 5px;
}
header .nav-link:hover {
    text-decoration: underline;
}
header img {
    max-height: 70px;
    margin-right: 10px;
}
footer {
    margin-top: auto;
    background: #f8f9fa;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}
.search-box {
    position: relative;
    width: 250px;
}
.search-box input {
    border-radius: 25px;
    padding-left: 35px;
    padding-right: 10px;
}
.search-box .bi-search {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #888;
}
.add-btn {
    cursor: pointer;
    color: #0d6efd;
    font-size: 0.9rem;
}
.bg-food-africa{
    background-color:  #FAFAFA ;
}
.navbar{
    padding: 0px 50px;
}










/* ===== Overall Header ===== */
.main-header {
    font-family: "Poppins", sans-serif;
    position: relative;
    z-index: 1000;
}

/* ===== Topbar ===== */
.topbar {
    font-size: 0.9rem;
    background: linear-gradient(180deg, #1b5e20, #1b5e20); /* من الأخضر الغامق للفاتح */
    color: #fff; /* نصوص وأيقونات بيضاء */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar i {
    font-size: 0.95rem;
}
.topbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.topbar .dropdown-menu a {
    color: #000000;
}
.topbar a:hover {
    text-decoration: underline;
    color: #c8e6c9; /* لمسة هادية عند المرور */

}
.section-title-custom{
    text-transform: uppercase;
}
.about-paragraph-image{
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #636363;
}
/* ===== Navbar ===== */
.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 900;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border-radius: 6px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: #f4f8f4;
    color: #c3004e   !important;
    text-decoration: none;
}

/* Logos */
.nav-logo-right {
    height: 40px;
}
.nav-logo-left {
    height: 80px;
}

/* Spacing tweaks */
.navbar-brand {
    margin: 0 10px;
}
.navbar-brand h6{
    font-weight: 900;
    font-size: 11px;
    color: #EEC044;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 10px;
    overflow: hidden;
}
.dropdown-item:hover {
    background-color: #f5f8f5;
    color: #198754;
}




:root {
    --primary-color: #1b5e20;
    --secondary-color: #eec044;
    --light-gray: #f7f7f7;
    --text-dark: #333;
}

/* ===== 1. Rotating Banner ===== */
.hero-carousel {
    position: relative;
    overflow: hidden;
}
.hero-carousel .carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.45);
    padding: 20px 30px;
    border-radius: 8px;
}
.hero-carousel h2 {
    font-weight: 700;
    font-size: 2.5rem;
}
.hero-carousel p {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ===== 2. Food Safety File Section ===== */
.food-safety-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}
.section-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
}
.info-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.info-card i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ===== 3. Country File Section ===== */
.country-section {
    padding: 80px 0;
}
.country-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.country-card img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}
.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== 4. Project Introduction ===== */
.project-intro {
    background-color: #fff;
    padding: 50px 0;
}
.project-intro h2 {
    color: var(--primary-color);
    font-weight: 700;
}
.project-intro p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ===== 5. Partners Section ===== */
.partners-section {
    /*background: var(--light-gray);*/
    padding: 60px 0;
    text-align: center;
}
.partners-section img {
    max-height: 110px;
    margin: 15px;
    opacity: 0.7;
    transition: 0.3s;
}
.partners-section img:hover {
    opacity: 1;
}


.partners-section {
    background: #EEC044;
}

.partners-section .section-title {
    color: var(--primary-color);
}

.partner-card {
    /*background: rgba(255, 255, 255, 0.27);*/
    /*border-radius: 14px;*/
    padding: 20px 15px;
    text-align: center;
    /*box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);*/
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.partner-card:hover {
    transform: translateY(-6px);
    background: rgb(255, 255, 255);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    color: #000000;

}

.partner-title-top {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0px;
    color: #000000;
}
.partner-title-top:hover {
     color: #000000;
 }

.partner-image-wrapper {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-image-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-image-wrapper img {
    transform: scale(1.05);
}

.partner-title-bottom {
    margin-top: 0px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}
.partner-title-bottom:hover {
    color: #000000;
}
.partners-section .container {
    position: relative;
    z-index: 3;
}
/* خلفية انسيابية محترفة */
.waves-bg {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 600px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23e8eef7' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,192C384,224,480,256,576,256C672,256,768,224,864,197.3C960,171,1056,149,1152,138.7C1248,128,1344,128,1392,128L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    opacity: 0.4;
}


 .database-box {
     border-radius: 12px;
     overflow: hidden;
     transition: all .3s ease;
     border: 1px solid #eee;
 }
.database-box img {
    width: 100%;
    height: 220px;     /* خليها لأي ارتفاع يناسب تصميمك */
    object-fit: cover; /* يحافظ على تناسق الصور */
    border-radius: 8px;
    transition: transform .4s ease;
}

.database-box span {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    display: block;
}
.database-box:hover {
    transform: translateY(-6px);
    box-shadow: 0px 10px 25px rgba(0,0,0,0.08);
    border-color: #ddd;
}

.database-section {
    padding: 40px 0;
    margin-bottom: 50px;
}
.register-section {
    padding: 40px 0;
    margin-bottom: 50px;
}

.database-box:hover img {
    transform: scale(1.04);
}

.section-title {
    font-weight: 700;
    letter-spacing: .5px;
    font-size: 28px;
    color: #222;
}
