/**
 * Titan Blog Styles
 * Styles for the blog listing page and individual post pages
 *
 * Color Scheme:
 * - Background: #FAFAFA
 * - Primary text: #243352
 * - Secondary text: #7A7A7A
 * - Accent: #0A6EFF
 * - Card background: #FFFFFF
 * - Border: #E8EBF0
 */

/* ========================================
   Base & Layout
   ======================================== */

/* Set html/body to dark to prevent light bleed below footer */
html.blog-page-html {
  background-color: #232323;
}

.blog-page {
  font-family: 'Poppins', sans-serif;
  background-color: #FAFAFA;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Ensure footer spans full width with dark background */
.blog-page #site-footer {
  position: relative;
  z-index: 50;
  clear: both;
  background-color: #232323;
  flex-shrink: 0;
  margin-top: auto;
}

/* ========================================
   Full-width Search Bar
   ======================================== */

.blog-search-bar {
  /* margin-top moved to title section */
  background: #FFFFFF;
  padding: 24px 32px;
  margin-top: 0;
  border-bottom: 1px solid #E8EBF0;
}

.blog-search-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.blog-search-wrapper {
  flex: 1;
  position: relative;
}

.blog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7A7A7A;
  pointer-events: none;
}

.blog-search {
  width: 100%;
  padding: 14px 16px 14px 50px;
  border: 1px solid #E8EBF0;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #243352;
  background: #FAFAFA;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.blog-search:focus {
  outline: none;
  border-color: #0A6EFF;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(10, 110, 255, 0.1);
}

.blog-search::placeholder {
  color: #A0A0A0;
}

/* Search Toggle */
.blog-search-options {
  flex-shrink: 0;
}

.blog-search-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.blog-search-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.blog-search-toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  background: #E8EBF0;
  border-radius: 20px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.blog-search-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.blog-search-toggle-input:checked + .blog-search-toggle-switch {
  background: #0A6EFF;
}

.blog-search-toggle-input:checked + .blog-search-toggle-switch::after {
  transform: translateX(16px);
}

.blog-search-toggle-text {
  font-size: 0.85rem;
  color: #7A7A7A;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.blog-search-toggle-input:checked ~ .blog-search-toggle-text {
  color: #243352;
}

/* ========================================
   Main Blog Container
   ======================================== */

.blog-container {
  display: flex;
  flex: 1 0 auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
  align-items: flex-start;
}

.blog-main-content {
  flex: 1;
  min-width: 0;
}

/* ========================================
   Hero Section
   ======================================== */

.blog-hero {
  margin-bottom: 48px;
}

.blog-hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.blog-hero-link:hover {
  text-decoration: none;
}

.blog-hero-link:hover .blog-hero-image {
  transform: scale(1.02);
}

.blog-hero-link:hover .blog-hero-title {
  color: #0A6EFF;
}

.blog-hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.blog-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-hero-content {
  padding: 0 8px;
}

.blog-hero-date {
  display: block;
  font-size: 0.9rem;
  color: #7A7A7A;
  margin-bottom: 8px;
}

.blog-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #243352;
  margin: 0 0 12px 0;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.blog-hero-excerpt {
  font-size: 1.1rem;
  color: #4A5568;
  line-height: 1.8;
  margin: 0;
}

/* ========================================
   Post Grid Section
   ======================================== */

.blog-grid-section {
  margin-bottom: 40px;
}

.blog-grid-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #243352;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #E8EBF0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ========================================
   Blog Card
   ======================================== */

.blog-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-link:hover {
  text-decoration: none;
}

.blog-card-link:hover .blog-card-title {
  color: #0A6EFF;
}

.blog-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 20px;
}

