/* Daily Life Posts - Custom Styling
   A modern, clean design for lifestyle blog
   Created for Quark theme
   ALL STYLES APPLIED GLOBALLY TO ALL TEMPLATES
-------------------------------------------------- */

/*
 * IMPORTANT: All styles in this file are designed to apply globally
 * across all templates and page types in the Grav site.
 */

/* Custom Variables
-------------------------------------------------- */
:root {
  /* Primary color palette */
  --primary-color: #5d8cae; /* Soft blue */
  --secondary-color: #f4a261; /* Warm orange */
  --accent-color: #e76f51; /* Coral accent */
  --dark-color: #2a3d45; /* Dark teal */
  --light-color: #f8f9fa; /* Off-white */

  /* Typography */
  --heading-font: "Montserrat", sans-serif;
  --body-font: "Open Sans", sans-serif;

  /* Spacing */
  --section-spacing: 5rem;
  --element-spacing: 2rem;

  /* Effects */
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s;

  /* Border radius */
  --border-radius: 8px;
}

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap");

/* Global Styles
-------------------------------------------------- */

/* Hide the sidebar completely */

#sidebar {
  display: none !important;
}

/* Make main content full width */

#item {
  width: 100% !important;

  flex: none !important;

  max-width: 100% !important;
}

.bricklayer {
  display: grid;

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

  gap: 1.5rem;
}

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

@media (max-width: 576px) {
  .bricklayer {
    grid-template-columns: 1fr;
  }
  .blog-listing .card {
    height: 600px;
  }
}

body {
  font-family: var(--body-font);
  color: #333;
  line-height: 1.7;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: #f4a261;
  margin-bottom: 1.5rem;
}
/* h1 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem; */
/* } */

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #3a414e;
}

