/* ===== HERO SECTION RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-section {
    padding: 180px 20px 100px !important;
    min-height: 75vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero-section::after {
    width: 600px;
    height: 250px;
    top: 120px;
    left: 30px;
  }

  .hero-content {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    /* Increased for iPad Pro */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center !important;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 3.2rem;
    /* Scaled up for large iPad */
    margin-bottom: 25px;
    max-width: 800px !important;
  }

  .hero-content p {
    font-size: 1.3rem;
    /* Scaled up for large iPad */
    max-width: 700px !important;
  }

  .hero-content h1,
  .hero-content p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 200px 20px 100px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-section::after {
    width: 100%;
    height: 200px;
    top: 100px;
    left: 20px;
    filter: blur(60px);
  }

  .hero-content {
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: 2.1rem;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content .hero-actions {
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
  }

  .wave-divider {
    height: 150px;
    transform: translateY(35%);
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 350px 20px 100px;
    min-height: 90vh;
    /* Better height for mobile */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(5, 24, 45, 0.4), rgba(5, 24, 45, 0.7)), url('../assets/images/piscina-home.webp');
    background-size: cover;
    background-position: center;
  }

  .hero-section::after {
    display: none;
    /* Removed the vague shadow in favor of a cleaner overlay or container */
  }

  .hero-content {
    padding: 0 !important;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-content h1 {
    font-size: 1.9rem;
    /* Slightly larger */
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    text-wrap: balance;
    background: linear-gradient(135deg, #ffffff 0%, #d1d1d1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
  }

  .hero-content .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
  }

  .hero-content .hero-actions a {
    width: 100%;
    max-width: 280px;
    margin: 0 !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
    text-transform: none !important;
    padding: 14px 20px !important;
    font-size: 0.9rem !important;
  }

  .btn-hero-primary {
    background: linear-gradient(135deg, #4a6fa5 0%, #3a5f95 100%) !important;
    box-shadow: 0 10px 25px rgba(74, 111, 165, 0.3) !important;
    border: none !important;
  }

  .btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px);
  }

  .hero-content .hero-text {
    max-width: 100%;
    margin-bottom: 0;
  }

  .wave-divider {
    height: 80px;
    /* Refined amplitude */
    transform: translateY(20%);
    bottom: -1px;
  }
}

