/* ==========================================================================
   HELLO FRIDAY — ELEGANT LIFESTYLE BLOG THEME
   ==========================================================================
   PART 1: BASE & COMPONENT STYLES (NORMAL CSS - NO MEDIA QUERIES)
     1. Design Tokens & CSS Variables
     2. Reset & Base Typography
     3. Layout & Grid System
     4. Site Header, Brand & Desktop Navigation
     5. Search Overlay Modal & Search Forms
     6. Mobile Navigation Drawer (Base Structure)
     7. Buttons, Badges & Interactive Controls
     8. Cards & Showcase Blocks
     9. Topic & Category Showcase (Pills, Filter, Guide Cards)
    10. Article & Details Page (Head, Author, Takeaways, TOC, Prose, Mid-Guides, Next Article)
    11. Contact Us & Privacy Policy
    12. Site Footer & Back to Top
    13. Utilities & Keyframe Animations

   PART 2: RESPONSIVE MEDIA QUERIES (DESKTOP-DOWN BREAKPOINTS)
     1. Tablet Landscape / Small Desktop (max-width: 1024px)
     2. Intermediate Tablet (max-width: 900px)
     3. Tablet Portrait (max-width: 860px)
     4. Mobile Landscape / Small Tablet (max-width: 768px)
     5. Medium Mobile / Horizontal Cards (max-width: 680px)
     6. Mobile Devices & Phones (max-width: 640px)
     7. Mobile Intermediate (max-width: 540px)
     8. Small Phones (max-width: 480px)
   ========================================================================== */

/* ==========================================================================
   PART 1: BASE & COMPONENT STYLES (NORMAL CSS - NO MEDIA QUERIES)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --hf-primary: #FE4F70;
  --hf-secondary: #FFA387;
  --hf-gradient: linear-gradient(to right, #FE4F70 0%, #FFA387 51%, #FE4F70 100%);
  --hf-ink: #203656;
  --hf-ink-light: #394E6D;
  --hf-text: #8F9BAD;
  --hf-text-muted: #9FAABB;
  --hf-bg: #FFFFFF;
  --hf-surface: #F9F9FF;
  --hf-surface-alt: #F1F5F9;
  --hf-border: #EBEBEB;
  --hf-white: #FFFFFF;
  --hf-overlay: rgba(32, 54, 86, 0.58);
  --hf-overlay-deep: rgba(32, 54, 86, 0.88);

  /* Typography */
  --hf-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hf-font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing & Sizing */
  --hf-container: 1140px;
  --hf-gutter: 30px;
  --hf-radius-sm: 6px;
  --hf-radius-md: 10px;
  --hf-radius-lg: 16px;
  --hf-radius-pill: 999px;

  /* Shadows & Transitions */
  --hf-shadow-sm: 0 4px 14px rgba(32, 54, 86, 0.05);
  --hf-shadow-md: 0 8px 24px rgba(32, 54, 86, 0.08);
  --hf-shadow-lg: 0 16px 40px rgba(32, 54, 86, 0.12);
  --hf-shadow-accent: 0 8px 20px rgba(254, 79, 112, 0.25);
  --hf-transition: all 0.3s ease-in-out;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Typography
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--hf-font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--hf-text);
  background-color: var(--hf-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--hf-font-heading);
  color: var(--hf-ink);
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--hf-primary);
  text-decoration: none;
  transition: var(--hf-transition);
}

