/*
Theme Name: WhatsInFin Theme
Description: Custom theme for WhatsInFin. Pages, posts, footer menu, social links, newsletter and homepage blocks are managed from WordPress / Customizer.
Version: 1.1
Text Domain: shoutmeloud-theme
*/

:root {
  --sml-blue: #55a7f3;
  --sml-yellow: #ffc23d;
  --sml-pink: #fdf3f1;
  --sml-grey: #ececec;
  --sml-dark: #141414;
  --sml-red: #e53935;
  --sml-text: #111;
  --sml-muted: #6b6b6b;
  --sml-max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--sml-text); background: #fff; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
.wrap { max-width: var(--sml-max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { background: var(--sml-dark); border-bottom: 1px solid #2a2a2a; position: sticky; top: 0; z-index: 50; height: 155px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 155px; gap: 24px; }
.logo-link img, .site-logo img { width: 90px; height: 90px; display: block; }
.logo-text { font-family: "Playfair Display", serif; font-size: 36px; font-weight: 700; letter-spacing: 2px; color: #fff; }
.logo-link { display: flex; align-items: center; gap: 16px; }.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 52px; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { color: #fff; font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; padding: 34px 0; }
.main-nav > ul > li.has-chevron > a::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid #111; border-bottom: 1.6px solid #111; transform: rotate(45deg) translateY(-3px); margin-left: 2px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--sml-red); text-decoration: none; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: -18px; min-width: 240px; list-style: none; margin: 0; padding: 8px 0; background: #cfe5fb; border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgba(0,0,0,.12); z-index: 60; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { display: block; padding: 14px 18px; color: #1d2a3a; font-size: 16px; font-weight: 500; }
.main-nav .sub-menu a:hover { background: rgba(255,255,255,.45); }

/* ---------- Shared blocks ---------- */
.block { padding: 90px 0; }
.section-title { font-size: 44px; font-weight: 700; color: var(--sml-text); margin: 0; letter-spacing: -.01em; }
.section-title.center { text-align: center; margin-bottom: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; gap: 16px; }
.btn-outline { display: inline-block; border: 1px solid #111; color: #111; padding: 14px 26px; border-radius: 10px; font-weight: 600; background: transparent; }
.btn-outline:hover { background: #111; color: #fff; text-decoration: none; }
.btn-outline.small { padding: 12px 22px; }
.btn-red { display: inline-block; background: var(--sml-red); color: #fff; padding: 14px 0; border-radius: 8px; font-weight: 600; text-align: center; width: 100%; }
.btn-red:hover { color: #fff; opacity: .92; text-decoration: none; }
.card-grid { display: grid; gap: 28px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- Banner (home page, finance) ---------- */
.banner { background: #1d3557; color: #fff; padding: 96px 0; }
.banner-inner { display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; }
.banner-inner.no-media { grid-template-columns: 1fr; }
.banner-eyebrow { color: #e9c46a; font-size: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
.banner-copy h1 { font-size: 48px; font-weight: 600; line-height: 1.25; color: #fff; margin: 0 0 24px; }
.banner-text { font-size: 20px; line-height: 1.6; color: #dfe6f0; margin: 0 0 36px; max-width: 640px; }
.btn-banner { display: inline-block; background: #e9c46a; color: #1d3557; font-size: 16px; font-weight: 700; padding: 18px 40px; border-radius: 10px; }
.btn-banner:hover { background: #fff; color: #1d3557; text-decoration: none; }
.banner-media img { width: 100%; max-width: 480px; margin: 0 auto; border-radius: 14px; }
.featured-in { margin-top: 56px; }
.featured-in > span { display: block; color: #1f3f8a; font-size: 19px; margin-bottom: 14px; }
.featured-in img { width: 100%; max-width: 860px; height: auto; }

/* ---------- I Want To ---------- */
.i-want .wrap { max-width: 1740px; }
.card-grid.four.goals { gap: 45px; }
.goal-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 397 / 706; min-height: 420px; border-radius: 0; overflow: hidden; background: linear-gradient(160deg, #d9cfc3 0%, #a89886 100%); color: #fff; transition: transform .3s; }
.goal-card:hover { text-decoration: none; transform: scale(1.1); z-index: 2; }
.goal-photo { position: absolute; inset: 0; }
.goal-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.goal-card:hover .goal-photo img { transform: scale(1.1); }
.goal-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(177,134,99,.7) 100%); pointer-events: none; }
.goal-body { position: relative; z-index: 1; text-align: center; padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.goal-title { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; line-height: 1.25; color: #fff; }
.goal-text { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.9); }

/* ---------- Trending (yellow band) ---------- */
.trending { padding-bottom: 90px; }
.trending .section-title { font-size: 52px; font-weight: 500; }
.trending-btn { padding: 18px 44px; font-size: 18px; font-weight: 500; border-radius: 10px; }
.trending .section-head { margin-bottom: 56px; }
/* Yellow band starts behind the thumbnails and ends below the post titles */
.trend-row { position: relative; padding-bottom: 110px; }
.trend-row::before { content: ""; position: absolute; left: 0; right: 0; top: 105px; bottom: 0; background: var(--sml-yellow); border-radius: 36px; z-index: -1; }
.trend-thumb { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #fff; aspect-ratio: 17/10; }
.trend-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 24px; left: 24px; background: var(--sml-red); color: #fff; font-size: 15px; line-height: 1; padding: 9px 13px; border-radius: 7px; font-weight: 500; }
.trend-card .meta { color: #333; font-size: 17px; margin: 26px 0 12px; }
.trend-card h3 { font-size: 23px; font-weight: 400; line-height: 1.5; }
.trend-card h3 a { color: #111; }

/* ---------- eBooks (pink) ---------- */
.ebooks { background: var(--sml-pink); }
.ebook-card { display: block; }
.ebook-cover { display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #d0f2e4; height: 535px; margin-bottom: 26px; overflow: hidden; border: 1px solid transparent; }
.ebook-card:nth-child(2) .ebook-cover { background: #fff; border-color: #e6e6e6; }
.ebook-card:nth-child(3) .ebook-cover { background: #d2e8f3; }
.ebook-cover img { height: 410px; width: auto; max-width: 92%; object-fit: contain; }
.ebook-card strong { display: block; font-size: 23px; font-weight: 500; line-height: 1.5; color: #111; }
.ebook-card:hover strong { text-decoration: underline; }
/* eBook hover (same effect as "I Want To"): card scales, cover zooms, warm overlay fades in */
.ebooks .card-grid.three { gap: 45px; }
.ebook-card { position: relative; transition: transform .3s; }
.ebook-card:hover { transform: scale(1.1); z-index: 2; }
.ebook-cover { position: relative; }
.ebook-cover img { transition: transform .3s; }
.ebook-card:hover .ebook-cover img { transform: scale(1.1); }
.ebook-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(177,134,99,.7) 100%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.ebook-card:hover .ebook-cover::after { opacity: 1; }
.section-foot { display: flex; justify-content: center; margin-top: 60px; }
.view-all { min-width: 217px; text-align: center; padding: 18px 40px; font-size: 18px; font-weight: 500; border-radius: 10px; }

/* ---------- Tools ---------- */
.tool-card { background: #f7f7f6; border: 1px solid #ebebea; border-radius: 12px; padding: 34px 30px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tool-logo { height: 84px; width: 100%; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #e2e2e2; margin-bottom: 36px; }
.tool-logo img { max-height: 52px; width: auto; max-width: 90%; object-fit: contain; }
.tool-card h3 { font-size: 32px; font-weight: 600; line-height: 1.25; min-height: 80px; display: flex; align-items: center; justify-content: center; color: #111; }
.rating { font-size: 19px; font-weight: 500; margin: 14px 0 22px; color: #111; }
.stars { color: #f5b301; letter-spacing: 1px; margin-left: 8px; font-size: 20px; }
.tool-text { color: #4a4a4a; font-size: 18px; line-height: 1.55; margin: 0 0 34px; min-height: 150px; }
.tool-card .btn-red { margin-top: auto; padding: 18px 0; font-size: 19px; border-radius: 8px; }

/* ---------- Community (grey band) ---------- */
.community { background: var(--sml-grey); border-radius: 36px; margin: 0; padding: 110px 0; }
.community .section-title.center { margin-bottom: 84px; font-size: 52px; font-weight: 500; }
.community-row { display: flex; justify-content: space-between; gap: 24px; }
.community-card { display: flex; gap: 20px; align-items: flex-start; color: #111; }
.community-card:hover { text-decoration: none; }
.community-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.community-icon img { width: 40px; height: 40px; mix-blend-mode: multiply; }
.community-info strong { display: block; font-size: 22px; font-weight: 500; line-height: 1.3; }
.community-count { display: block; color: #8a8a8a; font-size: 17px; margin-top: 6px; }
.community-cta { display: inline-block; color: #777; text-decoration: underline; font-size: 17px; margin-top: 12px; }

/* ---------- Man behind ---------- */
.man-behind { padding: 110px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.author-photo img { width: 100%; height: auto; display: block; }
.author-copy h2 { font-size: 58px; font-weight: 500; line-height: 1.15; margin-bottom: 36px; color: #111; }
.author-copy p { font-size: 19px; line-height: 1.7; color: #444; margin: 0 0 22px; }
.author-copy p a { color: #111; }
.author-copy .signature { font-size: 22px; color: #111; font-weight: 500; margin-bottom: 0; padding-bottom: 36px; border-bottom: 1px solid #e3e3e3; }
.author-links { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; }
.author-links a { display: inline-flex; align-items: center; gap: 12px; color: #111; font-size: 19px; }
.author-links img { width: 30px; height: 30px; }
.author-links a span { font-weight: 600; text-decoration: underline; }

/* ---------- Offers (pink) ---------- */
.offers { background: var(--sml-pink); }
.offers .section-title { font-size: 52px; font-weight: 500; }
.view-all-deals { padding: 18px 40px; font-size: 18px; font-weight: 500; border-radius: 10px; }
.offer-thumb { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 466/315; background: #fff; margin-bottom: 28px; }
.offer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-card h3 { font-size: 25px; font-weight: 500; line-height: 1.45; min-height: 73px; }
.offer-card h3 a { color: #111; }
.offer-actions { display: flex; align-items: center; gap: 30px; margin-top: 30px; }
.offer-actions .btn-outline { width: 219px; text-align: center; padding: 22px 0; font-size: 20px; font-weight: 500; border-radius: 10px; }
.read-more { text-decoration: underline; font-size: 20px; font-weight: 500; }


/* ---------- Content pages & blog ---------- */
.page-header { background: var(--sml-pink); padding: 60px 0; }
.page-header h1 { margin: 0; font-size: 44px; font-weight: 700; }
.entry-content { padding: 60px 0; max-width: 800px; }
.entry-content p { margin: 0 0 1.2em; font-size: 18px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.post-card { border: 1px solid #eee; border-radius: 14px; padding: 24px; }
.post-card h3 { font-size: 20px; margin: 8px 0; }
.post-card h3 a { color: #111; }
.post-meta { font-size: 14px; color: var(--sml-muted); }
.pagination { margin: 40px 0; }

/* ---------- Footer (dark) ---------- */
.site-footer { position: relative; background: var(--sml-dark); color: #d6d6d6; padding: 90px 0 40px; font-size: 16px; }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid #2a2a2a; }
.award-badge { width: 210px; height: 210px; border-radius: 50%; border: 4px solid #d4a72c; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; font-weight: 700; font-size: 20px; line-height: 1.3; background: radial-gradient(circle, #1d1d1d 60%, #2b2513 100%); }
.footer-newsletter { max-width: 520px; }
.site-footer h4 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.footer-newsletter p { color: #cfcfcf; margin: 0 0 16px; line-height: 1.7; }
.subscriber-count { color: #cfcfcf; }
.newsletter-form { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 6px; gap: 6px; margin: 20px 0 8px; }
.newsletter-form input[type=email] { flex: 1; border: 0; padding: 12px 14px; font-size: 16px; outline: none; min-width: 0; background: transparent; }
.newsletter-form button { background: var(--sml-red); color: #fff; border: 0; padding: 14px 26px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 16px; }
.notice { color: #9be59b; margin: 8px 0 0; }
.follow-title { margin-top: 38px; font-size: 20px; }
.social-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icons a { display: inline-flex; width: 44px; height: 44px; border-radius: 10px; background: #3a3a3a; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.social-icons a:hover { background: var(--sml-red); text-decoration: none; }
.footer-menu { padding: 36px 0; }
.footer-menu ul { list-style: none; display: flex; gap: 36px; flex-wrap: wrap; margin: 0; padding: 0; }
.footer-menu a { color: #fff; font-weight: 500; }
.footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid #2a2a2a; font-size: 15px; color: #a9a9a9; }
.back-to-top { position: absolute; right: 40px; bottom: 40px; width: 56px; height: 56px; border-radius: 50%; background: var(--sml-red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.back-to-top:hover { text-decoration: none; opacity: .9; }

/* ---------- Footer (matches design) ---------- */
.site-footer { background: #161616; color: #d0d0d0; padding: 80px 0 48px; }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid #2c2c2c; }
.footer-award img { width: 276px; height: auto; display: block; }
.footer-featured h4 { font-size: 22px; font-weight: 500; margin-bottom: 26px; color: #fff; }
.footer-featured img { width: 100%; max-width: 984px; height: auto; display: block; }
.footer-main { display: grid; grid-template-columns: 1fr 2fr; align-items: start; gap: 60px; padding: 60px 0 56px; border-bottom: 1px solid #2c2c2c; }
.site-footer h4 { color: #fff; font-size: 24px; font-weight: 600; margin: 0 0 22px; }
.footer-newsletter { max-width: 480px; }
.footer-newsletter > p { font-size: 19px; line-height: 1.7; color: #c8c8c8; margin: 0 0 26px; }
.subscriber-count { font-size: 19px; color: #c8c8c8; margin: 0 0 28px; }
.newsletter-form { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 6px 6px 6px 16px; gap: 8px; }
.newsletter-form input[type=email] { flex: 1; min-width: 0; border: 0; outline: none; font-size: 18px; padding: 12px 0; background: transparent; color: #111; }
.newsletter-form button { background: var(--sml-red); color: #fff; border: 0; padding: 16px 32px; border-radius: 8px; cursor: pointer; font-size: 18px; font-weight: 500; }
.notice { color: #9be59b; margin: 10px 0 0; }
.follow-title { margin-top: 44px; font-size: 22px; }
.social-icons { display: flex; gap: 14px; flex-wrap: wrap; }
.social-icons a { display: inline-flex; width: 50px; height: 50px; border-radius: 10px; background: #3a3a3a; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; }
.social-icons a:hover { background: var(--sml-red); text-decoration: none; }
.footer-links { display: grid; grid-template-columns: 1fr; gap: 40px; align-self: start; }
.footer-menu { padding: 0; }
.footer-menu h4 { margin: 0 0 26px; }
.footer-newsletter h4 { margin-top: 0; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-menu a { color: #c6c6c6; font-size: 17px; line-height: 1.4; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { margin: 0 calc(50% - 50vw); border-top: 1px solid #fff; text-align: center; padding: 22px 0 0; font-size: 19px; color: #c8c8c8; }
.footer-bottom .copyright { margin: 0; }
.back-to-top { position: absolute; right: 40px; bottom: 40px; width: 56px; height: 56px; border-radius: 50%; background: var(--sml-red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.back-to-top:hover { text-decoration: none; opacity: .9; }
.site-footer { position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid.four, .community-row { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .banner-inner, .two-col, .footer-top { grid-template-columns: 1fr; }
  .banner-copy h1, .section-title { font-size: 36px; }
  .main-nav ul { gap: 22px; }
}
@media (max-width: 640px) {
  .card-grid.four, .card-grid.three, .community-row { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .banner-copy h1 { font-size: 34px; }
  .community { margin: 0 12px; }
}

/* ---------- Typography matched to the reference stylesheet (desktop >= 992px; html = 16px) ---------- */
.main-nav > ul > li > a { font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 500; }
.main-nav .sub-menu a { font-size: 14px; font-weight: 500; }


.featured-in > span { font-size: 16px; color: #073a87; }
.section-title, .community .section-title.center, .trending .section-title, .offers .section-title { font-size: 48px; font-weight: 600; line-height: 60px; color: #161616; }
.trending-btn, .view-all, .view-all-deals { font-size: 16px; font-weight: 600; padding: 20px 53px; }
.goal-title { font-size: 25px; }
.goal-text { font-size: 15px; line-height: 1.5; }
.badge { font-size: 12px; font-weight: 500; line-height: 30px; padding: 0 10px; top: 24px; left: 24px; }
.trend-card .meta { font-size: 16px; font-weight: 500; color: #4b4b4b; }
.trend-card h3 { font-size: 20px; font-weight: 400; line-height: 1.6; }
.ebook-card strong { font-size: 20px; font-weight: 600; line-height: 1.6; }
.tool-card h3 { font-size: 28px; font-weight: 700; line-height: 1.3; }
.rating { font-size: 16px; font-weight: 600; }
.stars { font-size: 21px; }
.tool-text { font-size: 16px; font-weight: 400; line-height: 24px; color: #4b4b4b; }
.tool-card .btn-red { font-size: 16px; font-weight: 600; padding: 20px 0; }
.community-info strong { font-size: 20px; font-weight: 500; }
.community-count { font-size: 16px; color: #777; }
.community-cta { font-size: 16px; }
.author-copy h2 { font-size: 48px; font-weight: 600; line-height: 60px; }
.author-copy p { font-size: 16px; font-weight: 500; line-height: 26px; color: #4b4b4b; }
.author-copy .signature { font-size: 20px; font-weight: 700; }
.author-links a { font-size: 16px; font-weight: 500; }
.offer-card h3 { font-size: 20px; font-weight: 600; line-height: 1.6; min-height: 64px; }
.offer-actions .btn-outline { font-size: 16px; font-weight: 600; padding: 20px 0; }
.read-more { font-size: 16px; font-weight: 600; }
.site-footer h4, .footer-featured h4 { font-size: 20px; font-weight: 700; }
.follow-title { font-size: 16px; font-weight: 700; }
.footer-newsletter > p, .subscriber-count { font-size: 16px; font-weight: 500; line-height: 26px; color: #ababab; }
.newsletter-form input[type=email] { font-size: 16px; font-weight: 500; }
.newsletter-form button { font-size: 16px; font-weight: 600; padding: 12px 25px; }
.footer-menu a { font-size: 14px; font-weight: 500; color: #ababab; }
.footer-bottom { font-size: 14px; color: #ababab; }

/* Mobile (below 992px) */
@media (max-width: 991px) {
  .section-title, .community .section-title.center, .trending .section-title, .offers .section-title, .author-copy h2 { font-size: 32px; line-height: 1.3; }
  .banner { padding: 56px 0; }
  .banner-copy h1 { font-size: 32px; line-height: 1.3; }
  .banner-text { font-size: 18px; }
  .goal-title { font-size: 24px; }
  .tool-card h3 { font-size: 24px; }
}
@media (max-width: 768px) {
  .banner-copy h1 { font-size: 33px; }
}

/* ---------- Contact page (matches reference) ---------- */
.contact-form { margin-top: 34px; }
.contact-form label { display: block; font-size: 17px; font-weight: 700; color: #111; margin: 26px 0 8px; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form .req { color: #e53935; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=url] { display: block; width: 100%; max-width: 515px; height: 40px; border: 1px solid #bdbdbd; background: #fff; padding: 0 12px; font: inherit; font-size: 16px; color: #111; }
.contact-form textarea { display: block; width: 100%; height: 130px; border: 1px solid #bdbdbd; background: #fff; padding: 10px 12px; font: inherit; font-size: 16px; color: #111; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #e53935; outline-offset: -1px; }
.contact-submit { margin-top: 36px; background: #f7f7f7; border: 1px solid #d4d4d4; color: #444; padding: 11px 22px; font: inherit; font-size: 16px; cursor: pointer; }
.contact-submit:hover { background: #e53935; border-color: #e53935; color: #fff; }
.contact-notice { font-size: 16px; padding: 12px 16px; border-radius: 6px; margin: 24px 0 0; }
.contact-ok { background: #e6f6ea; color: #1b5e20; }
.contact-error { background: #fdecea; color: #b71c1c; }
.contact-dm { font-size: 17px; margin-top: 44px; }
.contact-dm a { color: #e53935; text-decoration: underline; }

/* ---------- Pages (matches reference About page) ---------- */
.page-main { background: #efefef; padding: 60px 0 90px; }
.page-column { max-width: 860px; margin: 0 auto; }
.page-title { font-size: 46px; font-weight: 700; line-height: 1.2; color: #111; margin: 0 0 40px; }
.page-column .entry-content { font-size: 16px; line-height: 1.9; color: #111; }
.page-column .entry-content p { margin: 0 0 1.5em; }
.page-column .entry-content ul { margin: 0 0 1.5em; padding-left: 24px; }
.page-column .entry-content a { color: #e53935; text-decoration: underline; }
.page-column .entry-content img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.page-column .entry-content figure { margin: 34px auto; text-align: center; }
.page-column .entry-content figcaption { font-size: 15px; color: #111; margin-top: 10px; }
.page-column .entry-content h2 { font-size: 34px; font-weight: 700; line-height: 1.3; margin: 56px 0 28px; }
.page-column .entry-content ul { font-size: 16px; }

/* ---------- Single post (matches reference post page) ---------- */
.post-page { background: #efefef; padding: 60px 0 80px; }
.post-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.post-card { background: #fff; padding: 56px 60px 64px; }
.post-breadcrumb { background: #f3f3f3; border-radius: 30px; padding: 18px 36px; font-size: 14px; line-height: 1.8; text-align: center; color: #333; }
.post-breadcrumb a { color: #333; }
.post-title { font-size: 46px; font-weight: 700; line-height: 1.2; text-align: center; margin: 40px 0 28px; color: #111; }
.post-meta-bar { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; border-top: 1px solid #111; border-bottom: 1px solid #111; padding: 14px 0; font-size: 16px; font-weight: 600; color: #111; }
.post-hero-img { margin: 32px 0; }
.post-hero-img img { width: 100%; height: auto; display: block; }
.post-card .entry-content { font-size: 17px; line-height: 1.9; color: #222; }
.post-card .entry-content p { margin: 0 0 1.2em; }
.post-sidebar { display: flex; flex-direction: column; gap: 40px; }
.side-card { background: #fff; padding: 40px 36px; }
.side-card h2 { font-size: 32px; font-weight: 500; text-align: center; margin: 0 0 30px; color: #111; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 2px solid #111; padding: 18px 0; }
.side-list a { font-size: 17px; font-weight: 600; line-height: 1.5; color: #111; }
.library-list { list-style: none; margin: 0; padding: 0; }
.library-list li { border-bottom: 2px solid #111; }
.library-list a { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 17px; color: #111; }
.library-list a::after { content: "›"; font-size: 26px; font-weight: 700; }
.related-posts { background: #fff; padding: 70px 0; margin-top: 56px; }
.related-posts h2 { font-size: 36px; font-weight: 600; text-align: center; margin-bottom: 40px; color: #111; }
@media (max-width: 991px) { .post-layout { grid-template-columns: 1fr; } .post-card { padding: 32px 22px; } .post-title { font-size: 32px; } }

/* ---------- Blog listing (matches reference blog page) ---------- */
.blog-main { padding: 60px 0 90px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 30px; }
.blog-card { display: flex; flex-direction: column; }
.blog-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #fff; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-cat { position: absolute; top: 0; left: 0; background: #000; color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; line-height: 1; padding: 8px 10px; letter-spacing: .02em; }
.blog-title { font-size: 20px; font-weight: 400; line-height: 1.5; margin: 22px 0 14px; }
.blog-title a { color: #111; }
.blog-excerpt { font-size: 16px; line-height: 1.9; color: #222; margin: 0 0 18px; }
.blog-more { font-size: 16px; font-weight: 500; color: #111; margin-top: auto; }
.blog-more:hover { color: var(--sml-red); }
.blog-pagination { margin-top: 70px; background: #f5f5f5; padding: 14px 0; }
.blog-pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 22px; font-size: 16px; }
.blog-pagination .page-numbers { color: #111; padding: 4px 6px; }
.blog-pagination .page-numbers.current { font-weight: 700; }
.blog-pagination .next { font-weight: 700; }
@media (max-width: 991px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Section spacing and backgrounds (from reference stylesheet, desktop >= 992px) ---------- */
:root { --sml-blue: #52a6f2; --sml-yellow: #ffc13c; }


.block { padding: 48px 0; }                      /* .section */
.trending { padding: 48px 0 0; }
.ebooks, .offers { margin: 48px 0; padding: 96px 0; }   /* .he / .hd: pink bands */
.community { margin: 48px 0; padding: 96px 0; border-radius: 30px; }  /* .hso-bg: grey band */
.man-behind { padding: 48px 0; }
.site-footer { padding-top: 88px; }             /* .haw */

/* Mobile (below 992px): .section = 2rem */
@media (max-width: 991px) {
  .block { padding: 32px 0; }
  .ebooks, .offers { margin: 32px 0; padding: 48px 0; }
  .community { margin: 32px 0; padding: 48px 0; }
  .man-behind { padding: 32px 0; }
  .banner-inner { gap: 32px; }
  .site-footer { padding-top: 56px; }
}

/* ---------- Popular Finance Topics (4 cards, same hover as "I Want To") ---------- */
.topics { background: #fff; }
.topic-grid { gap: 45px; }
.i-want .wrap, .topics .wrap { max-width: 1740px; }
.topic-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 397 / 560; min-height: 380px; overflow: hidden; background: linear-gradient(160deg, #3d5a80 0%, #1d3557 100%); color: #fff; transition: transform .3s; }
.topic-card:hover { text-decoration: none; transform: scale(1.1); z-index: 2; }
.topic-photo { position: absolute; inset: 0; }
.topic-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.topic-card:hover .topic-photo img { transform: scale(1.1); }
.topic-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,53,87,0) 35%, rgba(29,53,87,.92) 100%); pointer-events: none; }
.topic-body { position: relative; z-index: 1; text-align: center; padding: 0 24px 32px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.topic-title { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; line-height: 1.25; color: #fff; }
.topic-text { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.9); }
.topic-btn { display: inline-block; margin-top: 6px; border: 1px solid #e9c46a; color: #e9c46a; padding: 10px 26px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.topic-card:hover .topic-btn { background: #e9c46a; color: #1d3557; }
@media (max-width: 1024px) { .topic-grid { gap: 28px; } }
@media (max-width: 640px) { .topic-grid { gap: 20px; } .topic-title { font-size: 22px; } }

/* ---------- Topic sections (one per topic, dynamic posts) ---------- */
.topic-section { padding-top: 24px; }
.topic-section-head { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.topic-section-media img { width: 100%; aspect-ratio: 700 / 980; object-fit: cover; border-radius: 14px; display: block; }
.topic-section-copy .section-title { text-align: left; margin-bottom: 18px; }
.topic-section-text { font-size: 18px; line-height: 1.6; color: #4b4b4b; margin: 0 0 28px; max-width: 680px; }
.topic-empty { color: #777; font-size: 16px; margin: 0; }
#topic-insurance, #topic-real-estate, #topic-quantitative-finance, #topic-scams-fraud-awareness { scroll-margin-top: 130px; }
@media (max-width: 768px) { .topic-section-head { grid-template-columns: 1fr; gap: 28px; } .topic-section-media { max-width: 260px; } }

.contact-details { margin: 0 0 36px; } .contact-details p { margin: 0 0 8px; }
.contact-details { margin: 0 0 36px; } .contact-details p { margin: 0 0 8px; }
