:root {
  --color-background: #FAF9F6; /* fallback solid */
  --color-background-gradient: linear-gradient(to bottom right, #FAF9F6, #f8e8d0);
  --color-text: #222222;
  --color-accent: #C57E32;
  --color-secondary: #6B7B55;
}

/* Base styles */
body {
  /*background-color: var(--color-background);*/
  color: var(--color-text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  margin: 0;
  /* padding: 1rem 2rem; */
  background: var(--color-background-gradient);
}

html, body {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}

/* Headings */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

/* Links and buttons */
a, button {
  color: var(--color-accent);
  text-decoration: none;
  padding: 0.4rem 1rem;

  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
}



a:hover, button:hover {
  background-color: var(--color-accent);
  color: var(--color-background);
}

/* Secondary elements */
.border-secondary {
  border-color: var(--color-secondary);
}

.bg-secondary {
  background-color: var(--color-secondary);
  color: var(--color-background);
  padding: 0.5rem 1rem;
  border-radius: 3px;
}

/* Header */
header {
  background-color: var(--color-text);
  color: var(--color-background);
  padding: 1.5rem 2rem;
  font-size: larger;
  border-bottom: 1px solid var(--color-secondary);
}

body {
  background-color: var(--color-background) !important;
}

.card, .button, .linky-thing {
  border-radius: 4px;
  transition: border-radius 0.3s ease;
}

.card:hover, .button:hover, .linky-thing:hover {
  border-radius: 12px; /* or however round you want it */
}

.sidebar {
  margin: 10px 0px 0px 0px !important;
  padding: 10px !important;
  background: linear-gradient(180deg, #5d6e3b 30%, #495630 70%) !important;
  color: var(--color-background) !important;
  height: 100vh; /* full viewport height */
  border: none !important;
  outline: none !important;
  border-radius: 0 15px 15px 0;
  box-shadow: 4px 0px 12px rgba(0, 0, 0, 0.35);
  position: relative;
}

.t1 {
  color: #b1af71;
}

.t2 {
  color: #d1d6cf;
}

.t3 {
  color: #d1d6cf;
}

.sidebar .active {
  background-color: #5A6B45; /* lighter moss */
  color: #FAF9F6;
  font-weight: 700;
  border-left: 4px solid #B5A68C; /* mushroom beige line */
}

.sideBarExpandedMenuButtons {
  text-align: center;
  border-radius: 10px;
  transition: font-size 0.3s ease, font-weight 0.3s ease;
}
.sideBarExpandedMenuButtons:hover {
  text-align: center;
  font-weight: bolder;
  font-size: 1.1rem;
}



#aiagToggle {
  box-shadow: none !important;
  /*border: 1px solid #C57E32;*/
  
  margin-left: auto;
  margin-right: auto;
}

.sidebarButton:hover {
  /* animation: pulseGlow 1.5s infinite; */
}

#aiagMenu {
  transition: max-height 0.3s ease;
  /* display: hidden; */
  max-height: 500px !important;
}

.sidebarButton {
  justify-content: center;
  text-align: center;
  border-radius: 10px !important;
}

#aiagArrow {
  transition: transform 0.5s ease;
}

#aiagArrow.rotate-180 {
  transform: rotate(180deg);
}

.collapsed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out; /* For smooth animation */
}

.expanded {
  max-height: 500px; /* Adjust as needed to fit content */
  transition: max-height 0.3s ease-in;
}

.flex-col {
  flex-grow: 1;          /* Let it expand */
  min-height: 0;         /* Important: allows the container to shrink properly */
  overflow-y: auto;      /* Enable scrolling inside */
}

.p-8 {
  padding: 0 !important;
}

.floating-background{
  width: 100%; 
  height: fit-content;
  background-color: #D6D3CD; /* or #FFEEDB */
  color: #1E293B; /* readable text */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  padding: 20px;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.pageTitle {
  color: #4B3832;
  font-size: 35px;
  text-align: right;
  font-weight: bold;
  margin: auto;
}