a:hover {
  color: var(--hf-ink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* --------------------------------------------------------------------------
   3. Layout & Grid System
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--hf-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.site-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  width: 100%;
  padding: 40px 0 60px;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.posts-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.posts-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.sidebar {
  position: sticky;
  top: 90px;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hf-ink);
  margin-bottom: 0;
}

.wave-divider {
  width: 36px;
  height: 6px;
  display: block;
}

/* --------------------------------------------------------------------------
   4. Site Header, Brand & Desktop Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--hf-white);
  position: relative;
  z-index: 100;
}

.header-top {
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--hf-border);
}

.header-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-socials a {
  color: var(--hf-ink);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--hf-transition);
}

.header-socials a:hover {
  color: var(--hf-primary);
  transform: translateY(-2px);
}

.brand-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brand-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hf-border);
  padding: 2px;
  background: var(--hf-white);
}

.brand-logo {
  font-family: var(--hf-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hf-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.brand-dot {
  color: var(--hf-primary);
  font-size: 2rem;
  line-height: 0;
}

.brand-tagline {
  font-size: 13px;
  color: var(--hf-text);
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-actions [data-open-drawer] {
  display: none;
}

.header-nav-bar {
  background: var(--hf-white);
  border-bottom: 1px solid var(--hf-border);
  transition: var(--hf-transition);
}

.header-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.header-nav-bar.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: var(--hf-shadow-sm);
  animation: slideDown 0.3s ease forwards;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--hf-radius-pill);
  font-family: var(--hf-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--hf-ink-light);
  white-space: nowrap;
  transition: var(--hf-transition);
}

.nav-link:hover {
  color: var(--hf-primary);
}

.nav-link.active {
  color: var(--hf-white);
  background-image: var(--hf-gradient);
  background-size: 200% auto;
  box-shadow: var(--hf-shadow-accent);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--hf-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  box-shadow: var(--hf-shadow-md);
  padding: 10px 0;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--hf-transition);
  z-index: 120;
}

.nav-item:hover>.nav-dropdown,
.nav-item.is-open>.nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.brand-logo img {
  max-height: 36px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-item:last-child>.nav-dropdown {
  left: auto;
  right: 0;
}

.nav-dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 13.5px;
  color: var(--hf-ink-light);
}

.nav-dropdown a:hover {
  color: var(--hf-primary);
  background-color: var(--hf-surface);
  padding-left: 24px;
}

/* --------------------------------------------------------------------------
   5. Search Overlay Modal & Search Forms
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--hf-transition);
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hf-border);
  color: var(--hf-ink);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--hf-transition);
}

.search-overlay-close:hover {
  background: var(--hf-primary);
  border-color: var(--hf-primary);
  color: var(--hf-white);
  transform: rotate(90deg);
}

.search-overlay-box {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.search-overlay-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--hf-ink);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--hf-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-pill);
  padding: 6px 6px 6px 24px;
  box-shadow: var(--hf-shadow-sm);
  transition: var(--hf-transition);
}

.search-form:focus-within {
  border-color: var(--hf-primary);
  box-shadow: 0 0 0 4px rgba(254, 79, 112, 0.1);
}

.search-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--hf-ink);
  min-width: 0;
}

.search-form input::placeholder {
  color: var(--hf-text-muted);
}

.search-suggestions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.search-page-header {
  background: var(--hf-surface);
  border-bottom: 1px solid var(--hf-border);
  padding: 46px 0;
  text-align: center;
}

.search-page-form-wrap {
  max-width: 620px;
  margin: 22px auto 0;
}

.search-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hf-border);
  font-size: 14px;
}

.search-results-meta .btn-simple {
  padding: 6px 18px;
  font-size: 13px;
}

.search-empty-state {
  text-align: center;
  padding: 60px 24px;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  background: var(--hf-surface);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.search-results-list .post-card {
  flex-direction: row;
  align-items: stretch;
}

.search-results-list .post-card-thumb {
  width: 310px;
  min-width: 310px;
  height: auto;
  min-height: 220px;
}

/* --------------------------------------------------------------------------
   6. Mobile Navigation Drawer (Base Structure)
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--hf-overlay);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: var(--hf-transition);
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  background: var(--hf-white);
  z-index: 995;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--hf-shadow-lg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hf-border);
  margin-bottom: 24px;
}

.drawer-header .brand-logo {
  font-size: 1.4rem;
}

.drawer-footer p {
  font-size: 13px;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hf-border);
  color: var(--hf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--hf-transition);
}

.drawer-close:hover {
  background: var(--hf-primary);
  border-color: var(--hf-primary);
  color: var(--hf-white);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--hf-radius-sm);
  font-family: var(--hf-font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--hf-ink);
}

.drawer-nav a:hover,
.drawer-nav a.active {
  background: var(--hf-surface);
  color: var(--hf-primary);
}

.drawer-footer {
  padding-top: 24px;
  border-top: 1px solid var(--hf-border);
  margin-top: 24px;
}

.drawer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.drawer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hf-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hf-ink);
}

.drawer-socials a:hover {
  background: var(--hf-primary);
  border-color: var(--hf-primary);
  color: var(--hf-white);
}

/* --------------------------------------------------------------------------
   7. Buttons, Badges & Interactive Controls
   -------------------------------------------------------------------------- */
.btn-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--hf-white);
  font-family: var(--hf-font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 30px;
  border-radius: var(--hf-radius-pill);
  background-image: var(--hf-gradient);
  background-size: 200% auto;
  box-shadow: var(--hf-shadow-accent);
  transition: var(--hf-transition);
  border: none;
}

.btn-default:hover {
  color: var(--hf-white);
  background-position: right center;
  transform: translateY(-2px);
}

.btn-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 26px;
  border-radius: var(--hf-radius-pill);
  border: 1px solid var(--hf-border);
  background: var(--hf-white);
  color: var(--hf-text);
  font-size: 14px;
  font-weight: 500;
  transition: var(--hf-transition);
}

.btn-simple:hover {
  border-color: var(--hf-primary);
  color: var(--hf-primary);
}

.icon-btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-image: var(--hf-gradient);
  background-size: 200% auto;
  color: var(--hf-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: var(--hf-shadow-accent);
  transition: var(--hf-transition);
}

.icon-btn-circle:hover {
  background-position: right center;
  transform: translateY(-2px);
  color: var(--hf-white);
}

.category-badge {
  display: inline-block;
  color: var(--hf-white);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 14px;
  border-radius: var(--hf-radius-pill);
  background-image: var(--hf-gradient);
  background-size: 200% auto;
  transition: var(--hf-transition);
}

.category-badge:hover {
  color: var(--hf-white);
  background-position: right center;
}

.post-format-badge {
  position: absolute;
  bottom: -18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-image: var(--hf-gradient);
  background-size: 200% auto;
  color: var(--hf-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: var(--hf-shadow-accent);
  z-index: 2;
}

.tag-pill {
  display: inline-block;
  font-size: 13px;
  color: var(--hf-text);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-pill);
  padding: 5px 14px;
  background: var(--hf-white);
  transition: var(--hf-transition);
}

.tag-pill:hover {
  border-color: var(--hf-primary);
  color: var(--hf-primary);
}

