/* Global Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  box-sizing: border-box; /* Add this for better box model handling */
}

*, *::before, *::after {
  box-sizing: inherit; /* And this */
}

.hero-section {
  width: 100%;
  min-height: 100vh;
  background-image: url('images/template.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 50%;
  padding: 2rem;
}

.hero-logo {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.main-highlight {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.sub-text {
  font-size: 1.1rem;
  line-height: 1.6;
}


/* ======================================= */
/* ========= NEW SOLUTIONS SECTION ========= */
/* ======================================= */
.solutions-section {
  padding: 4rem 2rem;
  width: 100%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: #e0e0e0;
}

.solutions-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; /* Allows cards to stack on smaller screens */
}

.solution-card {
  flex: 1; /* Allows cards to grow and fill space */
  min-width: 400px; /* Minimum width before stacking */
  min-height: 700px;
  padding: 2rem;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  /* === THIS IS THE CHANGE === */
  align-items: flex-start; /* Was 'center', now aligns content to the top */
  justify-content: center;
  text-align: center; /* Center align all card content */
  color: white;
  overflow: hidden; /* Ensures pseudo-element doesn't overflow */
}

.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* Slightly darker overlay for better text readability */
  z-index: 1;
  transition: background 0.3s ease; /* Optional: cool hover effect */
}

.solution-card:hover::before {
    background: rgba(0, 0, 0, 0.55); /* Lighter on hover */
}

/* Card-specific backgrounds */
.appointmint-bg {
  background-image: url('images/template2.jpg');
}

.cleverbook-bg {
  background-image: url('images/template3.jpg');
}

.card-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
}

/* ADDED: Styles for logos inside cards */
.card-logo {
  display: block;
  margin: 0 auto 1rem auto;
  height: auto;
  max-width: 350px;
}
.cleverbook-logo {
  max-width: 450px; /* Specific override for the wider logo */
}

.card-content h3 {
  font-size: 1.5rem; /* Adjusted size for text part of heading */
  font-weight: normal;
  margin-bottom: 1rem;
  color: #ccc;
}

.card-content p, .card-content li {
  font-size: 1.1rem;
  line-height: 1.7;
}

.card-content ul {
  padding-left: 1.2rem;
  text-align: left; /* Keep bullet points aligned left */
  display: inline-block;
  margin-top: 0.5rem;
}


/* ======================================= */
/* ========= NEW FOOTER STYLES ========= */
/* ======================================= */
footer {
  text-align: center;
  padding: 4rem 1rem;
  color: #888;
  font-size: 0.9rem;
  background-color: #0a0a0a; /* Slightly different background for separation */
}

.footer-content h3 {
  font-size: 2.2rem;
  color: #ffffff; /* Bright white for high visibility */
  margin: 0 0 1rem 0;
}

.contact-info {
  font-size: 1.2rem;
  color: #cccccc; /* Bright gray */
  margin: 0 0 2.5rem 0;
}

.copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: #aaa;
  font-size: 1rem;
}

.footer-logo {
  width: 80px;
  height: auto;
}

/* ======================================= */
/* =========== RESPONSIVE STYLES =========== */
/* ======================================= */

@media (max-width: 768px) {
  /* Hero Section Adjustments */
  .hero-section {
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    padding: 1rem;
  }

  .hero-content {
    max-width: 95%;
    padding: 1rem;
  }

  .hero-logo {
    max-width: 300px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .main-highlight {
    font-size: 1.3rem;
  }

  .sub-text {
    font-size: 1rem;
  }

  /* Solutions Section Adjustments */
  .solutions-section {
    padding: 4rem 1rem;
  }

  .solutions-container {
    flex-direction: column; /* Stack cards vertically */
    gap: 1.5rem;
  }

  .solution-card {
    min-width: 100%; /* Make card take full width */
    min-height: auto; /* Let content determine height */
    padding: 2rem 1.5rem;
  }

  .card-logo {
      max-width: 80%; /* Ensure logos scale down nicely */
  }
  
  .card-content h3 {
    font-size: 1.2rem;
  }

  /* Footer Adjustments */
  .footer-content h3 {
    font-size: 1.8rem;
  }
  .contact-info {
    font-size: 1rem;
  }
}