*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Brand colors (matched to Logo.png) */
  --brand-blue: #0b5d86;
  --brand-blue-2: #0e7490;
  --brand-gold: #d2b07a;
  --brand-gold-2: #b8925b;
  --brand-ink: #020617;
  --brand-muted: #9ca3af;
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #050816;
  color: #f9fafb;
  direction: rtl;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.alt-bg {
  background: radial-gradient(circle at top left, #1f2933 0, #020617 55%);
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header p {
  margin: 0;
  color: #9ca3af;
}

.section-grid.two-cols {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .section-grid.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: flex-start;
  }
}

/* Top banner */
.top-banner {
  position: fixed;
  top: 0;
  inset-inline: 0;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-2));
  color: var(--brand-ink);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  z-index: 40;
}

.top-banner button {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Header / Nav */
.main-header {
  position: sticky;
  top: 2.25rem;
  z-index: 30;
  padding: 0.75rem 0;
  backdrop-filter: blur(18px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.35rem 0.75rem 0.35rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--brand-muted);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  color: #e5e7eb;
}

.main-nav a:hover {
  background: rgba(148, 163, 184, 0.15);
}

.nav-cta {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: var(--brand-ink);
  padding-inline: 0.9rem !important;
  padding-block: 0.4rem !important;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.22rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    inset-inline: 1.25rem;
    top: calc(2.25rem + 52px);
    background: #020617;
    border-radius: 1rem;
    padding: 0.75rem 0.75rem 0.85rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    display: block;
    padding: 0.5rem 0.6rem;
  }

  .nav-container {
    border-radius: 999px;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.2), transparent 60%),
    linear-gradient(to bottom, #020617, #020617 45%, #020617);
}

.hero-container {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-container {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

.eyebrow {
  color: rgba(210, 176, 122, 0.95);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 1.9rem;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.hero h1 span {
  color: var(--brand-gold);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
  }
}

.hero-subtitle {
  color: #9ca3af;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: var(--brand-ink);
  box-shadow: 0 18px 35px rgba(210, 176, 122, 0.25);
}

.btn.secondary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: #eaf2ff;
  box-shadow: 0 18px 35px rgba(11, 93, 134, 0.3);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  border: 1px solid rgba(156, 163, 175, 0.7);
}

.btn.small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn.tiny {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.btn.full-width {
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.55);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 420px;
}

.hero-stats div {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.stat-number {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
}

.small-muted {
  font-size: 0.8rem;
  color: #9ca3af;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: radial-gradient(circle at top left, #1f2937 0, #020617 52%);
  border-radius: 1.5rem;
  padding: 1.25rem 1.2rem 1.4rem;
  border: 1px solid rgba(75, 85, 99, 0.95);
  width: 100%;
  max-width: 360px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.8),
    0 0 0 1px rgba(15, 23, 42, 0.85);
}

.tutor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(22, 163, 74, 0.09);
  color: #bbf7d0;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  border: 1px solid rgba(34, 197, 94, 0.45);
  margin-bottom: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.tutor-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.6);
  flex: 0 0 auto;
}

.tutor-info h2 {
  margin: 0;
  font-size: 1.2rem;
}

.tutor-info p {
  margin: 0.1rem 0;
}

.avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #facc15, #f97316, #a855f7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #020617;
  font-size: 1.35rem;
}

.tutor-description {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

.tutor-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.4rem;
}

.tutor-highlights li {
  font-size: 0.85rem;
  color: #e5e7eb;
  padding: 0.4rem 0.55rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(75, 85, 99, 0.8);
}

.social-strip {
  margin-top: 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.social-strip-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.social-strip-label {
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e5e7eb;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.social-links a {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease, border-color 0.15s ease;
}

.social-links a i {
  font-size: 1.35rem;
}

.social-links a:hover {
  background: linear-gradient(
    135deg,
    var(--brand-blue),
    var(--brand-blue-2)
  );
  border-color: rgba(11, 93, 134, 0.9);
  color: #eaf2ff;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Values */
.values-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.value-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.2rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.value-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #d1d5db;
}

/* Tabs & Courses */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-button {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
}

.tab-button.active {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(129, 140, 248, 0.95);
  color: #c7d2fe;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.courses-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.course-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.2rem;
  padding: 1.2rem 1.1rem 1.1rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.course-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.course-card p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

.course-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.course-card ul li + li {
  margin-top: 0.2rem;
}

/* Cards for services */
.cards-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.2rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #d1d5db;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.3rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(75, 85, 99, 0.95);
}

.testimonial-text {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #f97316, #a855f7);
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-meta h3 {
  margin: 0;
  font-size: 0.95rem;
}

.testimonial-meta span {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 1rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.5rem 0 0.1rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.2rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.blog-card h3 {
  margin: 0.5rem 0 0.45rem;
  font-size: 1.02rem;
}

.blog-card p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

.badge {
  display: inline-flex;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.7);
}

.link-button {
  border: none;
  background: transparent;
  color: #60a5fa;
  font-size: 0.85rem;
  padding: 0;
  cursor: pointer;
}

/* Forms */
.form {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.form-group {
  display: grid;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.9rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0.2rem 0 0;
}

.contact-info,
.contact-social {
  margin-top: 1.5rem;
}

.contact-info h3,
.contact-social h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.contact-info p,
.contact-social p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #d1d5db;
}

.newsletter-box {
  margin-top: 1.5rem;
  padding: 1rem 0.9rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.newsletter-box h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.newsletter-box p {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: #d1d5db;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.85rem;
}

/* Chat widget */
.chat-widget {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 45;
}

.chat-toggle {
  border-radius: 999px;
  border: none;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: #eaf2ff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.chat-window {
  position: absolute;
  bottom: 3rem;
  left: 0;
  width: min(320px, 90vw);
  background: rgba(15, 23, 42, 0.98);
  border-radius: 1rem;
  border: 1px solid rgba(55, 65, 81, 0.95);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.open {
  display: flex;
}

.chat-header {
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.chat-header button {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.1rem;
  cursor: pointer;
}

.chat-body {
  max-height: 220px;
  overflow-y: auto;
  padding: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.chat-message {
  max-width: 90%;
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
}

.chat-message.from-bot {
  background: rgba(37, 99, 235, 0.18);
  justify-self: flex-start;
}

.chat-message.from-user {
  background: rgba(22, 163, 74, 0.2);
  justify-self: flex-end;
}

.chat-input-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem 0.6rem;
  border-top: 1px solid rgba(51, 65, 85, 0.9);
}

.chat-input-row input {
  flex: 1;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.8rem;
}

.chat-input-row button {
  border-radius: 999px;
  border: none;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: var(--brand-ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
  font-size: 1.45rem;
}

/* Footer */
.main-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  padding-top: 2rem;
}

.footer-container {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 3fr;
  }
}

.footer-container h3 {
  margin: 0 0 0.4rem;
}

.footer-container p {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.footer-links h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 0.2rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding: 0.75rem 0 1.25rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-bottom-inner {
  display: flex;
  justify-content: center;
}

/* Responsiveness tweaks */
@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-whatsapp {
    bottom: 0.9rem;
    right: 0.9rem;
  }

  .chat-widget {
    bottom: 0.9rem;
    left: 0.9rem;
  }
}