.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.page-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hf-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--hf-text);
  background: var(--hf-white);
  transition: var(--hf-transition);
}

.page-btn:hover,
.page-btn.active {
  background-image: var(--hf-gradient);
  background-size: 200% auto;
  border-color: transparent;
  color: var(--hf-white);
  box-shadow: var(--hf-shadow-accent);
}

/* --------------------------------------------------------------------------
   8. Cards & Showcase Blocks
   -------------------------------------------------------------------------- */
/* Hero Featured Carousel */
.hero-carousel-section {
  padding: 28px 15px 12px;
}

.hero-carousel-wrap {
  position: relative;
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.hero-carousel-track::-webkit-scrollbar {
  display: none;
}

.hero-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.featured-post-card {
  position: relative;
  flex: 0 0 calc((100% - 60px) / 5);
  border-radius: var(--hf-radius-md);
  overflow: hidden;
  height: 380px;
  background-color: var(--hf-ink);
  scroll-snap-align: start;
}

.featured-post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-post-card:hover img {
  transform: scale(1.05);
}

.featured-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 54, 86, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.featured-post-overlay .category-badge {
  align-self: center;
  margin-bottom: 12px;
  font-size: 12px;
  padding: 6px 12px;
}

.featured-post-title {
  font-size: 17px;
  line-height: 1.4;
  color: var(--hf-white);
  margin: 0 0 12px;
}

.featured-post-title a {
  color: var(--hf-white);
}

.featured-post-title a:hover {
  color: var(--hf-secondary);
}

.featured-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.hero-carousel-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #DCDCDC;
  transition: var(--hf-transition);
  padding: 0;
}

.hero-carousel-dots button.active {
  width: 24px;
  border-radius: var(--hf-radius-pill);
  background-image: var(--hf-gradient);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--hf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--hf-shadow-md);
  z-index: 5;
  transition: var(--hf-transition);
}

.carousel-nav-btn:hover {
  background: var(--hf-primary);
  color: var(--hf-white);
}

.carousel-nav-btn.prev {
  left: 16px;
}

.carousel-nav-btn.next {
  right: 16px;
}

/* Editor's Pick Box */
.editors-pick-section {
  margin-bottom: 42px;
}

.editors-pick-box {
  background: var(--hf-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  padding: 28px;
}

.editors-pick-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
}

.editors-pick-lead-thumb {
  position: relative;
  border-radius: var(--hf-radius-md);
  overflow: hidden;
  height: 235px;
  margin-bottom: 18px;
}

.editors-pick-lead-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.editors-pick-lead:hover .editors-pick-lead-thumb img {
  transform: scale(1.05);
}

.editors-pick-lead-thumb .category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.editors-pick-list {
  display: flex;
  flex-direction: column;
}

.editors-pick-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hf-border);
}

.editors-pick-item:first-child {
  padding-top: 0;
}

.editors-pick-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.editors-pick-item-thumb {
  width: 104px;
  height: 76px;
  border-radius: var(--hf-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.editors-pick-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.editors-pick-item:hover .editors-pick-item-thumb img {
  transform: scale(1.07);
}

.editors-pick-item-info h5 {
  font-size: 14.5px;
  line-height: 1.4;
  margin-bottom: 5px;
}

.editors-pick-item-info h5 a {
  color: var(--hf-ink);
}

.editors-pick-item-info h5 a:hover {
  color: var(--hf-primary);
}

.editors-pick-item-info span {
  font-size: 12.5px;
  color: var(--hf-text-muted);
}

/* Standard Post Grid Card */
.post-card {
  background: var(--hf-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--hf-transition);
}

.post-card:hover {
  box-shadow: var(--hf-shadow-md);
  transform: translateY(-3px);
}

.post-card-thumb {
  position: relative;
  height: 235px;
  overflow: visible;
}

.post-card-thumb-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.post-card-thumb-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.post-card:hover .post-card-thumb-inner img {
  transform: scale(1.06);
}

.post-card-thumb .category-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
}

.post-card-body {
  padding: 26px 26px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--hf-text);
  margin-bottom: 12px;
}

.post-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hf-text);
  font-weight: 500;
}

.post-meta-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hf-primary);
  display: inline-block;
}

.post-card-title {
  font-size: 1.2rem;
  line-height: 1.42;
  margin-bottom: 10px;
}

.post-card-title a {
  color: var(--hf-ink);
}

.post-card-title a:hover {
  color: var(--hf-primary);
}

.post-card-excerpt {
  font-size: 14.5px;
  color: var(--hf-text);
  margin-bottom: 18px;
  flex: 1;
}