.blog-card-date {
  display: block;
  font-size: 0.85rem;
  color: #7A7A7A;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #243352;
  margin: 0 0 10px 0;
  line-height: 1.4;
  transition: color 0.2s ease;
  /* Truncate to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: #4A5568;
  line-height: 1.6;
  margin: 0;
  /* Truncate to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   Sidebar
   ======================================== */

.blog-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.blog-sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #243352;
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid #E8EBF0;
}

.blog-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  text-decoration: none;
  border-bottom: 1px solid #E8EBF0;
  transition: background-color 0.2s ease;
}

.blog-sidebar-link:last-child {
  border-bottom: none;
}

.blog-sidebar-link:hover {
  background-color: #F5F7FA;
  text-decoration: none;
}

.blog-sidebar-link:hover .blog-sidebar-link-text {
  color: #0A6EFF;
}

.blog-sidebar-link:hover .blog-sidebar-icon {
  color: #0856CC;
}

.blog-sidebar-icon {
  color: #0A6EFF;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.blog-sidebar-link-text {
  font-size: 0.95rem;
  color: #243352;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* ========================================
   Search Results
   ======================================== */

.blog-search-results {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.blog-search-result {
  padding: 20px 24px;
  border-bottom: 1px solid #E8EBF0;
  transition: background-color 0.2s ease;
}

.blog-search-result:last-child {
  border-bottom: none;
}

.blog-search-result:hover {
  background-color: #F5F7FA;
}

.blog-search-result a {
  display: block;
  text-decoration: none;
}

.blog-search-result a:hover {
  text-decoration: none;
}

.blog-search-result-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #243352;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.blog-search-result:hover .blog-search-result-title {
  color: #0A6EFF;
}

.blog-search-result-date {
  font-size: 0.85rem;
  color: #7A7A7A;
  margin-bottom: 8px;
}

.blog-search-result-snippet {
  font-size: 0.9rem;
  color: #4A5568;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Highlight matching text in search results */
.blog-search-result-title mark,
.blog-search-result-snippet mark {
  background: rgba(10, 110, 255, 0.2);
  color: #0A6EFF;
  padding: 0 2px;
  border-radius: 2px;
}

.blog-no-results {
  padding: 40px 24px;
  text-align: center;
  color: #7A7A7A;
  font-size: 1rem;
}

/* ========================================
   Loading & Error States
   ======================================== */

.blog-loading {
  padding: 60px 20px;
  text-align: center;
  color: #7A7A7A;
  font-size: 1rem;
}

.blog-error {
  text-align: center;
  padding: 60px 20px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.blog-error h2 {
  color: #E53E3E;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.blog-error p {
  color: #7A7A7A;
  margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Large screens (>1200px) - default styles apply */

/* Medium screens / small desktop */
@media (max-width: 1200px) {
  .blog-container {
    padding: 32px 24px;
    gap: 32px;
  }

  .blog-sidebar {
    width: 260px;
  }
}

/* Tablet (768-1024px): 2-column grid, sidebar below content */
@media (max-width: 1024px) {
  .blog-search-bar {
  /* margin-top moved to title section */
    margin-top: 140px;
    padding: 20px 24px;
  }

  .blog-search-bar-inner {
    flex-direction: row;
    gap: 16px;
  }

  .blog-container {
    flex-direction: column;
    padding: 32px 24px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    border-radius: 12px;
  }

  .blog-sidebar-title {
    width: 100%;
    flex-shrink: 0;
  }

  .blog-sidebar-link {
    flex: 1 1 calc(50% - 1px);
    min-width: 200px;
  }

  .blog-hero-title {
    font-size: 1.75rem;
  }

  .blog-hero-excerpt {
    font-size: 1rem;
  }
}

/* Mobile (<768px): 1-column grid, sidebar stacked below */
@media (max-width: 768px) {
  .blog-search-bar {
  /* margin-top moved to title section */
    margin-top: 160px;
    padding: 16px;
  }

  .blog-search-bar-inner {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .blog-search-wrapper {
    width: 100%;
  }

  .blog-search-options {
    display: flex;
    justify-content: flex-start;
  }

  .blog-container {
    padding: 24px 16px;
    gap: 24px;
  }

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

  .blog-hero {
    margin-bottom: 32px;
  }

  .blog-hero-title {
    font-size: 1.5rem;
  }

  .blog-hero-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .blog-hero-content {
    padding: 0;
  }

  .blog-grid-heading {
    font-size: 1.25rem;
  }

  .blog-sidebar {
    flex-direction: column;
  }

  .blog-sidebar-link {
    flex: none;
    width: 100%;
  }

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

  .blog-card-title {
    font-size: 1rem;
  }

  .blog-card-excerpt {
    font-size: 0.9rem;
  }

  /* Footer adjustments */
  #site-footer .elementor-social-icons-wrapper {
    position: static !important;
    margin-top: 16px;
    justify-content: center;
  }

  #site-footer .e-con-inner > div:first-child {
    flex-direction: column !important;
  }
}

/* Small mobile (<480px) */
@media (max-width: 480px) {
  .blog-search-bar {
  /* margin-top moved to title section */
    padding: 12px;
  }

  .blog-container {
    padding: 20px 12px;
  }

  .blog-hero-title {
    font-size: 1.35rem;
  }

  .blog-hero-date,
  .blog-card-date {
    font-size: 0.8rem;
  }

  .blog-search-toggle-text {
    font-size: 0.8rem;
  }

  .blog-sidebar-link {
    padding: 14px 16px;
  }

  .blog-sidebar-link-text {
    font-size: 0.9rem;
  }
}

/* ========================================
   Footer - Match Doctors Page Layout
   ======================================== */

/* Override frontend.css that sets flex-direction: column */
.blog-page #site-footer .hfe-nav-menu {
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .blog-search-bar,
  .blog-sidebar,
  #site-header,
  #site-footer {
    display: none !important;
  }

  .blog-container {
    max-width: 100%;
    padding: 0;
  }

  .blog-card {
    box-shadow: none;
    border: 1px solid #E8EBF0;
    break-inside: avoid;
  }
}


/* ========================================
   Individual Post Page Styles
   ======================================== */

.blog-post-container {
  flex: 1 0 auto;
  max-width: 850px;
  margin: 120px auto 0;
  padding: 40px 32px;
  width: 100%;
  box-sizing: border-box;
}

/* Back to Blog Navigation */
.blog-post-nav {
  margin-bottom: 32px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #7A7A7A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-back-link:hover {
  color: #0A6EFF;
  text-decoration: none;
}

.blog-back-link svg {
  transition: transform 0.2s ease;
}

.blog-back-link:hover svg {
  transform: translateX(-3px);
}

/* Post Article */
.blog-post-article {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Post Header */
.blog-post-header {
  text-align: center;
  padding: 48px 48px 0;
}

.blog-post-date {
  display: block;
  font-size: 0.9rem;
  color: #7A7A7A;
  margin-bottom: 16px;
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #243352;
  margin: 0 0 32px 0;
  line-height: 1.3;
}

.blog-post-featured-image-wrapper {
  margin: 0 -48px;
}

.blog-post-featured-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Content */
.blog-post-content {
  padding: 48px;
}

/* Typography - matching documentation page */

/* Headers clear floated images */
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
  clear: both;
}

.blog-post-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #243352;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #E8EBF0;
}

