.author-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  border: 2px solid #eee;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: #271adcff;
  font-size: 15px;
  display: flex;
  margin-top: 7px;
  align-items: center;
  gap: 6px;
}

.verified {
  color: #28a745;
  font-size: 15px;
}

.author-role {
  color: #555;
  font-size: 11px;
  margin-top: 1px;
}

.update-date {
  color: #777;
}

/* Optional Responsive Design */
@media (max-width: 500px) {
  .author-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .author-img {
    margin-bottom: 5px;
  }
}

/* Base Styles */
.hero-section {
  position: relative;
  height: 220px;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
    url("/assets/images/news-banner.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 30px;
}

.course-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  color: #666;
  padding: 10px 0;
}

.breadcrumbs a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

.breadcrumbs .current {
  color: #555;
  font-weight: 500;
}

/* News Card */
.news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: 0.3s;
  margin-bottom: 15px;
}

/* News Header */
.news-header {
  margin-bottom: 20px;
}

.news-title-main {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* ===== FIXED NEWS META SECTION ===== */
.news-meta {
  margin: 20px 0;
  /*     padding: 15px 0; */
  border-bottom: 1px solid #e0e0e0;
}

.meta-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 15px;
  width: 100%;
}

.read-time {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.action-btn i {
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

.action-btn:hover {
  background: #1a73e8;
  color: white;
  border-color: #1a73e8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-text {
  white-space: nowrap;
}

.meta-bottom {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.update-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #666;
  background: #f8f9fa;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  white-space: nowrap;
}

.update-date i {
  color: #1a73e8;
  font-size: 0.8rem;
}

/* News Image */
.news-image-main {
  margin: 25px 0;
  text-align: center;
}

.news-image-main img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  height: 400px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 20px;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a237e;
  border-bottom: 2px solid #1a73e8;
  padding-bottom: 6px;
}

.sidebar-scroll {
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
  display: block;
}

.sidebar-list a:hover {
  color: #1a73e8;
}

.sidebar-news-title {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.sidebar-news-date {
  font-size: 0.8rem;
  color: #666;
}

.no-news {
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.no-news p {
  font-size: 1.1rem;
  color: #666;
}

/* ===== RESPONSIVE DESIGN - FIXED FOR MOBILE ===== */
@media (max-width: 991px) {
  .sidebar {
    height: auto;
    position: static;
    margin-top: 30px;
  }

  .course-title {
    font-size: 2rem;
  }

  .news-title-main {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 180px;
  }

  .course-title {
    font-size: 1.7rem;
  }

  .news-card {
    padding: 20px;
  }

  .news-title-main {
    font-size: 1.5rem;
  }

  /* Mobile optimization for meta section */
  .meta-top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .action-buttons {
    justify-content: flex-start;
    width: 100%;
  }

  .action-btn {
    flex: 1;
    min-width: 100px;
    justify-content: center;
  }

  .btn-text {
    display: inline;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 150px;
  }
  .summary-text {
    font-size: 14px !important;
  }
  .course-title {
    font-size: 1.4rem;
  }

  .news-title-main {
    font-size: 1.3rem;
  }

  /* Mobile-first approach for small screens */
  .meta-top {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .read-time {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .action-buttons {
    gap: 6px;
  }

  .action-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .btn-text {
    display: inline;
  }

  .meta-bottom {
    justify-content: flex-start;
  }

  .update-date {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  .meta-top {
    flex-wrap: nowrap;
    overflow-x: clip;
    padding-bottom: 5px;
  }
  .summary-text {
    font-size: 14px !important;
  }

  .action-buttons {
    flex-shrink: 0;
  }

  .action-btn {
    min-width: auto;
    padding: 6px 8px;
  }

  .btn-text {
    display: inline;
  }
}

@media (max-width: 360px) {
  /* Very small devices */
  .action-btn .btn-text {
    display: none;
  }

  .action-btn {
    padding: 8px;
    min-width: 40px;
  }

  .action-btn i {
    margin: 0;
  }
}
