/* Frontend Styles */
:root {
  --primary-color: #2d5a4a;
  --primary-light: #4a9d6f;
  --primary-dark: #1a4329;
  --secondary-color: #3498db;
  --accent-color: #f4a261;
  --text-color: #2d3748;
  --text-light: #718096;
  --light-gray: #f7fafc;
  --border-color: #e2e8f0;
  --background-color: #ffffff;
  --heading-color: #3a6b59;
  --font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, Cantarell,
    sans-serif;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
  --transition: all 0.2s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.7;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--background-color) 100%);
  font-size: 16px;
  min-height: 100vh;
}

/* Header */
.header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Header background pattern/image */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/template-assets/images/header-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.2;
  z-index: 0;
}

.header .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header .header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.header .logo {
  align-self: flex-start;
  text-align: left;
}

.header .nav {
  width: 100%;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 60px;
  width: auto;
  filter: brightness(1.1);
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Navigation */
.nav {
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  justify-content: center;
  margin: 0;
}

.nav a {
  color: white !important;
  text-decoration: none !important;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
  border-bottom: none !important;
}

.nav a:hover,
.nav a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: white !important;
  text-decoration: none !important;
}

/* Burger Menu Button */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: var(--transition);
  transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 20px;
  min-height: 60vh;
  /* Prevent layout shift during content loading */
  width: 100%;
  contain: layout style;
}

/* Page Header Section (for default template pages) */
.page-header {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary-color) 80%, transparent),
    color-mix(in srgb, var(--primary-light) 80%, transparent)
  );
  color: white;
  padding: 3rem 0;
  margin: -2rem -20px 2rem -20px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Page header background image layer */
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/template-assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.1;
  z-index: 0;
}

/* Page header pattern overlay */
.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  z-index: 1;
}

.page-title-wrapper {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Content Wrapper for Cards */
.content-wrapper {
  background: var(--background-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin-bottom: 2rem;
  /* Allow floating elements to work properly */
  overflow: visible;
}

/* Remove hover effect that causes layout shifts */
/* .content-wrapper:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
} */

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary-color) 80%, transparent),
    color-mix(in srgb, var(--primary-light) 80%, transparent)
  );
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin: -2rem -20px 2rem -20px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  position: relative;
  overflow: hidden;
}

/* Hero background image layer */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/template-assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.1;
  z-index: 0;
}

/* Hero pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Content area links with subtle underline effect */
.content-block a:not([class]),
.content-wrapper a:not([class]) {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  padding-bottom: 1px;
}

.content-block a:not([class]):hover,
.content-wrapper a:not([class]):hover {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
  text-decoration: none;
}

/* External links indicator */
.content-block a[href^='http']:after,
.content-wrapper a[href^='http']:after {
  content: '↗';
  font-size: 0.8em;
  margin-left: 0.2em;
  opacity: 0.7;
}

/* Email links */
.content-block a[href^='mailto:'],
.content-wrapper a[href^='mailto:'] {
  color: var(--secondary-color);
}

.content-block a[href^='mailto:']:hover,
.content-wrapper a[href^='mailto:']:hover {
  color: var(--primary-dark);
}

/* Phone links */
.content-block a[href^='tel:'],
.content-wrapper a[href^='tel:'] {
  color: var(--accent-color);
}

.content-block a[href^='tel:']:hover,
.content-wrapper a[href^='tel:']:hover {
  color: var(--primary-dark);
}

/* Content Blocks */
.content-block {
  margin-bottom: 1rem;
  /* Ensure stable width */
  width: 100%;
  /* Allow floating elements to work properly */
  overflow: visible;
}

.content-block h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.content-block h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.content-block p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.content-block ul,
.content-block ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-block li {
  margin-bottom: 0.5rem;
}

.content-block blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}

/* Horizontal rules (hr) spacing */
.content-block hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  margin: 2rem 0;
}

/* Better spacing after horizontal rules */
.content-block hr + h1,
.content-block hr + h2,
.content-block hr + h3,
.content-block hr + h4,
.content-block hr + h5,
.content-block hr + h6 {
  margin-top: 2.5rem;
}

/* Better spacing for headings in general */
.content-block h1,
.content-block h2,
.content-block h3 {
  margin-top: 2rem;
}

.content-block h1:first-child,
.content-block h2:first-child,
.content-block h3:first-child {
  margin-top: 0;
}

