/* Fonts and Base Styles */
body, p, li, a {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem; /* 16px base, scalable */
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.08em; /* Refined spacing */
  font-weight: 500; /* Slightly bolder for elegance */
}
h1 { font-size: 2.25rem; } /* From blog.html wildflower-section */
h2 { font-size: 1.75rem; } /* From blog post */
h3 { font-size: 1.5rem; } /* 24px */
h4 { font-size: 1.25rem; } /* 20px */
h5 { font-size: 1rem; } /* Align with W3.CSS */
h6 { font-size: 0.875rem; } /* Align with W3.CSS */
body, html { height: 100%; line-height: 1.8; }

/* Color Palette */
:root {
  --primary-1: #D2B48C; /* Taupe */
  --primary-2: #4A4A4A; /* Dark Gray */
  --primary-3: #96AA9A; /* Sage Green */
  --primary-4: #5E718B; /* Slate Blue */
  --secondary-1: #F5F1EA; /* Cream */
  --secondary-2: #BFCBD9; /* Dusty Blue */
  --secondary-3: #000000; /* Black */
  --rustic-accent: #8B5A2B; /* Bronze for specific hovers */
}

/* Hero Section */
.bgimg-1 {
  background-position: center;
  background-size: cover;
  min-height: 100%;
  z-index: 0;
}
.bgimg-index {
  background-image: url("img/home.webp");
}
.bgimg-buying {
  background-image: url("img/image_buying.webp");
}
.bgimg-selling {
  background-image: url("img/image_selling.webp");
}
.bgimg-commercial {
  background-image: url("img/image_commercial.webp");
}
.bgimg-blog {
  background-image: url("img/image_blog.webp");
}
.bgimg-store {
  background-image: url("img/image_store.webp");
}
.bgimg-contact {
  background-image: url("img/image_contact.webp");
}
.bgimg-careers {
  background-image: url("img/image_careers.webp");
}
.bgimg-a-place-to-call-home {
  background-image: url("img/neighbourhood_newmarket.webp");
}
.bgimg-apple-cider {
  background-image: url("img/blog_apples2.webp");
}
.bgimg-outdoor-elegance {
  background-image: url("img/blog_curatingoutdoorelegance_hero.webp");
}
.bgimg-timeless-interiors {
  background-image: url("img/blog_designingtimelessinteriors_hero.webp");
}
.w3-display-middle {
  background-color: #000000;
  padding: 24px;
  border-radius: 8px;
}
/* Hero Section Text for title and tagline */
.w3-display-middle .w3-xlarge {
  font-family: "Playfair Display", serif;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.w3-display-middle .w3-large {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Navbar */
.w3-top {
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.w3-bar .w3-button {
  padding: 16px;
  color: var(--secondary-3);
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
}
.w3-bar .w3-button:hover {
  background-color: var(--secondary-2);
  color: var(--secondary-3);
}
.w3-bar .w3-button:focus {
  outline: 2px solid var(--primary-4);
}
.w3-bar .w3-bar-item.w3-button.button {
  background-color: #FFFFFF; /* White background */
  color: var(--secondary-3); /* Black text */
  padding: 16px; /* Match other navbar items */
  margin: 0; /* Remove margin to prevent offset */
  line-height: 1.8; /* Match body line-height for consistency */
  display: inline-block; /* Ensure consistent box model */
  border-radius: 0; /* Remove border-radius for alignment */
}
.w3-bar .w3-bar-item.w3-button.button:hover {
  background-color: var(--secondary-2); /* Dusty Blue on hover */
  color: var(--secondary-3); /* Black text */
}
#myNavbar .w3-bar-item.w3-button.active {
  background-color: var(--secondary-2); /* #BFCBD9 */
  color: var(--secondary-3); /* Black */
}
#myNavbar .w3-image {
  padding: 15px;
}

/* Mobile Sidebar */
.w3-sidebar {
  z-index: 1001;
  width: 100%;
  max-width: 300px;
}
.w3-sidebar .w3-bar-item {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 16px;
}
.w3-sidebar .w3-button:hover {
  background-color: var(--secondary-2);
  color: var(--secondary-3);
}
.w3-sidebar.w3-bar-block .w3-bar-item.w3-button.active {
  background-color: var(--secondary-2); /* #BFCBD9 */
  color: var(--secondary-3); /* Black */
}

/* Buttons */
.button {
  background-color: var(--secondary-3);
  border: none;
  color: #FFFFFF;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
  border-radius: 8px;
}
.button:hover {
  background-color: var(--secondary-2);
  color: #FFFFFF;
}

/* Share Button for Blog Posts */
.blog-post .text-button {
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--secondary-3);
  text-decoration: none;
  display: inline-block;
  margin: 4px 8px 4px 0;
  transition: color 0.3s ease;
}
.blog-post .text-button:hover {
  color: var(--rustic-accent);
  text-decoration: underline;
}
.blog-post .text-button.copied {
  color: var(--primary-3);
}
.blog-post .text-button i {
  margin-right: 6px;
}