.post-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--hf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-share-link,
.post-more-link {
  color: var(--hf-text);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-more-link {
  margin-left: auto;
}

.post-share-link:hover,
.post-more-link:hover {
  color: var(--hf-primary);
}

/* Sidebar Widgets */
.widget {
  background: var(--hf-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  padding: 32px 26px;
}

.widget-header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.widget-title {
  font-size: 1.15rem;
  margin-bottom: 0;
}

.widget-about {
  text-align: center;
  background-color: var(--hf-white);
  background-image: radial-gradient(var(--hf-border) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.widget-about .brand-logo {
  justify-content: center;
  margin-bottom: 12px;
}

.widget-about p {
  font-size: 14px;
  margin-bottom: 18px;
}

.widget-about .header-socials {
  justify-content: center;
}

/* Popular Posts Mini List */
.popular-post-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hf-border);
}

.popular-post-item:first-child {
  padding-top: 0;
}

.popular-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-thumb-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.popular-thumb-wrap img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}

.popular-rank {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-image: var(--hf-gradient);
  color: var(--hf-white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--hf-white);
}

.popular-info h5 {
  font-size: 14.5px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.popular-info h5 a {
  color: var(--hf-ink);
}

.popular-info h5 a:hover {
  color: var(--hf-primary);
}

.popular-info span {
  font-size: 12.5px;
  color: var(--hf-text-muted);
}

/* Topics List Widget */
.topics-list li {
  border-bottom: 1px solid var(--hf-border);
}

.topics-list li:last-child {
  border-bottom: none;
}

.topics-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--hf-ink);
}

.topics-list a:hover {
  color: var(--hf-primary);
  padding-left: 6px;
}

.topics-count {
  font-size: 13px;
  color: var(--hf-text-muted);
}

/* Newsletter Widget */
.widget-newsletter {
  text-align: center;
}

.newsletter-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--hf-ink);
  margin-bottom: 18px;
}

.newsletter-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-pill);
  padding: 0 20px;
  text-align: center;
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  transition: var(--hf-transition);
}

.newsletter-input:focus {
  border-color: var(--hf-primary);
}

.widget-newsletter .btn-default {
  width: 100%;
}

.newsletter-note {
  font-size: 12.5px;
  color: var(--hf-text-muted);
  margin-top: 12px;
  margin-bottom: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   9. Topic & Category Showcase (Pills, Filter, Guide Cards)
   -------------------------------------------------------------------------- */
.page-hero-banner {
  background: var(--hf-surface);
  border-bottom: 1px solid var(--hf-border);
  padding: 48px 0;
  text-align: center;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--hf-text);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--hf-text);
}

.breadcrumb a:hover {
  color: var(--hf-primary);
}

.page-hero-title {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.page-hero-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
}

.topic-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.topic-pill {
  padding: 8px 20px;
  border-radius: var(--hf-radius-pill);
  border: 1px solid var(--hf-border);
  background: var(--hf-white);
  color: var(--hf-ink-light);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--hf-transition);
}

.topic-pill:hover {
  border-color: var(--hf-primary);
  color: var(--hf-primary);
}

.topic-pill.active {
  background-image: var(--hf-gradient);
  background-size: 200% auto;
  border-color: transparent;
  color: var(--hf-white);
  box-shadow: var(--hf-shadow-accent);
}

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  background: var(--hf-surface);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  margin-bottom: 28px;
}

.category-filter-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
  background: var(--hf-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-pill);
  padding: 8px 16px;
}

.category-filter-input-wrap i {
  color: var(--hf-text-muted);
  font-size: 13.5px;
}

.category-filter-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--hf-ink);
}

.category-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-sort-select {
  height: 38px;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-pill);
  background: var(--hf-white);
  color: var(--hf-ink);
  font-size: 13.5px;
  padding: 0 16px;
  outline: none;
  cursor: pointer;
}

.view-toggle-group {
  display: inline-flex;
  align-items: center;
  background: var(--hf-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-pill);
  padding: 3px;
  gap: 2px;
}

.view-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hf-text);
  font-size: 13.5px;
  transition: var(--hf-transition);
}

.view-toggle-btn.active {
  background-image: var(--hf-gradient);
  color: var(--hf-white);
}

.card-bookmark-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hf-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hf-text);
  font-size: 12.5px;
  margin-left: auto;
  transition: var(--hf-transition);
}

.card-bookmark-btn:hover,
.card-bookmark-btn.is-saved {
  border-color: var(--hf-primary);
  color: var(--hf-primary);
  background: rgba(254, 79, 112, 0.08);
}

.post-card-footer .card-bookmark-btn+.post-more-link {
  margin-left: 12px;
}

/* Unique Editorial Bento Card Structure on Category Page */
.posts-grid-3 .post-card.is-wide-card {
  grid-column: span 2;
  flex-direction: row;
  align-items: stretch;
  height: 320px;
}

.posts-grid-3 .post-card.is-wide-card .post-card-thumb {
  width: 48%;
  min-width: 48%;
  height: 100%;
}

.posts-grid-3 .post-card.is-full-card {
  grid-column: 1 / -1;
  min-height: 280px;
  height: auto;
}

.posts-grid-3 .post-card.is-full-card .post-card-thumb {
  width: 38%;
  min-width: 38%;
  height: auto;
}

.posts-grid-3 .post-card.is-wide-card .post-card-body {
  padding: 22px 26px;
  justify-content: flex-start;
  min-width: 0;
  overflow: hidden;
}

.posts-grid-3 .post-card.is-wide-card .post-card-excerpt {
  /* flex: 0; */
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.posts-grid-3 .post-card.is-wide-card .post-card-title {
  font-size: 1.32rem;
  line-height: 1.35;
}

.posts-grid-3 .post-card.is-wide-card .post-card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.posts-grid-3 .post-card.is-wide-card .post-card-footer {
  margin-top: auto;
}

/* Small Bento Cards: Full-bleed Image with Overlay Content (Matches Wide Card Height) */
#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) {
  position: relative;
  min-height: 320px;
  background-color: var(--hf-ink);
}

