body {
  font-family: "Inter", sans-serif;
}
.text-gradient {
  background: linear-gradient(135deg, #0b2046 0%, #008b8b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Soft blob animations for background */
.blob {
  position: absolute;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
}
.logo {
  width: 8rem;
  /* height: 40px; */
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* contact */
input,
select,
textarea {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #159a8c;
  box-shadow: 0 0 0 3px rgba(21, 154, 140, 0.2);
}

.btn-orange {
  background-color: #f57c00;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition:
    transform 0.2s,
    background-color 0.3s;
}

.btn-orange:hover {
  background-color: #e67600;
  transform: scale(1.05);
}
.back {
  background: linear-gradient(to bottom, #f2f9fa, #f5f7f6);
}
.back2 {
  background: linear-gradient(to bottom, #f5f7f6, #ffffff);
}
.back3 {
  background: linear-gradient(to bottom, #f8fafc, #f3f9fa);
}
#about-us::before {
  content: "";
  position: absolute;
  top: -150px;
  z-index: 0;
  left: 0;
  width: 100%;
  /* Height based on the SVG viewBox ratio (120/1440) */
  height: 180px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  /* URL Encoded SVG with the #F5F7F6 color hardcoded */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 120L60 105C120 90 240 60 360 45C480 30 600 30 720 37.5C840 45 960 60 1080 67.5C1200 75 1320 75 1380 75L1440 75V0H1380C1320 0 1200 0 1080 0C960 0 840 0 720 0C600 0 480 0 360 0C240 0 120 0 60 0H0V120Z' fill='%23F5F7F6'/%3E%3C/svg%3E");

  /* Matches your rotate-180 class */
  transform: rotate(180deg);
  color: #0079c1;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0px 15px 0px #0079c1);
}
.back-color {
  background: linear-gradient(to bottom, #f5f7f6, #f8fafc);
  overflow: visible !important;
}

.shadow {
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.3) !important;
}

/* Contect Us */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-fade-up.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-200 {
  transition-delay: 0.2s;
}
@media screen and (max-width: 500px) {
  .mobile-remove {
    display: none;
  }
  .about-img-top {
    left: -12px !important;
  }
  .about-img-bottom {
    right: -7px !important;
  }
  .yoyo-about {
    right: -12px !important;
  }
}

/* OUR SPECILITIES */

/* Color Variables based on RJC Hospitals Logo */
:root {
  --rjc-teal: #00a38e;
  --rjc-orange: #f4811f;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-color: #f8f9fa;
}

.specialties-section {
  padding: 60px 20px;
  background-color: var(--bg-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Title Styling */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--rjc-teal);
  margin-bottom: 10px;
}

.section-title h2 span {
  color: var(--rjc-orange);
}

.section-title p {
  color: var(--text-light);
  font-size: 16px;
}

/* Grid Layout for Cards */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Individual Card Styling */
.specialty-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  opacity: 0; /* For JS animation */
  transform: translateY(20px); /* For JS animation */
  border-bottom: 4px solid transparent;
}

/* Hover Effect */
.specialty-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 163, 142, 0.2);
  border-bottom: 4px solid #4db748;
}

/* Card Image */
.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.specialty-card:hover .card-image img {
  transform: scale(1.05); /* Image zoom on hover */
}

/* Card Content */
.card-content {
  padding: 20px;
  text-align: center;
}

.card-content h3 {
  color: #0079c1;
  font-size: 20px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.specialty-card:hover .card-content h3 {
  color: #4db748; /* Title turns orange on hover */
}

.card-content p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* JS Animation Class */
.specialty-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablets */
  }
}

@media (max-width: 600px) {
  .specialties-grid {
    grid-template-columns: 1fr; /* 1 card per row on mobile */
  }
  .section-title h2 {
    font-size: 28px;
  }
}