/* Recipe-Specific Buttons */
.recipe-post .text-button {
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--secondary-3);
  text-decoration: none;
  display: inline-block;
  margin: 4px 8px 4px 0;
  transition: color 0.3s ease;
}
.recipe-post .text-button:hover {
  color: var(--rustic-accent);
  text-decoration: underline;
}
.recipe-post .text-button.copied {
  color: var(--primary-3);
}
.recipe-post .text-button i {
  margin-right: 6px;
}

/* Recipe Metadata */
.recipe-post .meta {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--secondary-3);
  margin-bottom: 10px;
}
.recipe-post .meta i {
  margin-right: 6px;
}

/* Form Styling */
.w3-input, .w3-select, textarea {
  padding: 12px;
  font-size: 1rem;
  background-color: #FFFFFF;
  color: var(--secondary-3);
  border: 1px solid var(--primary-1);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}
.w3-input:focus, .w3-select:focus, textarea:focus {
  border-color: var(--primary-1);
  outline: none;
}
.w3-input:invalid, .w3-select:invalid, textarea:invalid {
  border-color: #ff4d4d;
}
.w3-text-grey {
  color: var(--primary-2);
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 4px;
  display: block;
}

/* Contact Info Styling */
.contact-info {
  margin: 24px 0;
  line-height: 2;
  text-align: center;
}
.contact-info p {
  color: var(--secondary-3);
  font-size: 1rem;
}
.contact-info a {
  color: var(--secondary-3);
  text-decoration: none;
}
.contact-info a:hover {
  color: var(--secondary-2);
}

/* Section Styles */
.w3-container.section-padding {
  padding: 80px 16px;
  background-color: var(--secondary-1);
  z-index: 0;
}

/* Content Wrapper */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  background-color: var(--secondary-1);
}
.blog-section .content-wrapper {
  background-color: transparent; /* From blog.html */
}

/* Section Headers */
h3.w3-center {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 30px;
  margin-top: 64px;
}
h3.w3-center::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--secondary-3);
}

/* Wildflower Icons */
.wildflower-icon {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding-top: 16px;
  margin-bottom: 8px;
}
/* Index.html: Five different flowers */
.wildflower-1 { content: url("img/flower1.webp"); }
.wildflower-2 { content: url("img/flower2.webp"); }
.wildflower-3 { content: url("img/flower3.webp"); }
.wildflower-4 { content: url("img/flower4.webp"); }
.wildflower-5 { content: url("img/flower5.webp"); }
/* Other pages: Single flower per page */
.wildflower-buying { content: url("img/flower3.webp"); }
.wildflower-selling { content: url("img/flower2.webp"); }
.wildflower-commercial { content: url("img/flower4.webp"); }
.wildflower-blog { content: url("img/flower5.webp"); }
.wildflower-store { content: url("img/flower1.webp"); }
.wildflower-contact { content: url("img/flower2.webp"); }
.wildflower-careers { content: url("img/flower2.webp"); }
.wildflower-about { content: url("img/flower2.webp"); }

