/* ===============================
   🔥 عنقاء ANQA - BRAND IDENTITY
   النهوض من الرماد | Rise from the Ashes
================================ */

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

/* ===============================
   ROOT VARIABLES - الهوية البصرية
================================ */
:root {
  /* Primary Colors - ألوان النار والعنقاء */
  --fire-orange: #FF6B35;
  --fire-gold: #F7931E;
  --ember-red: #C73E1D;
  
  /* Secondary Colors - الثبات والعمق */
  --deep-navy: #1A2332;
  --midnight: #0F1419;
  --slate: #2D3748;
  
  /* Accent Colors - فلسطين والأمل */
  --olive-green: #4A7C59;
  --sage: #6B8E7F;
  --pine: #2F4538;
  
  /* Neutrals - Light Mode */
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-accent: #F5F5F5;
  --text-primary: #1A2332;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border-light: #E2E8F0;
  --border-medium: #CBD5E0;
  
  /* Shadows & Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-fire: 0 8px 25px rgba(255,107,53,0.25);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===============================
   DARK MODE - الوضع الليلي
================================ */
body.dark-mode {
  --bg-primary: #0F1419;
  --bg-secondary: #1A2332;
  --bg-accent: #2D3748;
  --text-primary: #F7FAFC;
  --text-secondary: #E2E8F0;
  --text-muted: #A0AEC0;
  --border-light: #2D3748;
  --border-medium: #4A5568;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
}

/* ===============================
   RESET & BASE STYLES
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

::selection {
  background: var(--fire-orange);
  color: white;
}

/* ===============================
   TYPOGRAPHY - الطباعة
================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Amiri', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

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

/* ===============================
   CONTAINER
================================ */
.container {
  width: min(1280px, 94%);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===============================
   NAVBAR - شريط التنقل
================================ */
.navbar {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

/* Logo - الشعار */
.logo {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fire-orange);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  letter-spacing: -0.5px;
}

/* Logo clean - no fire emoji */

.logo span {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: var(--transition-base);
  line-height: 1;
}

.mobile-menu-btn:hover {
  background: var(--fire-orange);
  color: white;
  border-color: var(--fire-orange);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 2px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-menu.active {
  max-height: 600px;
}

.mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-base);
  font-weight: 500;
}

.mobile-menu a:hover {
  background: var(--bg-accent);
  color: var(--fire-orange);
}

.mobile-menu-actions {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links a {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition-base);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--fire-orange);
  transition: var(--transition-base);
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fire-orange);
}

.nav-links a.active::after {
  width: 60%;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: var(--bg-accent);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  transform: rotate(180deg);
  border-color: var(--fire-orange);
}

.lang-toggle {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  background: transparent;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-base);
}

.lang-toggle:hover {
  border-color: var(--fire-orange);
  color: var(--fire-orange);
}

/* ===============================
   BUTTONS - الأزرار
================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
  color: white;
  box-shadow: var(--shadow-fire);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255,107,53,0.35);
}

.btn-secondary {
  background: var(--olive-green);
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--fire-orange);
  color: var(--fire-orange);
  background: rgba(255,107,53,0.05);
}

.btn-ghost {
  background: rgba(255,107,53,0.1);
  color: var(--fire-orange);
}

.btn-ghost:hover {
  background: rgba(255,107,53,0.2);
}

/* ===============================
   HERO SECTION - القسم الرئيسي
================================ */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.15), transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, -30px) rotate(5deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.3rem;
  background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(247,147,30,0.1));
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fire-orange);
  margin-bottom: 1.5rem;
  animation: slideInLeft 0.8s ease-out;
}

.badge::before {
  content: '🇵🇸';
  font-size: 1.1rem;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Hero Text */
.hero-text h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--fire-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 1s ease-out 0.2s backwards;
}

.hero-text h1 span {
  display: block;
  font-size: 0.65em;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 0.5rem;
  -webkit-text-fill-color: var(--text-secondary);
}

.hero-text > p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
  animation: slideInLeft 1s ease-out 0.4s backwards;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: slideInLeft 1s ease-out 0.6s backwards;
}