h2 {
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

a {
  color: var(--primary-color);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.button {
  /* background: var(--primary-color); */
  border-color: var(--primary-color);
  border-radius: var(--border-radius);
  font-family: var(--heading-font);
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.button:hover {
  /* background: var(--accent-color);
  border-color: var(--accent-color); */
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.button.button-outline {
  color: var(--primary-color);
}

.button.button-outline:hover {
  color: white;
  background: var(--primary-color);
}

/* Header Styling - Global for all templates
-------------------------------------------------- */
#header,
header,
.header,
section#header,
section.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  /* Adding transition for smooth hiding/showing effect */
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* Class to hide header when scrolling down */
#header.hide,
header.hide,
.header.hide,
section#header.hide,
section.header.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Adding top margin to body to account for fixed header */
body {
  margin-top: 100px;
  transition: margin-top 0.3s ease;
  direction: rtl;
  text-align: right;
}

/* Add scroll-up class for showing header when scrolling up */
#header.scroll-up,
header.scroll-up,
.header.scroll-up,
section#header.scroll-up,
section.header.scroll-up {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#header .logo img,
header .logo img,
.header .logo img,
section#header .logo img,
section.header .logo img {
  max-height: 75px;
}

#header .navbar-section a,
header .navbar-section a,
.header .navbar-section a,
section#header .navbar-section a,
section.header .navbar-section a,
#header nav a,
header nav a,
.header nav a,
section#header nav a,
section.header nav a {
  color: var(--dark-color);
  font-family: var(--heading-font);
  font-weight: 500;
  margin: 0 1rem;
  padding: 0.5rem 0;
  position: relative;
}

#header .navbar-section a:after,
header .navbar-section a:after,
.header .navbar-section a:after,
section#header .navbar-section a:after,
section.header .navbar-section a:after,
#header nav a:after,
header nav a:after,
.header nav a:after,
section#header nav a:after,
section.header nav a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width var(--transition-speed) ease;
}

#header .navbar-section a:hover:after,
#header .navbar-section a.active:after,
header .navbar-section a:hover:after,
header .navbar-section a.active:after,
.header .navbar-section a:hover:after,
.header .navbar-section a.active:after,
section#header .navbar-section a:hover:after,
section#header .navbar-section a.active:after,
section.header .navbar-section a:hover:after,
section.header .navbar-section a.active:after,
#header nav a:hover:after,
#header nav a.active:after,
header nav a:hover:after,
header nav a.active:after,
.header nav a:hover:after,
.header nav a.active:after,
section#header nav a:hover:after,
section#header nav a.active:after,
section.header nav a:hover:after,
section.header nav a.active:after {
  width: 100%;
}

/* Hero Section and Blog Content - Global for all templates
-------------------------------------------------- */
.hero,
#hero,
section.hero,
.page-hero,
.blog-hero,
.default-hero,
.content-hero,
.modular-hero,
[class*="-hero"],
.blog-listing .content-item,
.blog-listing .e-content,
#body-wrapper.blog-listing {
  background-color: var(--dark-color) !important;
  padding: 6rem 0;
  margin-bottom: var(--section-spacing);
  position: relative;
  overflow: hidden;
  color: white !important;
}

/* Separate styles for hero sections vs blog content */
.hero,
#hero,
section.hero,
.page-hero,
.blog-hero,
.default-hero,
.content-hero,
.modular-hero,
[class*="-hero"] {
  background-color: var(--dark-color) !important;
  color: white !important;
}

.hero:before,
#hero:before,
section.hero:before,
.page-hero:before,
.blog-hero:before,
.default-hero:before,
.content-hero:before,
.modular-hero:before,
[class*="-hero"]:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(42, 61, 69, 0.85),
    rgba(93, 140, 174, 0.75)
  ) !important;
  z-index: 1;
}

.hero > .container,
#hero > .container,
section.hero > .container,
.page-hero > .container,
.blog-hero > .container,
.default-hero > .container,
.content-hero > .container,
.modular-hero > .container,
[class*="-hero"] > .container {
  position: relative;
  z-index: 2;
}

.hero h1,
.hero h2,
#hero h1,
#hero h2,
section.hero h1,
section.hero h2,
.page-hero h1,
.page-hero h2,
.blog-hero h1,
.blog-hero h2,
.default-hero h1,
.default-hero h2,
.content-hero h1,
.content-hero h2,
.modular-hero h1,
.modular-hero h2,
[class*="-hero"] h1,
[class*="-hero"] h2,
.blog-listing .content-item h1,
.blog-listing .content-item h2,
.blog-listing .e-content h1,
.blog-listing .e-content h2 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p,
#hero p,
section.hero p,
.page-hero p,
.blog-hero p,
.default-hero p,
.content-hero p,
.modular-hero p,
[class*="-hero"] p,
.blog-listing .content-item p,
.blog-listing .e-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero .button {
  margin-right: 1rem;
}

/* Blog Item Specific Styling - For all templates
-------------------------------------------------- */
.blog-listing .content-item {
  margin-top: 2rem;
  padding-top: 2rem;
}

/* Override the dark background for blog content */
.blog-listing .content-item,
.blog-listing .e-content,
#body-wrapper.blog-listing {
  background-color: white !important;
  color: #333 !important;
  padding: 0 !important;
  margin-bottom: 2rem !important;
}

#body-wrapper.blog-listing {
  padding: 2rem 0 !important;
}

.blog-listing .container {
  padding: 2rem 0;
}

.blog-listing .content-item .content-title {
  margin-bottom: 2rem;
}

.blog-listing .content-item .content-title h2 {
  font-size: 2.5rem;
  color: var(--dark-color) !important;
  margin-bottom: 1rem;
  text-shadow: none;
}

.blog-listing .content-item .content-title h3 {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 400;
}

.blog-listing .e-content {
  margin-bottom: 3rem;
}

.blog-listing .e-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  box-shadow: var(--card-shadow);
}

.blog-listing .e-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--dark-color) !important;
  text-shadow: none;
}

.blog-listing .e-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--dark-color) !important;
  text-shadow: none;
}

.blog-listing .e-content p {
  color: #333 !important;
  text-shadow: none;
}

.blog-listing .e-content blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: #555;
  font-style: italic;
}

.blog-listing .e-content ul,
.blog-listing .e-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-listing .e-content li {
  margin-bottom: 0.5rem;
}