/* Sizing of flowers */
.section-img {
  background-image: url("img/flower.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100px auto;
  height: 120px;
}

/* Blog Section (from blog.html) */
.blog-section {
  padding: 0 20px 32px;
  background-color: #fff;
  margin-top: 32px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--primary-1);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card img {
  max-width: 200px;
  height: auto;
  min-height: unset;
  display: block;
  margin: 0 auto;
  padding-top: 15px;
  pointer-events: none;
}
.blog-card-content {
  padding: 15px;
}
.blog-card-content h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #000;
}
.blog-card-content p {
  margin: 10px 0;
  font-size: 0.875rem;
  color: #666;
  text-align: left;
}

/* Wildflower Section (from blog.html) */
.wildflower-section {
  text-align: center;
  padding: 20px;
}
.wildflower-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0;
}
.wildflower-section p {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 10px 0;
}

/* Service Icon (merged from blog.html) */
.service-icon {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Blog Post Pages */
.blog-post .w3-container.section-padding {
  padding: 0px 16px;
  background-color: #FFFFFF;
  margin-top: 80px;
}
.blog-post .w3-container.section-padding .content-wrapper {
  background-color: #FFFFFF;
}
.blog-post .w3-display-middle {
  max-width: 80%;
  text-align: center;
}
.blog-post .w3-display-middle .w3-xlarge {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}
.blog-post .w3-display-middle .author {
  font-size: 1rem;
  font-style: italic;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.blog-post .blog-content {
  background-color: #FFFFFF;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-bottom: 40px;
}
.blog-post .section-image-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rustic-accent);
  padding-bottom: 32px;
}
.blog-post .section-image-container:last-child {
  border-bottom: none;
}
.blog-post .section-image-container.left-image .image-wrapper {
  flex: 1 1 300px;
  min-width: 300px;
  margin-right: 24px;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.blog-post .section-image-container.right-image .image-wrapper {
  flex: 1 1 300px;
  min-width: 300px;
  margin-left: 24px;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 2;
}
.blog-post .section-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.blog-post .section-text {
  flex: 2 1 600px;
}
.blog-post .section-text p {
  color: var(--secondary-3);
  font-size: 1rem;
  margin-bottom: 16px;
}
.blog-post .section-text a {
  color: var(--secondary-3);
  text-decoration: none;
}
.blog-post .section-text a:hover {
  color: var(--secondary-2);
}
.blog-post .section-text ul, .blog-post .section-text ol {
  margin-bottom: 16px;
  padding-left: 20px;
}
.blog-post .section-text li {
  margin-bottom: 10px;
  font-size: 1rem;
}
.blog-post .source {
  font-style: italic;
  color: var(--secondary-3);
  margin: 10px 0;
  font-size: 0.875rem;
  text-align: left;
}
.blog-post .back-button {
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--secondary-3);
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
}
.blog-post .back-button:hover {
  color: var(--rustic-accent);
  text-decoration: underline;
}

/* Footer Buttons */
.footer-subscribe .button {
  background-color: var(--secondary-3);
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  border-radius: 8px;
}
.footer-subscribe .button.w3-block {
  width: 100%;
}
.footer-subscribe .button:hover {
  background-color: var(--secondary-2);
  color: #FFFFFF;
}
footer .button-container {
  margin: 0;
  padding: 0;
}

/* Footer Input */
.footer-subscribe input[type="email"] {
  background-color: #FFFFFF;
  border: 1px solid var(--primary-1);
  padding: 12px;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  border-radius: 8px;
  width: 100%;
}

