body { font-family: 'Arial', sans-serif; margin: 0; padding: 0; background-color: #f9f5f0; color: #333; } /* Warm beige background */
header { background-color: #8b5a2b; color: white; padding: 20px; text-align: center; } /* Earthy brown for warmth */
.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: flex-start; } /* Flex for logo and nav */
.logo-link { margin-right: 20px; } /* Space between logo and menu */
.logo { max-width: 100px; height: auto; } /* Adjusted for better fit; tweak as needed */

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav li {
  margin: 0 15px;
  position: relative; /* Needed for absolute positioning of the slider */
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px; /* More padding for background visibility */
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease; /* Add background transition */
  border-radius: 4px; /* Soft corners for background */
}

nav a:hover {
  color: #f0ba0a; /* Darker text for contrast */
  background-color: rgba(218, 245, 241, 0.2); /* Semi-transparent gold background on hover */
}

/* Slider effect: Underline that slides in */
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px; /* Thickness of the slider line */
  background-color: #ffd700; /* Warm gold color */
  transform: scaleX(0); /* Start hidden (scaled to 0) */
  transform-origin: left; /* Slide from left */
  transition: transform 0.3s ease; /* Smooth slide animation */
}

nav a:hover::after {
  transform: scaleX(1); /* Expand to full width on hover */
}


nav ul { list-style: none; padding: 0; margin: 0; display: flex; }
nav li { margin: 0 15px; }
nav a { color: white; text-decoration: none; font-weight: bold; }

.search-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
}

#search-input {
  padding: 8px;
  width: 300px;
  border: 1px solid #d2b48c;
  border-radius: 4px;
}

#search-button {
  padding: 8px 16px;
  background-color: #8b5a2b;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#search-button:hover {
  background-color: #6f4420;
}

.search-results {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #f0cfac;
  border-radius: 8px;
  display: none; /* Hidden until search */
}

.search-results ul {
  list-style: none;
  padding: 0;
}

.search-results li {
  margin-bottom: 10px;
}

.tour-subsection {
  max-width: auto;
  margin: 0 auto 0;
  text-align: center;
  padding: 2px;
  background: #f0cfac; /* Soft warm card */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease; /* Smooth hover lift */
}

.tour-subsection:hover {
  transform: translateY(-5px); /* Subtle movement */
}

.tour-video {
  width: 100%;
  height: 650px; /* Fixed height for consistency */
  border-radius: 8px;
  border: 2px solid #d2b48c; /* Warm frame */
  object-fit: cover; /* Fill without distortion */
}

@media (max-width: 768px) {
  .tour-video {
    height: 250px; /* Adjust for mobile */
  }
}


.accordion-toggle {
  display: none; /* Hidden checkbox */
}

.accordion-label {
  display: block;
  padding: 10px;
  background: #f0cfac;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 5px;
  position: relative;
}

.accordion-label::after {
  content: '+';
  position: absolute;
  right: 10px;
}

.accordion-toggle:checked + .accordion-label::after {
  content: '-';
}

.accordion-content {
  display: none;
  padding: 10px;
  background: #f9f5f0;
  border-radius: 4px;
}

.accordion-toggle:checked + .accordion-label + .accordion-content {
  display: block;
}

.fun-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffd700; /* Warm gold for fun/energy */
  color: #333;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.fun-button:hover {
  background-color: #e6b800; /* Darker gold on hover */
}

.tab-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  background: #d2b48c;
  color: #333;
  border: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
}

.tab-button.active {
  background: #8b5a2b;
  color: white;
}

.tab-content {
  display: none;
  padding: 20px;
  background: #f0cfac;
  border-radius: 0 0 8px 8px;
}

#inspiration button, #games button {
  background: #8b5a2b;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
  gap: 20px; /* Space between cards */
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #f0cfac; /* Soft warm card */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Depth */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover */
  position: relative; /* For better icon positioning */
}

.service-card:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-card i {
  font-size: 40px;
  color: #3aa55d; /* Earthy brown icons */
  margin-bottom: 10px;
  display: block; /* Center icon */
}

.service-card h3 {
  color: #6f4420; /* Darker brown titles */
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center; /* Center title and image */
  gap: 10px; /* Space between image and text */
}

.title-icon {
  width: 32px; /* Size for sun-yellow image */
  height: 32px;
  vertical-align: middle; /* Align with text */
}

.expand-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #8b5a2b;
  transition: color 0.3s ease, transform 0.3s ease; /* Smooth color and scale */
  display: block;
  margin: 0 auto;
}

.expand-button:hover {
  color: #ffd700; /* Gold on hover for warmth */
  transform: scale(1.2); /* Slight "pop" movement */
}