.content-block code {
  background-color: var(--light-gray);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.content-block pre {
  background-color: var(--light-gray);
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1rem 0;
}

.content-block pre code {
  background: none;
  padding: 0;
}

/* Images */
.image-block {
  margin: 2rem 0;
  text-align: center;
  clear: both;
}

.image-block img {
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

/* Image alignment */
.image-left {
  float: left;
  margin: 0 1.5rem 1rem 0;
  text-align: left;
}

.image-right {
  float: right;
  margin: 0 0 1rem 1.5rem;
  text-align: right;
}

.image-center {
  margin: 2rem auto;
  text-align: center;
  display: block;
}

.image-full {
  width: 100%;
  margin: 2rem 0;
  text-align: center;
}

/* Image sizes */
.image-size-thumbnail img {
  width: 150px;
  max-width: 150px;
}

.image-size-small img {
  width: 250px;
  max-width: 250px;
}

.image-size-medium img {
  width: 400px;
  max-width: 400px;
}

.image-size-large img {
  width: 600px;
  max-width: 600px;
}

.image-size-full img {
  width: 100%;
  max-width: 100%;
}

/* Responsive image sizes */
@media (max-width: 768px) {
  .image-size-small img,
  .image-size-medium img,
  .image-size-large img {
    max-width: 100%;
    width: auto;
  }

  .image-left,
  .image-right {
    float: none;
    margin: 1rem 0;
    text-align: center;
  }
}

/* Lightbox cursor */
.image-lightbox img {
  cursor: pointer;
}

.image-lightbox img:hover {
  transform: scale(1.02);
}

.image-caption {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Clear floats after content */
.content::after {
  content: '';
  display: table;
  clear: both;
}

/* Don't clear floats in individual content blocks */
.image-left .content-block,
.image-right .content-block {
  clear: none;
}

/* Fix float issues with multiple blocks */
.content-block {
  overflow: visible;
}

/* Allow content to flow between blocks for floating images */
.content {
  overflow: hidden;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.gallery-image {
  cursor: pointer;
}

/* Spacer Blocks */
.spacer-small {
  height: 1rem;
}

.spacer-medium {
  height: 2rem;
}

.spacer-large {
  height: 4rem;
}

/* Clear Blocks - Layout Reset */
.layout-clear {
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.clear-both {
  clear: both;
}

.clear-left {
  clear: left;
}

.clear-right {
  clear: right;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: var(--background-color);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--light-gray);
  text-decoration: none;
  cursor: pointer;
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--light-gray);
  padding: 10px 0;
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--light-gray);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 15px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--background-color);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 5px;
  user-select: none;
  transition: background-color 0.3s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Mobile Responsive Optimizations */
@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 0;
    margin: -1rem -20px 1.5rem -20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .content-wrapper {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .main-content {
    margin: 1rem auto;
  }

  .lightbox-nav {
    font-size: 30px;
    padding: 8px 12px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  /* Mobile Button Optimizations */
  .btn-primary-gradient,
  .btn-cta,
  .btn-outline {
    display: block;
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    font-size: 1rem;
  }

  .btn-outline {
    margin: 0.75rem 0;
  }
}

/* Cards */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--heading-color);
}

/* Buttons and Links */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: white !important;
  text-decoration: none !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  box-shadow: var(--shadow);
  margin: 0.5rem 0;
  border-bottom: none !important;
  vertical-align: baseline;
}

/* Button Classes for Manual Use */
.btn-primary-gradient {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white !important;
  text-decoration: none !important;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  transition: var(--transition);
  box-shadow: var(--shadow);
  margin: 0.5rem 0;
  position: relative;
  border-bottom: none !important;
  vertical-align: baseline;
}

.btn-primary-gradient:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary-gradient:hover:before {
  left: 100%;
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white !important;
  text-decoration: none !important;
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

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

.btn-accent:hover {
  background-color: var(--primary-dark);
}

/* CTA (Call-to-Action) Button Class */
.btn-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-dark));
  color: white !important;
  text-decoration: none !important;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  margin: 0.5rem 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: none !important;
  vertical-align: baseline;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(244, 162, 97, 0.4);
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
  color: white !important;
  text-decoration: none !important;
}

/* Secondary Outline Button Class */
.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--primary-color) !important;
  text-decoration: none !important;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  transition: var(--transition);
  margin: 0.5rem 0;
  border-bottom: 2px solid var(--primary-color) !important;
  vertical-align: baseline;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none !important;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0 1rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

/* Footer background texture */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/template-assets/images/footer-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.2;
  z-index: 0;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

/* Social Media Links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.social-links a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 0.75rem 0;
  }

  .header .container {
    flex-direction: column;
    gap: 0.25rem;
  }

  .logo img {
    height: 40px;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  /* Mobile Navigation */
  .burger-menu {
    display: flex;
    margin-left: auto;
    margin-bottom: 0.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 2rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
  }

  .hero {
    padding: 2rem 0;
    margin: -1rem -15px 2rem -15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .page-header {
    padding: 2rem 0;
    margin: -1rem -15px 2rem -15px;
  }

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

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

  .main-content {
    padding: 0 15px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .gallery img {
    height: 150px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .page-title-wrapper {
    padding: 0 1rem;
  }

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

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

  .card {
    padding: 1rem;
  }
}

/* Contact Form Styles */
.contact-form-block {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.contact-form-block h3 {
  color: var(--heading-color);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
}

.form-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.form-result {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.form-result.success {
  background-color: var(--light-gray);
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
}

.form-result.error {
  background-color: var(--light-gray);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.contact-form {
  max-width: 600px;
}

.form-field {
  margin-bottom: 1.5rem;
}

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

.form-field label .required {
  color: var(--accent-color);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: var(--transition);
  background-color: var(--background-color);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25);
}

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

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  color: var(--background-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(0);
}

/* Responsive contact form */
@media (max-width: 768px) {
  .contact-form-block {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .form-field input,
  .form-field textarea {
    padding: 0.625rem;
  }

  .btn {
    width: 100%;
    padding: 1rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.d-flex {
  display: flex;
}
.justify-content-between {
  justify-content: space-between;
}
.align-items-center {
  align-items: center;
}
.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}

/* Video and Audio Blocks - Fixed dimensions to prevent layout shift */

/* Video and Audio titles */
.video-block + h3,
.audio-block + h3,
h3 + .video-block,
h3 + .audio-block {
  margin: 1rem 0;
}

/* Video container with fixed aspect ratio */
.video-block {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--text-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.block-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Audio container with fixed height */
.audio-block {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.block-audio {
  width: 100%;
  height: 40px;
  border-radius: 4px;
}

/* Download Block */
.download-block {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.download-block h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.download-block p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: var(--background-color);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.download-link:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: var(--background-color);
}
