/*
Theme Name: elfayrouz
Theme URI: 
Author: Mostafa Alsamman
Author URI: 
Description: Elfayrouz Hospital
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version:1.0.0 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: elfayrouz
Tags: 
*/
/* === Services Card Styling === */
.ef-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.ef-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Button hover */
.ef-card .wp-block-button__link {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.ef-card .wp-block-button__link:hover {
  background-color: #27486D !important;
  transform: scale(1.05);
}

/* === Doctor Single Page Layout === */
.single-doctor .entry-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}

/* Doctor Image */
.single-doctor .entry-content img {
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* Doctor Info */
.single-doctor .doctor-meta-wrapper {
  flex: 1;
  min-width: 250px;
}

.single-doctor .doctor-meta-wrapper h1,
.single-doctor .doctor-meta-wrapper h2,
.single-doctor .doctor-meta-wrapper p {
  margin-bottom: 0.6em;
}

.single-doctor .doctor-meta-wrapper strong {
  color: #27486D;
}

.single-doctor .meta-field {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

/* Highlight Specialty & Clinic */
.single-doctor .meta-field a {
  color: #FF621C;
  text-decoration: none;
}

.single-doctor .meta-field a:hover {
  text-decoration: underline;
}
/* ==========================================================
   🏥 El Fayrouz Clinic Meta Section
   ========================================================== */
/* ===== Clinic Page Styling ===== */
.clinic-meta {
  background: #f9fbfd;
  padding: 30px;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.clinic-title {
  color: var(--wp--preset--color--primary);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 700;
}

.clinic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px 25px;
  margin-bottom: 25px;
}

.clinic-item {
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  padding: 15px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Action buttons */
.clinic-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.clinic-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
}

.book-btn { background-color: var(--wp--preset--color--accent); }
.call-btn { background-color: var(--wp--preset--color--primary); }

.clinic-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* ===== Booking Modal ===== */
.booking-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.booking-modal.show { display: flex; }

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.modal-content input,
.modal-content button,
.modal-content select{
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.modal-content button {
  background-color: var(--wp--preset--color--accent);
  color: #fff;
  font-weight: 600;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  cursor: pointer;
  font-size: 22px;
  color: #333;
}

/* ==========================================================
   👨‍⚕️ Related Doctors Section Styling
   ========================================================== */
.related-doctors-section {
  margin: 60px auto;
  padding: 40px 20px;
  max-width: 1200px;
  background: #f9fbfd;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.related-doctors-section h2 {
  text-align: center;
  color: #27486D;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

/* ===== Doctor Cards Grid ===== */
.doctor-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* ===== Doctor Card ===== */
.doctor-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Doctor photo */
.doctor-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #f0f4f9;
}

/* Doctor name */
.doctor-card h3 {
  color: #27486D;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Doctor position */
.doctor-position {
  color: #555;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* ===== Book Button ===== */
.doctor-card .book-btn {
  background-color: #FF621C;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.doctor-card .book-btn:hover {
  background-color: #27486D;
  transform: translateY(-2px);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .related-doctors-section {
    padding: 30px 15px;
  }
  .doctor-photo {
    width: 120px;
    height: 120px;
  }
}

/* 🔹 Responsive */
@media (max-width: 992px) {
  .wp-block-query .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .wp-block-query .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}

