/* =========================================================
   SKJEE Author Profile Page
   ========================================================= */


/* =========================================================
   Page Wrapper
   ========================================================= */

.author-profile-page {
  width: 100%;
}

.author-profile-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}


/* =========================================================
   Profile Hero
   ========================================================= */

.author-profile-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  margin: 28px 0;
  padding: 34px;
  background:
    linear-gradient(
      135deg,
      rgba(238, 250, 250, 0.98),
      rgba(255, 255, 255, 0.98)
    );
  border: 3px solid var(--primary);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.author-profile-photo-wrap {
  display: flex;
  justify-content: center;
}

.author-profile-photo {
  display: block;
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 7px solid #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px var(--primary),
    0 14px 30px rgba(0, 0, 0, 0.14);
}

.author-profile-hero-content {
  min-width: 0;
}

.author-profile-label {
  margin-bottom: 7px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.author-profile-hero h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 46px;
  line-height: 1.1;
}

.author-profile-role {
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
}

.author-profile-intro {
  max-width: 700px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}


/* =========================================================
   Meta Information
   ========================================================= */

.author-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 22px;
}

.author-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.author-profile-meta i {
  color: var(--primary);
}


/* =========================================================
   Actions
   ========================================================= */

.author-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.author-profile-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* =========================================================
   Main Content Sections
   ========================================================= */

.author-profile-section {
  margin-bottom: 28px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.97);
  border: 2px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.author-profile-section-soft {
  background:
    linear-gradient(
      135deg,
      rgba(238, 250, 250, 0.97),
      rgba(255, 255, 255, 0.97)
    );
}

.author-profile-section > p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.author-profile-section > p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   Section Headings
   ========================================================= */

.author-section-heading {
  margin-bottom: 20px;
}

.author-section-heading > p {
  margin: 0 0 4px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.author-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.25;
}


/* =========================================================
   Feature Cards
   ========================================================= */

.author-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.author-feature-card {
  min-width: 0;
  padding: 20px 16px;
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.author-feature-card:nth-child(1) {
  border-color: var(--orange);
}

.author-feature-card:nth-child(2) {
  border-color: var(--purple);
}

.author-feature-card:nth-child(3) {
  border-color: var(--primary);
}

.author-feature-card:nth-child(4) {
  border-color: var(--secondary);
}

.author-feature-icon {
  margin-bottom: 10px;
  font-size: 34px;
}

.author-feature-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.author-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}


/* =========================================================
   Technologies
   ========================================================= */

.author-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.author-tech-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--primary-dark);
  background: #eefafa;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}


/* =========================================================
   Resource Creation Process
   ========================================================= */

.author-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.author-process-card {
  min-width: 0;
  padding: 20px 16px;
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 20px;
}

.author-process-card > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
}

.author-process-card h3 {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 17px;
}

.author-process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}


/* =========================================================
   Projects
   SKJEE Learning + VIDYOM Kids Learning
   ========================================================= */

.author-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.author-project-card {
  min-width: 0;
  padding: 24px;
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.author-project-card:first-child {
  border-color: var(--primary);
}

.author-project-card:last-child {
  border-color: var(--purple);
}


/* Project Logos */

.author-project-logo {
  display: block;
  width: auto;
  max-width: 180px;
  height: 60px;
  margin: 0 0 16px;
  object-fit: contain;
  object-position: left center;
}


/* Project Content */

.author-project-card h3 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 22px;
}

.author-project-role {
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.author-project-card > p:not(.author-project-role) {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.author-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-dark);
  font-weight: 800;
}

.author-text-link:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================================================
   Resource Cards
   ========================================================= */

.author-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.author-resource-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 22px 14px;
  color: var(--text);
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.author-resource-card:nth-child(1) {
  border-color: var(--orange);
}

.author-resource-card:nth-child(2) {
  border-color: var(--blue);
}

.author-resource-card:nth-child(3) {
  border-color: var(--secondary);
}

.author-resource-card:nth-child(4) {
  border-color: var(--purple);
}

.author-resource-card:hover {
  color: var(--text);
  transform: translateY(-4px);
  box-shadow: var(--strong-shadow);
}

