/* Max Hospital India - Modern Healthcare Design */
:root {
  /* Brand Colors */
  --max-blue: #0056a4;
  --max-blue-light: #0077cc;
  --max-teal: #00a3a1;
  --max-green: #4caf50;
  --max-red: #e53935;
  --max-orange: #ff6d00;

  /* Neutral Colors */
  --max-white: #ffffff;
  --max-light: #f5f7fa;
  --max-gray: #e0e0e0;
  --max-dark: #263238;
  --max-text: #37474f;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Typography */
  --font-main: 'Poppins', 'Segoe UI', sans-serif;
  --font-heading: 'Montserrat', 'Roboto', sans-serif;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 86, 164, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 86, 164, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 86, 164, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--max-text);
  background-color: var(--max-light);
  -webkit-font-smoothing: antialiased;
}

.no-scroll {
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Responsive Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--max-blue);
  margin-bottom: var(--space-sm);
}

/* Fluid typography using clamp() */
h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem); /* 24px - 40px */
}

h2 {
  font-size: clamp(1.3rem, 3.5vw, 2rem); /* 20.8px - 32px */
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.5rem); /* 17.6px - 24px */
}

h4 {
  font-size: clamp(1rem, 2.5vw, 1.3rem); /* 16px - 20.8px */
}

/* Paragraphs with responsive sizing */
p {
  margin-bottom: var(--space-sm);
  font-size: clamp(0.95rem, 2vw, 1.05rem); /* 15.2px - 16.8px */
  line-height: 1.6;
}

/* Links */
a {
  color: var(--max-blue-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: inherit;
}

a:hover {
  color: var(--max-blue);
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 480px) {
  h1 {
    line-height: 1.2;
    margin-bottom: var(--space-xs);
  }

  h2 {
    line-height: 1.25;
  }

  p {
    line-height: 1.5;
  }
}

/* For medium screens (tablets) */
@media (min-width: 768px) and (max-width: 1024px) {
  h1 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.5rem, 2.8vw, 1.8rem);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  gap: var(--space-xs);
}

.btn-primary {
  background-color: var(--max-blue);
  color: var(--max-white);
}

.btn-primary:hover {
  background-color: var(--max-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--max-teal);
  color: var(--max-white);
}

.btn-secondary:hover {
  background-color: #008b8a;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--max-blue);
  color: var(--max-blue);
}

.btn-outline:hover {
  background-color: var(--max-blue);
  color: var(--max-white);
}

.btn-cta {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Header */
.header {
  background-color: var(--max-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 40px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--max-blue);
  line-height: 1;
  white-space: nowrap;
}

.logo-text span {
  color: var(--max-teal);
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  position: relative;
  padding: var(--space-xs) 0;
  font-weight: 500;
  color: var(--max-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--max-blue);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--max-blue);
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Styles */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--max-blue);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 86, 164, 0.2), rgba(0, 86, 164, 0.4)),
              url('intro.png') center/cover;
  color: var(--max-white);
  padding: 200px 0 140px; /* novo padding personalizado */
  text-align: center;
}



.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--max-white);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Quick Links */
.quick-links {
  background-color: var(--max-white);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-sm);
  transform: translateY(-50px);
  border-radius: 8px;
  margin-bottom: -30px;
  position: relative;
  z-index: 100;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-sm);
  border-radius: 4px;
  transition: var(--transition);
}

.quick-link:hover {
  background-color: var(--max-light);
  transform: translateY(-5px);
}

.quick-link-icon {
  font-size: 2rem;
  color: var(--max-blue);
  margin-bottom: var(--space-xs);
}

/* Section General Styles */
.section {
    padding: var(--space-xl) 0;
    background-color: var(--max-light);
}

.section:nth-of-type(odd) {
    background-color: var(--max-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-xs);
    /* `font-family`, `font-size`, `color`, `margin-bottom` are inherited
       from global h2/h3 rules if this is meant to be a general title,
       or can be explicitly set here if it's unique.
       For the FAQ page, the h2 in .section-header already uses the h2 clamp() */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--max-teal);
}

/* Specialties Section */
.specialties {
  padding: var(--space-xl) 0;
  background-color: var(--max-white);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

/* Adicione estilos para o botão e para esconder/mostrar especialidades */
.specialties-grid.expanded .specialty-card.hidden-specialty {
    display: flex; /* ou block, dependendo do seu layout original para as cards */
}
.specialty-card.hidden-specialty {
    display: none;
}
.load-more-button-container {
    text-align: center;
    margin-top: 30px;
}
.load-more-button {
    background-color: var(--max-blue); /* Ou sua cor primária */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.load-more-button:hover {
    background-color: var(--max-teal); /* Cor de hover */
}

/* Estilos para os ícones das especialidades */
.specialty-icon {
    font-size: 4rem; /* Tamanho do ícone */
    color: var(--max-blue);
}
.specialty-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: #f0f8ff;
    border-radius: 8px 8px 0 0;
    min-height: 120px; /* Altura do espaço do ícone */
    width: 100%;
    box-sizing: border-box;
}

/* Estilos para o card da especialidade */
.specialty-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
    transition: transform 0.3s ease;
}
.specialty-card:hover {
    transform: translateY(-5px);
}

