:root {
  --primary: #7a263a;
  --primary-hover: #8B1538;
  --secondary: #a03c5b;
  --text-primary: #333;
  --text-secondary: #555;
  --text-muted: #888;
  --bg-primary: #fff;
  --bg-secondary: #f8fafc;
  --bg-accent: #f1f5f9;
  --border-color: #e5e5e5;
  --border-light: #f1f5f9;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.05);
  --card-bg: white;
  --navbar-bg: #F5F5F5;
  --footer-bg: white;
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;
  --z-navbar: 1000;
  --z-dropdown: 1010;
  --z-modal: 1020;
  --z-tooltip: 1030;
  --radius: 25px;
  --shadow: 0 4px 24px 0 rgba(0,0,0,0.03);
  --font-main: 'Georgia', 'Times New Roman', serif;
}

/* Light Theme (Default) */
body[data-theme="light"],
html[data-theme="light"],
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #F5F5F5;
  --bg-accent: #f8f9fa;
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border-color: #e5e5e5;
  --border-light: #f1f1f1;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.05);
  --card-bg: #ffffff;
  --input-bg: #f8fafc;
  --navbar-bg: #F5F5F5;
  --footer-bg: #ffffff;
  
  /* Additional variables for consistency */
  --text: #333;
  --muted: #888;
  --border: #e5e5e5;
  --shadow: 0 4px 24px 0 rgba(0,0,0,0.03);
}

/* Dark Theme */
body[data-theme="dark"],
html[data-theme="dark"],
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-accent: #3a3a3a;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --border-color: #404040;
  --border-light: #505050;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-light: rgba(0, 0, 0, 0.2);
  --card-bg: #2d2d2d;
  --input-bg: #3a3a3a;
  --navbar-bg: #2d2d2d;
  --footer-bg: #1a1a1a;
  
  /* Additional variables for better dark theme support */
  --text: #e0e0e0;
  --muted: #808080;
  --border: #404040;
  --shadow: 0 4px 24px 0 rgba(0,0,0,0.5);
}

