/* home.css */

/* Doctor Hero Wrapper */
.doctor-hero-wrapper {
  background: var(--primary-color);
  padding: 3rem 2rem 4rem 2rem;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
  color: var(--white);
  position: relative;
}

.doctor-card {
  margin-top: 1rem;
}

.avatar-img {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  border: 0.2rem solid rgba(255,255,255,0.2);
  object-fit: cover;
  margin-right: 1.5rem;
}

.doctor-info h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.title-text {
  font-size: 1.4rem;
  font-weight: normal;
  opacity: 0.9;
}

.role-text, .hospital-text {
  font-size: 1.4rem; /* Increased from 1.2rem */
  opacity: 0.8;
  margin-bottom: 0.2rem;
}

.doc-tags {
  margin-top: 2rem;
  align-items: center;
}

.badge {
  padding: 0.2rem 1rem;
  border-radius: 0.4rem;
  font-size: 1.3rem; /* Increased from 1.1rem */
}

.badge-gold {
  background-color: var(--accent-color);
  color: #fff;
  font-weight: 600;
}

.badge-blue {
  background-color: var(--primary-light);
  color: #fff;
}

.profile-link {
  color: #fff;
  font-size: 1.4rem; /* Increased from 1.2rem */
  text-decoration: none;
  opacity: 0.9;
}

/* Stats Card - slightly pulled up into hero */
.stats-card {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  padding: 2rem 1rem;
}

.stat-item {
  text-align: center;
  flex: 1;
  position: relative;
}

.stat-item.divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: var(--border-color);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 1.4rem; /* Increased from 1.2rem */
  color: var(--text-secondary);
}

/* Action Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 0.5rem;
  padding: 2rem 1rem;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.4rem; /* Increased from 1.2rem */
}

.icon-wrap {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 2rem;
}

.bg-blue-light {
  background-color: rgba(11, 69, 110, 0.08);
}
.bg-gray-light {
  background-color: #ededed;
}
.bg-gold-light {
  background-color: rgba(247, 183, 49, 0.15);
}

.text-primary { color: var(--primary-color); }
.text-dark { color: #555; }
.text-gold { color: var(--accent-color); }

/* Latest Articles */
.section-container {
  padding: 0 1.6rem 2rem 1.6rem;
}

.section-header {
  margin-bottom: 1.2rem;
}

.section-header h3 {
  font-size: 1.6rem;
}

.article-slider {
  display: flex;
  overflow-x: auto;
  gap: 1.2rem;
  padding-bottom: 1rem;
}

.article-slider::-webkit-scrollbar {
  display: none;
}

.article-card {
  width: 24rem;
  background: #fff;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.art-cover {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.art-content {
  padding: 1.2rem;
}

.art-tag {
  display: inline-block;
  font-size: 1.3rem; /* Increased from 1.0rem */
  background-color: rgba(247, 183, 49, 0.15);
  color: var(--accent-color);
  padding: 0.2rem 0.8rem;
  border-radius: 0.4rem;
  margin-bottom: 0.6rem;
}
.art-tag.tag-gray {
  background-color: #ededed;
  color: var(--text-secondary);
}

.art-content h4 {
  font-size: 1.6rem; /* Increased from 1.4rem */
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.view-more {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
}

/* Service Card */
.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.hospital-info {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.hospital-bar {
  width: 4px;
  height: 1.8rem;
  background: var(--primary-color);
  border-radius: 2px;
  margin-right: 0.8rem;
}

.hospital-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hospital-name i {
  font-size: 1.2rem;
  color: var(--text-light);
}

.hospital-tags {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.htag {
  font-size: 1.2rem;
  padding: 0.2rem 0.8rem;
  border-radius: 0.4rem;
}

.htag-gray {
  background-color: #f5f7fa;
  color: var(--text-secondary);
}

/* Appointment List */
.appointment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.appointment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem;
  background: #f8fafc;
  border-radius: 0.8rem;
}

.appt-info {
  flex: 1;
}

.appt-date {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.appt-detail {
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.appt-price {
  color: #e74c3c;
  font-weight: 600;
}

.btn-appt {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  border: none;
  border-radius: 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0.4rem 1rem rgba(46, 204, 113, 0.3);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-appt:active {
  transform: scale(0.98);
}

.service-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.service-more i {
  font-size: 1.2rem;
}