.expand-button:hover .expand-icon {
  color: #ffd700; /* Ensure icon changes too */
  transform: rotate(90deg); /*rotate 90 degree*/
}

.service-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
  padding: 0 15px;
  margin-top: 10px;
  border-top: 1px solid #d2b48c;
}

.service-detail ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.service-detail li {
  margin-bottom: 10px;
  display: flex;
  align-items: center; /* Align list image with text */
  gap: 10px; /* Space between image and text */
}

.list-icon {
  width: 24px; /* Size for list-blue image */
  height: 24px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
  .service-card h3 {
    font-size: 18px; /* Smaller titles on mobile */
  }
}

.swiper {
  width: 100%; /* Full width container */
  max-width: 1024px; /* Match your design */
  margin: 0 auto;
  overflow: hidden; /* Hide non-active slides (fixes cascading) */
}

.swiper-wrapper {
  display: flex; /* Ensure flex layout */
}

.swiper-slide {
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  flex-shrink: 0; /* Prevent shrinking/cascading */
  width: 100%; /* Forces full-width per slide */
}

.swiper-slide img {
  max-height: 600px;
  border-radius: 8px;
}

.swiper-button-next, .swiper-button-prev {
  color: #8b5a2b;
}

.swiper-pagination-bullet-active {
  background: #8b5a2b;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.blog-card {
  background: #f0cfac;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.blog-card a {
  color: #8b5a2b;
  text-decoration: none;
  font-weight: bold;
}

.blog-image {
  width: 60%; /* Initial width as 80% of parent container */
  max-width: 300px; /* Optional: Upper limit to prevent over-sizing on large screens; adjust as needed */
  height: auto; /* Preserves aspect ratio */
  display: block; /* Centers if needed */
  margin: 0 auto 20px; /* Center and add bottom space */
  cursor: zoom-in; /* Keep for magnifier */
  transition: transform 0.3s ease; /* Existing for hover zoom */
}

/* Media query for mobile: Make image full-width for better visibility */
@media (max-width: 768px) {
  .blog-image {
    width: 100%; /* Full width on mobile */
    max-width: none; /* Remove max limit for full responsiveness */
  }
}

.blog-image:hover {
  transform: scale(1.1); /* Slight zoom on hover */
}

article {
  font-size: 18px; /* Larger for seniors */
  line-height: 1.6; /* Better spacing */
  font-family: 'Arial', sans-serif; /* Warm, readable */
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

article h2 {
  color: #8b5a2b; /* Earthy brown headings */
  margin-top: 30px;
}
article ul {
  list-style-type: disc; /* Bullets for emphasis */
  padding-left: 20px;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background: #8b5a2b;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 20px;
}

.related-posts {
  margin-top: 40px;
  padding: 20px;
  background: #f0cfac;
  border-radius: 8px;
}
.related-posts ul {
  list-style: none;
  padding: 0;
}
.related-posts li {
  margin-bottom: 10px;
}


/* Modal for full zoom on click */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.hero { background: url('images/background1.jpg') no-repeat center/cover; /* Warm background image */
        height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero h1 { font-size: 48px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
section { padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.value-item { background: #f0cfac; padding: 20px; border-radius: 8px; } /* Soft, warm card style */
img { max-width: 100%; height: auto; border-radius: 8px; }
footer { 
    background-color: #8b5a2b; /* Base earthy brown */
    background-image: linear-gradient(to top, rgba(255, 126, 95, 0.8), rgba(254, 180, 123, 0.5), transparent); /* Sunrise light effect: warm orange to yellow fade from bottom */
    color: white; 
    text-align: center; 
    padding: 20px; /* Increased padding for better visibility */
    position: relative; /* Allows for potential overlays if needed */
}

#contact form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
}
#contact input, #contact textarea {
    padding: 10px;
    border: 1px solid #d2b48c; /* Soft tan border */
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f5f0; /* Warm beige */
}
#contact textarea {
    min-height: 100px;
    resize: vertical;
}
#contact button {
    padding: 10px 20px;
    background-color: #8b5a2b; /* Earthy brown */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
#contact button:hover {
    background-color: #6f4420; /* Darker hover */
}
#messages-container {
    margin-top: 40px;
    max-width: 800px;
    margin: 40px auto 0;
}
#messages-list {
    list-style: none;
    padding: 0;
}
#messages-list li {
    background: #f0cfac; /* Soft card */
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.map-container {
  height: 300px; /* Adjust height as needed */
  width: 100%;
  margin: 20px auto;
  border-radius: 8px;
  border: 1px solid #d2b48c; /* Warm tan border */
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #8b5a2b;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* Hidden until scroll */
  transition: opacity 0.3s;
}

#back-to-top:hover {
  opacity: 0.8;
}