/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #2A9D8F;   /* Calming Teal */
    --secondary: #264653; /* Deep Blue */
    --accent: #E9C46A;    /* Warm Sand/Gold */
    --light: #F4F4F9;     /* Off-white Background */
    --text: #333;         /* Dark Grey Text */
}

/* ENABLE SMOOTH SCROLLING */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    line-height: 1.6;
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; }
[dir="rtl"] { font-family: 'Noto Kufi Arabic', sans-serif; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* =========================================
   2. NAVIGATION
   ========================================= */
nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: bold; font-size: 1.5rem; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 40px; width: auto; display: block; }
.lang-switcher button {
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 20px;
    margin-left: 5px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
.lang-switcher button:hover { background: var(--primary); color: white; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(rgba(38, 70, 83, 0.85), rgba(38, 70, 83, 0.85)), url('hero.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 5rem 1rem;
    text-align: center;
}
.hero h1 { margin-bottom: 0.5rem; font-size: 2.5rem; text-shadow: 0px 2px 10px rgba(0,0,0,0.7); color: #ffffff !important; }
.hero p { font-size: 1.1rem; max-width: 700px; margin: 10px auto; opacity: 1; text-shadow: 0px 1px 5px rgba(0,0,0,0.7); color: #f0f0f0 !important; }
.hero .slogan { color: var(--accent) !important; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; font-size: 0.95rem; margin-bottom: 20px; display: inline-block; text-shadow: 0px 2px 5px rgba(0,0,0,0.9); }

/* =========================================
   4. BUTTONS
   ========================================= */
.buttons { margin-top: 2rem; }
.btn {
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 50px;
    margin: 5px;
    display: inline-block;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
    font-size: 0.95rem;
}
.btn.primary { background: var(--primary); color: white; border: none; }
.btn.primary:hover { background: #21867a; }
.btn.secondary { background: transparent; border: 2px solid white; color: white; }
.btn.secondary:hover { background: white; color: var(--secondary) !important; }
.btn:hover { transform: translateY(-2px); }

/* =========================================
   5. SECTIONS & CARDS
   ========================================= */
.section { padding: 3rem 1rem; text-align: center; }
.bg-light { background-color: var(--light); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: inherit; transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.icon-box { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; background: #e0f2f1; width: 70px; height: 70px; line-height: 70px; border-radius: 50%; margin-left: auto; margin-right: auto; }

/* =========================================
   6. SPECIALIST PROFILES
   ========================================= */
.spec-card { border-top: 5px solid var(--primary); display: flex; flex-direction: column; align-items: center; padding-bottom: 25px; }
.team-img { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; margin-bottom: 15px; border: 3px solid var(--primary); background-color: #eee; }
.spec-card h3 { margin: 10px 0 5px 0; }
.job-title { color: var(--primary); font-weight: 600; margin-top: 0; margin-bottom: 15px; font-size: 0.9rem; }
.certs { font-size: 0.85rem; color: #555; background: #f9f9f9; padding: 10px; border-radius: 8px; width: 90%; margin-bottom: 15px; text-align: center; border: 1px solid #eee; }
.social-links { margin-top: auto; }
.social-links a { color: var(--secondary); font-size: 1.4rem; margin: 0 8px; transition: color 0.3s; }
.social-links a:hover { color: var(--accent); }

/* =========================================
   7. ARTICLES
   ========================================= */
.article-card small { display: block; margin-top: 10px; color: #888; font-size: 0.8rem; }

/* =========================================
   8. FOOTER (FIXED ALIGNMENT)
   ========================================= */
footer {
    background: #1e2a38 !important; 
    color: #ffffff !important;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 3px solid var(--accent); 
    text-align: center;
}
.footer-content {
    display: none; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; padding: 0; margin: 0; }
.footer-links a {
    display: inline-block;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}
.footer-links a:hover { background: var(--accent) !important; color: #1e2a38 !important; border-color: var(--accent) !important; transform: translateY(-3px); }
a.footer-btn-highlight { border: 2px solid var(--accent) !important; color: var(--accent) !important; font-weight: 700; }
a.footer-btn-highlight:hover { background: var(--accent) !important; color: #1e2a38 !important; }
.footer-socials { display: flex; justify-content: center; gap: 15px; margin-top: 10px; width: 100%; }
.footer-socials a {
    display: flex; align-items: center; justify-content: center; width: 45px; height: 45px;
    background: rgba(255,255,255,0.1); color: #ffffff !important; border-radius: 50%; font-size: 1.2rem;
    transition: all 0.3s ease; text-decoration: none; border: 1px solid rgba(255,255,255,0.1);
}
.footer-socials a:hover { background: var(--accent) !important; color: #1e2a38 !important; transform: scale(1.1); }
.copyright { font-size: 0.85rem; color: #bdc3c7 !important; margin-top: 20px; width: 100%; text-align: center; }
@media (max-width: 768px) {
    .footer-content { width: 100% !important; align-items: center !important; }
    .footer-links { flex-direction: column; align-items: center !important; width: 100% !important; }
    .footer-links a { width: 80%; text-align: center; margin: 5px auto !important; display: block; }
}

/* =========================================
   9. SCROLL TO TOP BUTTON (NEW)
   ========================================= */
#scrollTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: var(--accent); /* Turn Gold on hover */
    color: #1e2a38;
    transform: translateY(-5px);
}