/* Base mobile-first styles */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font-primary);
  background: var(--bg-primary, white) !important;
  color: var(--text-primary, #333) !important;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-top: 90px !important; /* Minimal space for fixed navbar */
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Default theme initialization */
body:not([data-theme]) {
  --bg-primary: #ffffff;
  --bg-secondary: #F5F5F5;
  --bg-accent: #f8f9fa;
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border-color: #e5e5e5;
  --border-light: #f1f1f1;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.05);
  --card-bg: #ffffff;
  --input-bg: #f8fafc;
  --navbar-bg: #F5F5F5;
  --footer-bg: #ffffff;
  
  /* Additional variables for consistency */
  --text: #333;
  --muted: #888;
  --border: #e5e5e5;
  --shadow: 0 4px 24px 0 rgba(0,0,0,0.03);
}

/* Reset all browser defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Main Content Background */
main,
.hero,
.section,
.content,
.container,
.articles-section,
.podcast-section,
.gallery-section,
.homepage-container {
  background: var(--bg-secondary, #F5F5F5);
  transition: background-color 0.3s ease;
}

/* Ensure proper backgrounds for cards */
.article-card,
.podcast-card,
.card,
.modal-content {
  background: var(--card-bg, white) !important;
  color: var(--text-primary, #333) !important;
  border: 1px solid var(--border-color, #e5e5e5) !important;
  box-shadow: 0 4px 16px var(--shadow-light, rgba(0,0,0,0.05)) !important;
  transition: all 0.3s ease !important;
}

/* Mobile spacing for fixed navbar */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 14px;
  }
  
  body {
    padding-top: 80px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  body {
    padding-top: 70px;
  }
  
  .btn {
    padding: 10px 20px;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 13px;
  }
  
  .btn {
    width: 100%;
  }
}

a { 
  color: var(--primary); 
  text-decoration: none; 
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
a:hover { color: #a03c5b; }

/* Basic navbar styles - mobile and responsive handled in navbar.php */
.navbar {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 18px 32px; 
  background: #F5F5F5; 
  border-bottom: none;
  position: sticky; 
  top: 0; 
  z-index: 100;
  min-height: 70px;
}

.navbar nav { 
  display: flex;
  gap: 20px; 
}

.navbar nav a {
  font-weight: 400;
  color: var(--text);
  font-size: 1rem;
  padding: 12px 8px;
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.navbar nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 8px;
  left: 8px;
  background-color: var(--primary);
  transition: width 0.3s;
}

.navbar nav a.active::after, .navbar nav a:hover::after {
  width: calc(100% - 16px);
}

.navbar nav a.active, .navbar nav a:hover {
  color: var(--primary);
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px 16px;
  max-width: 100%;
  margin: 0 auto;
  gap: 10px;
}

.hero-content {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  font-family: var(--font-heading);
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 100%;
  line-height: 1.5;
}

.hero-buttons { 
  display: flex; 
  flex-direction: column;
  gap: 12px; 
  width: 100%;
  max-width: 300px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { 
  background: #a03c5b; 
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover { 
  background: var(--primary); 
  color: #fff; 
}

.hero-image { 
  width: 100%;
  display: flex; 
  justify-content: center; 
  margin-top: 20px;
}

.hero-image img {
  width: 100%; 
  max-width: 300px;
  height: 160px; 
  object-fit: cover; 
  border-radius: var(--radius);
  box-shadow: var(--shadow); 
  background: #F5F5F5; 
  border: 1px solid var(--border); 
}

/* Section styles */
.section { 
  max-width: 100%; 
  margin: 0 auto; 
  padding: 30px 16px; 
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-heading);
  line-height: 1.3;
}

.section-link { 
  font-size: 0.9rem; 
  color: var(--primary); 
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Mobile-first grid layouts */
.articles-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.article-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover { 
  box-shadow: 0 8px 32px 0 rgba(122,38,58,0.12);
  transform: translateY(-2px);
}

.article-img {
  width: 100%;
  height: 200px;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-img img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: 1;
  transition: transform 0.3s ease;
}

.article-card:hover .article-img img {
  transform: scale(1.05);
}

.article-content {
  padding: 16px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--font-heading);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-link {
  color: var(--primary); 
  font-weight: 500; 
  font-size: 0.9rem;
  margin-top: auto;
  position: relative;
  padding: 8px 0;
  min-height: 44px;
}

.article-link::after {
  content: '→';
  margin-left: 8px;
  transition: transform 0.2s;
}

.article-link:hover::after {
  transform: translateX(4px);
}

/* Podcast section */
.podcast-section { 
  background: #F5F5F5; 
  padding: 40px 16px; 
  margin-bottom: 30px; 
}

.podcast-inner { 
  max-width: 100%; 
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}

.podcast-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text);
  font-family: var(--font-heading);
}

.podcast-desc { 
  color: var(--muted); 
  font-size: 1rem; 
  margin-bottom: 25px; 
  text-align: center;
  line-height: 1.5;
}

.podcast-row { 
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px; 
  width: 100%; 
  margin-bottom: 20px; 
}

.podcast-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.podcast-card:hover { 
  box-shadow: 0 8px 32px 0 rgba(122,38,58,0.15);
  transform: translateY(-2px);
}

.podcast-img { 
  width: 40px; 
  height: 40px; 
  background: #F5F5F5; 
  border-radius: 25px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 8px; 
}

.podcast-img img { 
  width: 24px; 
  height: 24px; 
  opacity: 0.7; 
}

.podcast-title-card { 
  font-size: 1rem; 
  font-weight: 600; 
  color: var(--text); 
  margin-bottom: 4px;
  line-height: 1.3;
}

.podcast-desc-card { 
  font-size: 0.9rem; 
  color: #444; 
  margin-bottom: 12px;
  line-height: 1.4;
}

.podcast-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  min-height: 44px;
}

.podcast-btn:hover { 
  background: #a03c5b;
  transform: translateY(-1px);
}

.podcast-all-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  width: 100%;
  max-width: 250px;
}

.podcast-all-btn:hover { 
  background: var(--primary); 
  color: #fff; 
}

/* Gallery section */
.gallery-section { 
  max-width: 100%; 
  margin: 0 auto 30px auto; 
  padding: 30px 16px; 
  text-align: center; 
}

.gallery-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
  font-family: var(--font-heading);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 25px;
}

.gallery-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px 0 rgba(122,38,58,0.12);
}

.gallery-item {
  position: relative;
  cursor: pointer;
}

.gallery-item img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: 1;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery overlay for hover effects */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.8) 100%
  );
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding: 16px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.gallery-zoom-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.2);
  padding: 12px;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: transform 0.2s ease;
}

.gallery-item:hover .gallery-zoom-icon {
  transform: scale(1.1);
}

.gallery-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.gallery-item-date {
  font-size: 0.8rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Gallery placeholder styling */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  color: #999;
  gap: 8px;
}

.gallery-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.gallery-placeholder span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Gallery footer styling */
.gallery-footer {
  text-align: center;
  margin-top: 20px;
}

.gallery-count {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: normal;
  margin-left: 8px;
}

/* No gallery message styling */
.no-gallery-message {
  text-align: center;
  padding: 40px 20px;
}

