:root {
  /* Color Palette inspired by Ouchul's watercolors */
  --primary-blue: #4a7eb5;
  --accent-gold: #d4af37;
  --earthy-orange: #c45c26;
  --path-yellow: #e7c384;
  --foliage-green: #407152;
  --sky-light-blue: #a9cce3;
  --paper-cream: #f8f5e6;
  --text-dark: #333333;
  
  /* Typography */
  --heading-font: 'Cormorant Garamond', serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Spacing */
  --section-spacing: 2rem;
}

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

body {
  font-family: var(--body-font);
  color: var(--text-dark);
  background-color: var(--paper-cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 500;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--earthy-orange);
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 2rem 2rem;
  margin-bottom: 2rem;
}

/* Header & Navigation */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo h1 {
  color: var(--primary-blue);
  margin-bottom: 0;
}

.logo .tagline {
  font-style: italic;
  color: var(--earthy-orange);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.logo-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--paper-cream);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image img {
  width: 100%;
  height: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.main-nav a:hover {
  border-color: var(--accent-gold);
}

/* Buttons */
.primary-button, .secondary-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

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

.primary-button:hover {
  background-color: var(--earthy-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.secondary-button {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.secondary-button:hover {
  color: var(--earthy-orange);
  border-color: var(--earthy-orange);
  transform: translateY(-2px);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Hero Section */
.hero {
  padding: 6rem 2rem;
  background: linear-gradient(to right, var(--paper-cream), white);
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
  font-style: italic;
}

.hero-image {
  flex: 1;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Animation for watercolor effect */
.watercolor-animation {
  position: relative;
  overflow: hidden;
}

.watercolor-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/watercolor-texture.png');
  opacity: 0.2;
  animation: watercolor-flow 15s infinite alternate;
}

@keyframes watercolor-flow {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(1deg); }
}

/* Journey Map Section */
.journey-map {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 3rem;
  text-align: center;
}

.journey-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
}

.interactive-map {
  height: 500px;
  background-color: var(--paper-cream);
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1; /* Ensure maps stay below the header which has z-index: 100 */
}

.journey-details {
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* Latest Update Section */
.latest-update {
  max-width: 1000px;
  margin: 0 auto;
}

.update-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}

.update-image {
  flex: 1;
  min-height: 300px;
  overflow: hidden;
}

.update-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

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

.update-text {
  flex: 1;
  padding: 2rem;
}

.update-text .date {
  color: var(--earthy-orange);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.read-more:hover {
  color: var(--earthy-orange);
}

/* Support CTA Section */
.support-cta {
  text-align: center;
  background-color: var(--sky-light-blue);
  padding: 5rem 2rem;
  border-radius: 8px;
}

.support-cta h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.support-cta p {
  color: white;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Donation Tiers Section */
.donation-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.tier {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.tier:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tier h3 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.tier-image {
  width: 100%;
  height: 200px;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.tier-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-tier {
  border: 2px solid var(--accent-gold);
  position: relative;
}

.featured-tier::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-gold);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.donate-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem;
  background-color: var(--primary-blue);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.donate-button:hover {
  background-color: var(--earthy-orange);
  color: white;
}

.donate-button.selected {
  background-color: var(--earthy-orange);
}

/* Donation Form */
.donation-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

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

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 1rem;
}

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

.error-message {
  color: #d9534f;
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: #f9f2f2;
  border-radius: 4px;
  border-left: 4px solid #d9534f;
}

/* Footer */
.site-footer {
  background-color: var(--text-dark);
  color: white;
  padding: 3rem 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.site-footer a {
  color: var(--accent-gold);
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Journey Page Styles */
.journey-hero {
  margin-bottom: 0;  /* Override the default section spacing */
}

/* Reduce gap below hero sections */
.donate-hero,
.journey-hero,
.artist-hero {
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
  text-align: center;
}

.journey-hero h2,
.donate-hero h2,
.artist-hero h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.journey-hero p,
.donate-hero p,
.artist-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 1rem;
}

/* Journey Timeline Image Styles */
.updates-timeline .update-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
  max-width: 100%; /* Ensure container doesn't exceed timeline card width */
}

.updates-timeline .update-painting,
.updates-timeline .update-photo {
  width: 100%;
  max-width: 800px; /* Max-width constraint for container */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.updates-timeline .update-painting img,
.updates-timeline .update-photo img {
  width: 100%;
  height: auto;
  max-width: 800px; /* Max-width constraint for image */
  max-height: 500px; /* Limit height to prevent oversized images */
  object-fit: cover; /* Cover to fill the space more appropriately */
  border-radius: 8px;
  transition: transform 0.3s ease; /* Smooth hover effect */
  display: block; /* Prevent inline gaps */
}

.updates-timeline .update-painting img:hover,
.updates-timeline .update-photo img:hover {
  transform: scale(1.02); /* Subtle zoom effect on hover */
}

.updates-timeline .painting-title {
  margin-top: 0.5rem;
  font-style: italic;
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 0 1rem;
}

/* Timeline Layout */
.updates-timeline {
  margin: 2rem 0;
  width: 100%;
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  width: 100%;
  max-width: 900px; /* Fixed width for consistency */
  margin-left: auto;
  margin-right: auto;
}

.timeline-content {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  overflow: hidden; /* Prevent content from overflowing */
  width: 100%;
}

/* Timeline content styling */
.update-entry {
  text-align: left;
  margin: 1rem 0;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.timeline-date {
  color: var(--earthy-orange);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* Artist Page Styles */
.artist-hero {
  padding-bottom: 1rem !important;
  margin-bottom: 1.5rem !important;
  text-align: center;
}

.artist-hero h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.artist-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.artist-profile .profile-wrapper {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.artist-portrait {
  flex: 0 0 40%;
  position: relative;
}

.artist-portrait img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.artist-bio {
  flex: 1;
}

.bio-section {
  margin-bottom: 2rem;
}

.bio-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-blue);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

/* Artist Gallery Styles */
.artist-gallery {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2rem;
  color: var(--primary-blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.gallery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.artwork-info {
  padding: 1.2rem;
  background: #faf9f6;
}

.artwork-info h4 {
  margin: 0 0 0.5rem 0;
  color: #222;
}

.artwork-info p {
  margin: 0 0 0.6rem 0;
  font-size: 0.9rem;
  color: #666;
}

/* Camino Connection Section */
.camino-connection {
  background-color: #f9f7f2;
  padding: 3rem 0;
  text-align: center;
}

.connection-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Journey Overview Section */
.journey-overview .journey-details-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

/* Journey Status Card */
.journey-status-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  text-align: center;
}

.journey-detail {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
}

.detail-label {
  font-weight: 600;
  margin-right: 0.5rem;
  min-width: 80px;
}

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

/* Journey Status Card */
.journey-updates-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  text-align: center;
}
.journey-support-please-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  text-align: center;
}

/* Day Detail Page Styles */
.day-detail-page .painting-display img,
.day-detail-page .photo-item img {
  max-width: 800px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.day-detail-page .day-content {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.day-detail-page .content-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 2rem;
  overflow: hidden;
}

.day-detail-page .content-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.day-detail-page .day-painting,
.day-detail-page .day-journal,
.day-detail-page .day-photos {
  width: 100%;
}

.day-detail-page .painting-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.day-detail-page .painting-details {
  margin-top: 1.5rem;
  text-align: center;
  max-width: 800px;
}

.day-detail-page .journal-content {
  line-height: 1.7;
  text-align: justify;
  padding: 0 1rem;
}

.day-detail-page .photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.day-detail-page .photo-caption {
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
  color: #666;
}

.day-detail-page .photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.day-detail-page .day-header {
  text-align: center;
  margin-bottom: 2rem;
}

.day-detail-page .day-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.day-detail-page .nav-button {
  background-color: var(--primary-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.day-detail-page .nav-button:hover {
  background-color: var(--earthy-orange);
  color: white;
}

.day-detail-page .back-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.day-detail-page .back-link:hover {
  color: var(--earthy-orange);
}

.day-detail-page .day-map,
.day-detail-page .support-reminder {
  max-width: 1000px;
  margin: 2rem auto;
}

.day-detail-page .detail-map {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.day-detail-page .support-reminder {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
}

.day-detail-page .day-stats {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.day-detail-page .day-stat {
  display: flex;
  align-items: center;
  background-color: #f9f7f2;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin: 0 0.5rem;
}

.day-detail-page .stat-label {
  font-weight: 600;
  margin-right: 0.5rem;
  color: var(--primary-blue);
}

.day-detail-page .stat-value {
  color: var(--earthy-orange);
  font-weight: 600;
}

.day-detail-page .day-date {
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .logo-image {
    margin-bottom: 0.5rem;
  }
  
  .day-detail-page .painting-display {
    flex-direction: column;
  }
  
  .day-detail-page .photos-grid {
    grid-template-columns: 1fr;
  }
  
  /* Timeline responsive adjustments */
  .timeline-item {
    max-width: 100%;
  }
  
  .updates-timeline .update-images {
    padding: 0 0.5rem;
  }
  
  .updates-timeline .update-painting img,
  .updates-timeline .update-photo img {
    max-height: 350px;
  }

.artist-gallery .gallery-item img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
}
}

/* Additional responsive styles for very small screens */
@media (max-width: 480px) {
  .updates-timeline .update-painting img,
  .updates-timeline .update-photo img {
    max-height: 280px;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .timeline-item h4 {
    font-size: 1.2rem;
  }
  
  .update-painting .painting-title {
    font-size: 0.9rem;
  }
}
