/* =========================
   GLOBAL PAGE BASE
========================= */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8fafc;
  color: #1f2937;
}

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


/* =========================
   SMARTMONEYTREK HEADER
========================= */

header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  height: 80px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Prevent anchor jump under sticky header */
section[id] {
  scroll-margin-top: 90px;
}
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 75px;
  }
}

/* Logo */
.logo {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.logo img {
  height: 110px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.35));
}

/* Navigation */
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  position: relative;
  padding: 10px 0;
}

/* Hover underline */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #0f766e;
  transition: 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

/* Mobile nav */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
    height: 70px;
  }

  .logo {
    position: static;
    transform: none;
  }

  .logo img {
    height: 48px;
    max-width: 160px;
    filter: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 15px 0;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 16px;
  }

  .nav-links.active {
    display: flex;
  }
}


/* =========================
   HERO SECTION
========================= */

.hero {
  background: linear-gradient(135deg, #ecfeff, #ffffff);
  padding: 80px 40px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  max-width: 850px;
  margin: auto;
  color: #334155;
}


/* =========================
   CONTENT SECTION
========================= */

.section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}


/* =========================
   CATEGORY GRID
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}



/* =========================
   FOOTER
========================= */

footer {
  background: #020617;
  color: #94a3b8;
  padding: 50px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

footer h4 {
  color: #e2e8f0;
  margin-bottom: 10px;
}

footer a {
  display: block;
  color: #94a3b8;
  margin-bottom: 8px;
  font-size: 14px;
}

footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.line {
  color: #ffffff;
}


/* =========================
   SMARTMONEYTREK CARDS (FINAL)
========================= */

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: none; /* no float */
}

.card:hover {
  transform: none;
}

.card h3 {
  color: #0f766e;
  margin-bottom: 10px;
  font-size: 18px;
}

.card p {
  font-size: 15px;
  color: #475569;
  margin-bottom: 20px;
}

.card a,
.read-guide {
  font-weight: 600;
  color: #0f766e;
  font-size: 14px;
   }


/* Strong CTA for Read Guide links */
.read-guide {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  background: #0f766e; /* SmartMoneyTrek brand */
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.read-guide:hover {
  background: #0a5cff; /* brand blue */
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
   }
   
/* =========================
   MOBILE: 2 CARDS PER ROW
========================= */

@media (max-width: 768px) {

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

.card{
padding:18px;
}

.card h3{
font-size:16px;
}

.card p{
font-size:14px;
}

}

.card-link{
display:block;
color:inherit;
height:100%;
}

.card-link:hover .read-guide{
background:#0a5cff;
   }

.card:hover{
box-shadow:0 12px 28px rgba(0,0,0,0.08);
}
