/* VeloKit — Pages Shared Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0b0f19;
  --bg-2:     #111827;
  --bg-3:     #1e293b;
  --bg-4:     #273548;
  --border:   rgba(255,255,255,0.08);
  --text:     #f1f5f9;
  --text-2:   #94a3b8;
  --text-3:   #64748b;
  --cyan:     #06B6D4;
  --purple:   #A855F7;
  --green:    #10B981;
  --amber:    #F59E0B;
  --red:      #EF4444;
  --radius:   14px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── TOP NAV ── */
.top-nav {
  background: rgba(11,15,25,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
}
.top-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 2rem;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--cyan);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-3);
}
.nav-links a.active { color: var(--cyan); }
.nav-cta {
  background: var(--cyan);
  color: #000 !important;
  font-weight: 700 !important;
  padding: 7px 18px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: #0891b2 !important; color: #000 !important; }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }
@media(max-width:768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 1rem; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .top-nav { padding: 0 1rem; }
}

/* ── PAGE WRAPPER ── */
.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
}
.page-wrapper.wide { max-width: 1100px; }

/* ── PAGE HEADER ── */
.page-hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.page-hero .badge {
  display: inline-block;
  background: rgba(6,182,212,0.12);
  color: var(--cyan);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.page-hero h1 em { color: var(--cyan); font-style: normal; }
.page-hero p {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ── CONTENT STYLES ── */
.content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--cyan);
}
.content p { color: var(--text-2); margin-bottom: 1rem; }
.content ul, .content ol {
  color: var(--text-2);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content li { margin-bottom: 0.4rem; }
.content a { color: var(--cyan); text-decoration: none; }
.content a:hover { text-decoration: underline; }
.content strong { color: var(--text); font-weight: 600; }
.content .highlight {
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-2);
}
.content .warning {
  background: rgba(245,158,11,0.08);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-2);
}
.last-updated {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.card p { font-size: 0.85rem; color: var(--text-2); margin: 0; }

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-2);
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-3); }
.faq-q .arrow { transition: transform 0.3s; font-size: 0.85rem; }
.faq-q.open .arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  color: var(--text-2);
  font-size: 0.9rem;
}
.faq-a.open { max-height: 300px; padding: 1rem 1.25rem; }

/* ── CONTACT FORM ── */
.contact-form { display: grid; gap: 1rem; }
.form-group { display: grid; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.form-control {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--cyan); }
textarea.form-control { min-height: 130px; resize: vertical; }
.btn-primary {
  background: var(--cyan);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.btn-primary:hover { background: #0891b2; }
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.contact-card .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.contact-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.contact-card p { font-size: 0.82rem; color: var(--text-2); margin: 0; }

/* ── BLOG ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
}
.blog-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.blog-img {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-body { padding: 1.25rem; }
.blog-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.blog-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.82rem; color: var(--text-2); margin: 0 0 0.75rem; }
.blog-meta { font-size: 0.75rem; color: var(--text-3); }

/* ── NEWS ── */
.news-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.news-item:hover { border-color: var(--cyan); }
.news-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--bg-3);
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 60px;
}
.news-date .day { font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--cyan); }
.news-date .mon { font-size: 0.65rem; text-transform: uppercase; color: var(--text-3); letter-spacing: 1px; }
.news-body h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.news-body p { font-size: 0.82rem; color: var(--text-2); margin: 0; }
.news-tag {
  display: inline-block;
  background: rgba(6,182,212,0.12);
  color: var(--cyan);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.team-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 0.75rem;
}
.team-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.team-card p { font-size: 0.78rem; color: var(--text-3); margin: 0; }

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-3,#1e293b);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--text,#f1f5f9);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-btn:hover {
  background: var(--bg-4,#273548);
  border-color: var(--cyan,#06B6D4);
}
.lang-flag { font-size: 1rem; }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-2,#111827);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  min-width: 180px;
  z-index: 999;
  overflow: hidden;
  padding: 6px;
}
.lang-menu.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-2,#94a3b8);
  transition: all 0.15s;
}
.lang-option:hover {
  background: var(--bg-3,#1e293b);
  color: var(--text,#f1f5f9);
}
.lang-option.active {
  background: rgba(6,182,212,0.12);
  color: var(--cyan,#06B6D4);
  font-weight: 600;
}
/* RTL support for Arabic */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .sidebar { left: auto; right: 0; transform: translateX(100%); }
[dir="rtl"] .sidebar.open { transform: translateX(0); }
[dir="rtl"] .main { margin-left: 0; margin-right: 260px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
@media(max-width:768px) {
  .lang-label { display: none; }
  .lang-btn { padding: 5px 8px; }
}

.page-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem 1.5rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.footer-links-row a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-links-row a:hover { color: var(--cyan); }
.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-3);
}