/* Estilos para o conteúdo da especialidade (texto) */
.specialty-content {
    padding: 15px;
}

.specialty-title {
    text-align: center; /* Centraliza apenas o título da especialidade */
    margin-top: 0;
    margin-bottom: 0;
}

.specialty-content p {
    text-align: left;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    line-height: 1.5;
    font-size: 0.95em; /* Ligeiramente menor para caber mais texto */
}


.specialty-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.specialty-image {
  height: 180px;
  overflow: hidden;
}

.specialty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.specialty-card:hover .specialty-image img {
  transform: scale(1.05);
}

.specialty-content {
  padding: var(--space-md);
}

.specialty-title {
  color: var(--max-blue);
  margin-bottom: var(--space-xs);
}

/* Why Choose Us */
.why-choose-us {
  padding: var(--space-xl) 0;
  background-color: var(--max-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  display: flex;
  flex-direction: column; /* <-- adiciona isso */
  align-items: center;     /* centraliza ícone e texto */
  text-align: center;      /* opcional: centraliza o texto */
  gap: var(--space-md);
  background-color: var(--max-white);
  padding: var(--space-md);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}


.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: rgba(0, 163, 161, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--max-teal);
  font-size: 1.5rem;
}

/* Doctors Section */
.doctors {
  padding: var(--space-xl) 0;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.doctor-card {
  background-color: var(--max-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.doctor-image {
  height: 300px;
  overflow: hidden;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-info {
  padding: var(--space-md);
}

.doctor-name {
  color: var(--max-blue);
  margin-bottom: var(--space-xs);
}

.doctor-specialty {
  color: var(--max-teal);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--max-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--max-blue);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--max-blue);
  color: var(--max-white);
}

.testimonials {
  background-color: #f5f7fa;
  padding: 4rem 1rem;
  text-align: center;
}

.testimonial-slider {
  max-width: 700px;
  min-height: 330px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-slider-container {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  display: none;
  opacity: 0;
  min-width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 330px;
}

.testimonial-card.active {
  display: flex;
  opacity: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: bold;
  color: #0056a4;
}

.testimonial-role {
  color: #00a3a1;
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  background-color: #00a3a1;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.slider-btn:hover {
  background-color: #0056a4;
}


/* Appointment Section */
.appointment {
  padding: var(--space-xl) 0;
  background: linear-gradient(rgba(0, 86, 164, 0.3), rgba(0, 86, 164, 0.3)),
              url('/images/appointment-bg.png') center/cover;
  color: var(--max-white);
}

.appointment-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.appointment-content h2 {
  color: var(--max-white);
}

.appointment-form {
  background-color: var(--max-white);
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--max-dark);
}

.form-control {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--max-gray);
  border-radius: 4px;
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--max-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 164, 0.1);
}

/* FAQ - Specific Styles */
.faq-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--max-white);
    border: 1px solid var(--max-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

/* FAQ - Question (clickable header) */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    /* h3 inside .faq-question will inherit its font-size from global h3 rule */
    font-family: var(--font-heading); /* Ensure it uses the heading font */
    color: var(--max-blue);
    cursor: pointer;
    background-color: var(--max-white);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

/* Make sure the h3 inside faq-question gets the clamp font size */
.faq-question h3 {
    margin-bottom: 0; /* Remove default h3 margin-bottom */
    color: inherit; /* Ensure h3 color matches parent .faq-question */
    /* It will now inherit font-size: clamp(1.1rem, 3vw, 1.5rem) from the global h3 rule */
}


.faq-question:hover {
    background-color: var(--max-light);
}

.faq-question i.fas.fa-question-circle {
    margin-right: var(--space-sm);
    color: var(--max-teal);
    font-size: 1.25rem;
}

.faq-question .toggle-icon {
    font-size: 1.25rem;
    color: var(--max-blue);
    transition: transform 0.3s ease;
}

/* FAQ - Answer (hidden/shown content) */
.faq-answer {
    padding: 0 var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: var(--max-text);
}

.faq-answer p {
    margin-top: 0;
    margin-bottom: var(--space-md);
    /* p inside .faq-answer will inherit its font-size from global p rule */
}

/* Styles for active FAQ item (open) */
.faq-item.active .faq-question {
    background-color: var(--max-blue);
    color: var(--max-white);
    border-bottom-color: var(--max-teal);
}

.faq-item.active .faq-question h3 { /* Apply color change to the h3 inside */
    color: var(--max-white);
}

.faq-item.active .faq-question i.fas.fa-question-circle {
    color: var(--max-white);
}

.faq-item.active .faq-question .toggle-icon {
    transform: rotate(180deg);
    color: var(--max-white);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for very long answers */
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

/* Footer */
.footer {
  background-color: var(--max-dark);
  color: var(--max-white);
  padding: var(--space-xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-about p {
  color: var(--max-gray);
}

.footer-links h3,
.footer-contact h3 {
  color: var(--max-white);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--max-teal);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--max-gray);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--max-white);
  padding-left: var(--space-xs);
}

.contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--max-gray);
  /* Added for alignment */
  align-items: baseline; /* Aligns items based on their text baselines */
}

