@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&display=swap");

/* ============================================================
   PROFILE.CSS — Doctor Profile & Verified Credentials Showcase
   Dr. Sk. Sarfaraz Ahmed — Family Physician & Naturopath
   ============================================================ */

:root {
  --profile-primary: #6d8a63;
  --profile-primary-dark: #4d6845;
  --profile-primary-light: #e8efe5;
  --profile-dark: #1e2a1e;
  --profile-dark-card: #263326;
  --profile-cream: #f8f6f1;
  --profile-gold: #c5a059;
  --profile-gold-light: #fbf4e6;
  --profile-gold-border: rgba(197, 160, 89, 0.35);
  --profile-border: rgba(109, 138, 99, 0.2);
  --profile-text: #2f3a2f;
  --profile-muted: #5a6b5a;
  --profile-shadow: 0 16px 40px rgba(30, 42, 30, 0.08);
  --profile-shadow-hover: 0 24px 50px rgba(30, 42, 30, 0.16);
  --profile-radius: 20px;
}

/* ── Header Styling for Profile Page ── */
.header-navbar {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(47, 58, 47, 0.08) !important;
  box-shadow: 0 4px 20px rgba(47, 58, 47, 0.05);
}

.header-navbar .header-logo-name {
  color: #1e2a1e !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.header-navbar .header-logo-title {
  color: #6d8a63 !important;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.header-navbar .header-hamburger-btn {
  background: #eaf2e8 !important;
  border: 1px solid rgba(109, 138, 99, 0.35) !important;
}

.header-navbar .header-hamburger-btn .hamburger-line {
  background-color: #1e2a1e !important;
}

.header-navbar .header-hamburger-btn:hover {
  background: #dce8d9 !important;
  border-color: #6d8a63 !important;
}

.header-navbar .header-hamburger-btn:hover .hamburger-line {
  background-color: #6d8a63 !important;
}

/* ── Clean Hero Layout (Reference: Circular Photo Left, Clean Writeup Right) ── */

.profile-hero-section {
  padding: 120px 0 70px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.profile-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--profile-muted);
  margin-bottom: 28px;
}

.profile-breadcrumb a {
  color: var(--profile-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.profile-breadcrumb a:hover {
  color: var(--profile-primary);
}

.profile-breadcrumb-sep {
  opacity: 0.5;
}

.profile-ref-hero-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 60px;
  align-items: center;
}

.profile-ref-avatar-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-ref-avatar-frame {
  width: clamp(280px, 30vw, 400px);
  height: clamp(280px, 30vw, 400px);
  border-radius: 50%;
  overflow: hidden;
  background: #eaf0e7;
  border: 10px solid #ffffff;
  box-shadow:
    0 20px 50px rgba(30, 42, 30, 0.12),
    0 0 0 1px rgba(109, 138, 99, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.profile-ref-avatar-frame:hover {
  transform: scale(1.02);
  box-shadow:
    0 24px 60px rgba(109, 138, 99, 0.2),
    0 0 0 1px rgba(109, 138, 99, 0.35);
}

.profile-ref-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.profile-ref-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.profile-ref-heading {
  font-family: "Outfit", "DM Sans", "Inter", sans-serif;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  font-weight: 800;
  color: #6d8a63;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.profile-ref-text {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.02rem, 1.1vw, 1.15rem);
  color: #4a5b4a;
  line-height: 1.85;
  margin-bottom: 20px;
}

.profile-ref-text:last-of-type {
  margin-bottom: 30px;
}

.profile-ref-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #6d8a63;
  color: #ffffff !important;
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 16px 44px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(109, 138, 99, 0.35);
  transition: all 0.3s ease;
}

.profile-ref-cta-btn:hover {
  background-color: #4d6845;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(77, 104, 69, 0.45);
}

/* ── CERTIFICATES & CREDENTIALS SHOWCASE SECTION ─────────── */

.profile-credentials-section {
  padding: 80px 0 100px;
  background: #ffffff;
  position: relative;
}

.profile-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}

.profile-section-header .global-section-label {
  justify-content: center;
}

.profile-section-header .global-section-label::before {
  display: none;
}

.profile-section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--profile-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.profile-section-desc {
  font-size: 1.02rem;
  color: var(--profile-muted);
  line-height: 1.8;
}

/* Certificates Grid */
.profile-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.profile-cert-card {
  background: #ffffff;
  border-radius: var(--profile-radius);
  border: 1px solid rgba(109, 138, 99, 0.25);
  box-shadow: 0 12px 36px rgba(30, 42, 30, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.profile-cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(30, 42, 30, 0.14);
  border-color: var(--profile-primary);
}

/* Gold Ribbon / Top Header */
.profile-cert-header {
  background: linear-gradient(135deg, #1e2a1e 0%, #2f3e2f 100%);
  color: #ffffff;
  padding: 22px 26px;
  position: relative;
}

.profile-cert-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--profile-gold);
  margin-bottom: 6px;
}

.profile-cert-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
}

.profile-cert-subtitle {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Certificate Preview Frame */
.profile-cert-preview-frame {
  position: relative;
  background: #f4f6f1;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(109, 138, 99, 0.15);
  cursor: pointer;
  overflow: hidden;
}

.profile-cert-preview-img-wrap {
  width: 100%;
  max-width: 320px;
  height: 400px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

.profile-cert-card:hover .profile-cert-preview-img-wrap {
  transform: scale(1.02);
}

.profile-cert-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff;
  display: block;
}

/* Hover overlay */
.profile-cert-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 30, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
}

