/* =====================================================
   Global Styles
===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  background: linear-gradient(120deg, #f0fdfa 0%, #ecfdf5 100%);
  color: #0f172a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* =====================================================
   Main Layout
===================================================== */
.main-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex: 1;
  align-items: flex-start;
}

.left-column {
  flex: 3;
  min-width: 0;
  max-width: 65%;
}

.right-column {
  flex: 1;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  max-width: 35%;
}

/* =====================================================
   Hero Section
===================================================== */
.hero-section {
  background: linear-gradient(135deg,#a7f3d0,#6ee7b7);
  color: #fff;
  padding: 60px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  text-align: center;
}
.hero-section h1 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #0f172a;
}
.hero-section h1 span { color: #22c55e; }
.hero-section h2 {
  font-size: 38px;
  margin-bottom: 20px;
  color: #0f172a;
}
.hero-section h2 span { color: #22c55e; }
.hero-section p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #1e293b;
}
.hero-section .btn-primary {
  background: linear-gradient(135deg,#059669,#10b981);
  color: #fff;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}
.hero-section .btn-primary:hover {
  background: linear-gradient(135deg,#047857,#059669);
  transform: translateY(-3px);
}

.hero-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  justify-content: center;
}
.hero-cards .card {
  flex: 1 1 200px;
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  color: #0f172a;
}
.hero-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  color: #059669;
}
.hero-cards .card img { width: 60px; margin-bottom: 15px; }

/* =====================================================
   Search Box & Results
===================================================== */
.search-box {
  background: #ecfdf5 !important;
  border: 1px solid #d1fae5 !important;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 100%;
}
.search-box h3 { margin-bottom: 15px; color: #059669 !important; }
#search-main {
  width: 100%;
  padding: 12px 15px;
  border-radius: 25px;
  border: 1px solid #d1fae5 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  transition: all 0.3s ease;
}
#search-main::placeholder { color: #6b7280 !important; }
#search-main:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 8px rgba(5,150,105,0.4) !important;
  outline: none;
}
.search-results {
  margin-top: 10px;
  background: #ffffff !important;
  border-radius: 10px;
  max-height: 480px;
  overflow-y: auto;
  display: none;
}
.search-results .result-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  min-height: 50px;
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
}
.search-results .result-item:hover {
  background: #f0fdfa !important;
  color: #059669 !important;
}
.doctor-card img, .search-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
}

/* Doctor Action Button 
.doctor-action .book-btn {
  display: inline-block;
  background: #059669;
  color: #fff;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}
.doctor-action .book-btn:hover { background: #047857; }*/

.doctor-action .book-appointment btn-primary {
  display: inline-block;
  background: #059669;
  color: #fff;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}
.doctor-action .book-appointment btn-primary:hover { background: #047857; }

/* =====================================================
   Specializations Section
===================================================== */
#specializations {
  text-align: center;
  padding: 60px 20px;
  position: relative;
}
.spec-cards {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.spec-cards::-webkit-scrollbar { display: none; }
.spec-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  padding: 20px 15px;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.spec-card:hover {
  transform: translateY(-6px) scale(1.05);
  background: linear-gradient(145deg,#059669,#10b981);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.icon-circle {
  width: 75px;
  height: 75px;
  background: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.icon-circle img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  background-color: #059669;
  padding: 5px;
  transition: transform 0.3s ease;
}
.spec-card:hover .icon-circle {
  background: #047857;
  transform: rotate(8deg);
}
.spec-card:hover .icon-circle img { transform: scale(1.1); }
.spec-card span { text-align: center; font-size: 15px; transition: color 0.3s ease; }

/* =====================================================
   How It Works Section
===================================================== */
#how-it-works { padding: 60px 20px; text-align: center; }
.steps { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.step-card {
  padding: 30px 20px;
  border-radius: 15px;
  width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  background: linear-gradient(145deg, #059669, #10b981);
  color: #fff;
}

/* =====================================================
   Footer
===================================================== */
footer {
  clear: both;
  width: 100%;
  background: #059669;
  color: #ecfdf5;
  padding: 20px 10px;
  margin-top: 40px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 20px auto;
}
.footer-column {
  flex: 1 1 250px;
  margin: 10px;
}
.footer-column h4 {
  margin-bottom: 10px;
  font-size: 18px;
  border-bottom: 2px solid #ecfdf5;
  display: inline-block;
}
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 6px; }
.footer-column ul li a {
  color: #ecfdf5;
  text-decoration: none;
}
.footer-column ul li a:hover { text-decoration: underline; }
.footer-bottom {
  text-align: center;
  font-size: 14px;
  border-top: 1px solid rgba(236,253,245,0.3);
  padding-top: 10px;
}

/* =====================================================
   Responsive Media Queries
===================================================== */
@media (max-width:992px) {
  .main-wrapper { flex-direction: column; }
  .left-column, .right-column { flex: 1 1 100%; max-width: 100%; }
}
@media (max-width:768px) {
  .spec-card { width: 130px; padding: 12px; }
  .icon-circle { width: 60px; height: 60px; }
  .icon-circle img { width: 40px; height: 40px; }
}
@media (max-width:500px) {
  .spec-card { width: 200px; padding: 15px; }
  .icon-circle { width: 50px; height: 50px; }
  .icon-circle img { width: 35px; height: 35px; }
  .steps { flex-direction: column; gap: 20px; align-items: center; }
  .step-card { width: 90%; padding: 20px 15px; }
}

/* =====================================================
   Login modal
===================================================== */

.login-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.login-modal.active { display: flex !important; }

.login-box {
  background: #ffffff;
  color: #0f172a;
  padding: 25px 20px;
  border-radius: 12px;
  width: 350px;
  max-width: 90%;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.close-modal {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #6b7280;
}

@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