.contact-icon {
  color: var(--max-teal);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: var(--space-md) 0;
  text-align: center;
  color: var(--max-gray);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .appointment-container {
    grid-template-columns: 1fr;
  }

  .appointment-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hamburger Menu and Mobile Nav */
  .hamburger {
    display: block;
    z-index: 1001; /* Ensure it's above the nav menu */
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0; /* Align to the top of the viewport */
    flex-direction: column;
    background-color: var(--max-white);
    width: 50%;
    height: 100vh; /* Full viewport height */
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 6rem var(--space-md) var(--space-md); /* Add padding for content */
    z-index: 1000;
    gap: var(--space-sm);
    align-items: center;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-link:hover {
    background-color: var(--max-light);
  }

  .nav-link::after {
    display: none;
  }

  .header-container {
    padding: 0.5rem var(--space-md);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo img {
    height: 35px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  /* FAQ Responsive Adjustments for smaller screens */
  .faq-question {
      /* Font size for h3 inside faq-question now correctly inherits
         the clamp() value, which will be smaller on small screens.
         Only adjust padding/margins if needed. */
      padding: var(--space-sm);
  }

  .faq-question i.fas.fa-question-circle {
      font-size: 1.15rem;
      margin-right: var(--space-xs);
  }
  .faq-answer {
      padding: 0 var(--space-sm);
  }
  .faq-item.active .faq-answer {
      padding-top: var(--space-xs);
      padding-bottom: var(--space-xs);
  }
}

@media (max-width: 576px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .specialties-grid,
  .doctors-grid {
    grid-template-columns: 1fr;
  }
}

/* Specific styles for the Terms and Conditions page */
.terms-conditions {
    background-color: var(--max-white); /* Ensure a clean white background */
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--max-white);
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.terms-content h2 {
    color: var(--max-blue);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-bottom: var(--space-xs);
}

.terms-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--max-teal);
}

.terms-content p {
    margin-bottom: var(--space-md);
    color: var(--max-text);
    line-height: 1.7;
}

.terms-content ul {
    list-style: disc;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--max-text);
}

.terms-content ul li {
    margin-bottom: var(--space-xs);
}

.terms-content a {
    color: var(--max-blue-light);
    text-decoration: underline;
}

.terms-content a:hover {
    color: var(--max-blue);
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .terms-content {
        padding: var(--space-md);
    }

    .terms-content h2 {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .terms-content {
        padding: var(--space-sm);
    }

    .terms-content ul {
        margin-left: var(--space-md);
    }
}

/* Specific styles for the Disclaimer page */
.disclaimer-page {
    background-color: var(--max-white); /* Ensure a clean white background */
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--max-white);
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.disclaimer-content h2 {
    color: var(--max-blue);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-bottom: var(--space-xs);
}

.disclaimer-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--max-teal);
}

.disclaimer-content p {
    margin-bottom: var(--space-md);
    color: var(--max-text);
    line-height: 1.7;
}

.disclaimer-content ul {
    list-style: disc;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--max-text);
}

.disclaimer-content ul li {
    margin-bottom: var(--space-xs);
}

.disclaimer-content a {
    color: var(--max-blue-light);
    text-decoration: underline;
}

.disclaimer-content a:hover {
    color: var(--max-blue);
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .disclaimer-content {
        padding: var(--space-md);
    }

    .disclaimer-content h2 {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .disclaimer-content {
        padding: var(--space-sm);
    }

    .disclaimer-content ul {
        margin-left: var(--space-md);
    }
}

/* Privacy Policy Page */
.privacy-policy {
  background-color: var(--max-white);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.privacy-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--max-white);
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.privacy-content h2 {
  color: var(--max-blue);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-xs);
}

.privacy-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--max-teal);
}

.privacy-content p,
.privacy-content ul {
  color: var(--max-text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.privacy-content ul {
  list-style: disc;
  margin-left: var(--space-lg);
}

.privacy-content a {
  color: var(--max-blue-light);
  text-decoration: underline;
}

.privacy-content a:hover {
  color: var(--max-blue);
}
/* Cookie Consent Styles - Simplified */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--max-white);
  padding: var(--space-md);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none; /* Hidden by default */
  border-top: 2px solid var(--max-teal);
}

.cookie-consent.show {
  display: block;
  animation: slideUp 0.5s ease;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-content p {
  margin: 0;
  flex: 1;
  color: var(--max-text);
  font-size: 0.9rem;
}

.cookie-content a {
  color: var(--max-blue);
  font-weight: 500;
  text-decoration: underline;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  #acceptCookies {
    width: 100%;
  }
}