/* Checkbox container */
.footer-subscribe .checkbox-container {
  display: flex;
  align-items: center;
  text-align: left;
  margin: 8px 0 0 0;
}
.checkbox-container input {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
.checkbox-container label {
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
}

/* Error message styling */
.error-message {
  display: none;
  background-color: rgba(0, 0, 0, 0.8);
  color: #FFFFFF;
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 8px 16px;
  margin-top: 8px;
  border-radius: 4px;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: fit-content;
  min-width: 200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.error-message.active {
  display: block;
}
.newsletter-pre-footer {
  position: relative;
}
#careers-form {
  position: relative;
}
#name-error.active,
#email-error.active,
#phone-error.active,
#reason-error.active,
#message-error.active,
#consent-error.active {
  top: -50px; /* Position above form fields */
}
#footer-email-error.active {
  top: -80px; /* Position above the email input */
}
#footer-consent-error.active {
  top: -30px; /* Position below email error, closer to consent checkbox */
}

/* Footer */
footer {
  background-color: var(--primary-4);
}
footer .content-wrapper {
  background-color: var(--primary-4);
}
footer, footer a {
  color: var(--secondary-3);
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
}
footer a:hover {
  color: #FFFFFF; 
}
footer a[href="mailto:general@nestowarealty.ca"]:hover {
  color: #FFFFFF;
}
.footer-column h4, .footer-column .brand-title {
  font-size: 1.25rem;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--secondary-3);
}
.footer-logo img {
  width: 200px;
  height: auto;
}
.footer-links {
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  margin: 0;
}
.footer-links li {
  display: inline;
  margin-right: 12px;
}
.footer-links a {
  text-decoration: none;
  color: var(--secondary-3);
}
.footer-links a[href*="registrantsearch.reco.on.ca"] {
  text-decoration: none;
}
.footer-links a:hover {
  color: #FFFFFF;
}
.footer-copyright {
  font-size: 0.875rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  margin: 0;
  padding-top: 4px;
}
.footer-bottom hr {
  margin: 8px 0;
  border-top: 4px solid var(--secondary-3);
}
footer .w3-row-padding .w3-third {
  padding: 16px 24px;
}

/* Footer Social Icons */
.footer-social-icons {
  margin-top: 8px;
}
.footer-social-icons a:hover i {
  color: #FFFFFF;
}

/* Buying Section Button */
.button-container {
  text-align: left;
}

/* Index-Specific Styles */
#index .w3-container.section-padding#testimonials {
  background-color: var(--primary-3); /* Sage Green */
}
#index .w3-container.section-padding#testimonials .content-wrapper {
  background-color: var(--primary-3); /* Sage Green */
}
#index .w3-container.section-padding#work {
  background-color: var(--primary-3); /* Sage Green */
}
#index .w3-container.section-padding#neighbourhoods-section {
  background-color: var(--primary-1); /* Taupe */
}
#index .w3-container.section-padding#neighbourhoods-section .content-wrapper {
  background-color: var(--primary-1); /* Taupe */
}
#index .w3-container.section-padding#pre-footer {
  background-color: transparent;
  background-image: url("img/livingroom.webp");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 500px;
}
#index .w3-container.section-padding[style*="background-color: var(--primary-2)"] {
  background-image: url("img/house.webp");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 500px;
}
#index .nestowa-quote {
  background-image: url("img/outdoorliving.webp");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 500px;
  background-color: transparent;
  color: #FFFFFF;
}
#index .team-member {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
#index .team-member img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  margin-right: 48px;
}
#index .team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
#index .neighbourhood-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0 0 8px 8px;
}
#index .service-icon {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}
#index #work .w3-card-4 {
  position: relative;
  overflow: hidden;
  padding-top: 16px;
  background-color: var(--secondary-1);
  transition: transform 0.3s ease;
  min-height: 300px;
  border-radius: 8px;
}
#index #work .w3-card-4:hover {
  transform: scale(1.05);
}
#index #work .w3-card-4 .w3-container {
  padding: 0 16px 16px;
  height: 100%;
}
#index #work .content-wrapper {
  background-color: var(--primary-3);
}
#index .w3-center-text {
  text-align: center;
}
#index .testimonials-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
#index .testimonials-grid .testimonial {
  background-color: #F5F1EA; /* Cream */
  border-left: 4px solid var(--primary-1);
  padding: 24px;
  margin-bottom: 24px;
  width: 100%;
  text-align: center;
  border-radius: 8px;
}
#index .testimonials-grid blockquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--primary-2);
}
#index .testimonials-grid cite {
  font-size: 0.875rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  color: var(--primary-2);
}
#index #team .w3-row-padding {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas: 
    "adam sarah";
  gap: 32px;
}
#index #team .w3-col:nth-child(1) { grid-area: adam; }
#index #team .w3-col:nth-child(2) { grid-area: sarah; }
#index #team .w3-col {
  width: 100% !important;
}
#index #work .w3-row-padding {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
}
#index #work .w3-col {
  flex: 1;
  margin: 0 8px 16px;
}
#index #about .button-container {
  text-align: left;
}