.pageSubtitle {
  text-align: right;
  font-size: 18px;
  color: #4B3832;
  margin-bottom: 10px;
}

.embededAIAGB3 {
  position: sticky;
  object-fit: contain;
  top: 1rem;
  background-color: white;
  height: 50%;
  width: 100%;
  display: block;
  max-width: 800px;
  max-height: 100%;
  margin: 2rem auto;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.buttons-container {
  position: sticky;
  bottom: 0;
  background: var(--color-background);
  padding: 1rem;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  z-index: 10;
}

.image-form-container {
  display: flex;
  flex-wrap: wrap; /* allows responsiveness */
  justify-content: center;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  margin-left: 0;
  margin-right: 0;
  padding: 1rem;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.image-form-container img,
.image-form-container .form-grid-container {
  flex: 1 1 45%;
  max-width: 600px;
}

@media (min-width: 768px) {
  .form-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
.form-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 100%;
  margin: auto;
  padding: 2rem;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.form-grid-item {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* subtle, smooth shadow */
  transition: box-shadow 0.2s ease;
}

button:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* lifts on hover */
}

.button-wrapper {
    width: 100%;
    padding: 1rem 0;
  }

.button-row {
  text-align: center;
  margin-bottom: 1rem;
}

.button-row.full-width > div {
  display: flex;
  gap: 1rem;
}

.primary-button {
  background-color: var(--color-accent);
  color: var(--color-background);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.primary-button:hover {
  background-color: var(--color-secondary);
}

.primary-button:disabled {
  background-color: #e0dacd;
  color: #b5a893;
  cursor: not-allowed;
  opacity: 0.7;
}

.full-width {
  width: 100%;
  max-width: 800px;
  margin: auto;
}

.half-width {
  width: calc(50% - 0.5rem);
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(197, 126, 50, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(197, 126, 50, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(197, 126, 50, 0);
  }
}

.clearButton {
  width: 100%;
  border-radius: 5px;
  margin-top: 5px;
  background-color: var(--color-accent);
  color: var(--color-background);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.clearButton:hover {
  background-color: var(--color-secondary);
}

.page-fade {
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.mobileHeader {
  border-radius: 0 !important; 
  background-color: transparent !important;
  box-shadow: none;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#sidebarToggle {
  box-shadow: none !important;
  color: var(--color-secondary) !important;
  font-size: 30px;
  z-index: 51;
}
#sidebarToggle:hover {
  background-color: transparent;
  box-shadow: none !important;
  color: var(--color-accent) !important;
  font-size: 30px;
  z-index: 51;
}

@media (max-width: 1024px) {
  #sidebar {
    margin-top: 70px !important; /* or padding-top */
  }
}

#mobileLogo {
  padding: 0 !important;
  margin: 0 !important;
}

#mobileLogo:hover {
  background-color: transparent !important;
}

#homeButton:hover {
  background-color: transparent !important;
}

#homeText {
  transition: color 0.3s ease, color 0.3s ease;
}

#homeText:hover {
  color: var(--color-text) !important;
}

.footerButton {
  border-radius: 10px;
}

.OwlFooter {
  margin-top: 0px !important;
}

.emailTag {
  border-radius: 10px !important;
}

.emailTag:hover {
  background-color: transparent !important;
  color: var(--color-accent);
}

.frontPageIllustration {
  box-shadow: none !important;
}

#b10Toggle {
  box-shadow: none !important;
}
.form-section {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: #fdfdfd;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.form-section legend {
  padding: 0 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: #6B7B55;
}

.form-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-grid-item {
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-grid-item:focus {
  border-color: #6B7B55;
  outline: none;
  box-shadow: 0 0 0 2px rgba(107, 123, 85, 0.15);
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.image-form-container {
  padding: 1rem;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.form-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .form-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}