.profile-cert-preview-frame:hover .profile-cert-hover-overlay {
  opacity: 1;
}

.profile-cert-zoom-btn {
  background: #ffffff;
  color: var(--profile-dark);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.profile-cert-zoom-btn svg {
  width: 16px;
  height: 16px;
  color: var(--profile-primary);
}

/* Details Table in Card */
.profile-cert-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.profile-cert-meta-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.profile-cert-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(109, 138, 99, 0.2);
  font-size: 0.88rem;
}

.profile-cert-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-cert-meta-label {
  color: var(--profile-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.profile-cert-meta-value {
  color: var(--profile-dark);
  font-weight: 700;
  text-align: right;
}

.profile-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eaf4e8;
  color: #2f6b24;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Action Buttons */
.profile-cert-actions {
  display: flex;
  margin-top: auto;
}

.profile-cert-action-view {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--profile-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 13px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(109, 138, 99, 0.25);
  transition: all 0.25s ease;
}

.profile-cert-action-view:hover {
  background-color: var(--profile-primary-dark);
  box-shadow: 0 8px 20px rgba(109, 138, 99, 0.35);
  transform: translateY(-2px);
}

.profile-cert-action-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--profile-dark) !important;
  border: 1px solid var(--profile-border);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 12px 16px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.profile-cert-action-download:hover {
  border-color: var(--profile-primary);
  background-color: var(--profile-primary-light);
  color: var(--profile-primary-dark) !important;
  transform: translateY(-2px);
}

/* ── Clinical Timeline Section ──────────────────────────── */

.profile-timeline-section {
  padding: 80px 0 90px;
  background: #f8f6f1;
}

.profile-timeline-wrap {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.profile-timeline-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(109, 138, 99, 0.3);
  transform: translateX(-50%);
}

.profile-timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  margin-bottom: 40px;
}

.profile-timeline-item:last-child {
  margin-bottom: 0;
}

.profile-timeline-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(30, 42, 30, 0.05);
  border: 1px solid var(--profile-border);
  position: relative;
}

.profile-timeline-item:nth-child(odd) .profile-timeline-content {
  grid-column: 1;
  text-align: right;
}

.profile-timeline-item:nth-child(even) .profile-timeline-content {
  grid-column: 3;
  text-align: left;
}

.profile-timeline-node {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.profile-timeline-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--profile-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(109, 138, 99, 0.4);
}

.profile-timeline-year {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--profile-primary);
  margin-bottom: 4px;
}

.profile-timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--profile-dark);
  margin-bottom: 6px;
}

.profile-timeline-desc {
  font-size: 0.88rem;
  color: var(--profile-muted);
  line-height: 1.6;
}

/* ── Consultation CTA Banner ────────────────────────────── */

.profile-cta-banner-section {
  padding: 80px 0;
  background: linear-gradient(145deg, #1e2a1e 0%, #2f3a2f 60%, #172217 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.profile-cta-banner-section::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle,
    rgba(109, 138, 99, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.profile-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.profile-cta-text h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.profile-cta-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0;
}

.profile-cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.profile-cta-white-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--profile-dark) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.profile-cta-white-btn:hover {
  background: var(--profile-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.profile-cta-outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.profile-cta-outline-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ── MODAL / LIGHTBOX FOR CERTIFICATE INSPECTION ────────── */

.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-modal-backdrop.is-active {
  display: flex;
  opacity: 1;
}

.profile-modal-window {
  background: #ffffff;
  width: 100%;
  max-width: 960px;
  height: 90vh;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.profile-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #1e2a1e;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 16px;
}

.profile-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-modal-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.profile-modal-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 50px;
}

.profile-modal-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-modal-tab-btn.is-active {
  background: var(--profile-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.profile-modal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-modal-tool-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-modal-tool-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.profile-modal-tool-btn svg {
  width: 16px;
  height: 16px;
}

.profile-modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.profile-modal-close-btn:hover {
  background-color: #d9534f;
  transform: rotate(90deg);
}

.profile-modal-viewer-body {
  flex-grow: 1;
  background: #2b332b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  position: relative;
  padding: 24px;
}

.profile-modal-display-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  transform-origin: center center;
}

.profile-modal-pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.profile-modal-bottom-bar {
  background: #ffffff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid var(--profile-border);
}

.profile-modal-doc-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--profile-dark);
  font-weight: 600;
}

/* ── Responsive Media Queries ───────────────────────────── */

@media (max-width: 1199px) {
  .profile-ref-hero-grid {
    grid-template-columns: 380px 1fr;
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .profile-ref-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .profile-ref-info-col {
    align-items: center;
  }

  .profile-cert-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .profile-hero-section {
    padding: 100px 0 50px;
  }

  .profile-ref-heading {
    font-size: 2.2rem;
  }

  .profile-ref-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .profile-cert-actions {
    grid-template-columns: 1fr;
  }

  .profile-modal-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .profile-modal-tabs {
    justify-content: center;
  }

  .profile-modal-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .profile-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .profile-cta-white-btn,
  .profile-cta-outline-btn {
    width: 100%;
    justify-content: center;
  }
}
