/* =========================================================
   MONEY MAKING TIPS ONLINE — CLEAN STABLE CSS (no animations)
   ========================================================= */

/* =====================================
   GLOBAL
   ===================================== */
html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  color: #0a1a2f;
  background: #fbfafa;
  line-height: 1.6;
  margin: 0;
}

.container,
.wp-block-group {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================
   HEADER
   ===================================== */
.mmto-header {
  background: #fbfafa;
  border-bottom: 1px solid #eaf4f6;
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.mmto-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-branding img {
  max-height: 70px;
  height: auto;
  width: auto;
}

/* =====================================
   MAIN NAVIGATION
   ===================================== */
.main-nav { position: relative; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav li { position: relative; }

.main-nav a {
  color: #0a1a2f;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.4px;
  padding: 10px 4px;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: #00b8a9;
  border-bottom: 2px solid #00b8a9;
}

/* Dropdown Menu */
.main-nav ul.sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #fff;
  border: 1px solid #eaf4f6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: none;
  z-index: 1000;
}

.main-nav li:hover > ul.sub-menu { display: block; }

.main-nav ul.sub-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  color: #0a1a2f;
  border-bottom: 1px solid #f2f2f2;
  white-space: nowrap;
}

.main-nav ul.sub-menu li:last-child a { border-bottom: none; }

.main-nav ul.sub-menu a:hover {
  background: #f7f9fa;
  color: #00b8a9;
}

/* Caret indicator */
.main-nav li.menu-item-has-children > a::after {
  content: "▾";
  margin-left: 4px;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* =====================================
   STICKY HEADER
   ===================================== */
.mmto-header.sticky {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 14px 0;
}

/* =====================================
   MOBILE NAVIGATION
   ===================================== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #0a1a2f;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after,
.nav-toggle span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #0a1a2f;
  border-radius: 2px;
}

.nav-toggle::before { top: 0; }
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle::after { bottom: 0; }

.nav-toggle.open::before { transform: rotate(45deg); top: 50%; }
.nav-toggle.open span { opacity: 0; }
.nav-toggle.open::after { transform: rotate(-45deg); bottom: 50%; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    position: absolute;
    top: 80px;
    left: 0;
    padding: 20px;
    border-top: 1px solid #eaf4f6;
  }

  .main-nav.active { display: flex; }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 1rem;
  }

  .main-nav li.menu-item-has-children > a::after {
    content: "▸";
    float: right;
    margin-right: 10px;
  }

  .main-nav ul.sub-menu {
    position: relative;
    left: 0;
    transform: none;
    background: #f9f9f9;
    border: none;
    box-shadow: none;
    border-radius: 6px;
    margin-top: 6px;
    padding-left: 15px;
    display: none;
  }

  .main-nav ul.sub-menu.open { display: block; }

  .main-nav ul.sub-menu a {
    padding: 8px 0;
    font-size: 0.95rem;
  }
}

/* =====================================
   HERO SECTION
   ===================================== */
.hero {
  background: linear-gradient(135deg, #eaf4f6, #ffffff);
  padding: 100px 20px 80px;
  text-align: center;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #0a1a2f;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.15rem;
  color: #6a7a89;
  max-width: 720px;
  margin: 0 auto 25px;
}

/* =====================================
   BUTTONS
   ===================================== */
button,
input[type="submit"],
.btn,
.btn-affiliate {
  background: linear-gradient(90deg, #00b8a9, #005e92);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
.btn:hover,
.btn-affiliate:hover {
  background: linear-gradient(90deg, #005e92, #00b8a9);
}

/* =====================================
   FOOTER
   ===================================== */
.site-footer {
  background: #0a1a2f;
  color: #ffffff;
  padding: 60px 20px 30px;
  text-align: center;
}

.footer-widgets {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-widget { flex: 1 1 250px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.footer-menu {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-menu li a {
  color: #00b8a9;
  text-decoration: none;
}

.footer-menu li a:hover { text-decoration: underline; }

/* =====================================
   FRONT PAGE REFINEMENTS
   ===================================== */
.hero-subtext {
  font-size: 1.15rem;
  color: #6a7a89;
  max-width: 720px;
  margin: 0 auto 25px;
}

.highlight { color: #00b8a9; font-weight: 700; }



.homepage-section.intro {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  padding: 50px 30px;
}



/* =====================================
   CONTENT SECTIONS — CLEAN SEPARATION
   ===================================== */
.homepage-section {
  margin: 80px auto;
  border-radius: 16px;
  overflow: hidden;
}

/* Trending — crisp white card */
.homepage-section.trending {
  background: #ffffff;
  border: 1px solid #eaf4f6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 70px 30px;
}

/* Latest Guides — soft grey backdrop for contrast */
.homepage-section.recent {
  background: #f7f9fa;
  border: 1px solid #e4f1f0;
  padding: 80px 30px;
}

/* Most Liked — return to white for rhythm */
.homepage-section.popular {
  background: #ffffff;
  border: 1px solid #eaf4f6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 70px 30px;
}

/* Section Titles — consistent branding */
.homepage-section .section-title {
  text-align: left;
  margin-bottom: 35px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0a1a2f;
  border-left: 4px solid #00b8a9;
  padding-left: 10px;
}

/* Add vertical breathing room between sections */
.homepage-section + .homepage-section {
  margin-top: 100px;
}


.newsletter {
  background: radial-gradient(circle at top right, #e0f7f4, #f6f9fa 60%);
  border: 1px solid #d5efec;
  border-radius: 16px;
  padding: 70px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  margin-top:20px;
  margin-bottom:20px;
}


.newsletter-form { margin-top: 20px; }

.newsletter-form input[type="email"] {
  width: 60%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-right: 10px;
  font-size: 1rem;
}

.form-note {
  display: block;
  margin-top: 10px;
  color: #6a7a89;
  font-size: 0.85rem;
}

.cta-strip {
  background: linear-gradient(90deg, #00b8a9, #005e92);
  color: #fff;
  text-align: center;
  padding: 70px 20px;
  border-radius: 12px;
  margin: 80px auto 0;
}

.cta-strip h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* =====================================
   CATEGORY GRID — CLEAN LAYOUT
   ===================================== */
.categories {
  text-align: center;
  margin-top: 40px;
}

.categories .intro-text {
  color: #6a7a89;
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 10px;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: -12px;
}

.category-grid {
  overflow: visible; /* allows hover lift to show fully */
}

.homepage-section.categories {
  overflow: visible; /* ensures first row isn't cropped */
  padding-top: 60px; /* optional: adds breathing room */
}

.category-card {
  flex: 1 1 260px;
  max-width: 360px;
  margin: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid #eaf4f6;
  border-radius: 16px;
  padding: 30px 20px;
  color: #0a1a2f;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #00b8a9;
  box-shadow: 8px 8px 20px rgba(0,0,0,0.08);
}

.category-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Gradients per category */
.category-card.hustle .icon { background: linear-gradient(135deg, #ff7e5f, #feb47b); }
.category-card.freelance .icon { background: linear-gradient(135deg, #43cea2, #185a9d); }
.category-card.passive .icon { background: linear-gradient(135deg, #ff6a00, #ee0979); }
.category-card.affiliate .icon { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.category-card.competitions .icon { background: linear-gradient(135deg, #f7971e, #ffd200); }
.category-card.ai .icon { background: linear-gradient(135deg, #8e2de2, #4a00e0); }

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.category-card:hover h3 { color: #00b8a9; }

.category-card p {
  font-size: 0.95rem;
  color: #6a7a89;
  margin: 0;
  min-height: 48px;
}

/* Responsive layout */
@media (max-width: 1024px) {
  .category-card {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .category-grid { flex-direction: column; align-items: center; }
  .category-card { max-width: 90%; }
}

/* Fix: centre-aligned section titles (no left border) */
.categories .section-title,
.newsletter .section-title,
.cta-strip .section-title {
  border-left: none;
  padding-left: 0;
  text-align: center;
  position: relative;
}

.categories .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #00b8a9;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* -------------------------------------
   MONEY MAKING TIPS PAGE ENHANCEMENTS
-------------------------------------- */

/* Hero with gradient + background image */
.category-hero {
  background: linear-gradient(rgba(0,184,169,0.06), rgba(0,94,146,0.08)),
              url('/wp-content/uploads/money-making-hero-bg.jpg') center/cover no-repeat;
  border-bottom: 1px solid #eaf4f6;
  border-radius: 0 0 20px 20px;
  text-align: center;
  padding: 110px 20px 90px;
  color: #0a1a2f;
}
.category-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}
.category-hero p {
  max-width: 740px;
  margin: 10px auto 15px;
  font-size: 1.15rem;
  color: #3a4a5a;
}

/* Divider between hero and categories */
.visual-divider {
  height: 6px;
  width: 120px;
  background: linear-gradient(90deg, #00b8a9, #005e92);
  border-radius: 6px;
  margin: 50px auto 70px;
}

/* Highlight / Value section */
.homepage-section.highlights {
  background: #f6f9fa;
  border: 1px solid #eaf4f6;
  border-radius: 16px;
  padding: 70px 30px;
  text-align: center;
}
.highlight-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin-top: 30px;
}
.highlight-grid li {
  background: #ffffff;
  border: 1px solid #eaf4f6;
  border-radius: 10px;
  padding: 15px 25px;
  font-weight: 600;
  color: #0a1a2f;
  flex: 1 1 220px;
  max-width: 260px;
}

/* Ensure grid shadows aren’t clipped */
.category-grid,
.homepage-section.categories {
  overflow: visible;
}

/* ---------------------------------------
   CATEGORY PAGE STYLES
---------------------------------------- */

.category-hero {
  text-align: center;
  padding: 100px 20px 80px;
  border-bottom: 1px solid #eaf4f6;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 60px;
}
.category-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}
.category-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0a1a2f;
  margin-bottom: 15px;
}
.category-description {
  font-size: 1.1rem;
  color: #6a7a89;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}
.category-description p {
  margin-bottom: 1em;
}

/* ---------------------------------------
   CATEGORY POST CARDS — ENHANCED SPACING
---------------------------------------- */
/* -------------------------------
   CATEGORY POST IMAGE — SMALLER SIZE
-------------------------------- */
.category-post-card {
  background: #fff;
  border: 1px solid #eaf4f6;
  border-radius: 14px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
  overflow: hidden;
}

.category-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-color: #00b8a9;
}

/* Reduce image height (keeps aspect ratio, adds margin) */
.post-thumb {
  display: block;
  overflow: hidden;
  text-align: center;
  background: #f9fafb;
  padding: 12px 0; /* Adds white space around smaller image */
}

.post-thumb img {
  width: 85%;               /* Smaller image width */
  height: auto;             /* Maintain aspect ratio */
  border-radius: 10px;      /* Slight rounding for polish */
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
}

/* Optional hover zoom */
.category-post-card:hover .post-thumb img {
  transform: scale(1.03);
}

/* Adjust spacing for text to rebalance */
.post-content {
  padding: 26px 22px 28px;
  text-align: left;
}
.post-thumb img {
  aspect-ratio: 16/10;  /* or 4/3 depending on your thumbnails */
  object-fit: cover;
  width: 100%;
  height: auto;
}


/* increased internal padding + improved hierarchy */
.post-content {
  padding: 26px 24px 28px;
  text-align: left;
}

.post-title a {
  font-weight: 700;
  color: #0a1a2f;
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1.4;
  display: block;
  margin-bottom: 12px;
}

.post-excerpt {
  color: #6a7a89;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.read-more {
  font-weight: 600;
  color: #00b8a9;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.read-more:hover {
  color: #005e92;
  text-decoration: underline;
}

/* keep mobile spacing balanced */
@media (max-width: 768px) {
  .post-content { padding: 22px 20px; }
  .post-title a { font-size: 1.05rem; }
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 40px;
}
.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #eaf4f6;
  border-radius: 6px;
  text-decoration: none;
  color: #0a1a2f;
  transition: all 0.3s ease;
}
.pagination a:hover,
.pagination .current {
  background: #00b8a9;
  color: #fff;
  border-color: #00b8a9;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .category-title { font-size: 2rem; }
  .category-hero { padding: 80px 20px 60px; }
  .post-grid { gap: 18px; }
}
/* -------------------------------------
   FIX: FULL-WIDTH COLOURED HEADING PADDING
-------------------------------------- */
.alignfull.has-background {
  padding: 40px 20px !important;       /* restores breathing room */
  border-radius: 12px;                 /* smooth corners */
  margin-top: 30px 0;                      /* space above/below */
  box-sizing: border-box;
}

/* tighten for mobile */
@media (max-width: 768px) {
  .alignfull.has-background {
    padding: 30px 16px !important;
    margin: 30px 0;
  }
}

/* optional: ensure heading text stays centred and legible */
.alignfull.has-background h2,
.alignfull.has-background h3 {
  text-align: center;
  color: #0a1a2f;
  font-weight: 700;
  margin: 0;
}
/* -------------------------------------
   LIKE BUTTON BLOCK (NO FLEX GAP)
-------------------------------------- */

.mmt-like-container {
  text-align: center;
  margin: 50px auto;
  padding: 25px 0;
  border-top: 1px solid #eaf4f6;
  border-bottom: 1px solid #eaf4f6;
  max-width: 500px;
}

/* --- Button --- */
.mmt-like-button {
  background: #ffffff;
  border: 2px solid #eaf4f6;
  border-radius: 30px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  color: #0a1a2f;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

/* --- Heart icon --- */
.mmt-like-button .heart {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px; /* replaces flex gap */
}
.mmt-like-button .heart img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* --- Count and label --- */
.mmt-like-button .count {
  font-weight: 700;
  color: inherit;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* --- Hover effect --- */
.mmt-like-button:hover {
  background: #00b8a9;
  border-color: #00b8a9;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
  .mmt-like-container {
    margin: 40px auto;
    padding: 20px 0;
  }
  .mmt-like-button {
    padding: 10px 22px;
    font-size: 0.95rem;
  }
}
/* ──────────────────────────────
   MMTO Newsletter CTA Block
──────────────────────────────── */
.mmto-newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  text-align: center;
}

.mmto-newsletter-form input[type="email"] {
  flex: 1 1 260px;
  padding: 0.9rem 1rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
}

.mmto-newsletter-form button[type="submit"] {
  background: #fff;
  color: #00b8a9;
  border: none;
  border-radius: 50px;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.mmto-newsletter-form button[type="submit"]:hover {
  background: #0a1a2f;
  color: #fff;
}

.mmto-newsletter-form .privacy-note {
  width: 100%;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #ffffffb3;
}

@media (max-width: 600px) {
  .mmto-newsletter-form {
    flex-direction: column;
  }
  .mmto-newsletter-form input,
  .mmto-newsletter-form button {
    width: 100%;
  }
}
.mmto-alert {
  background: #e6f7f5;
  border-left: 4px solid #00b8a9;
  color: #0a1a2f;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.mmto-alert::before {
  content: "💌 ";
}


/* ---------------------------------------
   CATEGORY POST GRID — FLEX-BASED FALLBACK
---------------------------------------- */
.post-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: -15px; /* controls spacing between cards */
}

.category-post-card {
  flex: 1 1 300px;
  max-width: 340px;
  margin: 15px; /* creates spacing between cards */
  width: 100%;
  box-sizing: border-box;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .category-post-card {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .category-post-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

