* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(ellipse at center, #2d5016 0%, #1a3d0a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  pointer-events: none;
  opacity: 0.3;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: linear-gradient(180deg, #1a2912 0%, #2d4a1e 100%);
  padding: 20px;
  overflow-y: auto;
  box-shadow: 4px 0 15px rgba(0,0,0,0.5);
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  border-right: 3px solid #4a7c2c;
  overscroll-behavior: contain;
}

.side-menu h4 {
  color: #d4af37;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #6b9440;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.side-menu a {
  color: #e2e8f0;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.side-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #6b9440;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.side-menu a:hover {
  background-color: rgba(107, 148, 64, 0.2);
  color: #d4af37;
}

.side-menu a:hover::before {
  transform: scaleY(1);
}

.side-menu a.active {
  background: linear-gradient(135deg, #6b9440 0%, #4a7c2c 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(107, 148, 64, 0.5);
}

.side-menu a.active::before {
  display: none;
}

.table .no-hover,
.table .no-hover:hover,
.table-hover .no-hover:hover {
  background-color: transparent !important;
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: linear-gradient(135deg, #6b9440 0%, #4a7c2c 100%);
  border: 2px solid #d4af37;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.main-content {
  margin-left: 280px;
  padding: 30px;
  min-height: 100vh;
  transition: margin-left 0.3s ease-in-out;
}

.content-card {
  background: linear-gradient(135deg, #f5f5dc 0%, #fffef0 100%);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  margin-bottom: 30px;
  border: 2px solid #d4af37;
  max-width: 100%;
  overflow-x: hidden;
}

.card {
  border: 2px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  height: 100%;
  background: linear-gradient(135deg, #fffef0 0%, #f5f5dc 100%);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(107, 148, 64, 0.3);
  border-color: #6b9440;
}

.card-title {
  color: #4a7c2c;
  font-weight: 700;
  font-size: 1.25rem;
}

.table {
  border-radius: 12px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, #6b9440 0%, #4a7c2c 100%);
  color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(107, 148, 64, 0.08);
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(107, 148, 64, 0.15);
}

.speech-bubble {
  position: absolute;
  background: linear-gradient(135deg, #fffef0 0%, #f5f5dc 100%);
  padding: 15px 20px;
  border-radius: 12px;
  border: 2px solid #d4af37;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  max-width: 250px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeIn 0.5s ease-in;
  color: #2d4a1e;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 12px solid transparent;
}

.speech-bubble.left::after {
  right: -22px;
  top: 20px;
  border-left-color: #f5f5dc;
}

.speech-bubble.right::after {
  left: -22px;
  top: 20px;
  border-right-color: #f5f5dc;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.hero-image-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.hero-image {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  max-width: 100%;
  height: auto;
}

h2 {
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.content-card h2 {
  color: #2d4a1e;
  text-shadow: none;
  border-bottom: 3px solid #6b9440;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.lead {
  color: #d4af37 !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Responsive Design */
@media (min-width: 992px) {
  .hero-image {
    width: 50%;
  }
}

@media (max-width: 992px) {
  .side-menu {
    transform: translateX(-100%);
    width: 280px;
  }
  
  .side-menu.open {
    transform: translateX(0);
  }
  
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-content {
    margin-left: 0;
    padding: 80px 20px 20px 20px;
  }
  
  .content-card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .side-menu {
    width: 100%;
    max-width: 320px;
  }
  
  .main-content {
    padding: 80px 15px 15px 15px;
  }
  
  .content-card {
    padding: 15px;
  }
  
  .speech-bubble {
    position: static !important;
    transform: none !important;
    margin: 20px auto;
    max-width: 90%;
  }
  
  .speech-bubble::after {
    display: none;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .card-title {
    font-size: 1.1rem;
  }
  
  .content-card h2 {
    font-size: 1.5rem;
  }
  
  .side-menu h4 {
    font-size: 1.25rem;
  }
}

/* Landscape mode on mobile */
@media (max-width: 992px) and (orientation: landscape) {
  .col-12 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar for side menu */
.side-menu::-webkit-scrollbar {
  width: 8px;
}

.side-menu::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

.side-menu::-webkit-scrollbar-thumb {
  background: rgba(107, 148, 64, 0.5);
  border-radius: 4px;
}

.side-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 148, 64, 0.8);
}

/* Quote Component Styles */
.quote-container {
  margin: 30px 0;
}

.quote-card-minimal {
  background: rgba(255, 254, 240, 0.6);
  border-left: 3px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  padding: 15px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.quote-text-minimal {
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(45, 74, 30, 0.8);
  line-height: 1.5;
}

.quote-card-minimal .btn-link {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.quote-card-minimal .btn-link:hover {
  opacity: 1;
}