#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-card-thumb {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 1;
}

#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 54, 86, 0.14) 15%, rgba(32, 54, 86, 0.9) 100%);
  pointer-events: none;
  z-index: 1;
}

#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-card-body {
  position: relative;
  z-index: 2;
  justify-content: flex-end;
  padding: 72px 22px 18px;
}

#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-meta-row,
#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-card-excerpt,
#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-share-link,
#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-more-link {
  color: rgba(255, 255, 255, 0.85);
}

#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-card-title a {
  color: var(--hf-white);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-card-title a:hover,
#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-more-link:hover {
  color: var(--hf-secondary);
}

#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-card-excerpt {
  /* flex: 0; */
  margin-bottom: 14px;
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-card-footer {
  border-top-color: rgba(255, 255, 255, 0.18);
}

#categoryPostsGrid.posts-grid-3 .post-card.is-standard-card .post-card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#categoryPostsGrid.posts-grid-3 .post-card.is-standard-card .post-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-cards-strip {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--hf-border);
}

.guide-card {
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  padding: 24px;
  background: var(--hf-surface);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--hf-transition);
}

.guide-card:hover {
  background: var(--hf-white);
  box-shadow: var(--hf-shadow-sm);
  transform: translateY(-2px);
}

.guide-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--hf-radius-md);
  background-image: var(--hf-gradient);
  color: var(--hf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Article & Details Page (Head, Author, Takeaways, TOC, Prose, Mid-Guides, Next Article)
   -------------------------------------------------------------------------- */
.article-head {
  /* max-width: 820px; */
  /* margin: 0 auto 36px; */
  /* text-align: center; */
}

.article-head .category-badge {
  margin-bottom: 16px;
}

.article-head h1,
.article-title {
  font-size: 2.35rem;
  line-height: 1.3;
  margin-bottom: 18px;
}

.emerald-author-block,
.article-author-bar {
  display: flex;
  align-items: center;
  /* flex-wrap: wrap; */
  justify-content: space-between;
  gap: 8px 12px;
  font-size: 14px;
  color: var(--hf-text);
  margin-bottom: 18px;
}

.author-meta-left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.author-meta-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.author-name {
  font-weight: 500;
}

.author-meta-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.author-read-time {
  white-space: nowrap;
}

.meta-dot {
  flex-shrink: 0;
}

.emerald-author-block img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hf-border);
}

.emerald-author-block .category-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.iframe-container,
#relatedsearches1,
#relatedsearches2,
#afscontainer1,
.article-body #relatedsearches1,
.article-body #relatedsearches2 {
  width: 100%;
  margin: 1rem 0;
  min-height: 10px;
}

.article-head .lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--hf-ink-light);
  /* max-width: 720px;
  margin: 4px auto 0; */
}

.emerald-key-takeaways,
.takeaways-box {
  background: var(--hf-surface);
  border: 1px solid var(--hf-border);
  border-left: 4px solid var(--hf-primary);
  border-radius: var(--hf-radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.emerald-key-takeaways h4,
.takeaways-box h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emerald-key-takeaways h4 i {
  color: var(--hf-primary);
}

.emerald-toc.toc-panel {
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  padding: 18px 24px;
  margin-bottom: 32px;
  background: var(--hf-white);
}

.sidebar .emerald-toc.toc-panel {
  margin-bottom: 0;
}

.emerald-toc.toc-panel summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--hf-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--hf-ink);
}

.emerald-toc.toc-panel summary::-webkit-details-marker {
  display: none;
}

.emerald-toc.toc-panel summary i {
  transition: transform 0.25s ease;
  color: var(--hf-primary);
}

.emerald-toc.toc-panel[open] summary i {
  transform: rotate(180deg);
}

.emerald-toc.toc-panel .toc-links {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hf-border);
}

.article-main .emerald-toc.toc-panel .toc-links {
  max-height: 195px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.mid-trending-box {
  margin: 32px 0;
  padding: 26px;
  border-radius: var(--hf-radius-md);
  border: 1px solid var(--hf-border);
  background: linear-gradient(135deg, rgba(254, 79, 112, 0.05), rgba(255, 163, 135, 0.08));
}

.mid-trending-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hf-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hf-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.mid-trending-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mid-trending-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--hf-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-sm);
  padding: 12px;
  transition: var(--hf-transition);
}

.mid-trending-item:hover {
  border-color: var(--hf-primary);
  box-shadow: var(--hf-shadow-sm);
}

.mid-trending-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--hf-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.mid-trending-item h5 {
  font-size: 13.5px;
  line-height: 1.38;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.mid-trending-item>div {
  min-width: 0;
}

.mid-trending-item span {
  font-size: 12px;
  color: var(--hf-text-muted);
}

.related-posts-section {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--hf-border);
}

.takeaways-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.takeaways-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--hf-ink-light);
}

.takeaways-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hf-primary);
}

.toc-box {
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  padding: 22px 26px;
  margin-bottom: 32px;
  background: var(--hf-white);
}

.toc-title {
  font-size: 1rem;
  margin-bottom: 12px;
}

.toc-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-links a {
  font-size: 14px;
  color: var(--hf-ink-light);
  padding-left: 12px;
  border-left: 2px solid transparent;
}