/* Footer CTA Section */
.footer-cta {
  background: linear-gradient(135deg, #05182d 0%, #092547 100%);
  color: white;
  padding: 80px 40px;
  text-align: center;
  border-radius: 30px;
  margin: 60px auto;
  max-width: 1000px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-cta-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.footer-cta-content p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #b0c4de;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.6;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: linear-gradient(90deg, #5b7c99 0%, #4a6fa5 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 400;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.btn-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.2);
  background: linear-gradient(90deg, #6b8ca9 0%, #5a7fb5 100%);
}

/* ===== FOOTER CTA RESPONSIVE ===== */
@media (max-width: 992px) {
  .footer-cta {
    padding: 70px 40px;
    margin: 50px auto;
    width: 90%;
  }

  .footer-cta-content h2 {
    font-size: 2.5rem;
  }

  .footer-cta-content p {
    font-size: 1.05rem;
    margin-bottom: 35px;
    max-width: 600px;
  }

  .btn-cta {
    padding: 15px 35px;
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .footer-cta {
    padding: 60px 30px;
    margin: 40px auto;
    width: 92%;
    border-radius: 25px;
  }

  .footer-cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 18px;
  }

  .footer-cta-content p {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 100%;
    line-height: 1.5;
  }

  .btn-cta {
    padding: 14px 30px;
    font-size: 1rem;
    width: auto;
    max-width: 80%;
    display: inline-flex;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .footer-cta {
    padding: 50px 20px;
    margin: 30px auto;
    width: 94%;
    border-radius: 20px;
  }

  .footer-cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .footer-cta-content p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
  }

  .btn-cta {
    padding: 13px 25px;
    font-size: 0.95rem;
    width: auto;
    max-width: 90%;
    display: inline-flex;
    justify-content: center;
    margin: 0 auto;
  }
}

/* Sticky Dark Navbar */
header.navbar-dark .navbar-container {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0 0 15px 15px;
  margin: 0;
  padding: 15px 40px;
  max-width: 100%;
}

header.navbar-dark .navbar-logo {
  height: 50px;
}

header.navbar-dark nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

header.navbar-dark nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

header.navbar-dark nav li a {
  color: #ffffff;
  position: relative;
}

header.navbar-dark nav li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  width: 0;
  height: 3px;
  background-color: #4a6fa5;
  border-radius: 10px;
  transition: width 0.3s ease;
}

header.navbar-dark nav li a:hover::after {
  width: 60%;
}

header.navbar-dark nav li a.active {
  border-bottom: 2px solid #4a6fa5;
  border-radius: 0;
  padding-bottom: 5px;
  background: transparent;
}

header.navbar-dark nav li a[href*="contato.php"] {
  background: linear-gradient(90deg, #4a6fa5 0%, #5b7c99 100%);
  padding: 12px 30px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
  border: none;
  color: #ffffff;
  font-weight: 500;
}

header.navbar-dark nav li a[href*="contato.php"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 111, 165, 0.5);
  background: linear-gradient(90deg, #5b7c99 0%, #4a6fa5 100%);
  color: #ffffff;
}

/* Sticky Header Clone Animation */
.navbar-sticky-clone {
  position: fixed;
  top: -100px;
  left: 0;
  width: 100%;
  z-index: 1001;
  transition: top 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.navbar-sticky-clone.visible {
  top: 0;
}

/* Cuidado Completo Section */
.cuidado-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #EDECEC;
}

.cuidado-section h2 {
  font-size: 3.5rem;
  color: #000000;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.text-blue-bold {
  color: #4a6fa5;
  font-weight: 700;
}

.cuidado-section p {
  font-size: 1.1rem;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 300;
}

.btn-gradient-blue {
  display: inline-block;
  padding: 14px 35px;
  background: linear-gradient(90deg, #3b5d8f 0%, #5b7c99 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-gradient-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Three Pillars Section */
.pillars-section {
  padding: 80px 20px;
  text-align: center;
}

.pillars-section h2 {
  font-size: 3rem;
  color: #05182d;
  margin-bottom: 50px;
  font-weight: 700;
}

.text-gradient-blue {
  background: linear-gradient(90deg, #5b7c99 0%, #4a6fa5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #4a6fa5;
}

.pillars-section * {
  box-sizing: border-box;
}

.pillars-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.pillar-card {
  background: white;
  border: 1px solid #b0c4de;
  border-radius: 20px;
  padding: 50px 4.5px;
  flex: 1;
  min-width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
  font-size: 3.5rem;
  color: #4a6fa5;
  margin-bottom: 25px;
}

.pillar-card h3 {
  font-size: 1.5rem;
  color: #05182d;
  margin-bottom: 15px;
  font-weight: 600;
}

.pillar-card p {
  font-size: 0.85rem;
  color: #555555;
  line-height: 1.6;
  text-align: justify;
  width: 90%;
  margin: 0 auto;
}

/* Footer Redesign */
footer {
  position: relative;
  width: 100%;
  margin-top: 100px;
}

.footer-wave {
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 1;
  margin-bottom: 1px;
}

.footer-wave img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-main {
  background-color: #000000;
  color: #ffffff;
  padding: 40px 20px 10px;
  font-family: "Montserrat", sans-serif;
  border-radius: 15px 15px 0 0;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #ffffff;
  color: #000000;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  font-size: 1rem;
}

.social-icons a:hover {
  transform: translateY(-3px);
  background-color: #e0e0e0;
}

.footer-links-container {
  flex: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-column {
  flex: 1;
  min-width: 150px;
}

.footer-column h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: #ffffff;
}

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

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a,
.footer-column ul li {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

.footer-column address {
  font-style: normal;
  color: #a0a0a0;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
}

.footer-column address p {
  margin-bottom: 10px;
}

.footer-column address strong {
  color: #ffffff;
  font-weight: 500;
}

.footer-column address a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column address a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #666666;
  font-size: 0.8rem;
  font-weight: 300;
}

@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
  }

  .footer-links-container {
    justify-content: center;
    text-align: center;
  }

  .footer-column {
    min-width: 45%;
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .footer-links-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    text-align: center;
  }
}

/* ===== SEÇÃO PORTFÓLIO INTERATIVA ===== */
.portfolio-section {
  position: relative;
  background: #EDECEC;
  padding: 100px 0px;
  overflow: visible;
  width: 100%;
}

.portfolio-section .section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.portfolio-section .section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
  position: relative;
  letter-spacing: -1px;
}

.portfolio-section .section-subtitle {
  font-size: 1.1rem;
  color: #555555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

.portfolio-container {
  display: flex;
  gap: 20px;
  height: 500px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 3s cubic-bezier(0.16, 1, 0.3, 1);
  flex: 1;
  cursor: pointer;
  min-width: 0;
}

.portfolio-item.active {
  flex: 3;
  z-index: 3;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.portfolio-item:not(.active) {
  flex: 1;
}

.portfolio-img-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 3.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item.active .portfolio-img-wrapper img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0) 100%);
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item .portfolio-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.portfolio-item.active .portfolio-overlay {
  background: linear-gradient(to top,
      rgba(5, 24, 45, 0.9) 0%,
      rgba(5, 24, 45, 0.4) 60%,
      transparent 100%);
}

.portfolio-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.portfolio-item.active .portfolio-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.portfolio-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.portfolio-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.2;
}

.portfolio-description {
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 100%;
  line-height: 1.5;
  color: #e0e0e0;
  display: none;
}

.portfolio-item.active .portfolio-description {
  display: block;
}

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.portfolio-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.portfolio-btn:hover i {
  transform: translateX(5px);
}

@media (max-width: 992px) {
  .portfolio-container {
    height: 400px;
  }

  .portfolio-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .portfolio-container {
    flex-direction: row;
    height: auto;
    gap: 15px;
    padding: 0 20px 20px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-container::after {
    content: "";
    min-width: 20px;
    height: 1px;
    flex-shrink: 0;
  }

  .portfolio-item {
    height: 280px !important;
    flex: 0 0 85% !important;
    width: 85%;
    scroll-snap-align: center;
  }

  .portfolio-item.active {
    height: 280px !important;
  }

  .portfolio-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .portfolio-description {
    display: none !important;
  }

  .portfolio-item .portfolio-overlay {
    background: linear-gradient(to top,
        rgba(5, 24, 45, 0.9) 0%,
        rgba(5, 24, 45, 0.4) 60%,
        transparent 100%) !important;
    opacity: 1 !important;
  }
}

/* ===== SCIENCE SECTION ===== */
.science-section {
  padding: 100px 20px;
  text-align: center;
  background-color: #EDECEC;
  max-width: 1200px;
  margin: 0 auto;
}

.science-header {
  margin-bottom: 60px;
}

.science-title {
  font-size: 3.5rem;
  color: #000000;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.science-description {
  font-size: 1.1rem;
  color: #555555;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 50px;
}

.science-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background-color: #c0c0c0;
}

.science-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.science-item-1 {
  grid-column: span 2;
  height: 250px;
}

.science-item-2 {
  grid-column: span 1;
  height: 250px;
}

.science-item-3 {
  grid-column: span 1;
  height: 250px;
}

.science-item-4 {
  grid-column: span 1;
  height: 250px;
}

.science-item-5 {
  grid-column: span 1;
  height: 250px;
}

.science-item-6 {
  grid-column: span 2;
  height: 250px;
}

.science-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Responsive updates */
@media (max-width: 992px) {
  .science-section {
    padding: 80px 20px;
  }

  .science-header {
    margin-bottom: 50px;
  }

  .science-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
  }

  .science-description {
    font-size: 1rem;
    max-width: 700px;
  }

  .science-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .science-item-1,
  .science-item-6 {
    grid-column: span 2;
    height: 200px;
  }

  .science-item-2,
  .science-item-3,
  .science-item-4,
  .science-item-5 {
    grid-column: auto !important;
    height: 180px;
  }
}