.no-gallery-message .no-content-placeholder {
  background: #f9f9f9;
  border-radius: var(--radius);
  padding: 40px 20px;
  border: 2px dashed #ddd;
}

.no-gallery-message .fa-3x {
  color: #ccc;
  margin-bottom: 16px;
}

.no-gallery-message h4 {
  color: #666;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.no-gallery-message p {
  color: #999;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.gallery-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  width: 100%;
  max-width: 200px;
}

.gallery-btn:hover { 
  background: var(--primary); 
  color: #fff; 
}

/* Stats section */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px 16px;
  background: var(--primary);
  color: white;
  flex-wrap: wrap;
}

.stat-block { 
  text-align: center; 
  min-width: 100px; 
  margin: 10px 0; 
}

.stat-number { 
  font-size: 1.8rem; 
  font-weight: 700; 
  margin-bottom: 4px; 
  letter-spacing: 1px; 
}

.stat-label { 
  font-size: 0.9rem; 
  font-weight: 500; 
  color: #f7e7e7; 
}

/* CTA section */
.cta-section { 
  background: #F5F5F5; 
  padding: 30px 16px; 
  text-align: center; 
}

.cta-title { 
  font-size: 1.2rem; 
  font-weight: 600; 
  margin-bottom: 10px; 
  color: var(--text); 
}

.cta-desc { 
  color: var(--muted); 
  font-size: 1rem; 
  margin-bottom: 20px;
  line-height: 1.5;
}

.cta-buttons { 
  display: flex; 
  flex-direction: column;
  gap: 12px; 
  justify-content: center; 
  margin-top: 10px;
  align-items: center;
}

/* Footer */
.footer { 
  background: #F5F5F5; 
  padding: 40px 16px 0 16px; 
  border-top: 1px solid #eee; 
  color: var(--text); 
}

.footer-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px; /* Increased gap for better separation */
  padding: 0 20px; /* Added horizontal padding */
}

.footer-about { 
  flex: 1 1 100%; 
  margin-bottom: 20px;
  padding: 16px; /* Added padding for consistency */
  background: rgba(122, 38, 58, 0.01); /* Very subtle background */
  border-radius: 8px; /* Rounded corners */
  border-left: 3px solid rgba(122, 38, 58, 0.2); /* Lighter accent border */
}

.footer-about .logo { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  margin-bottom: 12px; 
}

.footer-about .logo img { 
  width: 140px; /* Increased from 90px - 55% larger */
  height: auto; 
  border-radius: 25px;
  /* Enhanced visual appeal */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  transition: all 0.3s ease;
  max-width: 100%; /* Responsive constraint */
}

.footer-about .logo img:hover {
  transform: scale(1.05); /* Subtle hover effect */
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}

.footer-about p { 
  font-size: 0.9rem; 
  color: #555; 
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-social { 
  display: flex; 
  gap: 12px; 
  margin-top: 8px; 
  justify-content: center;
}

.footer-social a { 
  color: var(--primary); 
  font-size: 1.2rem; 
  transition: color 0.2s;
  min-height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover { 
  color: #a03c5b; 
}

.footer-links { 
  margin-bottom: 20px;
  padding: 16px; /* Added padding for consistency */
  background: rgba(122, 38, 58, 0.02); /* Subtle background */
  border-radius: 8px; /* Rounded corners */
  border-left: 3px solid rgba(122, 38, 58, 0.3); /* Lighter accent border */
}

.footer-links-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px; /* Increased spacing */
  color: var(--text);
  font-family: var(--font-heading);
  padding-bottom: 4px; /* Added bottom padding */
  border-bottom: 2px solid rgba(122, 38, 58, 0.3); /* Accent line */
  display: inline-block; /* Better sizing for the accent line */
}

.footer-links-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}

.footer-links-list li { 
  margin-bottom: 10px; /* Slightly increased spacing */
}

.footer-links-list a { 
  color: var(--muted); 
  font-size: 0.95rem; /* Slightly larger text */
  transition: all 0.3s ease; /* Smooth transitions */
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 6px 0; /* Added vertical padding */
  border-radius: 4px; /* Subtle rounded corners */
  font-weight: 400; /* Consistent font weight */
  line-height: 1.4; /* Better line spacing */
}

.footer-links-list a:hover { 
  color: var(--primary);
  background: rgba(122, 38, 58, 0.05); /* Subtle background on hover */
  padding-left: 8px; /* Slight indent on hover */
  transform: translateX(2px); /* Subtle slide effect */
}

