/* =========================================================
   Mostanad Academy | مستند أكاديمي
   Shared Header + Footer CSS
   Extracted and cleaned from the supplied index.html
   ========================================================= */

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --card: #f1f5f9;
  --primary: #2563eb;
  --green: #22c55e;
  --cyan: #38bdf3;
}

body.dark {
  --bg: #0f172a;
  --text: #ffffff;
  --card: #1e293b;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: 0.4s;
}

/* =========================
   HEADER / NAVBAR
   ========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: 0.3s;
}

body.dark .navbar {
  background: rgba(15, 23, 42, 0.9);
}

.navbar .navbar-brand {
  color: var(--text);
  text-decoration: none;
}

.navbar .navbar-brand h2 {
  margin: 0;
  color: var(--text);
}

.navbar .nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.3s;
  border: 1px solid transparent;
  color: var(--text);
}

.navbar .nav-link:hover {
  border: 1px solid #00e1ff;
  color: #00d9ff !important;
}

/* =========================
   DROPDOWN MENU
   ========================= */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.dropdown-content a {
  color: #333333;
  padding: 12px 15px;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background: #f2f2f2;
}

.dropdown:hover .dropdown-content {
  display: block;
}

body.dark .dropdown-content {
  background: #1e293b;
}

body.dark .dropdown-content a {
  color: #ffffff;
}

body.dark .dropdown-content a:hover {
  background: #334155;
}

/* =========================
   DARK MODE TEXT FIX
   ========================= */
body.dark p,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark li,
body.dark a {
  color: #ffffff;
}

/* =========================
   FLOATING CONTACT BUTTONS
   ========================= */
.contact-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 998;
}

.contact-btn {
  padding: 12px 14px;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
}

.contact-btn.whatsapp,
.whatsapp {
  background: #22c55e;
}

.contact-btn.email,
.email {
  background: #2563eb;
}

/* =========================================================
   MODERN FOOTER
   ========================================================= */
.modern-footer {
  margin-top: 80px;
  padding: 60px 20px;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  transition: 0.4s;
}

.footer-content h2 {
  font-size: 38px;
  margin-bottom: 15px;
  color: #0f172a;
}

.footer-content p {
  color: #334155;
  max-width: 600px;
  margin: auto;
  line-height: 1.8;
  margin-bottom: 35px;
}

/* =========================
   SOCIAL ICONS
   ========================= */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social-icons a {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #2563eb;
  font-size: 22px;
  text-decoration: none;
  transition: 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.social-icons a:hover {
  transform: translateY(-8px) scale(1.1);
  background: #38bdf3 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 30px rgba(56, 189, 243, 0.35);
}

/* =========================
   FOOTER LINE + COPYRIGHT
   ========================= */
.footer-line {
  width: 120px;
  height: 2px;
  background: #38bdf3;
  margin: 35px auto 20px;
  border-radius: 20px;
}

.footer-content > span {
  color: #334155;
  font-size: 16px;
}

/* =========================
   DARK MODE FOOTER
   ========================= */
body.dark .modern-footer {
  background: linear-gradient(180deg, #0f172a, #020617);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark .footer-content h2 {
  color: #38bdf3;
}

body.dark .footer-content p,
body.dark .footer-content > span {
  color: #cbd5e1;
}

body.dark .social-icons a {
  background: #111827;
  color: #38bdf3;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================
   RESPONSIVE HEADER / FOOTER
   ========================= */
@media (max-width: 768px) {
  .navbar .navbar-brand h2 {
    font-size: 1rem;
  }

  .navbar .navbar-brand img {
    width: 55px;
    height: 55px;
  }

  .modern-footer {
    padding: 45px 15px;
  }

  .footer-content h2 {
    font-size: 30px;
  }

  .footer-content p {
    font-size: 14px;
  }

  .social-icons {
    gap: 12px;
  }

  .social-icons a {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }
}