.hero-note {
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--olive-green);
  font-style: italic;
  animation: slideInLeft 1s ease-out 0.8s backwards;
}

/* Hero Image */
.hero-image {
  position: relative;
  animation: slideInRight 1s ease-out 0.4s backwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.hero-image img:hover {
  transform: scale(1.02) rotate(1deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Image Placeholder if no image */
.hero-image-placeholder {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: var(--shadow-fire);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ===============================
   SECTIONS - الأقسام
================================ */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--fire-orange), var(--fire-gold));
  margin: 1.5rem auto 0;
  border-radius: 4px;
}

/* ===============================
   GRID & CARDS - الشبكات والبطاقات
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--fire-orange), var(--fire-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--fire-orange);
  box-shadow: var(--shadow-lg);
}

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

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: var(--transition-smooth);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-arrow {
  display: inline-block;
  color: var(--fire-orange);
  font-size: 1.5rem;
  transition: var(--transition-base);
}

.card:hover .card-arrow {
  transform: translateX(-5px);
}

/* ===============================
   FEATURE CARDS
================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-base);
}

.feature-card:hover {
  border-color: var(--olive-green);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(74,124,89,0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===============================
   FOOTER - التذييل
================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--border-light);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand .logo {
  font-size: 1.8rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 400px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--fire-orange);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--fire-orange);
  padding-right: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom span {
  color: var(--fire-orange);
}

/* ===============================
   RESPONSIVE - الاستجابة
================================ */

/* Mobile Small (max 480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    width: 100%;
    padding: 0 1rem;
  }
  
  /* Navbar Mobile */
  .navbar {
    padding: 0.8rem 0;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  .logo span {
    font-size: 0.7rem;
  }
  
  .nav-links {
    display: none;
  }
  
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: inline-block !important;
  }
  
  /* Show mobile menu when active */
  .mobile-menu {
    display: block;
  }
  
  .nav-actions {
    gap: 0.4rem;
  }
  
  .nav-actions .btn {
    display: none;
  }
  
  .lang-toggle,
  .theme-toggle {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Hero Mobile */
  .hero {
    padding: 1.5rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  
  h1 {
    font-size: 1.6rem !important;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.4rem !important;
  }
  
  h3 {
    font-size: 1.1rem !important;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    padding: 0.85rem;
  }
  
  /* Sections Mobile */
  .section {
    padding: 2rem 0;
  }
  
  .grid,
  .grid-3,
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem;
  }
  
  .card,
  .feature-card {
    padding: 1.3rem;
  }
  
  /* Footer Mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-bottom p {
    font-size: 0.85rem;
  }
}

/* Tablet (481px - 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  
  /* Show mobile menu button on tablet too */
  .mobile-menu-btn {
    display: inline-block !important;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text > p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
  }
}

@media (max-width: 768px) {
  /* Container padding */
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }
  
  /* Typography */
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.2rem !important; }
  
  /* Logo */
  .logo {
    font-size: 1.5rem;
  }
  
  /* Hero */
  .hero {
    padding: 2rem 0 2rem;
  }
  
  .hero-image {
    max-width: 100%;
  }
  
  .hero-image img {
    max-width: 100%;
    height: auto;
  }
  
  /* Sections */
  .section {
    padding: 2rem 0;
  }
  
  /* Grids */
  .grid,
  .grid-3,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Nav actions - hide buttons, keep icons */
  .nav-actions .btn {
    display: none !important;
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
  
  .nav-actions .theme-toggle,
  .nav-actions .lang-toggle {
    display: flex;
  }
  
  /* Cards */
  .card {
    padding: 1.5rem;
  }
  
  /* Badges */
  .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  /* Hero actions */
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  /* Footer */
  .footer-inner {
    gap: 2rem;
  }
}

/* ===============================
   UTILITIES - الأدوات المساعدة
================================ */
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===============================
   PAGE-SPECIFIC STYLES
================================ */

/* Hero Section Variations */
.hero-small {
  padding: 4rem 0 3rem;
}

.hero-centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Auth Pages */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.auth-box {
  max-width: 480px;
  margin: 0 auto;
}

.auth-box-wide {
  max-width: 520px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 3rem;
}

