/* Importing the Inter font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* =========================
   BLOGS PAGE STYLES ONLY
   ========================= */

/* Global styles used by Blogs page */
body {
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  color: #000;
  background-color: #fffaf7;
}

hr {
  border: 1px solid #d3d3d3;
}

/* -------------------------
   Buttons (used in navbar)
   ------------------------- */
.custom-btn {
  background-color: #760222;
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  transition: all 0.3s ease-in-out;
}

.custom-btn:hover {
  background-color: #59011a;
  color: #fff;
}

/* -------------------------
   Navbar (used in Blogs)
   ------------------------- */
.navbar {
  padding-top: 0;
  padding-bottom: 0;
  height: 72px;
}

.logo {
  width: 200px;
  height: auto;
}

.nav-item {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 16px;
  color: #475467;
  font-weight: 600;
}

.nav-item-book {
  display: none;
}

.nav-link {
  color: #000;
}

.nav-link:hover {
  color: #760222;
}

/* -------------------------
   Header section (BLOGS)
   ------------------------- */
.header-section {
  height: 300px;
  background-color: #faf2ee;
  color: #1e1e1e;
}

.header-section h1 {
  font-size: 53px;
  font-weight: 700;
}

#hat-icon {
  margin-bottom: -50px;
  margin-left: -40px;
}

footer {
  background-color: #faf2ee;
  color: #101828;
}

.footer-logo {
  margin-left: -21px;
  margin-bottom: -15px;
}

.footer-text {
  color: #101828;
  font-size: 0.85rem;
}

.footer-links-row {
  margin-top: 70px;
}

.footer-link {
  color: #101828;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

.copyright-row {
  border-top: 1px solid #101828;
  margin-left: 0px;
}

.copyright-text {
  margin-left: -12px;
  font-size: 16px;
}

.sm-icon {
  width: 24px;
  height: 24px;
}

.sm-link {
  text-decoration: none;
  margin-left: 10px;
}

/* -------------------------
   Responsive (Navbar + Blogs)
   ------------------------- */
@media (max-width: 768px) {
  .navbar-collapse {
    background-color: #fffaf7;
    z-index: 1030;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 0;
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
  }

  .nav-link {
    padding-left: 30px;
  }

  .nav-item-book {
    display: block;
  }

  .navbar .custom-btn {
    display: none;
  }

  #pushContent {
    height: 260px;
    width: 100%;
    display: none;
  }

  .logo {
    position: absolute;
    top: -75%;
    width: 180px;
  }

  .header-section {
    display: flex;
    align-items: center;
    height: 220px;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }

  .header-section h1 {
    font-size: 36px;
    text-align: center !important;
  }

  #hat-icon {
    display: none;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer {
    padding-top: 1.5rem !important;
    padding-bottom: 3rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .footer-links-row {
    display: none !important;
  }

  .copyright-row div:last-child {
    text-align: left !important;
  }

  .copyright-row div:last-child .sm-link:first-child {
    margin-left: 0 !important;
  }
}
/* =========================
   BLOGS LIST (Figma layout)
   ========================= */

.blogs-section {
  padding: 60px 0 90px 0;
}

/* Tabs row */
.blogs-tabs {
  display: flex;
  gap: 48px;
  align-items: center;
  padding-bottom: 14px;
}

.blogs-tab {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: #101828;
  cursor: pointer;
  position: relative;
}

.blogs-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 3px;
  background: #101828;
  border-radius: 2px;
}

.blogs-tabs-line {
  height: 1px;
  background: rgba(16, 24, 40, 0.16);
  width: 100%;
  margin-bottom: 28px;
}

/* Grid: 2 columns desktop, 1 column mobile */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 60px; /* row gap, column gap */
}

/* Card */
.blog-card {
  background: transparent;
}

/* Image wrapper: forces 562x316 ratio */
.blog-card-img {
  width: 100%;
  max-width: 562px; /* matches Figma width */
  border-radius: 0; /* Figma shows sharp corners */
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 316px; /* matches Figma height */
  object-fit: cover;
  display: block;
}

/* Title + text */
.blog-card-title {
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 900; /* thicker */
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #101828;
  text-decoration: underline;
  text-underline-offset: 4px; /* better spacing */
}

.blog-card-desc {
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #101828;
  max-width: 62ch;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #101828;
  text-decoration: none;
}

.blog-card-link:hover {
  text-decoration: underline;
}

.blog-card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.2s ease;
  position: relative;
  top: 1px;
}

