/* ======================================================
   TALENTO TRAINING INSTITUTE — THEME OVERRIDES
   Colors: #0e5290 (navy) · #3688ba (blue) · #a6c1d4 (light)
   ====================================================== */

/* === ROOT OVERRIDES === */
:root {
  --accent:      #3688ba;
  --accent2:     #0e5290;
  --accent-glow: rgba(54, 136, 186, 0.25);
  --bg:          #ffffff;
  --bg2:         #f0f6fc;
  --bg3:         #e8f0f7;
  --card:        #ffffff;
  --card-border: rgba(14, 82, 144, 0.12);
  --text:        #1a2a3a;
  --text-muted:  #5a7a9a;
  --white:       #ffffff;
  --gradient:    linear-gradient(135deg, #3688ba, #0e5290);
  --font:        'Cairo', 'Tajawal', sans-serif;
  --radius:      16px;
  --transition:  all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === SPLASH SCREEN — keep dark Talento navy === */
#preloader {
  background: #071525 !important;
}
#preloader::before {
  background-image:
    linear-gradient(rgba(54,136,186,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54,136,186,0.05) 1px, transparent 1px) !important;
}
.splash-title-ar { color: #fff !important; }
.splash-tag-word { color: rgba(255,255,255,0.6) !important; }
.splash-footer    { color: rgba(255,255,255,0.25) !important; }
.orb1 { background: radial-gradient(circle, #3688ba, transparent 70%) !important; }
.orb2 { background: radial-gradient(circle, #0e5290, transparent 70%) !important; }
.orb3 { background: radial-gradient(circle, #a6c1d4, transparent 70%) !important; }

/* === NAVBAR === */
.navbar { background: transparent; }
.navbar.scrolled {
  background: rgba(255,255,255,0.96) !important;
  border-bottom: 1px solid rgba(14,82,144,0.12) !important;
  box-shadow: 0 2px 20px rgba(14,82,144,0.10);
}
.logo { color: var(--accent2) !important; }
.logo em { color: var(--accent) !important; font-style: normal; }
.logo span { color: var(--accent2) !important; }

.nav-logo-img {
  width: auto !important;
  height: 45px !important;
  filter: drop-shadow(0 0 6px rgba(54,136,186,0.35)) !important;
  border-radius: 4px !important;
}
.logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 14px rgba(54,136,186,0.7)) !important;
}
.nav-links a { color: var(--text-muted); }
.nav-links a:hover,
.nav-links a.active-link {
  color: var(--accent2) !important;
  background: rgba(14,82,144,0.08) !important;
}
.nav-login {
  height: 38px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  border: 1.5px solid rgba(14,82,144,0.32) !important;
  border-radius: 100px !important;
  color: var(--accent2) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
.nav-login:hover {
  background: rgba(14,82,144,0.06) !important;
  border-color: rgba(14,82,144,0.55) !important;
}
.hamburger span { background: var(--text) !important; }

/* Mobile nav drawer */
.nav-links.open {
  background: #ffffff !important;
  border-top: 1px solid rgba(14,82,144,0.10);
}
.nav-links.open a { color: var(--text) !important; }
.nav-links.open a:hover { color: var(--accent2) !important; background: rgba(14,82,144,0.06) !important; }
.nav-links.open .mobile-auth {
  border-top-color: rgba(14,82,144,0.15) !important;
}
.mobile-auth-btn.ghost {
  color: var(--text) !important;
  background: rgba(14,82,144,0.06) !important;
  border-color: rgba(14,82,144,0.20) !important;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fb 60%, #ddeaf7 100%);
}
.hero-title { color: var(--accent2); }
.hero-subtitle { color: var(--text-muted); }
.stat-num { color: var(--accent2) !important; }
.stat p { color: var(--text-muted); }
.stat span:not(.stat-num) { color: var(--accent) !important; }
.stat-divider { background: rgba(14,82,144,0.15) !important; }
.hero-badge {
  background: rgba(54,136,186,0.10) !important;
  border-color: rgba(54,136,186,0.30) !important;
  color: var(--accent2) !important;
}
.scroll-dot { background: var(--accent) !important; }

/* btn-outline on light bg */
.btn-outline {
  border-color: rgba(14,82,144,0.35) !important;
  color: var(--accent2) !important;
}
.btn-outline:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* === ABOUT === */
.about { background: var(--bg2); }
.about-content .info-item span:not(.info-label) { color: var(--text); }

/* === SERVICES / PROGRAMS === */
.services { background: var(--bg); }
.service-card:hover {
  box-shadow: 0 20px 40px rgba(14,82,144,0.12) !important;
}

/* === COURSES SECTION === */
.courses-section::before {
  background: radial-gradient(circle at 20% 30%, rgba(54,136,186,0.06), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(14,82,144,0.04), transparent 50%) !important;
}
.course-card h3 { color: var(--accent2) !important; }
.course-tier { color: var(--accent2) !important; }
.course-card-icon { box-shadow: 0 8px 20px rgba(54,136,186,0.25) !important; }

/* === TIMELINE (about page) === */
.timeline::before { background: rgba(54,136,186,0.20) !important; }
.timeline-card:hover { border-color: var(--accent) !important; }
.timeline-dot { box-shadow: 0 0 0 4px rgba(54,136,186,0.18) !important; }

/* === SECTION LABELS === */
.section-label {
  color: var(--accent2) !important;
  background: rgba(54,136,186,0.09) !important;
  border-color: rgba(54,136,186,0.28) !important;
}

/* === SECTION DIVIDER === */
.section::before {
  background: linear-gradient(90deg, transparent, rgba(54,136,186,0.20), transparent) !important;
}

/* === FORM INPUTS === */
.form-group input,
.form-group textarea,
.form-group select {
  background: #f8fbff !important;
  border-color: rgba(14,82,144,0.18) !important;
  color: var(--text) !important;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #8faec8 !important; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(54,136,186,0.12) !important;
}

/* === CONTACT === */
.contact-form {
  background: var(--bg2) !important;
  border-color: rgba(14,82,144,0.12) !important;
}

/* === FOOTER === */
.footer {
  background: var(--accent2);
  border-top: none;
  padding: 0;
}
.footer p { color: rgba(255,255,255,0.65) !important; }
.footer-logo { color: #fff !important; }
.footer-logo span { color: #fff !important; }
.footer-logo em { color: var(--accent) !important; }
.back-to-top {
  background: var(--accent) !important;
  box-shadow: 0 4px 16px rgba(54,136,186,0.40) !important;
}
.social-link {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.7) !important;
}
.social-link:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

/* === COURSE DETAIL PAGE === */
.course-detail-main h1 { color: var(--accent2) !important; }
.course-info-list li { background: rgba(54,136,186,0.06) !important; border-color: rgba(54,136,186,0.14) !important; }
.page-hero {
  background: radial-gradient(circle at center top, rgba(54,136,186,0.12), transparent 60%) !important;
}
.page-hero h1 {
  background: var(--gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* === PROGRAMS GRID (clients/tags) === */
.program-tag {
  background: rgba(54,136,186,0.07) !important;
  border-color: rgba(54,136,186,0.22) !important;
  color: var(--accent2) !important;
}
.program-tag:hover {
  background: rgba(54,136,186,0.16) !important;
  border-color: var(--accent) !important;
  color: var(--accent2) !important;
  transform: translateY(-3px);
}

/* === STATS SECTION === */
.talento-stats {
  background: linear-gradient(135deg, var(--accent2) 0%, #1a5fa0 100%);
  padding: 72px 0;
}
.talento-stats .stat-item { text-align: center; }
.talento-stats .stat-value {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.talento-stats .stat-label {
  color: rgba(255,255,255,0.70);
  font-size: 0.9rem;
  margin-top: 6px;
  font-weight: 500;
}
.talento-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 768px) {
  .talento-stats .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* === GALLERY === */
.gallery-pdf-icon {
  background: linear-gradient(135deg, rgba(54,136,186,0.08), rgba(14,82,144,0.04)) !important;
}

/* === UPLOAD TOGGLE BUTTON === */
.upload-toggle-btn {
  border-color: rgba(54,136,186,0.40) !important;
  color: var(--accent) !important;
}
.upload-toggle-btn:hover {
  background: rgba(54,136,186,0.10) !important;
  box-shadow: 0 4px 20px rgba(54,136,186,0.15) !important;
}

/* === SLIDER DOTS & BUTTONS === */
.slider-dot.active { background: var(--accent) !important; }
.slider-btn:hover { background: var(--accent) !important; border-color: var(--accent) !important; }

/* === NAV BELL (notification icons) === */
.nav-bell {
  background: rgba(54,136,186,0.10) !important;
  color: var(--accent) !important;
}
.nav-bell:hover { background: rgba(54,136,186,0.20) !important; }
.nav-user-link {
  background: rgba(54,136,186,0.08) !important;
  color: var(--text) !important;
}
.nav-user-link i { color: var(--accent) !important; }
.nav-user-link:hover { background: rgba(54,136,186,0.16) !important; color: var(--accent2) !important; }

/* === FOOTER RICH LAYOUT === */
.footer-rich {
  padding: 60px 0 0;
}
.footer-rich .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-rich .footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-rich .footer-brand p {
  color: rgba(255,255,255,0.60) !important;
  font-size: 0.9rem;
  margin: 12px 0 20px;
  line-height: 1.7;
  max-width: 320px;
}
.footer-rich h4 {
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-rich ul { list-style: none; padding: 0; margin: 0; }
.footer-rich ul li { margin-bottom: 10px; }
.footer-rich ul li a {
  color: rgba(255,255,255,0.60) !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-rich ul li a:hover { color: #fff !important; }
.footer-rich .contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.88rem;
}
.footer-rich .contact-line i { color: var(--accent) !important; font-size: 14px; flex-shrink: 0; }
.footer-rich .contact-line a {
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none;
  transition: color 0.2s;
  direction: ltr; display: inline-block;
}
.footer-rich .contact-line a:hover { color: #fff !important; }
.footer-bottom-text { color: rgba(255,255,255,0.40) !important; font-size: 0.82rem; }

@media (max-width: 768px) {
  .footer-rich .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-rich .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* === LANGUAGE TOGGLE === */
.lang-toggle {
  height: 38px;
  display: flex;
  align-items: center;
  background: rgba(14,82,144,0.07);
  border: 1.5px solid rgba(14,82,144,0.22);
  border-radius: 999px;
  padding: 3px 4px;
  gap: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0 11px;
  height: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: var(--font);
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.lang-btn:hover { color: var(--accent2); }
.lang-btn--active {
  background: var(--accent2);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(14,82,144,0.25);
}

/* Scrolled navbar — adjust toggle */
.navbar.scrolled .lang-toggle {
  background: rgba(14,82,144,0.06);
  border-color: rgba(14,82,144,0.15);
}

/* === CLIENTS GRID === */
.clients-section {
  background: var(--bg2);
  padding: 80px 0 80px;
}
.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.client-card {
  background: #fff;
  border: 1px solid rgba(14,82,144,0.10);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  height: auto;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  box-shadow: 0 2px 8px rgba(14,82,144,0.05);
}
.client-card:hover {
  border-color: rgba(54,136,186,0.40);
  box-shadow: 0 8px 24px rgba(14,82,144,0.12);
  transform: translateY(-4px);
}
.client-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(15%) opacity(0.85);
  transition: filter 0.3s ease;
}
.client-card:hover img {
  filter: grayscale(0%) opacity(1);
}
@media (max-width: 640px) {
  .clients-logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }
  .client-card { padding: 12px; }
}

/* === TESTIMONIALS === */
.testimonial-card:hover { border-color: rgba(54,136,186,0.40) !important; }
.author-avatar { border-color: rgba(54,136,186,0.30) !important; }

/* === CURSOR GLOW — disable on light theme === */
.cursor-glow { display: none !important; }

/* ======================================================
   AUTH PAGES — Light Theme Overrides
   ====================================================== */
.auth-page {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(14,82,144,0.10), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(54,136,186,0.08), transparent 50%),
    linear-gradient(160deg, #ddeaf7 0%, #eaf2fb 40%, #f5f8fc 100%) !important;
}
.auth-page::before {
  background-image:
    linear-gradient(rgba(14,82,144,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,82,144,0.04) 1px, transparent 1px) !important;
}
.auth-shell {
  background: #f0f6fc !important;
  box-shadow: 0 32px 80px rgba(14,82,144,0.18), 0 0 0 1px rgba(14,82,144,0.08) !important;
  backdrop-filter: none !important;
}
/* Left panel — Talento navy gradient (dark, intentional) */
.auth-panel {
  background:
    linear-gradient(150deg, #07305e 0%, #0e5290 50%, #1d6fb8 100%) !important;
  border-inline-end: 1px solid rgba(255,255,255,0.08) !important;
}
.auth-badge {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.25) !important;
  color: #ffffff !important;
}
/* Logo: white container so it's visible on the dark blue panel */
.auth-brand img {
  width: 70px !important;
  height: 70px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  padding: 8px !important;
  object-fit: contain !important;
  filter: none !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22) !important;
}
.auth-brand {
  gap: 14px !important;
}
.auth-brand span {
  font-size: 15px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}
.auth-highlights div {
  color: rgba(255,255,255,0.90) !important;
}
.auth-highlights i {
  background: rgba(255,255,255,0.16) !important;
  color: #ffffff !important;
}
.auth-panel h2  { color: #ffffff !important; }
.auth-panel p   { color: rgba(255,255,255,0.72) !important; }
.auth-panel .auth-highlights { margin-top: auto; }
/* Right card — white form area */
.auth-card {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(14,82,144,0.06) !important;
}
.auth-icon {
  box-shadow: 0 14px 34px rgba(14,82,144,0.22) !important;
}
.auth-card h1 { color: #1a2a3a !important; }
.auth-sub { color: var(--text-muted) !important; }
.auth-field label,
.auth-form > div > label { color: #1a2a3a !important; }
.auth-form input {
  background: #f4f8fc !important;
  border-color: rgba(14,82,144,0.18) !important;
  color: #1a2a3a !important;
}
.auth-form input::placeholder { color: #8faec8 !important; }
.auth-form input:focus {
  background: #fff !important;
  border-color: #3688ba !important;
  box-shadow: 0 0 0 4px rgba(54,136,186,0.12) !important;
}
.auth-check { color: #1a2a3a !important; }
.auth-btn:hover {
  box-shadow: 0 10px 30px rgba(54,136,186,0.30) !important;
}
.auth-foot a:hover { color: #0e5290 !important; }
@media (max-width: 600px) {
  .auth-brand img { width: 52px !important; height: 52px !important; padding: 6px !important; }
}