.author-resource-card > span {
  margin-bottom: 10px;
  font-size: 34px;
}

.author-resource-card strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.author-resource-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}


/* =========================================================
   Connect Section
   ========================================================= */

.author-profile-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-bottom: 22px;
  padding: 30px;
  background:
    linear-gradient(
      135deg,
      #eefafa,
      #ffffff
    );
  border: 3px solid var(--primary);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.author-profile-connect h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 28px;
}

.author-profile-connect p:not(.author-profile-label) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}


/* =========================================================
   Connect Actions
   Main contact button + social icons
   ========================================================= */

.author-connect-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}


/* =========================================================
   Author Social Links
   Small reusable social icon buttons
   ========================================================= */

.author-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.author-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  color: var(--primary-dark);
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.author-social-links a:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 7px 15px rgba(11, 154, 146, 0.18);
}

.author-social-links a:active {
  transform: translateY(0);
}

.author-social-links i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* =========================================================
   Updated Date
   ========================================================= */

.author-profile-updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}


/* =========================================================
   Focus Accessibility
   ========================================================= */

.author-profile-page a:focus {
  outline: none;
}

.author-profile-page a:focus-visible {
  outline: 3px solid rgba(11, 154, 146, 0.3);
  outline-offset: 4px;
}

.author-social-links a:focus-visible {
  outline-offset: 3px;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {

  .author-profile-hero {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
  }

  .author-profile-photo {
    width: 200px;
    height: 200px;
  }

  .author-profile-hero h1 {
    font-size: 38px;
  }

  .author-feature-grid,
  .author-process-grid,
  .author-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-project-logo {
    max-width: 165px;
    height: 56px;
  }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {

  .author-profile-wrap {
    padding: 22px 14px 40px;
  }


  /* Profile Hero */

  .author-profile-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 20px;
    text-align: center;
  }

  .author-profile-photo {
    width: 180px;
    height: 180px;
  }

  .author-profile-hero h1 {
    font-size: 34px;
  }

  .author-profile-role {
    font-size: 18px;
  }

  .author-profile-intro {
    font-size: 16px;
  }

  .author-profile-meta,
  .author-profile-actions {
    justify-content: center;
  }


  /* Main Sections */

  .author-profile-section {
    padding: 22px 20px;
  }

  .author-section-heading h2 {
    font-size: 26px;
  }

  .author-feature-grid,
  .author-process-grid,
  .author-project-grid,
  .author-resource-grid {
    grid-template-columns: 1fr;
  }


  /* Project Logos */

  .author-project-logo {
    max-width: 165px;
    height: 56px;
    margin-left: auto;
    margin-right: auto;
    object-position: center;
  }

  .author-project-card {
    text-align: center;
  }

  .author-text-link {
    justify-content: center;
  }


  /* Connect */

  .author-profile-connect {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 20px;
    text-align: center;
  }

  .author-profile-connect .author-profile-actions {
    justify-content: center;
  }

  .author-connect-actions {
    align-items: center;
  }

  .author-social-links {
    justify-content: center;
  }

}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 430px) {

  .author-profile-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .author-profile-hero {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .author-profile-photo {
    width: 165px;
    height: 165px;
  }

  .author-profile-hero h1 {
    font-size: 30px;
  }

  .author-profile-role {
    font-size: 17px;
  }

  .author-profile-section {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .author-section-heading h2 {
    font-size: 24px;
  }

  .author-project-card {
    padding: 20px 16px;
  }

  .author-profile-connect {
    padding: 22px 16px;
  }

  .author-profile-connect h2 {
    font-size: 25px;
  }

  .author-profile-actions .btn {
    width: 100%;
  }

  .author-social-links a {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .author-resource-card,
  .author-social-links a {
    transition: none;
  }

  .author-resource-card:hover,
  .author-social-links a:hover {
    transform: none;
  }

}


/* =========================================================
   Print
   ========================================================= */

@media print {

  .author-profile-actions,
  .author-social-links,
  .author-resource-grid {
    display: none;
  }

}