/* CSS Variables for Theme Customization */
:root {
  --primary-color: #3A5F0B;
  --secondary-color: #F5F5DC;
  --neutral-light: #FFFFFF;
  --neutral-dark: #17202A;
  --text-color: #2C3E50;
  --link-color: #2980B9;
  --border-radius-btn: 0.25rem;
  --border-radius-card: 0.5rem;
  --font-primary: 'PT Sans', sans-serif;
  --font-secondary: 'Georgia', serif;
  --transition-base: all 0.3s ease;
}

/* Base Styles with Cozy, Warm Atmosphere */
body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--neutral-light);
  line-height: 1.6;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" opacity="0.03"><path d="M0 0h100v100H0z" fill="none"/><path d="M20 20l60 60M80 20L20 80" stroke="%233A5F0B" stroke-width="1"/></svg>');
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.display-1, .display-2, .display-3, .display-4 {
  font-family: var(--font-secondary);
  color: var(--primary-color);
}

/* Link Styling */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Custom Button Variants */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-family: var(--font-primary);
  border-radius: var(--border-radius-btn);
  transition: var(--transition-base);
}

.btn-primary:hover {
  background-color: #2d4b08;
  border-color: #2d4b08;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--neutral-light);
}

/* Card Enhancements */
.card {
  border-radius: var(--border-radius-card);
  border: none;
  overflow: hidden;
  transition: var(--transition-base);
  background-color: var(--secondary-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-img-top {
  border-top-left-radius: var(--border-radius-card);
  border-top-right-radius: var(--border-radius-card);
}

/* Custom Navigation Styling */
.navbar {
  background-color: var(--neutral-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
  transition: var(--transition-base);
}

.navbar-brand:hover img {
  opacity: 0.9;
}

.nav-link {
  font-family: var(--font-primary);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 70%;
}

/* Custom Slider Styling */
.carousel {
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  opacity: 0.7;
}

.carousel-indicators button.active {
  background-color: var(--primary-color);
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(58, 95, 11, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-size: 50%;
}

/* Accordion Styling */
.accordion-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-family: var(--font-secondary);
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: var(--neutral-light);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(58, 95, 11, 0.25);
}

.accordion-body {
  background-color: var(--neutral-light);
  border-left: 3px solid var(--primary-color);
}

/* Tabs Styling */
.nav-tabs .nav-link {
  color: var(--text-color);
  border: none;
  position: relative;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  border: none;
}

.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
}

.tab-content {
  padding: 1.5rem;
  background-color: var(--neutral-light);
  border-radius: 0 0 var(--border-radius-card) var(--border-radius-card);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Footer Styling */
.footer {
  background-color: var(--neutral-dark);
  color: var(--secondary-color);
  padding: 3rem 0;
  font-family: var(--font-primary);
}

.footer a {
  color: var(--secondary-color);
}

.footer a:hover {
  color: var(--neutral-light);
  text-decoration: none;
}

.footer .social-icon {
  width: 24px;
  height: 24px;
  transition: var(--transition-base);
  opacity: 0.8;
}

.footer .social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Custom Nature-Inspired Elements */
.nature-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  border: none;
  margin: 2rem 0;
  opacity: 0.5;
}

.leaf-decoration {
  position: relative;
}

.leaf-decoration::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 30px;
  height: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233A5F0B"><path d="M17 8C8 10 5.9 16.8 5.9 16.8L2 22L7.2 18.1C7.2 18.1 14 16 16 7C16 7 14 4 12 2C10 0 12 2 17 8Z"/></svg>');
  background-repeat: no-repeat;
  opacity: 0.3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar-nav {
    padding-top: 1rem;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .display-1 {
    font-size: 2.5rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

/* Subtle Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.hover-grow {
  transition: transform 0.3s ease;
}

.hover-grow:hover {
  transform: scale(1.02);
}