.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Resources Grid */
.resources-section {
  padding: 5rem 0;
  background-color: var(--olive);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.resource-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--bronze);
  opacity: 0.8;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.resource-card h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--bronze);
  margin-bottom: 1rem;
}

.resource-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal);
  font-weight: 300;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Booking Section */
.booking-section {
  background-color: var(--cream);
  padding: 4rem 0;
}

.booking-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.booking-header {
  margin-bottom: 2rem;
}

.booking-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  font-weight: 500;
}

.booking-header p {
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background-color: var(--bronze);
  color: var(--cream);
  padding: 1rem 2rem;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid var(--bronze);
  cursor: pointer;
  font-family: var(--font-body);
  border-radius: 4px;
  font-weight: 400;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--bronze);
}

.consultation-info {
  font-size: 0.9rem;
  color: var(--bronze);
  margin-top: 1rem;
  font-style: italic;
}

.external-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.external-links a {
  color: var(--charcoal);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.external-links a:hover {
  color: var(--bronze);
  transform: translateX(3px);
}

.external-links a i {
  color: var(--bronze);
  font-size: 1.1rem;
}

/* Fix for animation issue */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries - Aligned with services and contact pages */

/* Large tablets and small laptops */
@media (min-width: 1024px) and (max-width: 1366px) {
  .resources-grid {
    gap: 1.5rem;
  }

  .resource-card h3 {
    font-size: 1.8rem;
  }

  .booking-header h2 {
    font-size: 2.3rem;
  }
}

/* Medium tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .resources-section {
    padding: 4rem 0;
  }

  .resource-card h3 {
    font-size: 1.8rem;
  }

  .resource-card p {
    font-size: 0.9rem;
  }

  .booking-header h2 {
    font-size: 2.2rem;
  }
}

/* iPad-specific adjustments */
@media only screen and (min-width: 768px) and (max-width: 820px) {
  .resources-grid {
    gap: 1.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* Mobile phones */
@media (max-width: 767px) {
}

/* Small phones */
@media (max-width: 480px) {
  .resource-card {
    padding: 1.25rem;
  }

  .resource-card h3 {
    font-size: 1.5rem;
  }

  .booking-header h2 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 0.8rem 1.6rem;
    font-size: 0.85rem;
  }

  .resources-section {
    padding: 2.5rem 0 1rem 0;
  }
}

/* Very small smartphones */
@media (max-width: 390px) {
  .resource-card {
    padding: 1rem;
  }

  .resource-card h3 {
    font-size: 1.4rem;
  }

  .resource-card p {
    font-size: 0.85rem;
  }

  .booking-header p {
    font-size: 0.85rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
  }

  .consultation-info {
    font-size: 0.85rem;
  }
}

/* Extra small smartphones - Specifically targeting title issue */
@media only screen and (max-width: 359px) {
  .resources-section {
    padding: 2rem 0;
  }

  .booking-header h2 {
    font-size: 1.6rem;
  }

  .booking-header p {
    font-size: 0.8rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }

  .consultation-info {
    font-size: 0.8rem;
  }

  .external-links a {
    font-size: 0.85rem;
  }
}

/* Base styling - keep this as is */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

/* This is the important part - replace your existing mobile media query with this */
@media (max-width: 768px) {
  .resources-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .resource-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}