/* Printing */
@media print {
  .w3-top {
    position: static;
  }
  .blog-post .bgimg-1 {
    display: none;
  }
  .blog-post .section-text p,
  .blog-post .section-text li,
  .blog-post .meta,
  .blog-post h1,
  .blog-post h2 {
    color: #000000 !important;
  }
  .blog-post footer {
    display: none;
  }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .content-wrapper {
    padding: 0 8px;
  }
  .w3-container.section-padding {
    padding: 32px 8px;
  }
  .wildflower-icon {
    width: 100px; /* Keep smaller size for consistency */
  }
  .blog-grid {
    grid-template-columns: 1fr; /* From blog.html */
  }
  .blog-card {
    max-width: 100%; /* From blog.html */
  }
  .blog-card img {
    max-width: 200px;
    margin: 0 auto;
    padding-top: 15px; /* From blog.html */
  }
  .w3-col.l6, .w3-col.l8, .w3-col.m8, .w3-col.m10 {
    width: 100%;
  }
  footer .w3-row-padding {
    flex-direction: column;
    align-items: center;
  }
  footer .w3-third {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
  }
  .footer-subscribe input[type="email"],
  .footer-subscribe .button {
    width: 100%;
  }
  .blog-post .text-button {
    display: block;
    margin: 8px 0;
  }
  #index .team-member {
    flex-direction: column;
    text-align: center;
  }
  #index .team-member img {
    margin: 0 auto 16px;
  }
  .w3-display-middle .w3-xlarge {
    font-size: 1.5rem;
  }
  .w3-display-middle .w3-large {
    font-size: 1.125rem;
  }
  #index #team .w3-row-padding {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "adam"
      "sarah";
  }
  #index #work .w3-row-padding {
    flex-wrap: wrap;
  }
  #index #work .w3-col {
    flex: none;
    width: 100% !important;
    margin: 0 0 16px;
  }
  #index .testimonials-grid .testimonial {
    margin: 0 0 16px;
  }
  #index #work .w3-card-4 {
    padding-top: 16px;
    min-height: auto;
  }
  #index #work .w3-card-4 .w3-container {
    padding: 0 16px 16px;
  }
  #index .service-icon {
    width: 80px;
  }
  .w3-row-padding .w3-half {
    width: 100%;
    margin-bottom: 16px;
  }
}
@media (max-width: 768px) {
  .blog-post .w3-display-middle {
    max-width: 90%;
  }
  .blog-post .w3-display-middle .w3-xlarge {
    font-size: 1.75rem;
  }
  .blog-post .section-image-container.left-image .image-wrapper,
  .blog-post .section-image-container.right-image .image-wrapper {
    min-width: 100%;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 16px;
  }
  .blog-post .section-image-container.right-image .image-wrapper {
    order: 0;
  }
  .blog-post .section-text {
    flex: 1 1 100%;
  }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  .bgimg-1 {
    background-attachment: scroll;
  }
  #index #pre-footer,
  #index .nestowa-quote,
  #index .w3-container.section-padding[style*="background-color: var(--primary-2)"] {
    background-attachment: scroll;
  }
}
