/* =====================================================
   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;}

.container {  width: 90%;  max-width: 1400px;  margin: 0 auto;}

/* =====================================================
   Main Layout
===================================================== */
.main-wrapper { display: flex; gap: 20px; margin-top: 40px; }
.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
===================================================== */
.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; }
.search-results .result-item:hover { background: #f0fdfa !important; color: #059669 !important; }
.search-card img { width: 70px; height: 70px; object-fit: cover; border-radius: 50%; }

/* =====================================================
   Specializations Section
===================================================== */
#specializations { text-align: center; padding: 60px 20px; position: relative; }
#specializations h3 { font-size: 28px; font-weight: 600; margin-bottom: 10px; color: #0f172a; }
.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 { background-color: #047857; transform: scale(1.1); }
.spec-card span { text-align: center; font-size: 15px; transition: color 0.3s ease; }

/* =====================================================
   Doctor Card Section
===================================================== */
.doctor-card { display: flex; align-items: center; justify-content: space-between; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 15px; padding: 15px; margin-bottom: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.2s ease, box-shadow 0.2s ease; width: 100%; max-width: 100%; }
.doctor-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.doctor-photo img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid #d1fae5; }
.doctor-info { flex: 1; margin-left: 15px; }
.doctor-info h4 { margin: 0; color: #059669; font-size: 18px; font-weight: 600; }
.doctor-info .specialization { margin: 3px 0; font-size: 14px; color: #4b5563; }
.doctor-info .rating { font-size: 14px; color: #f59e0b; font-weight: 500; }
.doctor-action { text-align: center; min-width: 100px; }
.doctor-action .fee { font-size: 16px; font-weight: 600; color: #111827; margin-bottom: 8px; }
.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; }

/* =====================================================
   How It Works Section
===================================================== */
#how-it-works { padding: 60px 20px; text-align: center; }
#how-it-works h3 { font-size: 32px; font-weight: 600; color: #0f172a; margin-bottom: 40px; }
.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:nth-child(1) { background-color: #d1fae5; }
.step-card:nth-child(2) { background-color: #ecfdf5; }
.step-card:nth-child(3) { background-color: #fef3c7; }
.step-icon { width: 90px; height: 90px; background-color: transparent; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; transition: transform 0.3s ease; }
.step-icon img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; padding: 0; transition: transform 0.3s ease; }
.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; }
.step-card:hover .step-icon img { transform: scale(1.1); }
.step-card h4 { font-size: 22px; font-weight: 600; margin-bottom: 15px; }
.step-card p { font-size: 16px; line-height: 1.5; color: #374151; margin: 0; text-align: center; transition: color 0.3s ease; }
.step-card:hover p { color: #ecfdf5; }

/* =====================================================
   Testimonials & Footer
===================================================== */
.testimonial-cards { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.testimonial-card { background: rgba(255,255,255,0.7); padding: 20px; border-radius: 15px; width: 260px; text-align: center; font-style: italic; }
footer { background: #059669; color: #ecfdf5; padding: 20px; text-align: center; margin-top: 40px; }

/* =====================================================
   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; } }

/* =====================================================
   Responsive Media Queries
===================================================== */
@media (max-width: 1200px) {
  .hero-section { padding: 40px 20px; }
}
@media (max-width:992px) {
  .main-wrapper { flex-direction: column; }
  .left-column, .right-column { flex: 1 1 100%; max-width: 100%; }
  .hero-section h2 { font-size: 30px; }
  .steps { gap: 20px; }
}
@media (max-width:768px) {
  .header-container { flex-direction: column; gap: 10px; }
  .logo { font-size: 20px; }
  .hero-section h2 { font-size: 26px; }
  .hero-section p { font-size: 16px; }
  .spec-card { width: 130px; padding: 12px; }
  .icon-circle { width: 60px; height: 60px; }
  .icon-circle img { width: 40px; height: 40px; }
  .spec-card span { font-size: 13px; }
  .doctor-card { flex-direction: column; align-items: flex-start; }
  .doctor-info { margin: 10px 0; }
  .doctor-action { width: 100%; text-align: left; margin-top: 10px; }
  .doctor-action .book-btn { width: 100%; text-align: center; }
}
@media (max-width:500px) {
  .hero-section { padding: 30px 15px; }
  .hero-section h2 { font-size: 22px; }
  .hero-section p { font-size: 14px; }
  .spec-card { width: 200px; padding: 15px; }
  .icon-circle { width: 50px; height: 50px; }
  .icon-circle img { width: 35px; height: 35px; }
  .spec-card span { font-size: 12px; }
  .steps { flex-direction: column; align-items: center; gap: 20px; }
  .step-card { width: 90%; padding: 20px 15px; }
  .step-card h4 { font-size: 18px; }
  .step-card p { font-size: 14px; }
  .step-icon { width: 60px; height: 60px; }
  .step-icon img { width: 35px; height: 35px; }
  .testimonial-card { width: 100%; }
}

/* =====================================================
   Scroll Arrows
===================================================== */
.scroll-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 35px; color: #059669; cursor: pointer; user-select: none; z-index: 10; background: rgba(255,255,255,0.6); border-radius: 50%; padding: 8px 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.15); opacity: 0; transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease; }
#specializations:hover .scroll-arrow { opacity: 1; }
.scroll-arrow:hover { background: #059669; color: #fff; }
.scroll-arrow.left { left: -15px; }
.scroll-arrow.right { right: -15px; }