.auth-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.auth-title {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.auth-form {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 1rem 1.3rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-base);
}

.form-input:focus {
  border-color: var(--fire-orange);
}

.form-select {
  width: 100%;
  padding: 1rem 1.3rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-base);
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--fire-orange);
}

.form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-base);
  resize: vertical;
  font-family: 'Tajawal', sans-serif;
}

.form-textarea:focus {
  border-color: var(--fire-orange);
}

.form-divider {
  position: relative;
  text-align: center;
  margin: 1rem 0;
}

.form-divider span {
  background: var(--bg-secondary);
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.form-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
  z-index: 0;
}

.form-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.form-footer-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-link {
  color: var(--fire-orange);
  font-weight: 700;
}

.form-helper {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.form-checkbox-label {
  display: flex;
  align-items: start;
  gap: 0.7rem;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1.6;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 3px;
  flex-shrink: 0;
}

.form-remember {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-remember label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.forgot-link {
  color: var(--fire-orange);
  font-weight: 600;
  font-size: 0.95rem;
}

/* University Cards */
.university-badge {
  background: rgba(255,107,53,0.1);
  color: var(--fire-orange);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.university-badge-alt {
  background: rgba(74,124,89,0.1);
  color: var(--olive-green);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-group {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Course Cards */
.course-thumbnail {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.course-badge {
  background: rgba(255,107,53,0.1);
  color: var(--fire-orange);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.course-badge-alt {
  background: rgba(74,124,89,0.1);
  color: var(--olive-green);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-container {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Stats Section */
.stats-box {
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
}

.stat-number-alt {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--fire-gold);
}

.stat-label-alt {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}

/* CTA Boxes */
.cta-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.cta-text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Blog/Article Styles */
.article-thumbnail {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-badge {
  background: rgba(255,107,53,0.1);
  color: var(--fire-orange);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.article-badge-alt {
  background: rgba(74,124,89,0.1);
  color: var(--olive-green);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.8rem;
}

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

.article-link {
  color: var(--fire-orange);
  font-weight: 600;
}

/* Featured Post */
.featured-post {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  box-shadow: var(--shadow-lg);
}

.featured-image {
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  padding: 3rem;
}

.featured-content {
  padding: 3rem;
}

.featured-badge {
  background: rgba(255,107,53,0.1);
  color: var(--fire-orange);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-box {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
}

.contact-info-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: start;
  gap: 1.5rem;
}

.contact-icon {
  font-size: 2.5rem;
}

.contact-title {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.contact-link {
  color: var(--fire-orange);
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-note {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* About Page */
.story-box {
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  line-height: 1.9;
  font-size: 1.1rem;
}

.story-text {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.story-highlight {
  color: var(--fire-orange);
  font-weight: 700;
}

.story-quote {
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
  font-style: italic;
}

.vision-box {
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
  color: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
}

.vision-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.vision-title {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.vision-text {
  color: rgba(255,255,255,0.95);
  line-height: 1.8;
  font-size: 1.05rem;
}

.mission-box {
  background: linear-gradient(135deg, var(--olive-green), var(--sage));
  color: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
}

.impact-box {
  background: linear-gradient(135deg, var(--deep-navy), var(--slate));
  color: white;
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
}

.team-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.team-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.join-box {
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(74,124,89,0.1));
  border: 2px solid var(--fire-orange);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
}

/* Library Page */
.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid var(--border-medium);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-base);
}

.search-input:focus {
  border-color: var(--fire-orange);
}

.search-btn {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

.library-count {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.book-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.book-thumbnail {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.book-title {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.book-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.book-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.file-badge {
  background: rgba(255,107,53,0.1);
  color: var(--fire-orange);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.size-badge {
  background: rgba(74,124,89,0.1);
  color: var(--olive-green);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .featured-post,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .auth-box,
  .auth-box-wide {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .hero-small {
    padding: 3rem 0 2rem;
  }
  
  .auth-form {
    padding: 2rem;
  }
  
  .stats-box,
  .vision-box,
  .mission-box,
  .impact-box {
    padding: 2rem 1rem;
  }
}
