/* ===============================
   Imports (keep your old imports)
================================= */
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,600,700,900);
@import url(https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,500,500i,600,600i,700,700i);
@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,500i,700,700i);
@import url(https://fonts.googleapis.com/css?family=Arvo:400,400i,700,700i);
@import url('https://fonts.googleapis.com/css?family=Poppins:100,100i,200,300,400,500,600,700,800,900');

/*------------------------------------------------------------------
    Import CSS Plugins
-------------------------------------------------------------------*/
@import url(css/animate.css);
@import url(css/flaticon.css);
@import url(css/prettyPhoto.css);
@import url(css/owl.carousel.css);
@import url(css/font-awesome.min.css);
@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500');
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
@import url('https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700');
@import url('https://fonts.googleapis.com/css?family=Arvo:400,400i,700');

/* ===============================
   Base Font Setup
================================= */
* {
  font-family: 'Poppins', sans-serif;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Poppins', sans-serif;
  color: #007BFF;
  margin-bottom: 14px;
  line-height: 1.3;
}

p {
  color: #555;
  line-height: 1.85;
  font-size: 16px;
  margin-bottom: 20px;
}

/* ===============================
   Doctor Profile Container
================================= */
.doctor-profile-container {
  display: flex;
  justify-content: space-between;
  max-width: 980px;
  margin: 30px auto;
  gap: 20px;
  padding: 0 10px;
  box-sizing: border-box;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Profile Text Area */
.profile-info {
  flex: 1 1 60%;
  min-width: 300px;
  color: #555;
  text-align: left;
}

.profile-photo {
  flex: 0 0 300px;
  max-width: 300px;
  align-self: center;
}

.profile-photo img {
  width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: block;
  margin: 0 auto;
}

/* Profile Text Styles */
.profile-name {
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 8px;
}

.profile-subtitle {
  font-style: italic;
  color: #2a9d8f;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 18px;
}

.profile-degrees {
  color: #c0392b;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 15px;
  font-size: 18px;
}

.degree-mark {
  margin-right: 6px;
}

.profile-bio {
  font-size: 16px;
  line-height: 1.8;
}

/* Highlight */
.highlight-year {
  font-weight: 600;
  color: #d35400;
}
.highlight-place {
  font-weight: 600;
  color: #0e0e0ed5;
}

/* ===============================
   Other Sections Styling
================================= */
.info-section {
  max-width: 980px;
  margin: 30px auto;
  padding: 0 10px;
  box-sizing: border-box;
  color: #555;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #007BFF;
  margin-bottom: 10px;
}

.section-description {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* ===============================
   Consultation Button & Modal
================================= */
.consultation-btn-container {
  text-align: center;
  margin: 40px 0;
}

.consultation-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(45deg, #0066cc, #00c6ff);
  background-size: 200% 200%;
  text-decoration: none;
  transition: background-position 0.6s ease, transform 0.3s ease;
  cursor: pointer;
}

.consultation-btn:hover {
  background-position: bottom right;
  transform: scale(1.08);
  box-shadow: 0px 6px 14px rgba(0,0,0,0.3);
  color: #fff !important;
  text-decoration: none;
}

/* ===============================
   Modal Styles
================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.3);
  animation: slideDown 0.4s ease;
}

.close {
  color: #333;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: red;
}

#consultationForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#consultationForm label {
  font-weight: bold;
}

#consultationForm input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.submit-btn {
  background: linear-gradient(45deg, #0066cc, #00c6ff);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:hover {
  background: linear-gradient(45deg, #004d99, #0099cc);
}

/* ===============================
   Animations
================================= */
@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===============================
   Responsive Adjustments
================================= */
@media (max-width: 768px) {
  .doctor-profile-container {
    flex-direction: column;
    max-width: 95%;
    padding: 0 5px;
    align-items: center;
  }
  .profile-info {
    flex-basis: 100%;
    max-width: 100%;
    text-align: center;
  }
  .profile-photo {
    flex-basis: 100%;
    max-width: 250px;
    margin: 20px auto 0;
  }
  .info-section {
    max-width: 95%;
    padding: 0 5px;
    text-align: center;
  }
}