/**
 * Custom Styles for Financial Site Theme - Figma Design Implementation
 *
 * @package Financial_Site_Theme
 * Colors:
 * - Primary: #2A3A50
 * - Grey: #747474
 * - Grey Stroke: #E5E5E5
 * - White: #FFFFFF
 * - Light Grey BG: #F7F9FB
 * - Footer BG: #EFF3F7
 */

/* ==========================================================================
   CSS VARIABLES - Theme Design Tokens
   ========================================================================== */
:root {
  /* Colors */
  --theme-primary: #2a3a50;
  --theme-grey: #747474;
  --theme-grey-stroke: #e5e5e5;
  --theme-white: #ffffff;
  --theme-light-grey: #f7f9fb;
  --theme-footer-bg: #eff3f7;
  --theme-green: #f1ffe9;
  --theme-blue: #f0f9ff;
  --theme-pink: #fcf2ff;
  --theme-link: #0066cc;
  --theme-link-hover: #004499;
  --theme-entry-title: #0444ac;

  /* Typography */
  --theme-font:
    "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0px 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0px 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0px 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Responsive layout system */
  --site-max-width: 1440px;
  --site-padding-desktop: 64px;
  --site-padding-tablet: 40px;
  --site-padding-mobile: 24px;
  --site-padding-small: 16px;

  /* Blog Page Specific */
  --blog-page-max-width: 1440px;
  --blog-inner-width: 1708px;
  --blog-sidebar-width: 110px;
  --blog-content-gap: 32px;
  --blog-badge-color: #d23197;
  --blog-title-color: #0d0d0d;
  --blog-excerpt-color: #585757;
}

/* ==========================================================================
   FULL WIDTH SECTIONS - Global Overrides
   ========================================================================== */

/* Make all Elementor sections full width */
.elementor-section {
  width: 100% !important;
  max-width: 100% !important;
}

/* Elementor top-level sections should be full width */
.elementor-top-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* Ensure page wrapper doesn't constrain content */
.site-main,
.entry-content,
.page-content,
#content,
#primary,
.elementor {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* WordPress page body full width */
body.page,
body.elementor-page {
  overflow-x: hidden;
}

body.page .site-content,
body.elementor-page .site-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Remove any default WordPress content constraints */
.wp-block-group,
.wp-block-cover {
  max-width: 100% !important;
}

/* Elementor page wrapper full width */
.elementor-page-wrapper,
#page.site.elementor-page-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

/* Homepage specific stat card - base styles */
.homepage-stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transition: all var(--transition-normal);
}

.homepage-stat-number,
.homepage-stat-label {
  display: inline;
  font-size: 24px;
  font-weight: 600;
  color: #0d0d0d;
  line-height: 1.2;
}

.homepage-stat-number {
  margin-right: 8px;
}

/* Elementor editor active states */
.elementor-editor-active .hero-section,
.elementor-editor-active .stats-section {
  font-size: 24px;
  font-weight: 600;
  color: #0d0d0d;
}

/* Elementor containers - Full Width Override */
.elementor-section.elementor-section-boxed > .elementor-container,
.elementor-section.elementor-section-boxed
  > .elementor-container
  > .elementor-row {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Full width sections for homepage */
.elementor-section.elementor-section-full_width > .elementor-container {
  max-width: 100%;
  width: 100%;
}

/* Full width inner sections */
.elementor-inner-section > .elementor-container {
  max-width: 100%;
}

/* Elementor buttons use theme styling */
.elementor-button {
  font-family: var(--theme-font) !important;
  border-radius: 100px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.elementor-button-primary {
  background-color: var(--theme-primary) !important;
}

.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42, 58, 80, 0.3);
}

/* Remove default Elementor margins */
.elementor-widget:not(:last-child) {
  margin-bottom: 0;
}

/* Ensure Elementor columns have proper spacing */
.elementor-column-gap-default
  > .elementor-row
  > .elementor-column
  > .elementor-element-populated {
  padding: 0 15px;
}

/* Elementor text editor inherits theme colors */
.elementor-text-editor {
  color: var(--theme-grey);
}

.elementor-text-editor h1,
.elementor-text-editor h2,
.elementor-text-editor h3,
.elementor-text-editor h4,
.elementor-text-editor h5,
.elementor-text-editor h6 {
  color: var(--theme-primary);
  font-family: var(--theme-font);
}

/* Prevent Elementor from overriding theme form styles */
.elementor-field-group input,
.elementor-field-group textarea,
.elementor-field-group select {
  font-family: var(--theme-font);
  border-radius: 8px;
}

/* Elementor icons inherit theme colors */
.elementor-icon {
  color: var(--theme-primary);
}

/* Make Elementor animations respect theme timing */
.elementor-invisible {
  transition: all 0.3s ease;
}

/* Responsive Elementor breakpoints match theme */
@media (max-width: 1024px) {
  .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100%;
    width: 100%;
    padding: 0 40px;
  }

  .elementor-column-gap-default
    > .elementor-row
    > .elementor-column
    > .elementor-element-populated {
    padding: 0 12px;
  }
}

@media (max-width: 768px) {
  .elementor-section.elementor-section-boxed > .elementor-container {
    padding: 0 24px;
  }

  .elementor-column-gap-default
    > .elementor-row
    > .elementor-column
    > .elementor-element-populated {
    padding: 0 8px;
  }

  /* Stack Elementor columns on mobile */
  .elementor-column {
    width: 100% !important;
  }
}

/* Prevent conflicts between Elementor and theme hero section */
.elementor-page .hero-section:not(.elementor-element) {
  display: block;
}

/* Allow Elementor to override theme sections when building pages */
.elementor-page .elementor-top-section {
  z-index: 1;
}

/* Ensure theme footer doesn't conflict with Elementor footer */
.elementor-location-footer .site-footer {
  display: none;
}

/* Ensure theme header doesn't conflict with Elementor header */
.elementor-location-header .main-header {
  display: none;
}

/* ==========================================================================
   HEADER - Figma Design
   ========================================================================== */