.blog-card-link:hover .blog-card-icon {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 991.98px) {
  .blogs-tabs {
    gap: 26px;
    flex-wrap: wrap;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .blog-card-img {
    max-width: 100%;
  }

  .blog-card-img img {
    height: auto;
    aspect-ratio: 562 / 316;
  }
}
/* =========================================================
   BLOGS DETAILS PAGE CSS (NEWS LAYOUT)
   ========================================================= */

/* Hero */
.news-hero {
  padding: 46px 0 20px 0;
  background: #fffaf7;
}

.news-hero-title {
  text-align: center;
  color: #760222;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin: 0 0 10px 0;
}

.news-hero-subtitle {
  text-align: center;
  max-width: 90ch;
  margin: 0 auto 18px auto;
  color: #475467;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

/* Search row */
.news-search {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.news-search-input {
  width: 640px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(16, 24, 40, 0.18);
  border-radius: 12px;
  background: #fff;
}

.news-search-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  font-weight: 900;
}

.news-search-input input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #101828;
}

.news-search-btn {
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: #760222;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.news-search-btn:hover {
  background: #59011a;
}

/* Main section */
.news-main {
  padding: 44px 0 100px 0;
  background: #fffaf7;
}

/* Two-column grid (Figma-like widths) */
.news-grid {
  display: grid;
  grid-template-columns: 810px 418px;
  gap: 47px;
  align-items: start;
}

/* LEFT header row */
.news-left-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.news-left-title {
  font-size: 54px;
  font-weight: 900;
  color: #101828;
  margin: 0;
}

.news-left-link {
  color: #101828;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Featured image */
.news-featured-img {
  width: 100%;
  aspect-ratio: 810 / 456;
  overflow: hidden;
  background: #eee;
}

.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Blog detail title under image */
.news-detail-title {
  margin: 22px 0 12px 0;
  font-size: 28px;
  font-weight: 900;
  color: #101828;
}

/* Blog paragraphs */
.news-detail-body p {
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.9;
  color: #101828;
  max-width: 92ch;
}

/* RIGHT CTA card */
.news-cta-card {
  margin-top: 10px;
  width: 100%;
  height: 320px; /* keep your current */
  border-radius: 15px;
  background: #760222;
  padding: 34px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
}

.news-cta-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.35;
  margin: 0;
}

/* CTA button inside red card */
.news-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  width: 100%;
  border-radius: 14px;
  background: #fff;
  color: #760222;
  text-decoration: none;
  letter-spacing: 0.02em;
  font-size: 15px;
  font-weight: 900;
}

.news-cta-btn:hover {
  text-decoration: underline;
}

/* Right side list wrapper */
.news-side-list {
  margin-top: 18px;
  display: grid;
  gap: 22px;
}

/* Right cards */
.news-side-item {
  width: 100%;
  height: auto;
  display: block;
}

/* Thumbnails — no awkward cropping */
.news-side-thumb {
  width: 100%;
  aspect-ratio: 417 / 180;
  overflow: hidden;
  background: #eef2ff;
}

.news-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.news-side-info {
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.news-side-title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}

/* Only scope the smaller readmore to the right section */
.news-side-readmore.blog-card-link {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 991.98px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .news-cta-card {
    height: auto;
  }

  .news-search {
    flex-direction: column;
    gap: 12px;
  }

  .news-search-input,
  .news-search-btn {
    width: 100%;
  }

  .news-hero-title {
    font-size: 38px;
  }

  .news-left-title {
    font-size: 38px;
  }
}

/* Comment box (Blog detail) */
.news-comment {
  margin-top: 26px;
}

.news-comment-textarea {
  width: 100%;
  min-height: 70px;
  resize: none;
  border: 1px solid rgba(16, 24, 40, 0.18);
  border-radius: 10px;
  padding: 14px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #101828;
  background: #fff;
  outline: none;
}

.news-comment-textarea::placeholder {
  color: #98a2b3;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.news-comment-textarea:focus {
  border-color: rgba(118, 2, 34, 0.55);
  box-shadow: 0 0 0 3px rgba(118, 2, 34, 0.12);
}

.news-comment-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.news-comment-btn {
  background: #760222;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.news-comment-btn:hover {
  background: #59011a;
}

.blog-title-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.blog-title-link:hover {
  transform: translate(4px, -2px);
  color: #760222;
  text-decoration: underline;
}
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.load-more-btn {
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 700;
  min-width: 160px;
}

.blog-meta-separator {
  color: #98a2b3;
}
.news-detail-title {
  margin: 24px 0 10px 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
  color: #101828;
  letter-spacing: -0.02em;
}

.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px 0;
  font-size: 14px;
  font-weight: 600;
  color: #667085;
}

.news-detail-body {
  max-width: 760px;
}

.news-detail-body p {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.9;
  color: #1d2939;
  text-align: justify;
}
.news-detail-body p:first-child {
  font-size: 16px;
  line-height: 1.9;
  font-weight: 500;
  color: #344054;
}

.news-detail-body p:first-child::first-letter {
  float: left;
  font-size: 28px;
  line-height: 0.7;
  font-weight: 900;
  color: #760222;
  padding-right: 4px;
  padding-top: 2px;
}

.news-detail-body h3 {
  margin: 34px 0 14px 0;
  font-size: 18px;
  font-weight: 800;
  color: #101828;
}

.news-detail-body ul,
.news-detail-body ol {
  margin: 0 0 20px 22px;
  color: #1d2939;
  font-size: 16px;
  line-height: 1.9;
}

.news-detail-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid #760222;
  background: #faf2ee;
  color: #344054;
  font-size: 18px;
  line-height: 1.8;
  font-style: italic;
  border-radius: 8px;
}

.news-comment {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(16, 24, 40, 0.1);
}