.toc-links a:hover,
.toc-links a.active {
  color: var(--hf-primary);
  font-weight: 600;
  border-left-color: var(--hf-primary);
}

.article-body h2,
.article-body h3 {
  scroll-margin-top: 96px;
}

.prose.rich-text.article-body,
.article-prose {
  font-size: 16px;
  line-height: 1.85;
  color: #5A6779;
}

.prose.rich-text.article-body h2,
.article-prose h2 {
  margin-top: 34px;
  margin-bottom: 14px;
  font-size: 1.55rem;
}

.prose.rich-text.article-body h3,
.article-prose h3 {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.prose.rich-text.article-body blockquote,
.article-prose blockquote {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--hf-surface);
  border-radius: var(--hf-radius-md);
  border-left: 4px solid var(--hf-secondary);
  font-family: var(--hf-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hf-ink);
}

.prose.rich-text.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--hf-radius-md);
  margin: 20px 0;
}

.prose.rich-text.article-body ul,
.prose.rich-text.article-body ol {
  margin: 16px 0 22px;
  padding-left: 24px;
}

.prose.rich-text.article-body ul {
  list-style: disc;
}

.prose.rich-text.article-body ol {
  list-style: decimal;
}

.prose.rich-text.article-body li {
  margin-bottom: 8px;
}

.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 26px 0;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  background: var(--hf-white);
  box-shadow: 0 2px 10px rgba(32, 54, 86, 0.04);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

.article-body table th {
  background: var(--hf-surface);
  color: var(--hf-ink);
  font-family: var(--hf-font-heading);
  font-weight: 600;
  font-size: 13.5px;
  padding: 13px 16px;
  border-bottom: 2px solid var(--hf-border);
  white-space: nowrap;
}

.article-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hf-border);
  color: #5A6779;
  vertical-align: top;
}

.article-body table tbody tr:nth-child(even) {
  background: rgba(249, 249, 255, 0.6);
}

.article-body table tbody tr:hover {
  background: rgba(254, 79, 112, 0.04);
}

.article-body table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .table-scroll-wrap {
    margin: 20px 0;
  }

  .article-body table {
    font-size: 13.5px;
  }

  .article-body table th,
  .article-body table td {
    padding: 10px 12px;
  }
}