.blog-listing .prev-next {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* Featured Posts (Home Page)
-------------------------------------------------- */
.featured-posts {
  margin-bottom: var(--section-spacing);
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.featured-posts h2:after {
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
}

.card {
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
  margin-bottom: 2rem;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.card .card-image {
  min-height: 200px;
  overflow: hidden;
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

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

.card .card-header {
  padding: 1.5rem 1.5rem 0.5rem;
}

.card .card-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card .card-subtitle {
  color: #666;
  font-size: 0.9rem;
}

.card .card-body {
  padding: 0.5rem 1.5rem 1.5rem;
}

.card .card-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.02);
}

/* Categories Section (Home Page)
-------------------------------------------------- */
.categories {
  background-color: var(--light-color);
  padding: 5rem 0;
  margin-bottom: var(--section-spacing);
}

.categories h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.categories h2:after {
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
}

.category-card {
  text-align: center;
  padding: 2rem;
  background: var(--card-shadow);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
  margin-bottom: 2rem;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.category-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Newsletter Section (Home Page)
-------------------------------------------------- */
.newsletter {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
  margin-bottom: var(--section-spacing);
}

.newsletter h2 {
  color: white;
  text-align: center;
  margin-bottom: 1.5rem;
}

.newsletter h2:after {
  background: white;
  left: 50%;
  transform: translateX(-50%);
}

.newsletter p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  border-radius: var(--border-radius);
  padding: 0.8rem 1rem;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-form .button {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.newsletter-form .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Footer Newsletter Form - Global for all templates */
#footer .footer-subscribe,
section#footer .footer-subscribe,
.footer .footer-subscribe,
section.footer .footer-subscribe,
.bg-gray .footer-subscribe,
section.bg-gray .footer-subscribe,
.footer-subscribe {
  margin-top: 1rem;
}

#footer .footer-subscribe .input-group,
section#footer .footer-subscribe .input-group,
.footer .footer-subscribe .input-group,
section.footer .footer-subscribe .input-group,
.bg-gray .footer-subscribe .input-group,
section.bg-gray .footer-subscribe .input-group,
.footer-subscribe .input-group {
  display: flex;
  margin-bottom: 1rem;
}

#footer .footer-subscribe input,
section#footer .footer-subscribe input,
.footer .footer-subscribe input,
section.footer .footer-subscribe input,
.bg-gray .footer-subscribe input,
section.bg-gray .footer-subscribe input,
.footer-subscribe input {
  flex: 1;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#footer .footer-subscribe .btn,
section#footer .footer-subscribe .btn,
.footer .footer-subscribe .btn,
section.footer .footer-subscribe .btn,
.bg-gray .footer-subscribe .btn,
section.bg-gray .footer-subscribe .btn,
.footer-subscribe .btn,
#footer .footer-subscribe button,
section#footer .footer-subscribe button,
.footer .footer-subscribe button,
section.footer .footer-subscribe button,
.bg-gray .footer-subscribe button,
section.bg-gray .footer-subscribe button,
.footer-subscribe button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#footer .footer-subscribe .btn:hover,
section#footer .footer-subscribe .btn:hover,
.footer .footer-subscribe .btn:hover,
section.footer .footer-subscribe .btn:hover,
.bg-gray .footer-subscribe .btn:hover,
section.bg-gray .footer-subscribe .btn:hover,
.footer-subscribe .btn:hover,
#footer .footer-subscribe button:hover,
section#footer .footer-subscribe button:hover,
.footer .footer-subscribe button:hover,
section.footer .footer-subscribe button:hover,
.bg-gray .footer-subscribe button:hover,
section.bg-gray .footer-subscribe button:hover,
.footer-subscribe button:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* About Us Page
-------------------------------------------------- */
.about-hero {
  background-color: var(--light-color);
  padding: 6rem 0;
  margin-bottom: var(--section-spacing);
  position: relative;
}

.about-hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.05;
  clip-path: polygon(0 0, 75% 0%, 100% 100%, 0% 100%);
}

.about-content {
  margin-bottom: var(--section-spacing);
}

.about-content img {
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.team-section {
  background-color: var(--light-color);
  padding: 5rem 0;
  margin-bottom: var(--section-spacing);
}

.team-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.team-section h2:after {
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
}

.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid white;
  box-shadow: var(--card-shadow);
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member p {
  color: #666;
  margin-bottom: 1rem;
}

.social-links a {
  display: inline-block;
  margin: 0 0.5rem;
  color: var(--dark-color);
  transition: color var(--transition-speed) ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

/* Contact Us Page
-------------------------------------------------- */
.contact-hero {
  background-color: var(--light-color);
  padding: 6rem 0;
  margin-bottom: var(--section-spacing);
  position: relative;
}

.contact-hero:before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.05;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 25% 0);
}

.contact-info {
  margin-bottom: var(--element-spacing);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  margin-top: 0.2rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  transition: border-color var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
}

.contact-form .button {
  width: 100%;
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* Footer Styling - Global for all templates
-------------------------------------------------- */
/* This ensures all text in the footer is visible regardless of template */
#footer,
section#footer,
.footer,
section.footer,
.bg-gray,
section.bg-gray {
  background-color: var(--dark-color) !important;
  background-image: linear-gradient(to bottom, #2a3d45, #1a2a30) !important;
  color: white !important;
  padding: 4rem 0 2rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure all paragraph text in footer is visible */
#footer p,
section#footer p,
.footer p,
section.footer p,
.bg-gray p,
section.bg-gray p {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

#footer h4,
section#footer h4,
.footer h4,
section.footer h4,
.bg-gray h4,
section.bg-gray h4 {
  color: white !important;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#footer ul,
section#footer ul,
.footer ul,
section.footer ul,
.bg-gray ul,
section.bg-gray ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer ul li,
section#footer ul li,
.footer ul li,
section.footer ul li,
.bg-gray ul li,
section.bg-gray ul li {
  margin-bottom: 0.8rem;
}

#footer ul li a,
section#footer ul li a,
.footer ul li a,
section.footer ul li a,
.bg-gray ul li a,
section.bg-gray ul li a {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color var(--transition-speed) ease;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

#footer ul li a:hover,
section#footer ul li a:hover,
.footer ul li a:hover,
section.footer ul li a:hover,
.bg-gray ul li a:hover,
section.bg-gray ul li a:hover {
  color: var(--secondary-color) !important;
}

#footer .footer-social a,
section#footer .footer-social a,
.footer .footer-social a,
section.footer .footer-social a,
.bg-gray .footer-social a,
section.bg-gray .footer-social a,
.footer-social a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  margin-right: 0.5rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#footer .footer-social a:hover,
section#footer .footer-social a:hover,
.footer .footer-social a:hover,
section.footer .footer-social a:hover,
.bg-gray .footer-social a:hover,
section.bg-gray .footer-social a:hover,
.footer-social a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#footer .footer-bottom,
section#footer .footer-bottom,
.footer .footer-bottom,
section.footer .footer-bottom,
.bg-gray .footer-bottom,
section.bg-gray .footer-bottom,
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

#footer .footer-bottom p,
section#footer .footer-bottom p,
.footer .footer-bottom p,
section.footer .footer-bottom p,
.bg-gray .footer-bottom p,
section.bg-gray .footer-bottom p,
.footer-bottom p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7) !important;
}

#footer .footer-bottom a,
section#footer .footer-bottom a,
.footer .footer-bottom a,
section.footer .footer-bottom a,
.bg-gray .footer-bottom a,
section.bg-gray .footer-bottom a,
.footer-bottom a {
  color: var(--secondary-color) !important;
  transition: color var(--transition-speed) ease;
}

#footer .footer-bottom a:hover,
section#footer .footer-bottom a:hover,
.footer .footer-bottom a:hover,
section.footer .footer-bottom a:hover,
.bg-gray .footer-bottom a:hover,
section.bg-gray .footer-bottom a:hover,
.footer-bottom a:hover {
  color: white !important;
}

/* Responsive Adjustments
-------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-spacing: 3rem;
    --element-spacing: 1.5rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero,
  #hero,
  section.hero,
  .page-hero,
  .blog-hero,
  .default-hero,
  .content-hero,
  .modular-hero,
  [class*="-hero"] {
    padding: 4rem 0;
  }

  /* Ensure blog content keeps white background in responsive view */
  .blog-listing .content-item,
  .blog-listing .e-content,
  #body-wrapper.blog-listing {
    background-color: white !important;
    color: #333 !important;
  }

  #body-wrapper.blog-listing {
    padding: 2rem 0 !important;
  }

  .hero h1,
  .hero h2,
  #hero h1,
  #hero h2,
  section.hero h1,
  section.hero h2,
  .page-hero h1,
  .page-hero h2,
  .blog-hero h1,
  .blog-hero h2,
  .default-hero h1,
  .default-hero h2,
  .content-hero h1,
  .content-hero h2,
  .modular-hero h1,
  .modular-hero h2,
  [class*="-hero"] h1,
  [class*="-hero"] h2,
  .blog-listing .content-item h1,
  .blog-listing .content-item h2,
  .blog-listing .e-content h1,
  .blog-listing .e-content h2 {
    font-size: 2.5rem;
  }

  .hero p,
  #hero p,
  section.hero p,
  .page-hero p,
  .blog-hero p,
  .default-hero p,
  .content-hero p,
  .modular-hero p,
  [class*="-hero"] p,
  .blog-listing .content-item p,
  .blog-listing .e-content p {
    font-size: 1rem;
  }

  /* Blog item responsive styles for tablet */
  .blog-listing .content-item {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .blog-listing .content-item .content-title {
    margin-bottom: 1.5rem;
  }

  .blog-listing .content-item .content-title h2 {
    font-size: 2rem;
    color: var(--dark-color) !important;
    text-shadow: none;
  }

  .blog-listing .content-item .content-title h3 {
    font-size: 1.3rem;
  }

  .blog-listing .e-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    color: var(--dark-color) !important;
    text-shadow: none;
  }

  .blog-listing .e-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    color: var(--dark-color) !important;
    text-shadow: none;
  }

  .blog-listing .e-content p {
    color: #333 !important;
    text-shadow: none;
  }

  .blog-listing .e-content blockquote {
    padding-left: 1.2rem;
    margin: 1.8rem 0;
  }

  .newsletter {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero,
  #hero,
  section.hero,
  .page-hero,
  .blog-hero,
  .default-hero,
  .content-hero,
  .modular-hero,
  [class*="-hero"] {
    padding: 3rem 0;
  }

  /* Ensure blog content keeps white background in mobile view */
  .blog-listing .content-item,
  .blog-listing .e-content,
  #body-wrapper.blog-listing {
    background-color: white !important;
    color: #333 !important;
  }

  #body-wrapper.blog-listing {
    padding: 1.5rem 0 !important;
  }

  .hero h1,
  #hero h1,
  section.hero h1,
  .page-hero h1,
  .blog-hero h1,
  .default-hero h1,
  .content-hero h1,
  .modular-hero h1,
  [class*="-hero"] h1,
  .blog-listing .content-item h1,
  .blog-listing .e-content h1 {
    font-size: 2.2rem;
  }

  /* Blog item responsive styles for mobile */
  .blog-listing .content-item {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .blog-listing .content-item .content-title {
    margin-bottom: 1rem;
  }

  .blog-listing .content-item .content-title h2 {
    font-size: 1.8rem;
    color: var(--dark-color) !important;
    text-shadow: none;
  }

  .blog-listing .content-item .content-title h3 {
    font-size: 1.2rem;
  }

  .blog-listing .e-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    color: var(--dark-color) !important;
    text-shadow: none;
  }

  .blog-listing .e-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    color: var(--dark-color) !important;
    text-shadow: none;
  }

  .blog-listing .e-content p {
    color: #333 !important;
    text-shadow: none;
  }

  .blog-listing .e-content blockquote {
    padding-left: 1rem;
    margin: 1.5rem 0;
  }

  .blog-listing .e-content img {
    margin: 1rem 0;
  }

  .blog-listing .prev-next {
    margin-top: 2rem;
    padding-top: 1rem;
  }

  .card .card-image {
    min-height: 180px;
  }

  .team-member img {
    width: 120px;
    height: 120px;
  }
}

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

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

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

.fade-in-delay-2 {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.4s;
}

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

.post-image img {
  height: auto;     
  display: block;
  margin: 0 auto;   
  object-fit: cover; 
  aspect-ratio: 16/9;
  margin-bottom: 2rem;
}