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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1a1a2e;
  background: #f8f9fa;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #1a56db;
  color: #fff;
}

.btn-primary:hover {
  background: #1341b0;
}

.btn-yellow {
  background: #f5a623;
  color: #fff;
}

.btn-yellow:hover {
  background: #d4891a;
}

.btn-secondary {
  background: transparent;
  color: #1a56db;
  border: 2px solid #1a56db;
}

.btn-secondary:hover {
  background: #1a56db;
  color: #fff;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  display: block;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.logo-text h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.78rem;
  color: #6b7280;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1a56db;
}

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

.signin-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s;
}

.signin-link:hover {
  color: #1a56db;
}

/* Language toggle. Mirrors shared-layout.css; the auth screens load their own
   stylesheet only, so the pill rules are repeated rather than inherited. */
.auth-language-row {
  margin-bottom: 18px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}

.language-toggle__link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.language-toggle__link:hover,
.language-toggle__link.active {
  color: #1a56db;
}

.language-toggle__divider {
  color: #d0d5dd;
}

/* In the header the switcher sits inline with the other actions, so it takes
   no block margin there. */
.nav-actions .auth-language-row {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

/* ===========================
   HERO
   =========================== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 80px 0;
}

.hero-wrap {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-text h1 span {
  color: #f5a623;
}

.hero-text p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Image */
.hero-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/* ===========================
   STATS
=========================== */
.stats {
  background: #fff;
  padding: 48px 0;
  border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-card {
  padding: 24px 16px;
  border-radius: 12px;
  background: #f0f4ff;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #1a56db;
  margin-bottom: 6px;
}

.stat-card p {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

/* ===========================
   SERVICES
=========================== */
.services {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1rem;
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-blue   { background: #eff6ff; }
.icon-green  { background: #f0fdf4; }
.icon-yellow { background: #fffbeb; }
.icon-purple { background: #faf5ff; }
.icon-cyan   { background: #ecfeff; }
.icon-pink   { background: #fff1f2; }

.service-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ===========================
   ANNOUNCEMENTS
=========================== */
.announcements {
  padding: 80px 0;
  background: #fff;
}

.announcement-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.announcement-top h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
}

.announcement-top a {
  color: #1a56db;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.announcement-top a:hover {
  opacity: 0.75;
}

/* Announcement cards (3-column grid) */
.announcements .grid { display: grid; }
.announcements .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.announcements .gap-6 { gap: 1.5rem; }

@media (min-width: 768px) {
  .announcements .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .announcements .md\:col-span-3 { grid-column: span 3 / span 3; }
}

.announcements .col-span-1 { grid-column: span 1 / span 1; }
.announcements .bg-white { background: #fff; }
.announcements .border { border: 1px solid #e2e8f0; }
.announcements .border-slate-200 { border-color: #e2e8f0; }
.announcements .border-slate-100 { border-color: #f1f5f9; }
.announcements .border-slate-50 { border-color: #f8fafc; }
.announcements .border-t { border-top: 1px solid #f8fafc; }
.announcements .bg-slate-50 { background: #f8fafc; }
.announcements .rounded-xl { border-radius: 12px; }
.announcements .rounded-full { border-radius: 9999px; }
.announcements .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.announcements .hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.announcements .transition-shadow { transition: box-shadow 0.15s ease-in-out; }
.announcements .flex { display: flex; }
.announcements .flex-col { flex-direction: column; }
.announcements .h-full { height: 100%; }
.announcements .p-6 { padding: 1.5rem; }
.announcements .py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.announcements .mb-2 { margin-bottom: 0.5rem; }
.announcements .mb-4 { margin-bottom: 1rem; }
.announcements .pt-4 { padding-top: 1rem; }
.announcements .mt-auto { margin-top: auto; }
.announcements .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.announcements .py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.announcements .text-xs { font-size: 12px; }
.announcements .text-sm { font-size: 14px; }
.announcements .text-base { font-size: 16px; line-height: 1.5rem; }
.announcements .text-\[10px\] { font-size: 10px; }
.announcements .font-bold { font-weight: 700; }
.announcements .font-medium { font-weight: 500; }
.announcements .tracking-wider { letter-spacing: 0.05em; }
.announcements .uppercase { text-transform: uppercase; }
.announcements .leading-relaxed { line-height: 1.625; }
.announcements .flex-grow { flex-grow: 1; }
.announcements .text-gray-900 { color: #0f172a; }
.announcements .text-gray-500 { color: #6b7280; }
.announcements .text-gray-400 { color: #9ca3af; }
.announcements .text-blue-600 { color: #2563eb; }
.announcements .bg-blue-50 { background: #eff6ff; }
.announcements .border-blue-100 { border-color: #dbeafe; }
.announcements .text-center { text-align: center; }
.announcements .text-slate-500 { color: #64748b; }

.announcements .line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   CTA
=========================== */
.cta {
  background: linear-gradient(135deg, #1a56db 0%, #0f3460 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.05rem;
  color: #bfdbfe;
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta .btn-primary {
  background: #fff;
  color: #1a56db;
  font-size: 1rem;
  padding: 14px 36px;
}

.cta .btn-primary:hover {
  background: #f0f4ff;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #1a1a2e;
  color: #d1d5db;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  display: block;
}

.footer-brand h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.footer-brand p {
  font-size: 0.78rem;
  color: #9ca3af;
}

.footer-col > p {
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: #9ca3af;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-col p {
  font-size: 0.88rem;
  color: #9ca3af;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #374151;
  font-size: 0.82rem;
  color: #6b7280;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-wrap {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-text p {
    margin: 0 auto 32px;
  }

  .hero-image {
    max-width: 100%;
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}