/* ==========================================================================
   NXT Academy Website Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #7c3aed;
  --accent-color: #10b981;
  --bg-color: #f8f9ff;
  --card-bg: #ffffff;
  --text-main: #0b1c30;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
  --shadow-lg: 0 20px 30px -10px rgba(37, 99, 235, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Be Vietnam Pro', 'Cairo', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* RTL Pages (like index.html with <html dir="rtl">) */
html[dir="rtl"] body {
  font-family: 'Cairo', 'Be Vietnam Pro', sans-serif;
  direction: rtl;
  text-align: right;
}

/* Explicit Block Controls for Dual-Language Pages */
.ltr-block {
  direction: ltr !important;
  text-align: left !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
}

.rtl-block {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'Cairo', sans-serif !important;
}

/* Header & Navigation */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

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

.nav-links {
  display: flex;
  gap: 12px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #eff6ff;
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 24px 80px;
  text-align: center;
}

.hero-container {
  max-width: 850px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #e5eeff;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-primary-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 35px -10px rgba(37, 99, 235, 0.3);
}

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

html[dir="rtl"] .btn-text {
  text-align: right;
}

.btn-label {
  font-size: 18px;
  font-weight: 800;
}

.btn-sub {
  font-size: 13px;
  opacity: 0.85;
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  background-color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

/* Main Content Layout */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.page-title-box {
  text-align: center;
  margin-bottom: 36px;
}

.page-title-box h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.page-title-box p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Language Badges & Dividers */
.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.lang-badge.en {
  background-color: #eff6ff;
  color: var(--primary-color);
}

.lang-badge.ar {
  background-color: #f3e8ff;
  color: var(--secondary-color);
  font-family: 'Cairo', sans-serif;
}

.lang-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 60px 0;
  border-radius: 2px;
  opacity: 0.3;
}

/* Content Card for Terms & Support */
.content-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.content-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.last-updated {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.section-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 24px 0;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 24px;
  margin-bottom: 12px;
}

.paragraph {
  font-size: 15px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 16px;
  white-space: pre-line;
}

/* Support Specific Styles */
.whatsapp-banner {
  background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #ffffff;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px -5px rgba(21, 128, 61, 0.3);
}

.whatsapp-banner.rtl-block {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.whatsapp-content {
  margin-bottom: 24px;
}

.whatsapp-content h2 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 8px;
}

.whatsapp-content p {
  color: #dcfce7;
  font-size: 15px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: #15803d;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.info-item {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.info-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Features Grid on Index */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.bg-blue { background-color: #e5eeff; color: var(--primary-color); }
.bg-green { background-color: #e6f4ea; color: var(--accent-color); }
.bg-purple { background-color: #f3e8ff; color: var(--secondary-color); }
.bg-rose { background-color: #ffe4e6; color: #e11d48; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Download Box */
.download-box {
  background: linear-gradient(135deg, #0b1c30 0%, #1e3a8a 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 15px 30px rgba(11, 28, 48, 0.2);
}

.download-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-info p {
  color: #93c5fd;
  font-size: 15px;
  margin-bottom: 16px;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #cbd5e1;
}

.btn-download-large {
  background-color: var(--accent-color);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-download-large:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

/* Navigation Cards Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.nav-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.nav-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.nav-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.nav-card .btn-link {
  margin-top: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .download-box {
    flex-direction: column;
    text-align: center;
  }
  .btn-download-large {
    width: 100%;
    text-align: center;
  }
}
