/* MVFarma - HTML5 CSS Styles */

/* Font Face Declarations */
@font-face {
  font-family: "MVBoli";
  src: url("../fonts/MVBoli.woff2") format("woff2"),
       url("../fonts/MVBoli.woff") format("woff"),
       url("../fonts/MVBoli.ttf") format("truetype"),
       url("../fonts/MVBoli.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --background: hsl(47, 92%, 98%);
  --foreground: hsl(18, 23%, 31%);
  --card: hsl(47, 92%, 98%);
  --card-foreground: hsl(18, 23%, 31%);
  --primary: hsl(45, 93%, 47%);
  --primary-foreground: hsl(47, 92%, 98%);
  --secondary: hsl(50, 56%, 88%);
  --secondary-foreground: hsl(18, 23%, 31%);
  --muted: hsl(50, 56%, 88%);
  --muted-foreground: hsl(18, 23%, 31%);
  --accent: hsl(45, 83%, 91%);
  --accent-foreground: hsl(0, 0%, 0%);
  --border: hsl(50, 56%, 88%);
  --input: hsl(50, 56%, 88%);
  --ring: hsl(0, 0%, 0%);
  --radius: 0.5rem;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  background-color: var(--background);
  color: var(--foreground);
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(254, 243, 199, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-content {
    height: 5rem;
  }
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: rgb(254, 243, 199);
  transition: color 0.3s ease;
}

.logo-mv {
  font-family: "MVBoli", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  margin-right: 0.1rem;
}

header.scrolled .logo {
  color: var(--foreground);
}

/* Navigation */
nav.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  nav.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

nav.desktop-nav a {
  font-weight: 500;
  text-decoration: none;
  color: rgb(254, 243, 199);
  transition: color 0.3s ease;
}

header.scrolled nav.desktop-nav a {
  color: var(--foreground);
}

nav.desktop-nav a:hover,
nav.desktop-nav a.active {
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgb(254, 243, 199);
  transition: color 0.3s ease;
}

header.scrolled .mobile-menu-btn {
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  background-color: var(--background);
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: block;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav nav {
  padding: 1rem 0;
}

.mobile-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--foreground);
  transition: all 0.3s ease;
  border-radius: 0.25rem;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
  background-color: rgba(45, 93%, 47%, 0.1);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../lovable-uploads/hero-background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.5);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgb(254, 243, 199);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgb(254, 243, 199);
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* Page Hero Section */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.page-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.page-hero-subtitle {
  font-size: 1.25rem;
  color: white;
  max-width: 768px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .page-hero-title {
    font-size: 3.75rem;
  }
  .page-hero-subtitle {
    font-size: 1.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 1.125rem;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: rgb(254, 243, 199);
  color: black;
}

.btn-primary:hover {
  background-color: rgb(252, 211, 77);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  border: 2px solid rgb(254, 243, 199);
  color: rgb(254, 243, 199);
  background: transparent;
}

.btn-outline:hover {
  background-color: rgb(254, 243, 199);
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .btn-group {
    flex-direction: row;
  }
}

/* Sections */
.section {
  padding: clamp(2rem, 6vw, 6rem) 0;
}

.section-bg {
  background-color: var(--background);
}

.section-secondary {
  background-color: rgba(50, 56%, 88%, 0.2);
}

.section-accent {
  background-color: var(--accent);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

@media (max-width: 1023px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
  color: var(--primary);
}

h3 {
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.25rem;
  }
  h3 {
    font-size: 1.875rem;
  }
}

p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

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

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-muted {
  color: var(--muted-foreground);
}

/* Prevent browser auto-styling of phone numbers */
p.text-muted,
.text-muted {
  -webkit-tap-highlight-color: transparent;
}

/* Style tel: links to match text color */
a[href^="tel:"] {
  color: rgba(254, 243, 199, 0.8);
  text-decoration: none;
}

a[href^="tel:"]:hover {
  color: var(--background);
  text-decoration: underline;
}

/* Images */
.image-wrapper {
  border-radius: 0.5rem;
  overflow: hidden;
}

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

.aspect-4-3 {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.aspect-4-5 {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.aspect-video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.aspect-4-3 img,
.aspect-4-5 img,
.aspect-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer */
footer {
  background-color: var(--foreground);
  color: var(--background);
  border-top: 1px solid var(--border);
}

.footer-content {
  padding: clamp(1.5rem, 3vw, 2rem) 0;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .footer-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

/* Brand Section */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.footer-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--background);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  font-weight: 700;
  font-size: 0.875rem;
  font-family: "MVBoli", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--background);
  white-space: nowrap;
}

.footer-logo-mv {
  font-family: "MVBoli", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.footer-description {
  color: rgba(254, 243, 199, 0.8);
  font-size: 0.875rem;
  line-height: 1.2;
  margin: 0;
  display: none;
}

@media (min-width: 640px) {
  .footer-description {
    display: inline;
  }
}

/* Contact Section */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .footer-contact {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.footer-contact-label {
  font-weight: 600;
  color: var(--background);
  font-size: 0.875rem;
  white-space: nowrap;
}

.footer-contact-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: rgba(254, 243, 199, 0.8);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(254, 243, 199, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item:hover {
  color: var(--background);
}

/* Ensure tel links in footer match footer text color */
.footer-contact-item[href^="tel:"] {
  color: rgba(254, 243, 199, 0.8) !important;
}

.footer-contact-item[href^="tel:"]:hover {
  color: var(--background) !important;
}

.footer-contact-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(254, 243, 199, 0.2);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(254, 243, 199, 0.6);
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.2;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--foreground);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45, 93%, 47%, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  width: 100%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover:not(:disabled) {
  background-color: hsl(45, 93%, 42%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  cursor: pointer;
  background-color: var(--card);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.gallery-item .aspect-4-3,
.gallery-item .aspect-4-5,
.gallery-item .aspect-video {
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 56rem;
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #ccc;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-list li::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary);
  border-radius: 9999px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Utilities */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-delay {
  animation: fadeIn 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

/* Blog Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1023px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Main Blog Post (2/3 width) */
.blog-main-column {
  min-width: 0;
}

.blog-main-post {
  background-color: var(--card);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--muted);
}

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

.blog-main-content {
  padding: 2rem;
}

.blog-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .blog-main-title {
    font-size: 2.5rem;
  }
}

.blog-main-excerpt {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* Sidebar Blog Posts (1/3 width) */
.blog-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-sidebar-post {
  background-color: var(--card);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.blog-sidebar-post:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

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

.blog-sidebar-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--muted);
}

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

.blog-sidebar-post:hover .blog-sidebar-image img {
  transform: scale(1.05);
}

.blog-sidebar-content {
  padding: 1.25rem;
}

.blog-sidebar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-sidebar-more {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.blog-sidebar-post:hover .blog-sidebar-more {
  color: hsl(45, 93%, 42%);
}

/* Blog Meta (shared) */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgba(45, 93%, 47%, 0.1);
  color: var(--primary);
  border-radius: 9999px;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.blog-date-icon {
  width: 1rem;
  height: 1rem;
}

/* Older Posts Modal */
.blog-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.blog-modal-content {
  background-color: var(--background);
  border-radius: 0.5rem;
  max-width: 56rem;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.blog-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.blog-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

.blog-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--foreground);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.blog-modal-close:hover {
  color: var(--primary);
}

.blog-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.blog-older-post {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.blog-older-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.blog-older-link {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.blog-older-link:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .blog-older-link {
    grid-template-columns: 1fr;
  }
}

.blog-older-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: var(--muted);
}

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

.blog-older-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.blog-older-excerpt {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .blog-sidebar-column {
    order: -1;
  }
  
  .blog-main-title {
    font-size: 1.75rem;
  }
}

/* Responsive Images */
img[loading="lazy"] {
  content-visibility: auto;
}

/* Blog Back Link */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.blog-back-link:hover {
  color: hsl(45, 93%, 42%);
}

/* Print Styles */
@media print {
  header,
  footer,
  .btn,
  .mobile-menu-btn {
    display: none;
  }
}