.mid-guide-callout {
  margin: 32px 0;
  padding: 26px;
  border-radius: var(--hf-radius-md);
  border: 1px solid var(--hf-border);
  background: linear-gradient(135deg, rgba(254, 79, 112, 0.05), rgba(255, 163, 135, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.article-footer-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  margin-top: 32px;
  border-top: 1px solid var(--hf-border);
  border-bottom: 1px solid var(--hf-border);
}

.article-footer-tags .tag-cloud {
  justify-content: flex-start;
}

.article-footer-tags .header-socials {
  display: flex;
}

.author-bio-card p {
  font-size: 14px;
}

.author-bio-card {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  background: var(--hf-surface);
  display: flex;
  align-items: center;
  gap: 22px;
}

.author-bio-card img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.next-article-card {
  margin-top: 32px;
  padding: 26px;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: var(--hf-transition);
}

.next-article-card:hover {
  box-shadow: var(--hf-shadow-sm);
  border-color: var(--hf-primary);
}

.next-article-thumb {
  width: 96px;
  height: 76px;
  border-radius: var(--hf-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.next-article-info {
  flex: 1;
  min-width: 0;
}

.next-article-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hf-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   11. Contact Us & Privacy Policy
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  align-items: start;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
}

.contact-info-card {
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: var(--hf-white);
  height: 100%;
  box-shadow: 0 2px 10px rgba(32, 54, 86, 0.03);
}

.contact-info-card--full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.contact-info-card h4 {
  font-size: 1.08rem;
  color: var(--hf-ink);
}

.contact-info-card p {
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .contact-info-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .contact-info-card--full {
    flex-direction: column;
  }
}

.contact-form-card .section-title-wrap {
  margin-bottom: 24px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-image: var(--hf-gradient);
  color: var(--hf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-form-card {
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  padding: 36px;
  background: var(--hf-white);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--hf-ink);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-pill);
  padding: 11px 20px;
  font-size: 14.5px;
  color: var(--hf-ink);
  outline: none;
  background: var(--hf-white);
  transition: var(--hf-transition);
}

textarea.form-control {
  border-radius: var(--hf-radius-md);
  padding: 14px 20px;
  min-height: 140px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--hf-primary);
  box-shadow: 0 0 0 3px rgba(254, 79, 112, 0.1);
}

.privacy-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.privacy-layout .toc-box {
  position: sticky;
  top: 90px;
}

#categoryCount {
  font-size: 14px;
  font-weight: 500;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.privacy-card {
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  padding: 38px;
  background: var(--hf-white);
}

.privacy-section {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--hf-border);
}

.privacy-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. Site Footer & Back to Top
   -------------------------------------------------------------------------- */
/* Featured Stories Strip (Same 6-col UI with Hover Title & Details) */
.instagram-strip {
  position: relative;
  padding: 20px 0 46px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.instagram-item {
  position: relative;
  display: block;
  border-radius: var(--hf-radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--hf-ink);
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instagram-item:hover img {
  transform: scale(1.08);
}

.featured-strip-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 54, 86, 0.8);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.instagram-item:hover .featured-strip-overlay,
.instagram-item:focus-visible .featured-strip-overlay {
  opacity: 1;
}

.featured-strip-overlay .category-badge {
  align-self: flex-start;
  font-size: 10px;
  padding: 4px 9px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.featured-strip-title {
  font-family: var(--hf-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hf-white);
  margin: auto 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-strip-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-footer {
  border-top: 1px solid var(--hf-border);
  padding: 34px 0;
  background: var(--hf-white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 13.5px;
  color: var(--hf-text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
}

.footer-links a {
  color: var(--hf-text);
}

.footer-links a:hover {
  color: var(--hf-primary);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--hf-radius-pill);
  border: 1px solid var(--hf-border);
  font-size: 13px;
  color: var(--hf-text);
  transition: var(--hf-transition);
}

.back-to-top:hover {
  border-color: var(--hf-primary);
  color: var(--hf-primary);
}

/* --------------------------------------------------------------------------
   13. Utilities & Keyframe Animations
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

.toast-notice {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--hf-ink);
  color: var(--hf-white);
  padding: 14px 22px;
  border-radius: var(--hf-radius-pill);
  font-size: 14px;
  box-shadow: var(--hf-shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: var(--hf-transition);
}

.toast-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* ==========================================================================
   PART 2: RESPONSIVE MEDIA QUERIES (DESKTOP-DOWN BREAKPOINTS)
   ========================================================================== */

/* 1. Tablet Landscape / Small Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
  .header-bar-inner {
    gap: 12px;
  }

  .brand-logo {
    font-size: 1.45rem;
    white-space: nowrap;
  }

  .nav-menu {
    gap: 0;
  }

  .nav-link {
    padding: 7px 9px;
    font-size: 12.5px;
  }

  .hero-carousel-section {
    padding: 22px 15px 10px;
  }

  .main-content {
    padding: 34px 0 52px;
  }

  .layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

  .featured-post-card {
    flex: 0 0 calc((100% - 30px) / 3);
  }

  .posts-grid-2,
  .posts-grid-3 {
    gap: 22px;
  }

  .posts-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .posts-grid-3 .post-card.is-wide-card {
    grid-column: span 2;
    min-height: 260px;
    height: auto;
  }

  .posts-grid-3 .post-card.is-wide-card .post-card-thumb {
    width: 44%;
    min-width: 44%;
  }

  .posts-grid-3 .post-card.is-wide-card .post-card-body {
    padding: 20px 22px;
  }

  .posts-grid-3 .post-card.is-wide-card .post-card-title {
    font-size: 1.2rem;
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card {
    grid-column: span 1;
    flex-direction: column;
    height: auto;
    min-height: 280px;
    position: relative;
    background-color: var(--hf-ink);
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 100%;
    height: 100%;
    z-index: 1;
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(32, 54, 86, 0.14) 15%, rgba(32, 54, 86, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-body {
    position: relative;
    z-index: 2;
    justify-content: flex-end;
    padding: 64px 18px 16px;
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-meta-row,
  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-excerpt,
  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-share-link,
  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-more-link {
    color: rgba(255, 255, 255, 0.85);
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-title {
    font-size: 1.1rem;
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-title a {
    color: var(--hf-white);
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-footer {
    border-top-color: rgba(255, 255, 255, 0.18);
  }

  #categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) {
    min-height: 280px;
  }
}

/* 2. Intermediate Tablet (max-width: 900px) */
@media (max-width: 900px) {

  .layout-with-sidebar,
  .contact-grid,
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sidebar {
    position: static;
    gap: 24px;
  }

  .privacy-layout aside.toc-box {
    position: static !important;
  }

  .instagram-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 3. Tablet Portrait (max-width: 860px) */
@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .header-actions [data-open-drawer] {
    display: inline-flex;
  }

  .header-bar-inner {
    min-height: 64px;
  }

  .article-head h1,
  .article-title {
    font-size: 2rem;
  }

  .article-head .lead {
    font-size: 1.02rem;
  }
}

/* 4. Mobile Landscape / Small Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .breadcrumb,
  .article-head br {
    display: none;
  }

  .hero-carousel-section {
    padding: 10px 12px 4px;
  }

  .hero-carousel-dots {
    margin-top: 10px;
  }

  .featured-post-card {
    flex: 0 0 calc((100% - 12px) / 2);
    height: 250px;
  }

  .layout-with-sidebar,
  .contact-grid,
  .privacy-layout {
    gap: 18px;
  }

  .section-header {
    margin-bottom: 12px;
  }

  .section-title {
    font-size: 1.18rem;
  }

  .article-head {
    margin-bottom: 8px;
  }

  .article-head .category-badge {
    margin-bottom: 8px;
  }

  .article-head h1,
  .article-title {
    font-size: 1.48rem;
    margin-bottom: 8px;
  }

  .emerald-author-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .author-meta-left {
    justify-content: flex-start;
    min-width: 0;
  }

  .author-meta-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
  }

  .author-meta-sep {
    display: none;
  }

  .prose.rich-text.article-body,
  .article-prose {
    font-size: 14px;
    line-height: 1.62;
  }

  .prose.rich-text.article-body p,
  .article-prose p {
    margin-bottom: 8px;
  }

  .prose.rich-text.article-body h2,
  .article-prose h2 {
    font-size: 1.18rem;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .site-footer {
    padding: 14px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* 5. Medium Mobile / Horizontal Cards (max-width: 680px) */
@media (max-width: 680px) {
  .search-results-list {
    gap: 14px;
  }

  .search-results-list .post-card {
    flex-direction: column;
  }

  .search-results-list .post-card-thumb {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 180px;
  }

  .posts-grid-2,
  .posts-grid-3,
  .form-grid-2,
  .mid-trending-list,
  .editors-pick-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .editors-pick-section {
    margin-bottom: 22px;
  }

  .editors-pick-box {
    padding: 12px;
  }

  .editors-pick-lead-thumb {
    height: 185px;
    margin-bottom: 12px;
  }

  .editors-pick-item {
    padding: 10px 0;
    gap: 12px;
  }

  .editors-pick-item-thumb {
    width: 84px;
    height: 64px;
  }

  .posts-grid-3 .post-card.is-wide-card,
  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card {
    grid-column: span 1;
    flex-direction: column;
    height: auto;
    min-height: 0;
    background-color: var(--hf-white);
  }

  .posts-grid-3 .post-card.is-wide-card .post-card-thumb,
  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-thumb {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 180px;
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-thumb::after {
    display: none;
  }

  .posts-grid-3 .post-card.is-wide-card .post-card-body,
  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-body {
    padding: 12px;
  }

  .posts-grid-3 .post-card.is-wide-card .post-card-title,
  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-title {
    font-size: 1rem;
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-meta-row,
  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-excerpt,
  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-share-link,
  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-more-link {
    color: var(--hf-text);
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-title a {
    color: var(--hf-ink);
  }

  #categoryPostsGrid.posts-grid-3 .post-card.is-full-card .post-card-footer {
    border-top-color: var(--hf-border);
  }

  #categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) {
    min-height: 250px;
  }

  #categoryPostsGrid.posts-grid-3 .post-card:not(.is-wide-card):not(.is-standard-card) .post-card-body {
    padding: 58px 14px 12px;
  }

  .emerald-key-takeaways,
  .takeaways-box,
  .emerald-toc.toc-panel {
    padding: 12px;
    margin-bottom: 12px;
  }

  .mid-trending-box {
    padding: 12px;
    margin: 14px 0;
  }

  .mid-guide-callout,
  .next-article-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    gap: 10px;
    margin-top: 14px;
  }

  .next-article-thumb {
    width: 100%;
    height: 150px;
  }

  .author-bio-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 14px;
    gap: 10px;
    margin-top: 14px;
  }

  .article-footer-tags {
    padding: 12px 0;
    margin-top: 16px;
    gap: 10px;
  }

  .related-posts-section {
    margin-top: 16px;
    padding-top: 14px;
  }
}

/* 6. Mobile Devices & Phones (max-width: 640px) */
@media (max-width: 640px) {
  body {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .main-content {
    padding: 12px 0 22px;
  }

  .page-hero-banner,
  .search-page-header {
    padding: 16px 0;
  }

  .page-hero-title {
    font-size: 1.35rem;
    margin-bottom: 4px;
  }

  .page-hero-desc {
    font-size: 13px;
  }

  .post-card-thumb {
    height: 165px;
  }

  .post-card-thumb .category-badge {
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    font-size: 11.5px;
  }

  .contact-form-card,
  .privacy-card {
    padding: 14px 12px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    font-size: 12px;
  }

  .footer-copy {
    font-size: 12px;
  }
}

/* 7. Mobile Intermediate (max-width: 540px) */
@media (max-width: 540px) {
  .hero-carousel-section {
    padding: 10px 12px 2px;
  }

  .instagram-strip {
    padding: 10px 0 18px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .featured-post-card {
    flex: 0 0 100%;
    height: 220px;
  }

  .post-card-body {
    padding: 12px;
  }

  .post-meta-row {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .post-card-title {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .post-card-excerpt {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .post-card-footer {
    padding-top: 10px;
  }

  .article-head h1,
  .article-title {
    font-size: 1.32rem;
    line-height: 1.28;
  }

  .article-head .lead {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0;
  }

  .emerald-author-block .category-badge {
    font-size: 11.5px;
    padding: 5px 11px;
  }

  .prose.rich-text.article-body blockquote,
  .article-prose blockquote {
    padding: 12px;
    font-size: 0.92rem;
    margin: 14px 0;
  }
}

/* 8. Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .header-bar-inner {
    min-height: 50px;
  }

  .brand-logo {
    font-size: 1.2rem;
  }

  .icon-btn-circle {
    width: 30px;
    height: 30px;
    font-size: 12.5px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .post-card-title {
    font-size: 0.96rem;
  }

  .emerald-author-block {
    gap: 6px 8px;
    font-size: 12px;
    margin-bottom: 8px;
  }

  .takeaways-list li,
  .toc-links a {
    font-size: 13px;
  }

  .search-form {
    padding: 4px 4px 4px 12px;
  }

  .search-form .btn-default {
    padding: 7px 14px;
    font-size: 12.5px;
  }

  .widget {
    padding: 12px;
  }

  .widget-header {
    margin-bottom: 12px;
  }

  .popular-post-item {
    padding: 8px 0;
    gap: 10px;
  }

  .sidebar {
    gap: 12px;
  }

  .pagination-wrap {
    margin-top: 18px;
  }
}