@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary-color: #0891b2;
  --primary-glow: #06b6d4;
  --secondary-color: #f59e0b;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  color: #334155;
  background-color: #fcfcfd;
}

h1, h2, h3, h4, h5, h6, .heading, .subheading {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  letter-spacing: normal !important;
}

.literary-quote {
  font-family: 'Amiri', serif;
  font-size: 1.25rem;
  line-height: 1.8;
  font-style: italic;
  color: #475569;
}

/* RTL navigation fixes */
.site-nav .site-navigation .site-menu {
  float: left !important;
  margin-right: auto;
  margin-left: 0;
  padding-right: 0;
}

.site-nav .site-navigation .site-menu > li {
  display: inline-block;
  margin-left: 10px;
  margin-right: 15px;
}

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

.site-nav .site-navigation .logo img {
  height: 48px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--primary-glow);
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

.brand-text span {
  color: var(--primary-color);
}

/* Header CTA */
.header-cta-btn {
  background: linear-gradient(135deg, #0891b2, #0284c7);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.25);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
  color: #fff !important;
}

/* Hero Section */
.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.2);
  color: #0891b2;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-stats-banner {
  margin-top: 40px;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
}

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

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 6px;
  font-family: 'Cairo', sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Portfolio / Book Grid Item Styling */
.portfolio-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  display: block;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-item img {
  height: 280px;
  width: 100%;
  object-fit: cover;
}

.portfolio-item .overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  opacity: 1 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  text-align: right;
}

.portfolio-item-content h3 {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 6px;
}

.portfolio-item-content p {
  color: #38bdf8;
  font-size: 0.9rem;
  margin-bottom: 0;
  font-weight: 600;
}

.book-tag {
  display: inline-block;
  background-color: rgba(245, 158, 11, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  width: fit-content;
}

/* Founder / About Spotlight */
.founder-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
}

.founder-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.25);
  margin-bottom: 20px;
}

/* Service Card Modernization */
.service-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 24px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  height: 100%;
  text-align: right;
}

.service-box:hover {
  transform: translateY(-5px);
  border-color: #0891b2;
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.1);
}

.service-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(8, 145, 178, 0.1);
  color: #0891b2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* Testimonial Quote Fix */
.testimonial-v1 {
  text-align: right;
  direction: rtl;
}

.testimonial-v1 blockquote {
  font-family: 'Amiri', serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;
  text-align: right;
}

/* Contact Info Box */
.contact-info-card {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
  height: 100%;
  text-align: right;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(8, 145, 178, 0.2);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-info-text h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-text p, .contact-info-text a {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 0;
  text-decoration: none;
}

.contact-info-text a:hover {
  color: #38bdf8;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
  color: #ffffff !important;
}

/* RTL Form Controls */
.form-control {
  text-align: right;
  direction: rtl;
  border-radius: 8px;
  padding: 12px 16px;
}

/* Social Icon Pills */
.social-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 4px;
  transition: all 0.2s ease;
}

.social-pill-link:hover {
  background: #0891b2;
  color: #fff;
  transform: translateY(-2px);
}

.btn-primary-custom {
  background: #0891b2;
  border-color: #0891b2;
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background: #0e7490;
  border-color: #0e7490;
  color: #fff;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35);
}

.btn-outline-custom {
  border: 2px solid #0891b2;
  color: #0891b2;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: #0891b2;
  color: #fff;
}