.blog-post-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #243352;
  margin: 48px 0 16px 0;
}

.blog-post-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #3D4E70;
  margin: 32px 0 12px 0;
}

.blog-post-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #3D4E70;
  margin: 24px 0 10px 0;
}

.blog-post-content h5,
.blog-post-content h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #3D4E70;
  margin: 20px 0 8px 0;
}

.blog-post-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4A5568;
  margin: 0 0 16px 0;
}

.blog-post-content a {
  color: #0A6EFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-content a:hover {
  color: #0856CC;
  text-decoration: underline;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.blog-post-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4A5568;
  margin-bottom: 8px;
}

.blog-post-content strong {
  font-weight: 600;
  color: #243352;
}

.blog-post-content em {
  font-style: italic;
}

/* Images in content - default full width */
.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Video Embeds */
.blog-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Instagram Embed */
.blog-instagram-embed {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

.blog-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-instagram-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(131, 58, 180, 0.4);
  color: white;
  text-decoration: none;
}

/* Code blocks */
.blog-post-content code {
  font-family: SF Mono, Fira Code, Consolas, monospace;
  font-size: 0.9em;
  background: #F0F2F5;
  padding: 2px 6px;
  border-radius: 4px;
  color: #E53E3E;
}

.blog-post-content pre {
  background: #1E1E1E;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
  color: #D4D4D4;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Blockquotes */
.blog-post-content blockquote {
  border-left: 4px solid #0A6EFF;
  margin: 24px 0;
  padding: 16px 20px;
  background: #F5F7FA;
  border-radius: 0 8px 8px 0;
}

.blog-post-content blockquote p {
  margin: 0;
  color: #3D4E70;
}

/* Tables */
.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.blog-post-content th,
.blog-post-content td {
  padding: 12px 16px;
  border: 1px solid #E8EBF0;
  text-align: left;
}

.blog-post-content th {
  background: #F5F7FA;
  font-weight: 600;
  color: #243352;
}

.blog-post-content td {
  color: #4A5568;
}

.blog-post-content tr:hover td {
  background: #FAFAFA;
}

/* Horizontal Rule */
.blog-post-content hr {
  border: none;
  border-top: 1px solid #E8EBF0;
  margin: 32px 0;
}

/* Post Footer */
.blog-post-footer {
  padding: 32px 48px 48px;
  text-align: center;
  border-top: 1px solid #E8EBF0;
}

.blog-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #0A6EFF;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.blog-back-button:hover {
  background: #0856CC;
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
}

