/* My Aged Care - CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1e293b;
  line-height: 1.6;
}

/* Top Bar */
.top-bar {
  background-color: #d4e5f4;
  padding: 0.75rem 0;
}

.top-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

.top-bar a {
  color: #1e293b;
  text-decoration: none;
  font-size: 0.95rem;
}

.top-bar a:hover {
  text-decoration: underline;
}

.my-guide-btn {
  background-color: #fef08a;
  color: #1e293b;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.my-guide-btn:hover {
  background-color: #fde047;
  text-decoration: none;
}

/* Header */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-section img {
  height: 50px;
}

.myagedcare-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 400;
  color: #334e68;
}

.logo-text span {
  font-weight: 700;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: #1e293b;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover {
  color: #0ea5e9;
}

.dropdown-arrow {
  font-size: 0.75rem;
}

.search-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-color: #f8fafc;
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: 1.1rem;
  color: #334e68;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.2;
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: 1.15rem;
  color: #334e68;
  max-width: 900px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 2rem 1.5rem 1.5rem;
  color: white;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Ask Mac Feature */
.ask-mac {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ask-mac-icon {
  width: 24px;
  height: 24px;
  background-color: #fef08a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .top-bar-container {
    gap: 1rem;
    font-size: 0.85rem;
  }
}