.footer-contact { 
  margin-bottom: 20px;
  padding: 16px; /* Added padding for better spacing */
  background: rgba(122, 38, 58, 0.02); /* Very subtle background */
  border-radius: 8px; /* Rounded corners */
  border-left: 3px solid var(--primary); /* Accent border */
}

.footer-contact .footer-links-title { 
  margin-bottom: 16px; /* Increased spacing from title to content */
  padding-bottom: 4px; /* Added bottom padding */
  border-bottom: 2px solid var(--primary); /* Added accent line */
  display: inline-block; /* Better sizing for the accent line */
}

.footer-contact-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  font-size: 0.9rem; 
  color: #555; 
}

.footer-contact-list li { 
  margin-bottom: 12px; 
  display: flex; 
  align-items: center; 
  gap: 10px;
  min-height: 44px; /* Increased for better touch targets */
  padding: 4px 0; /* Added padding for better spacing */
}

.footer-contact-list a { 
  color: var(--primary); 
  font-size: 0.95rem; /* Slightly larger text */
  transition: all 0.3s ease; 
  text-decoration: none;
  font-weight: 500; /* Slightly bolder text */
  line-height: 1.4; /* Better line spacing */
}

.footer-contact-list a:hover { 
  color: #a03c5b; 
}

.footer-bottom { 
  text-align: center; 
  font-size: 0.85rem; 
  color: #888; 
  border-top: 1px solid var(--border); 
  padding: 16px 0 12px 0; 
  margin-top: 12px; 
}

.footer-bottom a { 
  color: var(--primary); 
  margin: 0 6px; 
  font-size: 0.85rem; 
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #a03c5b;
  transform: translateY(-2px);
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Form Elements Mobile Optimization */
input, textarea, select, button {
  font-size: 16px;
  border-radius: 8px;
  min-height: 44px;
}

/* Touch-friendly elements */
.clickable, button, [role="button"], input[type="submit"], input[type="button"] {
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}

/* Progressive Enhancement Media Queries */

/* Small Mobile (360px+) */
@media (min-width: 360px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section-title { font-size: 1.5rem; }
}

/* Large Mobile (480px+) */
@media (min-width: 480px) {
  .hero { padding: 15px 20px; }
  .hero-title { font-size: 2.5rem; }
  .hero-buttons { flex-direction: row; max-width: 400px; }
  .btn { width: auto; padding: 12px 28px; }
  .articles-row { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .podcast-row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  
  /* Footer logo responsive sizing */
  .footer-about .logo img {
    width: 120px; /* Slightly smaller on mobile but still larger than original */
  }
  
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; flex-wrap: wrap; }
  .footer-about, .footer-links, .footer-contact { 
  flex: 1 1 300px;
  transition: all 0.3s ease; /* Smooth transitions */
}

/* Hover effect for footer sections */
.footer-about:hover, .footer-links:hover, .footer-contact:hover {
  transform: translateY(-2px); /* Subtle lift effect */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Enhanced shadow */
}
  .cta-buttons { flex-direction: row; }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .navbar { padding: 18px 32px; }
  .hero { padding: 25px 32px; flex-direction: row; text-align: left; gap: 25px; }
  .hero-content { max-width: 60%; align-items: flex-start; }
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-image { width: 40%; justify-content: flex-end; margin-top: 0; }
  .hero-image img { max-width: 400px; height: 200px; }
  .section { padding: 40px 32px; }
  .section-title { font-size: 1.6rem; }
  .articles-row { grid-template-columns: repeat(2, 1fr); }
  .podcast-section { padding: 60px 32px; }
  .podcast-row { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-section { padding: 40px 32px; }
  .stat-number { font-size: 2rem; }
  .footer-inner { max-width: 1100px; }
  
  /* Larger footer logo on tablets */
  .footer-about .logo img {
    width: 150px; /* Larger on tablets */
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .section { max-width: 1100px; }
  .articles-row { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-section { gap: 40px; }
  .footer-about, .footer-links, .footer-contact { 
    flex: 1 1 200px;
    margin: 0 10px; /* Added horizontal margin for better spacing */
  }
  
  /* Largest footer logo on desktop */
  .footer-about .logo img {
    width: 160px; /* Maximum size on desktop */
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .navbar { padding: 18px 40px; }
  .hero { padding: 35px 40px; }
  .section { padding: 50px 40px; }
  .hero-image img { max-width: 450px; height: 220px; }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img, .article-img img, .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Landscape orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding: 20px; }
  .hero-title { font-size: 1.8rem; }
  .navbar { padding: 10px 16px; }
}

/* Print styles */
@media print {
  .navbar, .footer, .back-to-top { display: none; }
  .hero, .section { padding: 20px 0; }
  a { text-decoration: underline; }
}