.blog-back-button svg {
  transition: transform 0.2s ease;
}

.blog-back-button:hover svg {
  transform: translateX(-3px);
}

/* Post Error State */
.blog-post-error {
  text-align: center;
  padding: 60px 20px;
}

.blog-post-error h2 {
  color: #E53E3E;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.blog-post-error p {
  color: #7A7A7A;
  margin: 0 0 24px 0;
}

/* ========================================
   Image Positioning Classes (Float & Width)
   ======================================== */

/* Float Classes */
.blog-post-content img.float-left {
  float: left;
  margin: 8px 24px 16px 0;
}

.blog-post-content img.float-right {
  float: right;
  margin: 8px 0 16px 24px;
}

.blog-post-content img.float-none {
  float: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Width Classes - Percentage */
.blog-post-content img.w-25 {
  width: 25%;
  max-width: 25%;
}

.blog-post-content img.w-30 {
  width: 30%;
  max-width: 30%;
}

.blog-post-content img.w-33 {
  width: 33.333%;
  max-width: 33.333%;
}

.blog-post-content img.w-50 {
  width: 50%;
  max-width: 50%;
}

.blog-post-content img.w-75 {
  width: 75%;
  max-width: 75%;
}

.blog-post-content img.w-100 {
  width: 100%;
  max-width: 100%;
}

/* Width Classes - Pixels */
.blog-post-content img.w-200 {
  width: 200px;
  max-width: 100%;
}

.blog-post-content img.w-300 {
  width: 300px;
  max-width: 100%;
}

.blog-post-content img.w-400 {
  width: 400px;
  max-width: 100%;
}

.blog-post-content img.w-500 {
  width: 500px;
  max-width: 100%;
}

/* Margin Classes */
.blog-post-content img.m-2 {
  margin: 8px;
}

.blog-post-content img.m-3 {
  margin: 12px;
}

.blog-post-content img.m-4 {
  margin: 16px;
}

/* Clearfix - applied after floated content */
.blog-post-content::after {
  content: "";
  display: table;
  clear: both;
}

/* Clear class for explicit clearing */
.blog-post-content .clear,
.blog-post-content p.clear {
  clear: both;
}

/* ========================================
   Post Page Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .blog-post-container {
    margin-top: 140px;
    padding: 32px 24px;
  }

  .blog-post-header {
    padding: 40px 40px 0;
  }

  .blog-post-featured-image-wrapper {
    margin: 0 -40px;
  }

  .blog-post-content {
    padding: 40px;
  }

  .blog-post-footer {
    padding: 24px 40px 40px;
  }

  .blog-post-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-post-container {
    margin-top: 160px;
    padding: 24px 16px;
  }

  .blog-post-header {
    padding: 32px 24px 0;
  }

  .blog-post-featured-image-wrapper {
    margin: 0 -24px;
  }

  .blog-post-content {
    padding: 32px 24px;
  }

  .blog-post-footer {
    padding: 24px;
  }

  .blog-post-title {
    font-size: 1.75rem;
  }

  .blog-post-content h1 {
    font-size: 2rem;
  }

  .blog-post-content h2 {
    font-size: 1.5rem;
  }

  .blog-post-content h3 {
    font-size: 1.25rem;
  }

  /* Reset floats on mobile for better readability */
  .blog-post-content img.float-left,
  .blog-post-content img.float-right {
    float: none;
    display: block;
    margin: 24px auto;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .blog-post-container {
    padding: 20px 12px;
  }

  .blog-post-header {
    padding: 24px 16px 0;
  }

  .blog-post-featured-image-wrapper {
    margin: 0 -16px;
  }

  .blog-post-content {
    padding: 24px 16px;
  }

  .blog-post-footer {
    padding: 20px 16px;
  }

  .blog-post-title {
    font-size: 1.5rem;
  }

  .blog-back-button {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* ========================================
   Print Styles - Post Page
   ======================================== */

@media print {
  .blog-post-nav,
  .blog-post-footer {
    display: none !important;
  }

  .blog-post-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .blog-post-article {
    box-shadow: none;
    border: 1px solid #E8EBF0;
  }

  .blog-post-content img {
    box-shadow: none;
  }

  /* Reset floats for print */
  .blog-post-content img.float-left,
  .blog-post-content img.float-right {
    float: none;
    display: block;
    margin: 16px auto;
  }
}

/* ========================================
   Blog Title Section
   ======================================== */

.blog-title-section {
  background: linear-gradient(135deg, #f8e8ef 0%, #e8f4f8 50%, #f8f0e8 100%);
  padding: 80px 32px 60px;
  text-align: center;
  margin-top: 100px;
}

.blog-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #243352;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.blog-title-accent {
  color: #0A6EFF;
}

.blog-subtitle {
  font-size: 1.125rem;
  color: #5a5a5a;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .blog-title-section {
    padding: 60px 20px 40px;
    margin-top: 80px;
  }

  .blog-title {
    font-size: 2rem;
  }

  .blog-subtitle {
    font-size: 1rem;
  }
}

/* ========================================
   Increased Font Sizes
   ======================================== */

/* Hero title larger */
.blog-hero-title {
  font-size: 2rem !important;
}

/* Hero excerpt larger */
.blog-hero-excerpt {
  font-size: 1.1rem !important;
}

/* Card titles larger */
.blog-card-title {
  font-size: 1.35rem !important;
}

/* Card excerpts larger */
.blog-card-excerpt {
  font-size: 1rem !important;
}

/* Post page content larger */
.blog-post-content {
  font-size: 1.125rem !important;
}

.blog-post-content p {
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
}

.blog-post-content li {
  font-size: 1.125rem !important;
}

/* Grid heading */
.blog-grid-heading {
  font-size: 1.5rem !important;
}