.site-header-figma {
  background: white;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Account for WP admin bar when logged in */
.admin-bar .site-header-figma {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header-figma {
    top: 46px;
  }
}

.header-background-container {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto;
  padding: 0 20px;
}

.header-pill-container {
  background: #f7f9fb;
  border-radius: 5000px;
  box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.06);
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo Section */
.header-left-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.site-branding-figma {
  padding-left: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.logo-text {
  height: 14px;
  width: auto;
  aspect-ratio: 129.814 / 20.232;
  object-fit: contain;
  display: block;
}

.logo-iq {
  height: 11.5px;
  width: auto;
  aspect-ratio: 20.329 / 16.569;
  object-fit: contain;
  display: block;
}

.header-vertical-divider {
  width: 1px;
  height: 14px;
  background: rgba(22, 110, 63, 0);
  opacity: 0.2;
}

/* Navigation */
.main-navigation-figma {
  flex: 1;
}

.nav-links-figma {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link-figma {
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.26px;
  color: #747474;
  text-decoration: none;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

.nav-link-figma:hover {
  color: #2a3a50;
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dropdown-icon {
  width: 10px;
  height: 12px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 8px 14px;
  color: #747474;
  text-decoration: none;
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.dropdown-item:hover {
  background: #f7f9fb;
  color: #2a3a50;
}

/* Mobile Menu Toggle */
.menu-toggle-figma {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
  -webkit-user-select: none;
  user-select: none;
}

.menu-toggle-figma:active {
  opacity: 0.7;
}

.menu-icon {
  width: 24px;
  height: 2px;
  background: #2a3a50;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Search Section */
.header-right-section {
  flex-shrink: 0;
}

.search-container-figma {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 50px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 340px;
  transition: all 0.2s ease;
}

.search-container-figma:focus-within {
  border-color: #2a3a50;
  box-shadow: 0 2px 8px rgba(42, 58, 80, 0.1);
}

.search-form-figma {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.search-input-figma {
  font-family: "Lexend", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: -0.24px;
  color: #2a3a50;
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  padding: 2px 0;
}

.search-input-figma::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.search-button-figma {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.search-button-figma:hover {
  opacity: 0.7;
}

.search-icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   FOOTER - Figma Design
   ========================================================================== */

.site-footer-figma {
  background: #eff3f7;
  position: relative;
  padding-top: 64px;
  padding-bottom: 60px;
}

.footer-main-section {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto;
  padding: 0 64px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 60px;
  justify-content: space-between;
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-heading {
  font-family: "Lexend", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: #2a3a50;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-link {
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.021px;
  color: #747474;
  text-decoration: none;
  transition: color 0.3s ease;
  margin: 0;
}

.footer-link:hover {
  color: #2a3a50;
}

/* Contact & Social Column */
.footer-contact-column {
  align-items: flex-end;
  width: 233px;
}

.footer-social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social-link {
  display: block;
  width: 32px;
  height: 32px;
}

.social-icon {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 0.7;
}

.footer-contact-info {
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.021px;
  color: #747474;
  text-align: right;
  margin: 0;
}

/* Copyright Section */
.footer-copyright-section {
  max-width: 1199.06px;
  margin: 0 auto;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.copyright-divider {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
}

.copyright-text {
  font-family: "Lexend", sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: normal;
  color: #2a3a50;
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Tablet (iPad) - 1024px and below */
@media (max-width: 1024px) {
  .header-pill-container {
    padding: 8px 12px;
  }

  .search-container-figma {
    width: 320px;
  }

  .nav-links-figma {
    gap: 0;
  }

  .nav-link-figma {
    font-size: 14px;
    padding: 8px 6px;
  }

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

  .footer-contact-column {
    grid-column: span 3;
    align-items: center;
    width: 100%;
    text-align: center;
  }

  .footer-social-icons {
    justify-content: center;
  }

  .footer-contact-info {
    text-align: center;
  }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
  .site-header-figma {
    padding: 10px 0;
    background: #ffffff;
    position: relative;
  }

  .header-background-container {
    padding: 0 16px;
  }

  .header-pill-container {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
  }

  /* Make header-left-section a flex container that exposes children */
  .header-left-section {
    display: contents;
  }

  /* Logo on the left */
  .site-branding-figma {
    padding-left: 0;
    width: auto;
    text-align: left;
    order: 1;
    flex: 0 0 auto;
  }

  .logo-link {
    justify-content: flex-start;
  }

  .header-vertical-divider {
    display: none;
  }

  /* Search bar in the middle */
  .header-right-section {
    order: 2;
    flex: 1;
    max-width: none;
    display: flex;
    justify-content: center;
    margin-top: 0;
  }

  .search-container-figma {
    width: 100%;
    margin: 0;
    background: #f7f9fb;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    padding: 6px 12px;
  }

  .search-form-figma {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .search-input-figma {
    font-size: 13px;
    padding: 2px 0;
    min-width: 0;
    width: 100%;
  }

  .search-input-figma::placeholder {
    color: rgba(0, 0, 0, 0.35);
  }

  .search-icon {
    width: 16px;
    height: 16px;
  }

  /* Hamburger menu on the right */
  .main-navigation-figma {
    width: auto;
    order: 3;
    display: flex;
    align-items: center;
    position: static;
    flex: 0 0 auto;
  }

  .menu-toggle-figma {
    display: flex;
    padding: 10px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }

  .menu-toggle-figma.active .menu-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle-figma.active .menu-icon:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle-figma.active .menu-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .menu-icon {
    width: 20px;
    height: 2px;
  }

  /* Mobile Navigation Drawer */
  .nav-links-figma {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0 16px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.3s ease,
      opacity 0.3s ease,
      visibility 0.3s ease,
      padding 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e5e5;
  }

  .nav-links-figma.active {
    display: flex;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    padding: 16px;
  }

  .nav-link-figma {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #2a3a50;
  }

  .nav-link-figma:last-child {
    border-bottom: none;
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
  }

  /* Mobile dropdown - different from desktop */
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    max-height: none;
    overflow: visible;
    transform: none;
    box-shadow: none;
    background: #f7f9fb;
    padding: 0;
    border-radius: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    width: 100%;
  }

  /* Show dropdown when parent has active class - no hover behavior on mobile */
  .nav-item-dropdown.active .dropdown-menu {
    display: block;
    padding: 8px 0;
  }

  /* Disable hover behavior on mobile - dropdown only works with click */
  .nav-item-dropdown:hover .dropdown-menu {
    display: none;
  }

  .nav-item-dropdown.active:hover .dropdown-menu {
    display: block;
    padding: 8px 0;
  }

  .dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: none;
    display: block;
    width: 100%;
  }

  .dropdown-item:hover {
    background: rgba(42, 58, 80, 0.05);
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  /* Footer Mobile */
  .site-footer-figma {
    padding: 40px 0;
  }

  .footer-main-section {
    padding: 0 20px;
  }

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

  .footer-column {
    text-align: center;
  }

  .footer-contact-column {
    grid-column: 1;
    align-items: center;
  }

  .footer-heading {
    font-size: 20px;
  }

  .footer-copyright-section {
    margin-top: 30px;
  }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
  .site-header-figma {
    padding: 8px 0;
  }

  .header-background-container {
    padding: 0 12px;
  }

  .header-pill-container {
    gap: 6px;
  }

  .logo-text {
    height: 11px;
  }

  .logo-iq {
    height: 9px;
  }

  .logo-link {
    gap: 2px;
  }

  .search-container-figma {
    padding: 5px 10px;
  }

  .search-input-figma {
    font-size: 12px;
  }

  .search-icon {
    width: 14px;
    height: 14px;
  }

  .menu-toggle-figma {
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
  }

  .menu-icon {
    width: 18px;
  }

  .nav-links-figma {
    padding: 0 12px;
  }

  .nav-links-figma.active {
    padding: 12px;
  }

  .nav-link-figma {
    font-size: 14px;
    padding: 12px 0;
  }

  .footer-heading {
    font-size: 18px;
  }

  .footer-link {
    font-size: 13px;
  }
}

/* Extra Small Mobile - 360px and below */
@media (max-width: 360px) {
  .header-background-container {
    padding: 0 8px;
  }

  .header-pill-container {
    gap: 4px;
  }

  .logo-text {
    height: 10px;
  }

  .logo-iq {
    height: 8px;
  }

  .search-container-figma {
    padding: 4px 8px;
  }

  .search-input-figma {
    font-size: 11px;
  }

  .search-icon {
    width: 12px;
    height: 12px;
  }

  .menu-toggle-figma {
    padding: 6px;
    min-width: 36px;
    min-height: 36px;
  }

  .menu-icon {
    width: 16px;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.skip-link:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto;
  clip-path: none;
  color: #2a3a50;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   CONTENT AREA
   ========================================================================== */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  min-height: 60vh;
}

.container {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HOMEPAGE STYLES
   ========================================================================== */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #e8f4f8 0%, #f5f5f5 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-title {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #2a3a50;
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: #2a3a50;
  font-weight: 600;
}

.hero-description {
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.67;
  letter-spacing: -0.2px;
  color: #747474;
  margin-bottom: 32px;
  max-width: 592px;
}

.hero-cta {
  display: inline-block;
  background: #2a3a50;
  color: #fff;
  font-family: "Lexend", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  padding: 15px 40px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(42, 58, 80, 0.2);
}

.hero-cta:hover {
  background: #1f2d3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42, 58, 80, 0.3);
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-demo-container {
  width: 100%;
}

.demo-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 418 / 288;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    0px 0px 0px 1px rgba(94, 90, 90, 0.1),
    0px 16px 40px -8px rgba(0, 0, 0, 0.1);
  filter: grayscale(1) brightness(0.8);
  transition: filter 0.3s ease;
}

.demo-video-wrapper.playing {
  filter: grayscale(0) brightness(1);
}

/* Chart Background */
.chart-background {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%) skewX(0.712deg);
  width: 415px;
  height: 288px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.demo-video-wrapper.playing .chart-background {
  opacity: 0;
  pointer-events: none;
}

.chart-bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  height: 171px;
  width: 298px;
  margin-bottom: 8px;
}

.chart-bar {
  display: flex;
  flex-direction: column;
  gap: 4.66px;
  align-items: center;
  width: 30.31px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar .bar-fill {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.17px;
}

.chart-bar .bar-fill::before {
  content: "";
  background: #b1b8c2;
  height: calc(var(--bar-height) * 1.53);
  width: 100%;
}

.chart-bar .bar-fill::after {
  content: "";
  background: #2a3a50;
  height: calc(var(--bar-height) * 0.17);
  width: 100%;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  width: 322px;
  font-size: 10.53px;
  color: #747474;
  font-weight: 500;
  text-align: center;
  line-height: 17.49px;
  gap: 21px;
}

.chart-labels span {
  flex: 1;
  white-space: nowrap;
}

/* Video Overlay */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.33);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.demo-video-wrapper.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.watch-demo-btn {
  background: #2a3a50;
  color: white;
  border: none;
  border-radius: 500px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Lexend", sans-serif;
  white-space: nowrap;
}

.watch-demo-btn:hover {
  background: #3a4a60;
  transform: scale(1.05);
}

.watch-demo-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.watch-demo-btn:hover {
  background: #3a4a60;
  transform: scale(1.05);
}

.watch-demo-btn svg {
  width: 24px;
  height: 24px;
}

/* YouTube Player */
.youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.demo-video-wrapper.playing .youtube-player {
  opacity: 1;
  pointer-events: all;
}

.demo-subtitle {
  font-family: "Lexend", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #2a3a50;
  text-align: center;
  margin-top: 24px;
}

/* City Skyline Shadow */
.hero-city-shadow {
  width: 100%;
  height: 120px;
  margin-top: -1px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-city-shadow svg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.15;
}

/* Stats Section */
.stats-section {
  padding: 64px 0;
  background: #fff;
}

.stats-container {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto 64px;
  padding: 0 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  background: transparent;
  padding: 0;
  border-radius: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.stat-content {
  flex: 1;
  margin-bottom: 16px;
}

.stat-number {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: #2a3a50;
  margin-bottom: 0;
}

.stat-label {
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #2a3a50;
  margin: 8px 0;
}

.stat-description {
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #747474;
  margin: 0;
}

.stat-source {
  padding: 4px 12px;
  background: #f7f9fb;
  border-radius: 100px;
  width: fit-content;
}

.source-link {
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #747474;
  text-decoration: none;
}

.stat-link {
  font-family: "Lexend", sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #2a3a50;
  text-decoration: underline;
}

/* Weather Widget - Remove it */
.weather-widget {
  display: none;
}

/* Features Section - Now part of stats */
.features-container {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.feature-card {
  text-align: left;
  padding: 32px 24px;
  border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0px 1.762px 12.337px 0px rgba(0, 0, 0, 0.07);
}

.feature-card:nth-child(1) {
  background: #f1ffe9; /* Light Green */
}

.feature-card:nth-child(2) {
  background: #f0f9ff; /* Light Blue */
}

.feature-card:nth-child(3) {
  background: #fcf2ff; /* Light Pink */
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.12);
}

.feature-title {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 35px;
  letter-spacing: -0.9px;
  color: #2a3a50;
  margin-bottom: 12px;
}

.feature-description {
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: -0.9px;
  color: #747474;
}

/* Recommended Posts Section */
.recommended-posts-section {
  padding: 64px 0;
  background: #fff;
}

.section-header {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto 48px;
  padding: 0 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 65px;
  letter-spacing: -0.9px;
  color: #2a3a50;
}

.btn-view-all {
  background: #2a3a50;
  color: #fff;
  font-family: "Lexend", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  padding: 15px 40px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-view-all:hover {
  background: #1f2d3f;
  transform: translateY(-2px);
}

.posts-grid {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 32px;
}

.post-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-thumbnail {
  width: 100%;
  height: 202px;
  overflow: hidden;
  background: #e5e5e5;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid #e5e5e5;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumbnail.placeholder .thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e5e5e5 25%, #f0f0f0 50%, #e5e5e5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.post-meta-badge {
  position: static;
  margin-bottom: 16px;
}

.read-time {
  background: transparent;
  color: #e74c3c;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 10px;
  line-height: 24px;
  letter-spacing: 1px;
  padding: 0;
  border-radius: 0;
  text-transform: uppercase;
  display: inline-block;
}

.post-content {
  padding: 0;
  flex: 1;
}

.post-title {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: -0.9px;
  color: #2a3a50;
  margin: 0;
}

.post-title a {
  color: #2a3a50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #1f2d3f;
}

/* Responsive Styles for Homepage */
@media (max-width: 1024px) {
  /* Header */
  .main-header {
    padding: 20px 40px;
  }

  .main-navigation ul li {
    margin-left: 32px;
  }

  /* Hero Section */
  .hero-section {
    padding: 60px 0 80px;
  }

  .hero-container {
    padding: 0 40px;
    gap: 48px;
  }

  .hero-title {
    font-size: 48px;
    line-height: 60px;
    letter-spacing: -1.5px;
  }

  .hero-description {
    font-size: 16px;
    line-height: 24px;
  }

  .video-demo-container {
    max-width: 100%;
  }

  /* Stats Section */
  .stats-section {
    padding: 60px 0;
  }

  .stats-container {
    padding: 0 40px;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .features-container {
    padding: 0 40px;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Recommended Posts */
  .recommended-posts-section {
    padding: 60px 0;
  }

  .section-header {
    padding: 0 40px;
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 40px;
    line-height: 50px;
  }

  .posts-grid {
    padding: 0 40px;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 24px;
  }

  /* Footer */
  .site-footer .footer-content {
    padding: 0 40px;
  }

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

  .weather-widget {
    position: static;
    margin: 20px auto;
    width: fit-content;
  }
}

@media (max-width: 768px) {
  /* Header */
  .main-header {
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .main-logo img {
    height: 32px;
  }

  .main-navigation {
    width: 100%;
    overflow-x: auto;
  }

  .main-navigation ul {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .main-navigation ul li {
    margin-left: 0;
    margin-right: 24px;
  }

  .main-navigation ul li:first-child {
    margin-left: 0;
  }

  .main-navigation ul li a {
    font-size: 14px;
  }

  /* Dropdown positioning on mobile */
  .dropdown-menu {
    position: absolute;
    left: 0;
    min-width: 200px;
  }

  /* Hero Section */
  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-container {
    padding: 0 24px;
    gap: 32px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 42px;
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 14px;
    line-height: 22px;
  }

  .demo-video-wrapper {
    aspect-ratio: 418 / 288;
  }

  .chart-background {
    width: 90%;
    height: auto;
    aspect-ratio: 415 / 288;
    padding: 16px;
  }

  .chart-bars-container {
    width: 100%;
    height: 140px;
    gap: 16px;
  }

  .chart-labels {
    width: 100%;
    font-size: 9px;
    gap: 10px;
  }

  .watch-demo-btn {
    font-size: 14px;
    padding: 6px 10px 6px 14px;
  }

  .watch-demo-btn svg {
    width: 20px;
    height: 20px;
  }

  .demo-subtitle {
    font-size: 14px;
    margin-top: 16px;
  }

  /* Stats Section */
  .stats-section {
    padding: 48px 0;
  }

  .stats-container {
    padding: 0 24px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-card {
    padding: 24px;
  }

  .stat-number {
    font-size: 40px;
    line-height: 50px;
  }

  .stat-label {
    font-size: 14px;
    line-height: 20px;
  }

  /* Features Section */
  .features-container {
    padding: 0 24px;
    margin-top: 24px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
  }

  .feature-title {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 8px;
  }

  .feature-description {
    font-size: 13px;
    line-height: 20px;
  }

  /* Recommended Posts */
  .recommended-posts-section {
    padding: 48px 0;
  }

  .section-header {
    padding: 0 24px;
    margin-bottom: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-title {
    font-size: 32px;
    line-height: 42px;
  }

  .btn-view-all {
    font-size: 16px;
    padding: 12px 32px;
  }

  .posts-grid {
    padding: 0 24px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .post-thumbnail {
    height: 180px;
    margin-bottom: 20px;
  }

  .post-title {
    font-size: 16px;
    line-height: 22px;
  }

  /* Footer */
  .site-footer {
    padding: 48px 0 32px;
  }

  .site-footer .footer-content {
    padding: 0 24px;
  }

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

  .footer-logo img {
    height: 32px;
  }

  .footer-description {
    font-size: 14px;
    line-height: 22px;
  }

  .footer-column h4 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .footer-column ul li a {
    font-size: 14px;
  }

  .footer-bottom {
    padding: 24px 24px 0;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-copyright {
    font-size: 13px;
  }

  .social-links {
    gap: 16px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
    line-height: 36px;
  }

  .section-title {
    font-size: 28px;
    line-height: 36px;
  }

  .stat-number {
    font-size: 32px;
    line-height: 42px;
  }

  .posts-grid {
    gap: 32px;
  }
}

/* ==========================================================================
   Dictionary / Money Terms Page Styles
   ========================================================================== */

/* Dictionary Hero Section */
/* ==========================================================================
   DICTIONARY / MONEY TERMS - PIXEL PERFECT FIGMA DESIGN
   ========================================================================== */

/* Hero Section with Dot Grid Pattern */
.dictionary-hero-section {
  background: #eff3f7;
  position: relative;
  padding: 48px 0;
  overflow: hidden;
}

.dictionary-hero-wrapper {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  gap: 80px;
  min-height: 400px;
}

/* Dot Grid Background Pattern */
.hero-dot-grid-bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 1171px;
  height: 400px;
  transform: translateX(-50%);
  opacity: 0.5;
  pointer-events: none;
}

.dot-pattern-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero Content Layout */
.hero-content-wrapper {
  display: flex;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-illustration-container {
  position: relative;
  flex: 0 0 auto;
  width: 350px;
  height: 300px;
}

.hero-image {
  position: absolute;
  width: 200px;
  height: 300px;
  border-radius: 12px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.hero-image-left {
  left: 0;
  top: 0;
  transform: rotate(-5deg);
  z-index: 1;
}

.hero-image-center {
  left: 75px;
  top: -20px;
  z-index: 2;
}

.hero-image-right {
  right: 0;
  top: 0;
  transform: rotate(5deg);
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero Badge Card */
.hero-badge-card {
  position: absolute;
  bottom: 0;
  left: 85px;
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 3;
  max-width: 170px;
}

.badge-text {
  font-size: 18px;
  font-weight: 600;
  color: #0d0d0d;
  line-height: 1.3;
  margin: 0;
}

.badge-subtext {
  font-size: 12px;
  color: #747474;
  margin: 6px 0 0 0;
  line-height: 1.4;
}

/* Hero Text Container */
.hero-text-container {
  flex: 1;
  padding-right: 40px;
}

.hero-heading {
  font-size: 64px;
  line-height: 65px;
  color: #2a3a50;
  margin: 0;
  letter-spacing: -0.5px;
}

.hero-heading-light {
  font-weight: 300;
  display: block;
}

.hero-heading-bold {
  font-weight: 600;
  display: block;
}

/* Centered Hero Layout (without images) */
.hero-content-centered {
  justify-content: center;
  text-align: center;
}

.hero-content-centered .hero-text-container {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content-centered .hero-heading {
  text-align: center;
}

.hero-subheading {
  font-family: "Lexend", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--theme-grey, #747474);
  margin: 24px 0 0 0;
  line-height: 1.6;
}

.hero-subheading strong {
  color: var(--theme-primary, #2a3a50);
  font-weight: 600;
}

/* Alphabet Navigation Section */
.alphabet-nav-section {
  background: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 48px 0 32px;
}

.alphabet-nav-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.definitions-heading {
  font-size: 36px;
  font-weight: 600;
  color: #2a3a50;
  margin: 0 0 32px 0;
  letter-spacing: -0.5px;
  line-height: 25px;
}

.alphabet-nav-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.letter-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  color: #747474;
  font-size: 16px;
  font-weight: 400;
  font-family: "Lexend", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 8px;
}

.letter-btn:hover {
  background: rgba(62, 63, 63, 0.04);
  color: rgba(0, 0, 0, 0.6);
}

.letter-btn.active {
  background: #2a3a50;
  border-color: #2a3a50;
  color: white;
}

/* Dictionary Listing Section */
.dictionary-listing-section {
  padding: 64px 0;
  background: white;
}

.dictionary-listing-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.dictionary-listing-main {
  flex: 1;
}

/* Dictionary Entry Styling */
.dictionary-entry {
  padding: 24px 0;
  border-bottom: 1px solid #e5e5e5;
}

.dictionary-entry:first-child {
  padding-top: 0;
}

.entry-title {
  font-size: 24px;
  font-weight: 500;
  color: #0444ac;
  margin: 0 0 8px 0;
  line-height: 25px;
}

.entry-title a {
  color: #0444ac;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-title a:hover {
  color: #0844cc;
}

.entry-content {
  font-size: 16px;
  color: #585757;
  line-height: 26px;
  letter-spacing: -0.32px;
  margin: 0;
}

.entry-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 32px 0 0 0;
}

/* No Entries Message */
.no-entries {
  padding: 48px;
  text-align: center;
  background: #f7f9fb;
  border-radius: 12px;
}

.no-entries p {
  font-size: 16px;
  color: #747474;
  margin: 0 0 16px 0;
}

.no-entries .btn {
  display: inline-block;
  padding: 12px 24px;
  background: #2a3a50;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.no-entries .btn:hover {
  background: #1a2a40;
}

/* Dictionary Pagination */
.dictionary-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 32px 0;
  flex-wrap: wrap;
}

.dictionary-pagination .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #2a3a50;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dictionary-pagination .page-number:hover {
  background: #f7f9fb;
  border-color: #2a3a50;
}

.dictionary-pagination .page-number.active {
  background: #2a3a50;
  border-color: #2a3a50;
  color: white;
}

/* Dictionary Sidebar */
.dictionary-sidebar {
  width: 300px;
}

/* Ad Placeholders */
.ad-placeholder {
  background: #f5f5f5;
  border: 1px dashed #d4d4d4;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #747474;
  font-size: 14px;
}

.ad-large {
  height: 600px;
  width: 300px;
}

.ad-medium {
  height: 250px;
  width: 300px;
}

.ad-size {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* Weather Widget */
.weather-widget {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.weather-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2a3a50;
  margin: 0;
}

.weather-menu-btn {
  background: none;
  border: none;
  color: #747474;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
}

.weather-content {
  font-size: 14px;
}

.weather-day {
  font-size: 14px;
  font-weight: 600;
  color: #2a3a50;
  margin: 12px 0 8px 0;
  text-transform: capitalize;
}

.weather-day:first-child {
  margin-top: 0;
}

.weather-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.weather-icon {
  font-size: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather-temps {
  display: flex;
  gap: 12px;
  flex: 1;
}

.temp-high {
  color: #2a3a50;
  font-weight: 600;
}

.temp-low {
  color: #747474;
}

.weather-status {
  font-size: 12px;
  color: #747474;
  margin: 0;
  white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1440px) {
  .dictionary-hero-wrapper,
  .alphabet-nav-wrapper,
  .dictionary-listing-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .dictionary-hero-wrapper {
    gap: 48px;
  }

  .hero-content-wrapper {
    gap: 48px;
  }

  .hero-illustration-container {
    width: 280px;
    height: 240px;
  }

  .hero-image {
    width: 160px;
    height: 240px;
  }

  .hero-image-center {
    left: 60px;
  }

  .hero-heading {
    font-size: 48px;
  }

  .dictionary-listing-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dictionary-sidebar {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .dictionary-hero-section {
    padding: 32px 0;
  }

  .dictionary-hero-wrapper {
    padding: 0 24px;
    gap: 32px;
    flex-direction: column;
    min-height: auto;
  }

  .hero-content-wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .hero-illustration-container {
    width: 100%;
    height: 200px;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-text-container {
    padding-right: 0;
    text-align: center;
  }

  .hero-heading {
    font-size: 32px;
  }

  .hero-heading-light,
  .hero-heading-bold {
    display: inline;
  }

  .alphabet-nav-wrapper,
  .dictionary-listing-wrapper {
    padding: 0 24px;
  }

  .alphabet-nav-container {
    justify-content: center;
  }

  .letter-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .definitions-heading {
    text-align: center;
  }

  .dictionary-sidebar {
    max-width: 100%;
  }

  .ad-large,
  .ad-medium {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .dictionary-hero-wrapper {
    padding: 0 16px;
  }

  .hero-illustration-container {
    height: 150px;
  }

  .hero-image {
    width: 120px;
    height: 180px;
  }

  .hero-image-left {
    left: -10px;
  }

  .hero-image-right {
    right: -10px;
  }

  .hero-image-center {
    left: 40px;
  }

  .hero-badge-card {
    left: 60px;
    padding: 16px 12px;
    max-width: 140px;
  }

  .badge-text {
    font-size: 14px;
  }

  .hero-heading {
    font-size: 24px;
  }

  .alphabet-nav-wrapper,
  .dictionary-listing-wrapper {
    padding: 0 16px;
  }

  .dictionary-listing-wrapper {
    padding: 32px 16px;
  }

  .definitions-heading {
    font-size: 20px;
  }

  .letter-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .entry-title {
    font-size: 18px;
  }

  .entry-content {
    font-size: 14px;
  }
}

/* Old dictionary styles removed - consolidated in new Money Terms section above */

.dictionary-entry .entry-content p {
  margin-bottom: 16px;
}

.dictionary-entry .entry-content strong,
.dictionary-entry .entry-content em {
  font-style: italic;
  font-weight: 500;
}

.entry-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 32px 0;
}

/* Old sidebar and weather widget styles consolidated above */

/* ==========================================================================
   Single Dictionary Term Page
   ========================================================================== */

/* Layout */
.dict-single-main {
  background: #ffffff;
  padding: 24px 0 0;
}

.dict-single-layout {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto;
  padding: 0 64px;
}

.dict-single-content-area {
  max-width: 880px;
  margin: 0 auto;
}

/* Back link */
.dict-single-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #585757;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}

.dict-single-back:hover {
  color: #0D0D0D;
}

/* Category badge */
.dict-single-category {
  margin-bottom: 16px;
}

.dict-single-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #EEF4FF;
  color: #2563EB;
  border-radius: 100px;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Title */
.dict-single-title {
  font-family: 'Lexend', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 20px;
}

/* Divider */
.dict-single-divider {
  border: none;
  border-top: 2px solid #E5E5E5;
  margin: 0 0 32px;
}

/* Content */
.dict-single-content {
  font-family: 'Lexend', sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 48px;
}

.dict-single-content p {
  margin-bottom: 24px;
}

.dict-single-content h2,
.dict-single-content h3 {
  font-weight: 600;
  color: #0D0D0D;
  margin-top: 36px;
  margin-bottom: 16px;
}

.dict-single-content h2 {
  font-size: 28px;
}

.dict-single-content h3 {
  font-size: 22px;
}

.dict-single-content ul,
.dict-single-content ol {
  margin-left: 24px;
  margin-bottom: 24px;
}

.dict-single-content li {
  margin-bottom: 8px;
}

.dict-single-content a {
  color: #2563EB;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dict-single-content a:hover {
  color: #1D4ED8;
}

/* Alphabet quick nav */
.dict-single-alphabet {
  background: #F8F9FA;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 32px;
}

.dict-alphabet-label {
  display: block;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #585757;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.dict-alphabet-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dict-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #585757;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dict-letter:hover {
  background: #E5E5E5;
  color: #0D0D0D;
}

.dict-letter--active {
  background: #1B2A4A;
  color: #fff;
}

.dict-letter--active:hover {
  background: #2a3a5a;
  color: #fff;
}

/* Previous / Next navigation */
.dict-single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 64px;
}

.dict-nav-prev {
  display: flex;
}

.dict-nav-next {
  display: flex;
  justify-content: flex-end;
}

.dict-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 200px;
}

.dict-nav-link:hover {
  border-color: #1B2A4A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dict-nav-link--next {
  text-align: right;
}

.dict-nav-link svg {
  flex-shrink: 0;
  color: #585757;
}

.dict-nav-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dict-nav-label {
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #585757;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dict-nav-title {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0D0D0D;
}

/* Related Terms */
.dict-single-related {
  padding: 48px 0 80px;
  border-top: 1px solid #E5E5E5;
}

.dict-related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.dict-related-title {
  font-family: 'Lexend', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #0D0D0D;
  margin: 0;
}

.dict-related-viewall {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1B2A4A;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dict-related-viewall:hover {
  background: #2a3a5a;
}

.dict-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dict-related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dict-related-card:hover {
  border-color: #1B2A4A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.dict-related-card-title {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0D0D0D;
  margin: 0;
}

.dict-related-card-excerpt {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #585757;
  margin: 0;
}

.dict-related-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #2563EB;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 1280px) {
  .dict-single-layout {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .dict-single-layout {
    padding: 0 24px;
  }

  .dict-single-title {
    font-size: 32px;
  }

  .dict-single-nav {
    grid-template-columns: 1fr;
  }

  .dict-nav-next {
    justify-content: flex-start;
  }

  .dict-nav-link {
    min-width: unset;
    width: 100%;
  }

  .dict-related-grid {
    grid-template-columns: 1fr;
  }

  .dict-related-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .dict-letter {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .dict-single-layout {
    padding: 0 16px;
  }

  .dict-single-title {
    font-size: 28px;
  }

  .dict-single-content {
    font-size: 16px;
  }
}

/* No Entries Found */
.no-entries {
  text-align: center;
  padding: 64px 24px;
  color: #747474;
}

.no-entries p {
  font-size: 18px;
}

/* Dictionary Responsive Styles */
@media (max-width: 1440px) {
  .dictionary-listing {
    padding: 48px 32px;
    gap: 48px;
  }

  .dictionary-hero-container,
  .alphabet-nav-container {
    padding: 0 32px;
  }
}

@media (max-width: 1024px) {
  .dictionary-listing {
    grid-template-columns: 1fr;
  }

  .dictionary-sidebar {
    max-width: 600px;
    margin: 0 auto;
  }

  .dictionary-hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-illustration {
    flex: 0 0 auto;
  }

  .hero-text h1 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .dictionary-hero {
    padding: 40px 0 32px;
  }

  .dictionary-hero-container,
  .alphabet-nav-container,
  .dictionary-listing {
    padding: 0 24px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .alphabet-nav-container h2 {
    font-size: 20px;
  }

  .alphabet-nav .letter-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .dictionary-entry .entry-title {
    font-size: 20px;
  }

}

@media (max-width: 480px) {
  .alphabet-nav {
    gap: 6px;
  }

  .alphabet-nav .letter-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .dictionary-hero-container {
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

}

/* ==========================================================================
   Homepage Styles - Figma Design Implementation
   ========================================================================== */

.homepage-hero-section {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.7) 100%
    ),
    url("/wp-content/themes/financial-site-theme/assets/images/city.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.homepage-hero-wrapper {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.homepage-hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.homepage-hero-title {
  font-family: "Lexend", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #2a3a50;
  margin: 0;
}

.homepage-hero-highlight {
  color: #2a3a50;
  font-weight: 700;
}

.homepage-hero-description {
  font-size: 16px;
  line-height: 1.6;
  color: #747474;
  margin: 0;
  max-width: 520px;
}

.homepage-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2a3a50;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Lexend", sans-serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: fit-content;
  box-shadow: 0 4px 12px rgba(42, 58, 80, 0.2);
}

.homepage-btn-primary:hover {
  background-color: #1f2d3f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 58, 80, 0.3);
}

.homepage-hero-demo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.homepage-demo-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0px 0px 0px 1px rgba(94, 90, 90, 0.1),
    0px 16px 40px -8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 0 16px; /* white space around video (top/left/right) */
}

.homepage-demo-chart {
  padding: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.homepage-demo-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.homepage-demo-video-container {
  padding: 0;
  border-radius: 8px;
}

.homepage-demo-chart-svg {
  width: 100%;
  height: 260px;
  max-width: 380px;
}

.homepage-demo-video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.homepage-demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 10;
}

.homepage-watch-demo-btn {
  background: #2a3a50;
  color: #ffffff;
  border: none;
  border-radius: 500000px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Lexend", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin: 0 auto;
}

.homepage-watch-demo-btn:hover {
  background: #1f2d3f;
  transform: scale(1.05);
}

.homepage-play-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.homepage-demo-subtitle {
  padding: 16px 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #2a3a50;
  text-align: center;
  margin: 0;
  background: #ffffff;
}

/* Statistics Section */
.homepage-stats-section {
  padding: 64px 64px;
  background: #ffffff;
}

.homepage-stats-grid {
  max-width: 1376px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.homepage-stat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: #f7f9fb;
  border-radius: 12px;
  border: none;
  transition: all 0.3s ease;
}

.homepage-stat-card:nth-child(1) {
  background: #f1ffe9;
}

.homepage-stat-card:nth-child(2) {
  background: #f0f9ff;
}

.homepage-stat-card:nth-child(3) {
  background: #fcf2ff;
}

.homepage-stat-card:nth-child(4) {
  background: #fef3e8;
}

.homepage-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 58, 80, 0.15);
}

.homepage-stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #2a3a50;
  line-height: 1.2;
}

.homepage-stat-label {
  font-size: 14px;
  font-weight: 600;
  color: #747474;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.homepage-stat-description {
  font-size: 15px;
  line-height: 1.5;
  color: #747474;
}

.homepage-stat-source {
  font-size: 12px;
  color: #999999;
  margin-top: 8px;
}

/* Features Section */
.homepage-features-section {
  padding: 64px 64px;
  background: #ffffff;
}

.homepage-features-grid {
  max-width: 1376px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.homepage-feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px;
  background: #f7f9fb;
  border-radius: 14px;
  border: none;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: 0px 1.762px 12.337px 0px rgba(0, 0, 0, 0.07);
}

.homepage-feature-card:nth-child(1) {
  background: #f1ffe9;
}

.homepage-feature-card:nth-child(2) {
  background: #f0f9ff;
}

.homepage-feature-card:nth-child(3) {
  background: #fcf2ff;
}

.homepage-feature-card:hover {
  transform: none;
  box-shadow: 0px 1.762px 12.337px 0px rgba(0, 0, 0, 0.07);
}

.homepage-feature-title {
  font-size: 24px;
  font-weight: 600;
  color: #0d0d0d;
  margin: 0;
  line-height: 35px;
  letter-spacing: -0.9px;
}

.homepage-feature-description {
  font-size: 16px;
  line-height: 30px;
  color: #585757;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.9px;
}

/* Blog Section */
/* --- Figma Stats Overrides (ensure pixel-perfect top row) --- */
.homepage-stats-grid {
  gap: 32px;
}

.homepage-stat-card {
  background: transparent !important;
  padding: 0 !important;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: none !important;
}

.homepage-stat-card:nth-child(1),
.homepage-stat-card:nth-child(2),
.homepage-stat-card:nth-child(3),
.homepage-stat-card:nth-child(4) {
  background: transparent !important;
}

.homepage-stat-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.homepage-stat-heading {
  font-size: 24px;
  font-weight: 600;
  color: #0d0d0d;
  line-height: normal;
}

.homepage-stat-description {
  font-size: 16px;
  color: #585757;
  line-height: 26px;
  letter-spacing: -0.32px;
  max-width: 360px;
}

.homepage-stat-source {
  display: inline-block;
  font-size: 11px;
  color: #0d0d0d;
  background: #dfe8ef;
  padding: 4px 12px;
  border-radius: 20px;
  opacity: 0.6;
  align-self: flex-start;
  width: auto;
  margin-top: 8px;
}
.homepage-blog-section {
  padding: 64px 64px;
  background: #ffffff;
}

.homepage-blog-header {
  max-width: 1376px;
  margin: 0 auto 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.homepage-blog-title {
  font-size: 48px;
  font-weight: 600;
  color: #2a3a50;
  margin: 0;
  flex: 1;
}

.homepage-view-all-link {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 100px;
  background: #2a3a50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  min-height: 50px;
}

.homepage-view-all-link:hover {
  background: #1f2d3f;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(42, 58, 80, 0.2);
}

.homepage-blog-grid {
  max-width: 1376px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.homepage-blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.homepage-blog-card:hover {
  box-shadow: 0 8px 24px rgba(42, 58, 80, 0.15);
  transform: translateY(-4px);
}

.homepage-blog-image {
  width: 100%;
  height: 240px;
  background: #e5e5e5;
  position: relative;
  overflow: hidden;
}

.homepage-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homepage-blog-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5e5e5 0%, #d5d5d5 100%);
}

.homepage-blog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #2a3a50;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 5;
}

.homepage-blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.homepage-blog-post-title {
  font-size: 18px;
  font-weight: 600;
  color: #2a3a50;
  line-height: 1.4;
  margin: 0;
}

.homepage-blog-post-title a {
  color: #2a3a50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.homepage-blog-post-title a:hover {
  color: #1f2d3f;
}

.homepage-blog-card.placeholder .homepage-blog-image {
  background: #e5e5e5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .homepage-hero-section {
    padding: 60px 40px;
  }

  .homepage-hero-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 100%;
  }

  .homepage-hero-title {
    font-size: 40px;
    line-height: 1.2;
  }

  .homepage-hero-description {
    font-size: 16px;
  }

  .homepage-stats-section {
    padding: 60px 40px;
  }

  .homepage-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 100%;
  }

  .homepage-features-section {
    padding: 60px 40px;
  }

  .homepage-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 100%;
  }

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

  .homepage-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 100%;
  }

  .homepage-blog-header {
    max-width: 100%;
    margin-bottom: 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .homepage-blog-title {
    font-size: 40px;
    width: 100%;
  }

  .homepage-view-all-link {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .homepage-hero-section {
    padding: 40px 24px;
    min-height: auto;
  }

  .homepage-hero-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .homepage-hero-title {
    font-size: 32px;
    line-height: 1.25;
  }

  .homepage-hero-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .homepage-btn-primary {
    font-size: 16px;
    padding: 12px 32px;
  }

  .homepage-demo-container {
    padding: 16px;
    max-width: 100%;
  }

  .homepage-demo-chart {
    aspect-ratio: 16 / 9;
  }

  .homepage-demo-subtitle {
    font-size: 13px;
    padding: 12px 16px;
  }

  .homepage-watch-demo-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .homepage-stats-section {
    padding: 48px 24px;
  }

  .homepage-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .homepage-stat-card {
    padding: 20px !important;
  }

  .homepage-stat-heading {
    font-size: 20px;
  }

  .homepage-stat-description {
    font-size: 14px;
    line-height: 1.4;
  }

  .homepage-features-section {
    padding: 48px 24px;
  }

  .homepage-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .homepage-feature-card {
    padding: 20px 16px;
  }

  .homepage-feature-title {
    font-size: 18px;
    line-height: 26px;
  }

  .homepage-feature-description {
    font-size: 14px;
    line-height: 22px;
  }

  .homepage-blog-section {
    padding: 48px 24px;
  }

  .homepage-blog-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .homepage-blog-title {
    font-size: 32px;
    margin-bottom: 0;
    width: 100%;
  }

  .homepage-view-all-link {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    text-align: center;
  }

  .homepage-blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .homepage-blog-card {
    flex-direction: column;
  }

  .homepage-blog-image {
    height: 200px;
  }

  .homepage-blog-content {
    padding: 16px;
  }

  .homepage-blog-post-title {
    font-size: 16px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .homepage-hero-section {
    padding: 32px 16px;
  }

  .homepage-hero-wrapper {
    gap: 24px;
  }

  .homepage-hero-title {
    font-size: 28px;
  }

  .homepage-hero-description {
    font-size: 13px;
  }

  .homepage-btn-primary {
    font-size: 14px;
    padding: 10px 24px;
  }

  .homepage-stats-section {
    padding: 40px 16px;
  }

  .homepage-stats-grid {
    gap: 16px;
  }

  .homepage-stat-heading {
    font-size: 18px;
  }

  .homepage-stat-description {
    font-size: 13px;
  }

  .homepage-features-section {
    padding: 40px 16px;
  }

  .homepage-features-grid {
    gap: 12px;
  }

  .homepage-feature-card {
    padding: 16px 12px;
  }

  .homepage-feature-title {
    font-size: 16px;
  }

  .homepage-feature-description {
    font-size: 13px;
  }

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

  .homepage-blog-title {
    font-size: 28px;
  }

  .homepage-blog-grid {
    gap: 20px;
  }

  .homepage-blog-image {
    height: 180px;
  }

  .homepage-blog-post-title {
    font-size: 15px;
  }
}

/* ============================================
   DICTIONARY PAGINATION & INFINITE SCROLL
   ============================================ */

.load-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
  padding: 20px;
}

.load-more-btn {
  background-color: #2a3a50;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Lexend", sans-serif;
}

.load-more-btn:hover:not(:disabled) {
  background-color: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 58, 80, 0.15);
}

.load-more-btn:active:not(:disabled) {
  transform: translateY(0);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #747474;
  font-size: 14px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #e5e5e5;
  border-top: 2px solid #2a3a50;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.no-more-entries {
  color: #747474;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .load-more-container {
    flex-direction: column;
    margin: 30px 0;
  }

  .load-more-btn {
    width: 100%;
  }
}

/* ============================================
   BLOG PAGE LAYOUT - Figma Design
   ============================================ */

/* Blog page Elementor alignment — match category/all-articles pages (64px sides) */
.page-id-115 .e-con.e-parent {
    padding-left: 64px !important;
    padding-right: 64px !important;
}
.page-id-115 .e-con.e-parent > .e-con.e-child {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.page-id-115 .e-con.e-parent > .e-con.e-child:first-child {
    width: 110px !important;
    flex-shrink: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Blog page - Tablet: sidebar becomes horizontal categories */
@media (max-width: 1024px) {
    .page-id-115 .e-con.e-parent {
        flex-direction: column !important;
        padding-top: 24px !important;
        padding-left: var(--site-padding-tablet, 40px) !important;
        padding-right: var(--site-padding-tablet, 40px) !important;
    }
    .page-id-115 .e-con.e-parent > .e-con.e-child:first-child {
        width: 100% !important;
    }
    /* Match gap to category-page-sidebar (8px) */
    .page-id-115 .blog-categories-nav {
        gap: 8px !important;
    }
    .page-id-115 .blog-category-link {
        padding: 8px 12px;
        border-radius: 8px;
        background: rgba(62, 63, 63, 0.04);
        white-space: nowrap;
        font-size: 14px;
    }
    .page-id-115 .blog-category-link:hover,
    .page-id-115 .blog-category-link.active {
        background: #2a3a50 !important;
        color: #ffffff !important;
    }
}

/* Blog page - Mobile: horizontal scrollable categories */
@media (max-width: 768px) {
    .page-id-115 .e-con.e-parent {
        padding-top: 16px !important;
        padding-left: var(--site-padding-mobile, 24px) !important;
        padding-right: var(--site-padding-mobile, 24px) !important;
    }
    .page-id-115 .blog-category-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .page-id-115 .blog-category-link {
        flex-shrink: 0;
    }
}

/* Blog page - Small mobile */
@media (max-width: 480px) {
    .page-id-115 .e-con.e-parent {
        padding-top: 16px !important;
        padding-left: var(--site-padding-small, 16px) !important;
        padding-right: var(--site-padding-small, 16px) !important;
    }
}

/* Blog Page Container */
.blog-page-container {
  max-width: var(--blog-page-max-width);
  margin: 0 auto;
  padding: 0 64px;
}

.blog-page-inner {
  max-width: var(--blog-inner-width);
  margin: 0 auto;
}

/* 2-Column Layout: Sidebar + Main Content */
.blog-page-layout {
  display: grid;
  grid-template-columns: var(--blog-sidebar-width) 1fr;
  gap: var(--blog-content-gap);
  align-items: start;
}

/* Blog Page Title */
.blog-page-title {
  font-family: "Lexend", sans-serif;
  font-size: 64px;
  line-height: 1;
  color: #2a3a50;
  margin: 0 0 48px;
}

.blog-page-title-light {
  font-weight: 300;
}

.blog-page-title-bold {
  font-weight: 600;
}

/* Categories Sidebar */
.blog-categories-sidebar {
  position: sticky;
  top: 108px;
  width: var(--blog-sidebar-width);
}

.blog-categories-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.blog-categories-icon {
  width: 24px;
  height: 24px;
}

.blog-categories-title {
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #747474;
  margin: 0;
  letter-spacing: -0.32px;
}

.blog-categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-category-button {
  padding: 8px 9px;
  border-radius: 8px;
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #747474;
  background: rgba(62, 63, 63, 0.04);
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  line-height: 24px;
  letter-spacing: -0.32px;
}

.blog-category-button:hover,
.blog-category-button.active {
  background: #2a3a50;
  color: #ffffff;
}

/* Blog Grid - Figma Specs */
.blog-grid-figma {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 64px;
  column-gap: 24px;
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
}

.blog-pagination-arrow {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #2a3a50;
}

.blog-pagination-arrow.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.blog-pagination-number {
  padding: 5px 10px;
  font-family: "Lexend", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #2a3a50;
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: border-color 0.2s ease;
  letter-spacing: -0.32px;
}

.blog-pagination-number:hover,
.blog-pagination-number.active {
  border-bottom-color: #2a3a50;
}

.blog-pagination-number.active {
  background: rgba(62, 63, 63, 0.04);
}

/* Blog Page Responsive - Tablet */
@media (max-width: 1024px) {
  .blog-page-container {
    padding: 0 var(--site-padding-tablet, 40px);
  }

  .blog-page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-categories-sidebar {
    position: static;
    width: 100%;
  }

  .blog-categories-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .blog-page-title {
    font-size: 48px;
  }

  .blog-grid-figma {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
  }
}

/* Blog Page Responsive - Mobile */
@media (max-width: 768px) {
  .blog-page-container {
    padding: 0 24px;
  }

  .blog-page-title {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .blog-categories-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .blog-category-button {
    flex-shrink: 0;
  }

  .blog-grid-figma {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .blog-pagination {
    justify-content: center;
    margin-top: 48px;
  }
}

@media (max-width: 480px) {
  .blog-page-container {
    padding: 0 var(--site-padding-small, 16px);
  }
}

/* ============================================
   SEO TEXT EDITOR HEADINGS - Blue style (Figma)
   ============================================ */
.elementor-full-width-content .elementor-widget-text-editor h3 {
    color: #0444AC;
    font-family: var(--theme-font, 'Lexend', sans-serif);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ============================================
   CALCULATOR PAGE LAYOUT - Align all sections (Figma)
   ============================================ */

/* Boxed containers: expand to full width so content aligns with full-width sections */
.elementor-full-width-content .e-con.e-parent.e-con-boxed {
    max-width: 100%;
}

.elementor-full-width-content .e-con-boxed > .e-con-inner {
    max-width: 100%;
    margin: 0;
    padding-left: var(--site-padding-desktop);
    padding-right: var(--site-padding-desktop);
}

/* Disclaimer (rendered by calculator widget, outside hero) */
.mmiq-calculator__disclaimer {
    padding-left: var(--site-padding-desktop);
    padding-right: var(--site-padding-desktop);
}

/* Formula / SEO text sections */
.elementor-full-width-content .elementor-widget-text-editor h2,
.elementor-full-width-content .elementor-widget-text-editor h3 {
    font-family: var(--theme-font, 'Lexend', sans-serif);
    font-size: 24px;
    font-weight: 500;
    color: #2A3A50;
    line-height: 25px;
    letter-spacing: -0.32px;
    margin: 0 0 16px;
}

.elementor-full-width-content .elementor-widget-text-editor {
    max-width: 800px;
}

.elementor-full-width-content .elementor-widget-text-editor p {
    font-family: var(--theme-font, 'Lexend', sans-serif);
    font-size: 16px;
    font-weight: 300;
    color: #585757;
    line-height: 26px;
    letter-spacing: -0.32px;
}

@media (max-width: 1024px) {
    .elementor-full-width-content .e-con-boxed > .e-con-inner {
        padding-left: var(--site-padding-tablet);
        padding-right: var(--site-padding-tablet);
    }
    .mmiq-calculator__disclaimer {
        padding-left: var(--site-padding-tablet);
        padding-right: var(--site-padding-tablet);
    }
}

@media (max-width: 768px) {
    .elementor-full-width-content .e-con-boxed > .e-con-inner {
        padding-left: var(--site-padding-mobile);
        padding-right: var(--site-padding-mobile);
    }
    .mmiq-calculator__disclaimer {
        padding-left: var(--site-padding-mobile);
        padding-right: var(--site-padding-mobile);
    }
}

@media (max-width: 480px) {
    .elementor-full-width-content .e-con-boxed > .e-con-inner {
        padding-left: var(--site-padding-small);
        padding-right: var(--site-padding-small);
    }
    .mmiq-calculator__disclaimer {
        padding-left: var(--site-padding-small);
        padding-right: var(--site-padding-small);
    }
}

/* ==========================================================================
   SINGLE POST PAGE - Figma Design (node 265:3783)
   ========================================================================== */

/* Layout */
.single-post-main {
  background: #ffffff;
  padding: 24px 0 0;
}

.single-post-layout {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto;
  padding: 0 64px;
}

.single-post-content-area {
  max-width: 100%;
}

/* Back link: arrow + category (Figma: 36px Lexend Medium #2A3A50) */
.single-post-back-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 36px;
  font-weight: 500;
  color: #2A3A50;
  text-decoration: none;
  margin-bottom: 24px;
}

.single-post-back-link:hover {
  color: #0444AC;
}

.back-arrow-icon {
  flex-shrink: 0;
}

/* Read time meta */
.single-post-meta {
  margin-bottom: 20px;
}

.single-post-badge {
  color: rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.4px;
}

/* Featured image (Figma: ~25px radius, subtle border) */
.single-post-featured {
  border-radius: 25px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1.5px solid rgba(26, 29, 30, 0.1);
}

.single-post-featured-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Title (Figma: 48px Lexend SemiBold #0D0D0D, line-height 70px) */
.single-post-title {
  font-size: 48px;
  font-weight: 600;
  color: #0D0D0D;
  line-height: 70px;
  margin: 0 0 24px;
}

/* Divider between title and content */
.single-post-divider {
  border: none;
  border-top: 1px solid #E5E5E5;
  margin: 0 0 24px;
}

/* Post content (Figma: 20px Lexend Regular #585757, line-height 32px) */
.single-post-content {
  color: #585757;
  font-size: 20px;
  line-height: 32px;
}

.single-post-content a {
  color: #0444AC;
  text-decoration: underline;
}

.single-post-content a:hover {
  color: #032d78;
}

.single-post-content p {
  margin-bottom: 1em;
}

/* Subheadings (Figma: 24px Lexend Medium, blue #0444AC) */
.single-post-content h2 {
  color: #0444AC;
  font-size: 24px;
  font-weight: 500;
  line-height: 25px;
  margin: 50px 0 16px;
}

.single-post-content h3 {
  color: #0444AC;
  font-size: 20px;
  font-weight: 500;
  margin: 32px 0 12px;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 30px;
  margin-bottom: 1em;
}

.single-post-content li {
  margin-bottom: 0.3em;
}

.single-post-content blockquote {
  border-left: 4px solid #0444AC;
  padding: 16px 24px;
  margin: 24px 0;
  background: #F0F9FF;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #2A3A50;
}

/* ==========================================================================
   SHARE BAR (Figma: light blue bar + author)
   ========================================================================== */

.single-post-share-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 50px 0 64px;
}

.single-post-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F0F9FF;
  border-radius: 12px;
  padding: 0 24px;
  height: 74px;
  flex: 1;
  max-width: 722px;
  position: relative;
  overflow: visible;
}

.share-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-plane-circle {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-plane-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.share-bar-text {
  font-size: 18px;
  font-weight: 500;
  color: #747474;
  letter-spacing: 0.027px;
  white-space: nowrap;
}

.share-bar-icons {
  display: flex;
  align-items: center;
  gap: 32px;
}

.share-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2A3A50;
  text-decoration: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.share-icon-btn:hover {
  opacity: 0.7;
}

.share-icon-btn:focus-visible {
  outline: 2px solid #2A3A50;
  outline-offset: 2px;
  border-radius: 4px;
}

.share-icon-btn--copied {
  color: #22C55E !important;
}

.share-icon-btn--copied svg {
  stroke: #22C55E;
}

/* Prevent CLS on featured image */
.single-post-featured-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Smooth scroll to comments */
.single-post-comments-section {
  scroll-margin-top: 100px;
}

/* Focus-visible for all interactive elements */
.single-post-back-link:focus-visible,
.single-post-view-all-btn:focus-visible,
.related-card-read-link:focus-visible,
.related-card-title a:focus-visible {
  outline: 2px solid #2A3A50;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Comment form focus improvements */
.comment-form-field input:focus-visible,
.comment-form-field textarea:focus-visible {
  outline: none;
  border-color: #2A3A50;
  box-shadow: 0 0 0 2px rgba(42, 58, 80, 0.1);
}

.single-post-submit-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #2A3A50;
}

/* Author block */
.single-post-author {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar-img,
.author-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 18px;
  font-weight: 500;
  color: #2A3A50;
  white-space: nowrap;
}

/* ==========================================================================
   COMMENTS SECTION (Figma: dot grid pattern background)
   ========================================================================== */

.single-post-comments-section {
  background-color: #FAFAFA;
  background-image: radial-gradient(circle, #ddd 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 64px 40px;
  border-radius: 12px;
}

.single-post-comments-inner {
  display: flex;
  gap: 80px;
  max-width: var(--site-max-width, 1440px);
}

/* Comment form column */
.single-post-comment-form-col {
  flex: 0 0 581px;
  max-width: 581px;
}

.single-post-comments-heading {
  font-size: 48px;
  font-weight: 400;
  color: #2A3A50;
  line-height: 65px;
  margin: 0 0 24px;
}

.comment-form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0px 0px 32.6px 0px rgba(0, 0, 0, 0.08);
}

.comment-form-card .comment-respond {
  margin: 0;
  padding: 0;
}

.comment-form-field {
  margin-bottom: 16px;
}

.comment-form-field label {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: #747474;
  margin-bottom: 8px;
  letter-spacing: -0.9px;
}

.comment-form-field input,
.comment-form-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  font-size: 16px;
  color: #0D0D0D;
  background: #FAFAFA;
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  letter-spacing: -0.9px;
}

.comment-form-field input::placeholder,
.comment-form-field textarea::placeholder {
  color: #B1B8C2;
}

.comment-form-field input {
  height: 45px;
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
  outline: none;
  border-color: #2A3A50;
}

.comment-form-field textarea {
  resize: vertical;
  min-height: 147px;
  border-radius: 0 4px 4px 0;
}

.single-post-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background: #2A3A50;
  color: #ffffff;
  border: none;
  border-radius: 500000px;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
  line-height: 24px;
}

.single-post-submit-btn:hover {
  background: #1e2c3d;
}

/* Comment form field order: Full name, Email, Comment, Submit */
.comment-form-card .comment-respond form,
.comment-form-card .comment-form {
  display: flex;
  flex-direction: column;
}
.comment-form-card .comment-field-author,
.comment-form-card .comment-form-author { order: 1; }
.comment-form-card .comment-field-email,
.comment-form-card .comment-form-email { order: 2; }
.comment-form-card .comment-field-comment,
.comment-form-card .comment-form-comment { order: 3; }
.comment-form-card .comment-form-cookies-consent { order: 4; display: none; }
.comment-form-card .form-submit { order: 5; text-align: right; }

/* Comments list column */
.single-post-comments-list-col {
  flex: 1;
  min-width: 0;
  max-width: 397px;
}

.comments-list-heading {
  font-size: 24px;
  font-weight: 400;
  color: #2A3A50;
  margin: 0 0 12px;
}

.comments-scroll-area {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 11px 12px;
}

.single-post-comment-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0px 0px 3.5px 0px rgba(0, 0, 0, 0.02);
}

.comment-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment-card-name {
  font-size: 12px;
  font-weight: 600;
  color: #2A3A50;
}

.comment-card-time {
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.25);
  letter-spacing: -0.66px;
}

.comment-card-text {
  font-size: 12px;
  font-weight: 300;
  line-height: 18.4px;
  color: #585757;
  letter-spacing: -0.24px;
}

.no-comments-text {
  color: #747474;
  font-size: 14px;
  font-style: italic;
}

/* ==========================================================================
   RELATED ARTICLES (Figma: 48px title, pill button, 3 cards with 64px gap)
   ========================================================================== */

.single-post-related {
  margin-top: 0;
  padding: 48px 0 64px;
}

.single-post-related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}

.single-post-related-title {
  font-size: 48px;
  font-weight: 400;
  color: #2A3A50;
  line-height: 65px;
  margin: 0;
}

.single-post-view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background: #2A3A50;
  color: #ffffff;
  border: none;
  border-radius: 500000px;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
  line-height: 24px;
}

.single-post-view-all-btn:hover {
  background: #1e2c3d;
  color: #ffffff;
}

.single-post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.single-post-related-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.related-card-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #E5E5E5;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.related-card-placeholder {
  width: 100%;
  height: 100%;
  background: #F7F9FB;
}

.related-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

.related-card-category {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #D23197;
  font-family: 'Inter', sans-serif;
}

.related-card-title {
  font-size: 20px;
  font-weight: 600;
  color: #0D0D0D;
  line-height: 1.25;
  margin: 0;
}

.related-card-title a {
  color: inherit;
  text-decoration: none;
}

.related-card-title a:hover {
  color: #2A3A50;
}

.related-card-read-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0D0D0D;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s ease;
}

.related-card-read-link:hover {
  color: #0444AC;
}

/* ==========================================================================
   SINGLE POST RESPONSIVE
   ========================================================================== */

@media (max-width: 1280px) {
  .single-post-layout {
    padding: 0 40px;
  }
}

@media (max-width: 1024px) {
  .single-post-layout {
    padding: 0 40px;
  }

  .single-post-title {
    font-size: 36px;
    line-height: 50px;
  }

  .single-post-related-grid {
    gap: 32px;
  }

  .single-post-comments-inner {
    flex-direction: column;
    gap: 40px;
  }

  .single-post-comment-form-col {
    flex: 1;
    max-width: 100%;
  }

  .single-post-comments-list-col {
    max-width: 100%;
  }

  .single-post-share-row {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .single-post-share-bar {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .single-post-layout {
    padding: 0 24px;
  }

  .single-post-back-link {
    font-size: 24px;
  }

  .single-post-title {
    font-size: 28px;
    line-height: 38px;
  }

  .single-post-content {
    font-size: 17px;
    line-height: 28px;
  }

  .single-post-related-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .single-post-related-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .single-post-related-title {
    font-size: 32px;
    line-height: 44px;
  }

  .single-post-comments-heading {
    font-size: 32px;
    line-height: 44px;
  }

  .single-post-share-bar {
    flex-direction: column;
    height: auto;
    padding: 16px;
    gap: 12px;
    align-items: flex-start;
  }

  .share-bar-text {
    font-size: 14px;
  }

  .single-post-comments-section {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .single-post-layout {
    padding: 0 16px;
  }

  .single-post-back-link {
    font-size: 20px;
  }

  .single-post-title {
    font-size: 24px;
    line-height: 34px;
  }

  .single-post-related-title {
    font-size: 24px;
    line-height: 32px;
  }

  .single-post-comments-section {
    padding: 32px 16px;
  }
}

/* ============================================
   CATEGORY PAGE LAYOUT
   ============================================ */
.category-page-layout {
    display: flex;
    gap: 32px;
    max-width: 100%;
    margin: 0;
    padding: 40px 64px 80px;
    font-family: var(--theme-font, 'Lexend', sans-serif);
}

.category-page-sidebar {
    flex-shrink: 0;
    width: 110px;
    position: sticky;
    top: 108px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-page-sidebar .blog-categories-title {
    line-height: 24px;
}

.category-page-content {
    flex: 1;
    min-width: 0;
}

.category-page-content .no-posts-message {
    font-size: 16px;
    color: #747474;
    padding: 40px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-page-layout {
        flex-direction: column;
        gap: 24px;
        padding: 24px 40px 64px;
    }

    .category-page-sidebar {
        position: static;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
    }

    .category-page-sidebar .blog-categories-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .category-page-layout {
        padding: 16px 24px 48px;
    }

    .category-page-sidebar .blog-categories-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .category-page-sidebar .blog-category-button {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .category-page-layout {
        padding: 16px var(--site-padding-small, 16px) 40px;
    }
}

/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */
.search-results-layout {
    max-width: 100%;
    margin: 0;
    padding: 40px 64px 80px;
    font-family: var(--theme-font, 'Lexend', sans-serif);
}

.search-results-header {
    margin-bottom: 32px;
}

.search-results-title {
    font-size: 48px;
    font-weight: 300;
    color: #2A3A50;
    margin: 0 0 8px;
    line-height: 1.2;
}

.search-results-title .search-query-highlight {
    font-weight: 600;
    font-style: italic;
}

.search-results-count {
    font-size: 16px;
    color: #747474;
    margin: 0;
}

/* Filter Tabs */
.search-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.search-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 500px;
    border: 1px solid #E5E5E5;
    background: #fff;
    color: #747474;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-filter-tab:hover {
    border-color: #2A3A50;
    color: #2A3A50;
}

.search-filter-tab.active {
    background: #2A3A50;
    border-color: #2A3A50;
    color: #fff;
}

.search-tab-count {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
}

.search-filter-tab.active .search-tab-count {
    opacity: 0.9;
}

/* Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.search-result-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E5E5E5;
    transition: box-shadow 0.2s ease;
}

.search-result-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.search-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-card-body {
    padding: 20px;
}

.search-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.search-card-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
}

.search-card-type--post {
    color: #D23197;
    background: #fdf2ff;
}

.search-card-type--dictionary {
    color: #0444AC;
    background: #F0F9FF;
}

.search-card-type--book {
    color: #22C55E;
    background: #f0fdf4;
}

.search-card-type--newcomers {
    color: #F59E0B;
    background: #fffbeb;
}

.search-card-read-time {
    font-size: 12px;
    font-weight: 600;
    color: #D23197;
    text-transform: uppercase;
}

.search-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0D0D0D;
    line-height: 1.4;
    margin: 0 0 8px;
}

.search-card-title a {
    color: inherit;
    text-decoration: none;
}

.search-card-title a:hover {
    color: #2A3A50;
}

.search-card-excerpt {
    font-size: 14px;
    color: #585757;
    line-height: 1.6;
    margin: 0;
}

.search-card-buy-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 6px 16px;
    background: #2A3A50;
    color: #fff;
    border-radius: 500px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.search-card-buy-btn:hover {
    background: #1e2c3d;
    color: #fff;
}

/* Pagination */
.search-pagination {
    margin-top: 32px;
}

.search-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #747474;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-pagination .page-numbers:hover {
    background: #F7F9FB;
    color: #2A3A50;
}

.search-pagination .page-numbers.current {
    background: #2A3A50;
    color: #fff;
}

.search-pagination .prev,
.search-pagination .next {
    color: #2A3A50;
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 80px 0;
}

.search-no-results h2 {
    font-size: 32px;
    font-weight: 500;
    color: #2A3A50;
    margin: 0 0 16px;
}

.search-no-results p {
    font-size: 16px;
    color: #747474;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.search-suggestions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-suggestion-link {
    padding: 10px 24px;
    border: 1px solid #E5E5E5;
    border-radius: 500px;
    color: #2A3A50;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-suggestion-link:hover {
    background: #2A3A50;
    color: #fff;
    border-color: #2A3A50;
}

/* Search Responsive */
@media (max-width: 1024px) {
    .search-results-layout {
        padding: 24px 40px 64px;
    }

    .search-results-title {
        font-size: 36px;
    }

    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-results-layout {
        padding: 16px 24px 48px;
    }

    .search-results-title {
        font-size: 28px;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .search-filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .search-filter-tab {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .search-results-layout {
        padding: 16px 16px 32px;
    }

    .search-results-title {
        font-size: 24px;
    }
}

/* ============================================
   FOOTER MENU STYLES (wp_nav_menu)
   ============================================ */
.footer-column .footer-links,
.footer-column .menu,
.footer-column ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.footer-column .footer-links li,
.footer-column .menu li,
.footer-column ul li {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.footer-column .footer-links a,
.footer-column .menu a,
.footer-column nav a {
    text-decoration: none !important;
    color: #747474 !important;
    font-family: var(--theme-font, 'Lexend', sans-serif);
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.021px;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
}

.footer-column .footer-links a:hover,
.footer-column .menu a:hover,
.footer-column nav a:hover {
    color: var(--theme-primary, #2A3A50) !important;
}

/* ==========================================================================
   Single Book Page
   ========================================================================== */

.book-single-main {
  background: #fff;
  padding: 24px 0 0;
}

.book-single-layout {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto;
  padding: 0 64px 80px;
}

.book-single-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #585757;
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.book-single-back:hover {
  color: #0D0D0D;
}

.book-single-content {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  margin-bottom: 64px;
}

.book-single-cover {
  flex-shrink: 0;
  width: 320px;
  position: relative;
}

.book-single-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FFB800;
  color: #2A3A50;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
  text-transform: uppercase;
}

.book-single-cover-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.book-single-cover-placeholder {
  width: 100%;
  padding-top: 140%;
  background: #e5e5e5;
  border-radius: 12px;
}

.book-single-details {
  flex: 1;
  min-width: 0;
}

.book-single-section {
  display: inline-block;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.book-single-title {
  font-family: 'Lexend', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.2;
  margin: 0 0 12px;
}

.book-single-author {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  color: #585757;
  margin: 0 0 20px;
}

.book-single-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.book-single-stars {
  display: flex;
  gap: 2px;
}

.book-single-rating-num {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2A3A50;
}

.book-single-price-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.book-single-price {
  font-family: 'Lexend', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #0D0D0D;
}

.book-single-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2A3A50;
  color: #fff;
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}

.book-single-buy-btn:hover {
  background: #1d2b3d;
  color: #fff;
}

.book-single-divider {
  border: none;
  border-top: 1px solid #E5E5E5;
  margin: 0 0 32px;
}

.book-single-description {
  font-family: 'Lexend', sans-serif;
}

.book-single-description h2 {
  font-size: 22px;
  font-weight: 600;
  color: #0D0D0D;
  margin: 0 0 16px;
}

.book-single-description p {
  font-size: 16px;
  line-height: 1.8;
  color: #585757;
}

/* Related */
.book-single-related {
  border-top: 1px solid #E5E5E5;
  padding-top: 48px;
}

.book-single-related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.book-single-related-header h2 {
  font-family: 'Lexend', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #0D0D0D;
  margin: 0;
}

.book-single-viewall {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1B2A4A;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}

.book-single-viewall:hover {
  background: #2a3a5a;
}

.book-single-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.book-single-related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.book-single-related-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 4px;
  background: #f0f0f0;
}

.book-single-related-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-single-related-placeholder {
  width: 100%;
  height: 100%;
  background: #e5e5e5;
}

.book-single-related-title {
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0D0D0D;
  margin: 0;
}

.book-single-related-title a {
  color: inherit;
  text-decoration: none;
}

.book-single-related-title a:hover {
  color: #2563EB;
}

/* Book archive page */
.book-archive-main {
  background: #fff;
  padding: 24px 0 0;
}

.book-archive-layout {
  max-width: var(--site-max-width, 1440px);
  margin: 0 auto;
  padding: 0 64px 80px;
}

.book-archive-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #585757;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.book-archive-back:hover {
  color: #0D0D0D;
}

.book-archive-title {
  font-family: 'Lexend', sans-serif;
  font-size: 42px;
  font-weight: 300;
  color: #2A3A50;
  margin: 0 0 8px;
}

.book-archive-count {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  color: #585757;
  margin: 0 0 40px;
}

.book-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.book-archive-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.book-archive-card-cover {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #f0f0f0;
  text-decoration: none;
}

.book-archive-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-archive-card-title {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0D0D0D;
  margin: 0;
}

.book-archive-card-title a {
  color: inherit;
  text-decoration: none;
}

.book-archive-card-title a:hover {
  color: #2563EB;
}

.book-archive-card-price {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  color: #585757;
}

/* Responsive */
@media (max-width: 1024px) {
  .book-single-layout { padding: 0 var(--site-padding-tablet, 40px) 80px; }
  .book-single-content { gap: 40px; }
  .book-single-cover { width: 240px; }
  .book-single-related-grid { grid-template-columns: repeat(2, 1fr); }
  .book-archive-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .book-single-layout { padding: 0 24px 60px; }
  .book-single-content { flex-direction: column; }
  .book-single-cover { width: 200px; margin: 0 auto; }
  .book-single-title { font-size: 28px; }
  .book-single-price { font-size: 24px; }
  .book-single-related-grid { grid-template-columns: repeat(2, 1fr); }
  .book-archive-layout { padding: 0 24px 60px; }
  .book-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .book-archive-title { font-size: 32px; }
}

@media (max-width: 480px) {
  .book-single-layout { padding: 0 16px 40px; }
  .book-single-related-grid { grid-template-columns: 1fr; }
  .book-archive-layout { padding: 0 16px 40px; }
  .book-archive-grid { grid-template-columns: 1fr; }
}

/* ============================================
   END OF CUSTOM STYLES
   ============================================ */
