/* ========== GLOBAL VARIABLES ========== */
:root {
  --navy:#0b1220;
  --navy-soft:#0e1628;
  --accent:#1f4fd8;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --bg:#ffffff;
  --bg-soft:#f8fafc;
}

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

body {
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ========== LAYOUT HELPERS ========== */
.container {
  max-width:1200px;
  margin:auto;
  padding:0 24px;
}

/* ================= NAVBAR ================= */

header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}


.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  z-index: 2000;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.nav-cta {
  background: #1f4fd8;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 10px;
}


/* ================= DROPDOWN (FIXED) ================= */

.dropdown {
  position: relative;
}

/* invisible hover bridge */
.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 2px); /* removes hover gap */
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 280px;
  display: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  z-index: 2000;
}

.read-more {
  text-decoration: none;
  color: #1f4fd8;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.read-more:hover {
  color: #6a3fd8;
  transform: translateX(3px);
}



/* Desktop dropdown */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

.dropdown-menu a {
  display: block;
  padding: 14px 18px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
}


/* ================= HAMBURGER ================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar {
  padding: 16px 24px;
}

    .nav-links { position: absolute; top: 86px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--border); display: none; }
  
  .nav-links.active {
    display: flex;
  }

.nav-links li {
  width: 100%;
  border-top: 1px solid var(--border);
}

.nav-links a {
  display: block;
  padding: 16px 24px;
  width: 100%;
}
  
  /* Disable hover dropdown on mobile */
  .dropdown::after {
    display: none;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

.nav-links .nav-cta {
  margin: 16px 24px;
  width: calc(100% - 48px);
  text-align: center;
  border-radius: 10px;
}
  
.dropdown-menu {
  display: none;
  position: static;
  border: none;
  box-shadow: none;
  padding-left: 16px;
  background: #f9fafb;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  padding: 14px 24px;
  font-size: 15px;
}
}


/* ========== REUSABLE UI ========== */
.btn-primary {
  background:var(--navy);
  color:#fff;
  padding:14px 24px;
  border-radius:12px;
  text-decoration:none;
}

.btn-link {
  color:var(--accent);
  font-weight:500;
  text-decoration:none;
}

.grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:32px;
}

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

.card {
  border:1px solid var(--border);
  border-radius:18px;
  padding:36px;
  background:#fff;
}

/* ========== FOOTER ========== */
footer {
  background:var(--navy);
  color:#cbd5f5;
  padding:96px 24px;
}

.footer-inner {
  max-width:1200px;
  margin:auto;
  text-align:center;
}

.footer-inner img {
  height:56px;
  margin-bottom:28px;
}

.footer-links {
  display:flex;
  justify-content:center;
  gap:24px;
  flex-wrap:wrap;
  margin:28px 0;
}

.footer-links a {
  color:#cbd5f5;
  text-decoration:none;
}

.footer-meta {
  margin-top:36px;
  font-size:14px;
  opacity:.85;
}
