/* =========================================================
   AUTHOR PAGE STYLES
   ========================================================= */

/* ====== HERO / HEADER SECTION ====== */
.author-page {
  font-family: "Open Sans", Arial, sans-serif;
  color: #222;
  background: #fff;
}

.author-hero {
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  padding: 60px 0 50px;
  margin-bottom: 40px;
  position: relative;
}

.author-hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
  flex-wrap: wrap;
}

.author-photo img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 6px solid #fff;
}

.author-info {
  flex: 1;
  min-width: 250px;
}

.author-info h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
}

.author-position {
  font-size: 18px;
  color: #666;
  font-style: italic;
}

/* ====== MAIN CONTENT ====== */
.author-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.author-section {
  margin-bottom: 50px;
}

.author-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  margin-bottom: 15px;
  position: relative;
}

.author-section h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #007bff;
  border-radius: 2px;
}

.author-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* ====== CERTIFICATES SECTION ====== */
.author-certs-section {
  margin: 60px 0;
  text-align: center;
}

.author-certs-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.author-certs-section h2::after {
  content: "";
  display: block;
  width: 50%;
  height: 3px;
  background: #007bff;
  margin: 8px auto 0;
  border-radius: 2px;
}

.author-certs-slider {
  width: 100%;
  margin-top: 25px;
  padding-bottom: 30px;
}

.author-certs-slider img {
  width: 100%;
  max-width: 260px;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.author-certs-slider img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.swiper-button-prev,
.swiper-button-next {
  color: #007bff;
  transition: opacity 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: 0.7;
}

/* ====== ARTICLES SECTION ====== */
.author-articles {
  margin-top: 70px;
}

.author-articles h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #000;
}

.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.article-body {
  padding: 15px 18px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-body h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.article-body h4 a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.article-body h4 a:hover {
  color: #007bff;
}

.article-body p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin-top: auto;
}

/* ====== ANIMATIONS / EFFECTS ====== */
.author-photo img,
.article-card img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover img {
  transform: scale(1.02);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
  .author-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .author-photo img {
    width: 200px;
    height: 200px;
  }

  .author-info h1 {
    font-size: 30px;
  }

  .author-position {
    font-size: 16px;
  }

  .author-section h2 {
    font-size: 22px;
  }

  .author-section p {
    font-size: 15px;
  }

  .author-certs-slider img {
    max-width: 220px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .author-hero {
    padding: 40px 0;
  }

  .author-info h1 {
    font-size: 26px;
  }

  .author-certs-slider img {
    max-width: 200px;
    height: 130px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  .article-card img {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .author-photo img {
    width: 160px;
    height: 160px;
  }

  .author-info h1 {
    font-size: 22px;
  }

  .author-section h2 {
    font-size: 20px;
  }

  .author-section p {
    font-size: 14px;
  }

  .article-body h4 {
    font-size: 16px;
  }
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.article-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta i {
  color: #007aff;
  font-size: 14px;
}

/* Адаптив */
@media (max-width: 768px) {
  .article-meta {
    justify-content: center;
  }
}