@media (max-width: 768px) {

  .cuidado-section h2,
  .portfolio-section .section-title,
  .pillars-section h2,
  .science-title {
    font-size: 2.5rem !important;
  }

  .btn-gradient-blue,
  .science-button-wrapper .btn-gradient-blue {
    padding: 12px 30px !important;
    font-size: 0.9rem !important;
    width: auto !important;
    max-width: 80% !important;
    display: inline-flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 576px) {

  .cuidado-section h2,
  .portfolio-section .section-title,
  .pillars-section h2,
  .science-title {
    font-size: 1.88rem !important;
  }
}

/* Tablet specific (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
  .science-section {
    padding: 70px 30px;
    max-width: 900px;
  }

  .science-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .science-item-1 {
    grid-column: span 2;
    height: 180px;
  }

  .science-item-2,
  .science-item-3,
  .science-item-4,
  .science-item-5 {
    height: 180px;
  }

  .science-item-6 {
    grid-column: span 3;
    height: 180px;
  }

  .science-button-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .science-section {
    padding: 60px 20px;
  }

  .science-description {
    font-size: 1rem;
  }

  .science-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .science-grid::-webkit-scrollbar {
    display: none;
  }

  .science-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .science-grid-item {
    flex: 0 0 85%;
    width: 85%;
    height: 250px;
    scroll-snap-align: center;
    margin-bottom: 0;
  }

  .science-item-1,
  .science-item-2,
  .science-item-3,
  .science-item-4,
  .science-item-5,
  .science-item-6 {
    height: 250px;
    grid-column: auto !important;
  }
}

/* ===== PILLARS SECTION TABLET/MOBILE ===== */
@media (min-width: 768px) and (max-width: 1100px) {
  .pillars-section {
    padding: 60px 20px !important;
  }

  .pillars-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    justify-content: space-between !important;
    align-items: stretch !important;
  }

  .pillar-card {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 30px 15px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .pillar-icon {
    font-size: 2.5rem !important;
    margin-bottom: 15px !important;
  }

  .pillar-card h3 {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
    height: 3em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .pillar-card p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 767px) {
  .pillars-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .pillar-card {
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto !important;
  }
}