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

body {
  font-family: Arial, Helvetica, sans-serif;
}

/* ================= TOP BAR ================= */
.topbar {
  background: #12b1a9;
}

.topbar-inner {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 14px;
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-item img {
  width: 16px;
}

.top-right a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
}

.top-right img {
  width: 14px;
}

/* ================= NAV BAR ================= */
.header {
  background: #2b347a;
}

.nav {
  max-width: 1200px;
  margin: auto;
  /* padding:16px 20px; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo box */
.logo-box {
  background: #fff;
  padding: 12px 18px;
  border-radius: 4px;
}

.logo-box img {
  height: 42px;
}

/* Menu */
.menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* CTA */
.cta {
  background: #d77c2b;
  padding: 15px 14px;
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.cta span {
  background: #fff;
  padding: 6px;
  border-radius: 6px;
}

.cta img {
  width: 14px;
}

/* ================= HERO ================= */
.hero {
  background: #2b347a;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: 54px;
  margin-left: 60px;
}

.hero-right {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-bg {
  position: absolute;
  right: -155px;
  top: -92px;
  width: 650px;
}

.hero-img {
  width: 520px;
  z-index: 2;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #1b1f2a
}

img {
  display: block;
  max-width: 100%;
  height: auto
}

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

:root {
  --max: 1100px;
  --card-bg: #f3f4f6;
  --line: #e6e8ee;
  --text: #273046;
  --muted: #8a93a6;
  --accent: #bfa46a;
  /* beige button color like screenshot */
}

.blog-section {
  padding: 40px 16px 60px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  /* content + sidebar */
  gap: 34px;
  align-items: start;
}

/* =======================
       LEFT: POSTS GRID
    ======================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid #eef0f5;
}

.post-card__img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.post-card__body {
  padding: 16px 16px 18px;
}

.post-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.post-card__meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.post-card__desc {
  font-size: 12px;
  color: #6f7890;
  line-height: 1.6;
}

/* Pagination */
.pagination {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: #49536a;
  letter-spacing: .3px;
}

.pagination a {
  color: #49536a;
  font-weight: 700;
}

.pagination .pages {
  display: flex;
  gap: 10px;
  font-weight: 700;
}

.pagination .pages span {
  opacity: .7;
}

/* =======================
       RIGHT: SIDEBAR
    ======================= */
.sidebar {
  border-left: 1px solid transparent;
}

.widget {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* Search */
.search {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
}

.search button {
  width: 44px;
  border: 0;
  background: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search button img {
  width: 16px;
  height: 16px;
}

.widget-title {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 800;
  color: #2e3850;
  letter-spacing: .5px;
}

/* Recent posts list */
.recent-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recent-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.recent-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #e9ecf3;
  background: #fff;
}

.recent-item h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 4px;
}

.recent-item p {
  font-size: 10px;
  color: var(--muted);
}

.about-img {
  margin-top: 12px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid #e9ecf3;
  background: #fff;
}

.about-text {
  margin-top: 10px;
  font-size: 11px;
  color: #6f7890;
  line-height: 1.6;
}

/* Newsletter */
.newsletter-note {
  margin-top: 10px;
  font-size: 11px;
  color: #6f7890;
  line-height: 1.5;
}

.newsletter {
  margin-top: 10px;
  display: flex;
  border: 1px solid var(--line);
  background: #fff;
}

.newsletter input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  font-size: 12px;
}

.newsletter button {
  width: 44px;
  border: 0;
  background: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.newsletter button img {
  width: 25px;
  height: 15px;
}

img.header-arrow {
  width: 10px;
}

.site-footer {
  position: relative;
  background: #2A3276;
  color: #fff;
  padding: 0 0 22px;
  overflow: hidden;
  font-family: Inter, system-ui, Arial, sans-serif;
}

/* Decorative shapes (very light) */
.f-shape {
  position: absolute;
  opacity: .15;
  pointer-events: none;
  user-select: none;
}

.f-shape--t1 {
  left: 35px;
  top: 30px;
  width: 38px;
}

.f-shape--t2 {
  left: 75px;
  top: 58px;
  width: 26px;
}

.f-shape--t3 {
  right: 55px;
  top: 55px;
  width: 36px;
}

.f-shape--t4 {
  right: 30px;
  top: 35px;
  width: 24px;
}

.footer-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Top row */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Big logo box (white) */
.footer-logoBox {
  width: 250px;
  height: 90px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logoBox img {
  height: 54px;
  width: auto;
  display: block;
}

/* Socials on right */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social__label {
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
  margin-right: 8px;
}

.footer-social__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
}

.footer-social__icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* Divider lines */
.footer-divider {

  background: rgba(255, 255, 255, .10);
  margin: 18px 0 0;
}

.footer-divider--bottom {
  margin: 40px 0 14px;
}

/* Grid columns */
.footer-grid {
  display: grid;
  grid-template-columns: 140px 140px 170px 260px 1fr;
  gap: 20px;
  padding-top: 26px;
  align-items: start;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin: 10px 0;
}

.footer-list a {
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  text-decoration: none;
}

.footer-list a:hover {
  color: #fff;
}

/* Contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  flex: 0 0 28px;
}

.footer-contact__icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-contact__text {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .75);
  margin-top: 2px;
}

/* Subscribe */
.footer-subtext {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 14px;
}

.footer-form {
  display: flex;
  align-items: center;
  width: 250px;
  height: 36px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.footer-input {
  border: none;
  outline: none;
  padding: 0 12px;
  height: 100%;
  width: 100%;
  font-size: 12px;
  color: #333;
}

.footer-input::placeholder {
  color: #8a8a8a;
}

.footer-btn {
  width: 42px;
  height: 100%;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.footer-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

img.facebook-logo {
  width: 8px;
}

/* Bottom copyright */
.footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
  padding-bottom: 10px;
}

/* Responsive */
@media (max-width: 1050px) {
  .footer-logoBox {
    width: 360px;
  }

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

  .footer-col--subscribe .footer-form {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 620px) {
  .footer-wrap {
    padding: 0 18px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-logoBox {
    width: 100%;
  }

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

  .footer-form {
    width: 100%;
    max-width: 320px;
  }
}


/* =======================
       RESPONSIVE
    ======================= */
@media (max-width: 980px) {
  .container {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
}

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

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

  .sidebar {
    margin-top: 10px;
  }
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px) {
  .menu {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    margin: 0 0 30px;
  }

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

  .hero-bg {
    right: 50%;
    transform: translateX(50%);
  }
}

/* ================================================================
   BLOG PAGE — MOBILE OVERRIDES
   ================================================================ */
@media (max-width: 1024px) {

  nav,
  .nav {
    position: relative !important;
    flex-wrap: nowrap !important;
  }

  nav .nav-links,
  .navlinks {
    display: none !important;
  }

  nav .nav-right {
    display: none !important;
  }

  nav .hamburger {
    display: flex !important;
  }
}

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden !important;
  }

  [class*="blog-grid"],
  [class*="posts-grid"],
  [class*="article-grid"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  [class*="hero"] {
    flex-direction: column !important;
    padding: 30px 16px !important;
    min-height: auto !important;
  }

  [class*="footer-grid"],
  [class*="footer-container"] {
    grid-template-columns: 1fr 1fr !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  .container,
  [class*="wrap"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 480px) {

  [class*="footer-grid"],
  [class*="footer-container"] {
    grid-template-columns: 1fr !important;
  }
}