/* =============================================
   CABINET DR NISRINE ABDELHAY - STYLESHEET
   ============================================= */

/* ---- Google Fonts Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #1a6b9a;
  --primary-dark: #134e72;
  --primary-light: #2d8abf;
  --secondary: #3abfbf;
  --secondary-light: #e8f7f7;
  --accent: #f0a500;
  --white: #ffffff;
  --bg: #f8fbfd;
  --bg-alt: #eef5fa;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2ecf4;
  --shadow: 0 4px 24px rgba(26, 107, 154, 0.10);
  --shadow-lg: 0 8px 40px rgba(26, 107, 154, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-latin: 'Poppins', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-latin);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.rtl {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Sections ---- */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--secondary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-header h2 {
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26, 107, 154, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 107, 154, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20b858, #0f7a6d);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.nav-logo-text {
  line-height: 1.25;
}

.nav-logo-text .name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.nav-logo-text .title {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--secondary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 50%, #f0faf7 100%);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(58, 191, 191, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 107, 154, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--secondary);
}

.hero-desc {
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
}

.hero-card-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-alt), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary);
}

.hero-card-info {
  padding: 24px;
}

.hero-card-info h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.hero-card-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--secondary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.hero-float-1,
.hero-float-2 {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  animation: float 3s ease-in-out infinite;
}

.hero-float-1 {
  top: 20px;
  right: -20px;
  animation-delay: 0s;
}

.hero-float-2 {
  bottom: 60px;
  left: -20px;
  animation-delay: 1.5s;
}

.hero-float-1 i,
.hero-float-2 i {
  font-size: 1.2rem;
  color: var(--primary);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- WhatsApp Float Button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: pulse-wa 2.5s infinite;
}

@keyframes pulse-wa {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---- Services Section ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 16px;
  transition: var(--transition);
}

.service-card .service-link:hover {
  gap: 10px;
}

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--bg-alt), var(--secondary-light));
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--primary);
  overflow: hidden;
}

/* Photo placeholder fallback */
.img-placeholder-initials {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-alt), var(--secondary-light));
  gap: 12px;
}
.img-placeholder-initials .initials {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-latin);
}
.img-placeholder-initials .placeholder-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-badge .num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.about-badge .label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}

.about-content {
  padding-left: 20px;
}

.about-content .section-tag {
  display: inline-block;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.feature-item i {
  color: var(--secondary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---- Testimonials Section ---- */
.testimonials {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.testimonials .section-header h2 {
  color: white;
}

.testimonials .section-header p {
  color: rgba(255,255,255,0.75);
}

.testimonials .section-tag {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.95);
}

.testimonials .section-divider {
  background: linear-gradient(90deg, rgba(255,255,255,0.6), var(--secondary));
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.review-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}

.review-stars {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.review-text {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

/* ---- Blog Section ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-alt), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  position: relative;
}

.blog-card-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

/* Article featured cover image */
.article-cover {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 0;
}
.article-cover img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
  margin-bottom: -20px;
}
@media (max-width: 768px) {
  .article-cover img { height: 220px; }
}

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-body {
  padding: 24px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-meta i {
  color: var(--primary);
}

.blog-card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.blog-read-more:hover {
  gap: 10px;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  text-align: center;
  padding: 80px 0;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-banner .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.6);
}

.cta-banner .btn-secondary:hover {
  background: white;
  color: var(--primary);
}

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--secondary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-item-text p,
.contact-item-text a {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
}

.contact-item-text a:hover {
  color: var(--secondary);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 {
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* ---- Footer ---- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .nav-logo-icon {
  margin-bottom: 16px;
}

.footer-brand .nav-logo-text .name {
  color: white;
  font-size: 1rem;
}

.footer-brand .nav-logo-text .title {
  color: rgba(255,255,255,0.6);
}

.footer-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 16px 0;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
}

.footer-contact-item i {
  color: var(--secondary);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}

/* ---- Blog card as anchor ---- */
a.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.blog-card h3,
a.blog-card p {
  color: inherit;
}

/* ---- About section: prevent badge overflow ---- */
.about-image-wrap {
  overflow: visible;
}

@media (max-width: 900px) {
  .about-badge {
    right: 10px !important;
    left: auto !important;
    bottom: 10px;
  }
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---- Article / Blog ---- */
.article-hero {
  background: linear-gradient(135deg, #f0f7ff, #e8f4f8);
  padding: 140px 0 60px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta-bar .category-pill {
  background: var(--primary);
  color: white;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.article-hero h1 {
  color: var(--primary-dark);
  max-width: 800px;
  margin-bottom: 20px;
  line-height: 1.25;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
}

.article-body h2 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.article-body h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 18px;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.85;
}

.article-body ul, .article-body ol {
  margin: 16px 0 24px 20px;
  list-style: disc;
}

.article-body li {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
}

.article-body ol {
  list-style: decimal;
}

.article-callout {
  background: var(--secondary-light);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}

.article-callout p {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 500;
}

.article-cta-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin: 50px 0;
  color: white;
}

.article-cta-box h3 {
  color: white;
  margin-bottom: 10px;
}

.article-cta-box p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: white; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

.alert-info {
  background: var(--secondary-light);
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--primary-dark);
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  .nav-menu,
  .nav-actions .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    gap: 2px;
  }

  .nav-menu.open .nav-link {
    padding: 9px 14px;
    font-size: 0.92rem;
    border-radius: 8px;
  }

  .nav-menu.open .nav-wa-btn {
    display: flex !important;
    margin-top: 10px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image-wrap {
    order: -1;
  }

  .hero-float-1, .hero-float-2 {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content {
    padding-left: 0;
  }

  .about-badge {
    right: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .hero-desc {
    max-width: 100%;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { gap: 20px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ---- RTL (Arabic) ---- */
[dir="rtl"] {
  font-family: var(--font-arabic);
}

[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .about-content {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .about-badge {
  right: auto;
  left: -20px;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

[dir="rtl"] .article-callout {
  border-left: none;
  border-right: 4px solid var(--primary);
  border-radius: var(--radius) 0 0 var(--radius);
}

[dir="rtl"] .hero-float-1 {
  right: auto;
  left: -20px;
}

[dir="rtl"] .hero-float-2 {
  left: auto;
  right: -20px;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
