/* ==========================================================================
   General & Reset
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    direction: rtl;
    background: #f8f9fa;
    color: #333;
    line-height: 1.8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Top Bar & Header
   ========================================================================== */

.top-bar {
    background: #0d3b66;
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
}

.top-bar i {
    margin-left: 6px;
    color: #f39c12;
}

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
}

/* ضبط حجم اللوجو بشكل صارم يمنع تضخمه */
.logo-img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #f39c12;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-align: center;
    font-size: 14px;
}

.btn-login {
    background: #f39c12;
    color: #fff;
}

.btn-login:hover {
    background: #d68910;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.privacy-hero {
    background: linear-gradient(rgba(13, 59, 102, 0.9), rgba(13, 59, 102, 0.9)),
                url('../images/hero.jpg') center/cover no-repeat;
    padding: 45px 0;
    text-align: center;
    color: #fff;
}

.privacy-hero h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
}

.privacy-hero h1 i {
    color: #f39c12;
    margin-left: 8px;
}

.privacy-hero p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    color: #e2e8f0;
}

.privacy-hero .last-update {
    font-size: 0.85rem;
    color: #f39c12;
    margin-top: 10px;
    font-weight: 600;
}

/* ==========================================================================
   Privacy Cards Grid
   ========================================================================== */

.privacy-content {
    padding: 40px 0;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.privacy-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f5;
}

.card-icon-wrapper {
    font-size: 32px;
    color: #f39c12;
    margin-bottom: 12px;
}

.privacy-card h3 {
    color: #0d3b66;
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.privacy-card p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.8;
}

.highlight-card {
    border-bottom: 4px solid #e74c3c;
}

.alert-icon {
    color: #e74c3c;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: #0d3b66;
    color: #ffffff;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a,
.footer-link-item {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: #f39c12 !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Responsive Breakpoints (اصلاح شاشات الموبايل والتابلت)
   ========================================================================== */

@media (max-width: 991px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .logo-img {
        height: 38px; /* تصغير اللوجو على الموبايل والتابلت */
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .privacy-hero h1 {
        font-size: 22px;
    }

    .privacy-hero p {
        font-size: 14px;
    }

    .privacy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 10px;
        padding: 6px 4px;
    }

    .logo-img {
        height: 32px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
