* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.3;
  color: #4b5563;
  background: #f8fafc;
  min-height: 100vh;
  /*     overflow: hidden; */
}

header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
  /* max-width: 1000px; */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 1rem;
}

a {
  color: #059669;
}

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

.logo {
  height: 42px;
  width: auto;
}

.brand-text h1 {
  color: #059669;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.brand-text p {
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

nav a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

nav a:hover {
  background: #f3f4f6;
  color: #059669;
}

nav a.active {
  background: #dcfce7;
  color: #059669;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.25rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}

scrollable-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.25rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}


section {
  background: white;
  margin: 0.25rem 0;
  padding: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  position: relative;
}

.section-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  /*   margin-bottom: 0.5rem; */
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  text-align: center;
  max-width: 600px;
}

.hero-content h1,
.hero-content h2,
.hero-content p {
  color: #4b5563;
}

h2 {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-align: left;
}

h2 i {
  color: #059669;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

h3 {
  color: #374151;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.applyform:link,
.applyform:visited {
  background-color: #059669;
  color: white;
  padding: 12px 14px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 7px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.applyform:hover,
.applyform:active {
  color: #374151;
  background-color: #dcfce7;
}

section.content-section.services-section {
  padding: 0;
  background: #f8fafc;
}

section.content-section-location.services-section {
  padding: 0;
  background: #f8fafc;
}

.services-grid,
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.services-grid-three-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.service-item,
.program-item {
  background: #f8fafc;
  padding: 0.5rem;
  border-radius: 4px;
  border-left: 3px solid #059669;
  transition: all 0.2s ease;
}

.service-card {
  background: white;
  padding: 10px !important;
  border-radius: 6px;
  /* border-left: 4px solid #059669; */
  transition: all 0.2s ease;
}

.service-card h3 {
  font-size: 1rem;
  /* margin-bottom: 0.5rem; */
}

.service-card p {
  font-size: 0.85rem;
  color: #6b7280;
  /* margin-bottom: 0.5rem; */
}

.service-card a {
  display: inline-block;
  /* margin-top: 0.5rem; */
  padding: 0.25rem 0.75rem;
  background: #059669;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: background 0.2s ease;
}

.service-card a:hover {
  background: #047857;
}

.service-item:hover,
.program-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border-radius: 6px;
}

/* Home page specific styles */
.hero {
  position: relative;
  text-align: center;
  color: white;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  overflow: hidden;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  width: 600px;
}

.hero-content-video {
  position: relative;
  z-index: 2;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(0px);
  width: 600px;
  opacity: 0.94;
}

/* For pages with section images instead of videos */
.hero .section-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 1;
  margin-bottom: 0;
}

.hero h2 {
  color: #1f2937;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.overview-grid,
.features-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.overview-item,
.feature,
.testimonial {
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 4px solid #059669;
  text-align: center;
  transition: all 0.2s ease;
}

.feature h3,
.testimonial cite {
  font-size: 0.9rem;
}

.feature p,
.testimonial p {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.location-details {
  text-align: center;
  padding: 1rem;
}

.overview-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.overview-item a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: #059669;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.overview-item a:hover {
  background: #047857;
}

/* Values grid for about page */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.value-item {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #dc2626;
  text-align: center;
}

/* Contact page specific styles */
.contact-form-section {
  margin: 2rem 0;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  /*   grid-template-columns: 1fr 1fr; */
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  width: 76%;
}

.contact-form textarea {
  width: 100%;
  resize: vertical;
  margin-bottom: 0.5rem;
}

.contact-form button {
  width: 100%;
  background-color: #059669;
  color: white;
  margin-top: 0rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-form button:hover {
  width: 100%;
  color: #374151;
  background-color: #dcfce7;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-option {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #7c3aed;
  text-align: center;
}

.faq-section {
  margin-top: 1.5rem;
}

.faq-item {
  background: #f8fafc;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
}

/* Blog page specific styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  /* padding: 1rem; */
}

.blog-post {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.blog-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.blog-date {
  color: #6b7280;
  font-size: 0.8rem;
}

.read-more {
  color: #059669;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #047857;
}

.read-more-link {
  color: #059669;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: color 0.2s ease;
}

.blog-post:hover .read-more-link {
  color: #047857;
}

/* Blog Modal Styles */
.blog-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.blog-modal-content {
  background-color: white;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-modal-close {
  color: #9ca3af;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.blog-modal-close:hover {
  color: #059669;
}

.blog-detail-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.blog-detail-date {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-detail-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.blog-detail-title {
  color: #1f2937;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.blog-detail-description {
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
  .blog-modal-content {
    margin: 1rem;
    padding: 1.5rem;
    width: calc(100% - 2rem);
  }

  .blog-detail-title {
    font-size: 1.5rem;
  }

  .blog-detail-description {
    font-size: 1rem;
  }
}

.blog-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.category-item {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #7c3aed;
  text-align: center;
}

.cta {
  text-align: center;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.cta h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

button {
  background: #1f2937;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

button:hover {
  background: #374151;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile and tablet responsive styles */
@media (max-width: 1024px) {
  .images-section {
    display: none;
  }

  .model-viewer-section {
    height: 300px;
    margin: 1rem 0;
    display: block !important;
    position: relative;
  }

  #model-container {
    width: 100%;
    height: 100%;
  }

  .model-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
  }

  .model-overlay h2 {
    color: #059669;
    font-size: 1.2rem;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
}

ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

li {
  margin: 0.5rem 0;
  color: #4b5563;
  font-size: 0.9rem;
}

footer {
  background: #1f2937;
  color: #d1d5db;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 0 1rem;
}

.footer-section {
  text-align: left;
}

.footer-section h3 {
  color: #f9fafb;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid #059669;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-section p {
  color: #d1d5db;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: #059669;
}

.footer-bottom {
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-section {
    text-align: center;
  }

  .footer-bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* 3D Model Viewer Styles */
.model-viewer-section {
  position: relative;
  background: white;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin: 0;
}

#model-container {
  width: 100%;
  height: 100%;
  cursor: move;
}

.model-overlay {
  position: absolute;
  top: 9px;
  left: 11px;
  color: white;
  z-index: 10;
  pointer-events: none;
}

.model-overlay h3 {
  color: #059669;
  font-size: 1.2rem;
  margin-bottom: 0;
}


body {
  /* 
	height: 100vh;
    overflow: hidden;
    display: grid;
 */
}


main {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

main::-webkit-scrollbar {
  display: none;
}

scrollable-main {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

scrollable-main::-webkit-scrollbar {
  display: none;
}

/* Content sections in grid */
.content-section-location {
  background: white;
  padding: 0.75rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  overflow: visible;
  margin: 0;
  color: #4b5563;
  /*     align-self: start; */
}

/* Desktop compact layout - fit everything in one screen */
@media (min-width: 1024px) {
  body {
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "sidebar main"
      "footer footer";
  }

  header {
    grid-area: sidebar;
    margin: 0.5rem;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    max-width: 100%;
    /* width: 200px; */
  }

  .header-container {
    flex-direction: column;
    gap: 1.3rem;
    padding: 0;
    align-items: center;
    padding-top: 19px;
  }

  .logo-section {
    justify-content: center;
    margin-bottom: 1rem;
  }

  nav {
    flex-direction: column;
    gap: 0.4rem;
    width: 100px;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border-radius: 6px;
    display: block;
  }

  main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0.5rem 1rem 0 0.5rem;
    width: 100%;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */

    /* 
    overflow-x: hidden;
    height: 100vh;
    position: relative;
 */
  }

  main::-webkit-scrollbar {
    display: none;
    /* WebKit */
  }

  scrollable-main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0.5rem 1rem 0 0.5rem;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  scrollable-main::-webkit-scrollbar {
    display: none;
  }

  /* Hero/Banner sections stay full width */
  .hero {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
    padding: 1rem 1.5rem;
    height: 140px;
  }

  .hero h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  /* Content area with grid layout */
  .content-area {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 0.5rem;
    overflow: visible;
  }



  .blog-area {
    flex: 1;
    /*     overflow-y: auto; */
    padding: 0.5rem 0;
  }

  /* Image section spans full width at top */
  .images-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    max-height: 120px;
    overflow: hidden;
  }

  .section-image {
    height: 80px;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
  }

  /* Content sections in grid */
  .content-section {
    background: white;
    padding: 0.75rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    overflow: visible;
    margin: 0;
    color: #4b5563;
    /*     align-self: start; */
  }

  .reviews-section-dual {
    grid-column: 2 / 4;
  }

  .reviews-section-full {
    grid-column: 1 / 4;
  }

  /* Home page specific layout - values in column 1, services in columns 2-3 */
  .content-area .values-section {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .content-area .services-section {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  /* Gallery spans all three columns below */
  .content-area .gallery-section {
    grid-column: 1 / 4;
    grid-row: 2;
    overflow-y: auto;
  }

  .map-section {
    grid-column: 1 / 4;
    overflow-y: auto;
  }

  h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .services-grid,
  .programs-grid,
  .overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .service-item,
  .program-item,
  .overview-item,
  .service-card,
  .blog-post {
    padding: 0.5rem;
    margin: 0;
  }

  .contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .contact-item {
    padding: 0.75rem;
    margin: 0;
  }

  .location-details {
    padding: 0.5rem;
  }

  .contact-form {
    max-width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.4rem;
    font-size: 0.85rem;
  }

  .contact-form button {
    /*     padding: 0.5rem 1rem; */
    /*     font-size: 0.9rem; */
  }

  iframe {
    height: 250px;
  }

  footer {
    grid-area: footer;
    margin: 10px;
    border-radius: 8px;
    padding: 0.75rem 0;
    border-top: 1px solid #374151;
  }

  .footer-content {
    gap: 0.75rem;
  }

  .footer-bottom {
    margin-top: 0.32rem;
  }

  ul {
    margin: 0.25rem 0;
  }

  li {
    margin: 0.15rem 0;
  }

  p {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
  }
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
  aspect-ratio: 1;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-item:hover {
  transform: scale(1.05);
  z-index: 5;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #059669;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1001;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(5, 150, 105, 0.8);
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
  }

  /* Default square items (1x1) */
  .gallery-item {
    aspect-ratio: 1;
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Horizontal rectangle items (2x1) */
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(7),
  .gallery-item:nth-child(13),
  .gallery-item:nth-child(15),
  .gallery-item:nth-child(18) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 2/1;
  }

  /* Vertical rectangle items (1x2) */
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(9),
  .gallery-item:nth-child(14) {
    grid-column: span 1;
    grid-row: span 2;
    aspect-ratio: 1/2;
  }
}

/* Google Reviews Slider Styles */
.reviews-slider {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.review-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  /* background: #f8fafc; */
  padding: 1rem;
  min-height: 200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.review-container-triple {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 1rem;
  min-height: 200px;
  display: grid;
  grid-template-columns: 60px 1fr 1fr 1fr 60px;
  gap: 1rem;
  touch-action: pan-y;
  align-items: center;
}

.review {
  display: none;
  text-animation: fadeIn 0.5s ease-in-out;
  background: #fbfbfb;
  padding: 1rem;
  border-radius: 6px;
  /* border: 1px solid #e5e7eb; */
}

.review.active {
  display: block;
}

.review-triple {
  background: #fbfbfb;
  padding: 1rem;
  border-radius: 6px;
  animation: fadeIn 0.5s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #fbbf24;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.review p {
  font-style: italic;
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.review cite {
  color: #059669;
  font-weight: 600;
  font-style: normal;
}

.review-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  display: none;
}

.review-navigation-triple {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.review-prev,
.review-next,
.review-prev-triple,
.review-next-triple {
  background: #059669;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
/*   box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3); */
  align-self: center;
  justify-self: center;
}

.review-prev:hover,
.review-next:hover,
.review-prev-triple:hover,
.review-next-triple:hover {
  background: #047857;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  display: none;
}

.review-dots-triple {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  display: none;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dot.active {
  background: #059669;
}

/* Mobile responsive for triple reviews */
@media (max-width: 768px) {
  .review-container-triple {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .review-triple {
    margin-bottom: 0.5rem;
  }
}

/* Carousel Styles */
.carousel-section {
  background: transparent;
  margin: 0.25rem 0;
/*   padding: 1rem; */
  border-radius: 4px;
/*   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); */
/*   border: 1px solid #f1f5f9; */
  border: 0;
  box-shadow: 0 0 0;
  position: relative;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-track-container {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.3s ease;
  overflow: visible;
  flex: 1;
  width: auto;
}

.carousel-item {
  flex: 0 0 310px;
  background: #fbfbfb;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: grab;
}

/* 
.carousel-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
 */

.carousel-item:active {
  cursor: grabbing;
}

.carousel-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  border-radius: 50%;
}

.carousel-content {
  flex: 1;
}

.carousel-content h3 {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.carousel-content p {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.carousel-nav {
  background: #059669;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
/*   border-radius: 50%; */
  border-radius: 9px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
/*   box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3); */
  z-index: 10;
  flex-shrink: 0;
}

.carousel-nav:hover {
  background: #047857;
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  display: none;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-dot.active {
  background: #059669;
}

/* Mobile responsive for carousel */
@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 250px;
    padding: 0.75rem;
    min-height: 80px;
  }

  .carousel-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }

  .carousel-content h3 {
    font-size: 0.9rem;
  }

  .carousel-content p {
    font-size: 0.8rem;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin: 0.27rem 0;
}

.load-more-button {
  background: #059669;
  color: white;
  border: none;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
}

.load-more-button:hover {
  background: #047857;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .logo-section {
    justify-content: center;
  }

  nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  main {
    padding: 1rem;
  }

  section {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .services-grid,
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 40px;
  }

  .brand-text h1 {
    font-size: 1.25rem;
  }

  .brand-text p {
    font-size: 0.7rem;
  }

  nav {
    gap: 0.5rem;
  }

  nav a {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

.certification-image {
  height: 110px;
  width: 100%;
  object-fit: cover;
}