/**
 * Styles for SSC News Integration
 * Chỉ chứa các styles bổ sung không có trong styles.css
 */

/* Loading & Error States */
.loading-container,
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 300px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0066cc;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-container p {
  margin-top: 20px;
  color: #666;
  font-size: 16px;
  font-weight: 500;
}

.error-container {
  color: #d32f2f;
  background-color: #ffebee;
  border-radius: 8px;
  margin: 20px 0;
}

.error-container i {
  font-size: 48px;
  margin-bottom: 20px;
}

.error-container p {
  font-size: 16px;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
}

.no-news {
  text-align: center;
  padding: 80px 20px;
  color: #666;
  font-size: 18px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 20px 0;
}

.no-news i {
  font-size: 64px;
  color: #ccc;
  margin-bottom: 20px;
  display: block;
}

/* Badge expiring animation */
.job-badge-simple.expiring {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

/* Job Header Row - Title và dates inline */
.job-header-row {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.job-meta-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.job-date-inline,
.job-expiry-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.job-date-inline i,
.job-expiry-inline i {
  font-size: 13px;
  color: #0066cc;
}

.job-expiry-inline {
  color: #ff6b6b;
  font-weight: 500;
}

.job-expiry-inline i {
  color: #ff6b6b;
}

/* News List Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#news-list-container .job-card-simple {
  animation: fadeIn 0.3s ease-out forwards;
}

#news-list-container .job-card-simple:nth-child(1) {
  animation-delay: 0.05s;
}
#news-list-container .job-card-simple:nth-child(2) {
  animation-delay: 0.1s;
}
#news-list-container .job-card-simple:nth-child(3) {
  animation-delay: 0.15s;
}
#news-list-container .job-card-simple:nth-child(4) {
  animation-delay: 0.2s;
}
#news-list-container .job-card-simple:nth-child(5) {
  animation-delay: 0.25s;
}

/* Job Content for Detail Page */
.job-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.job-content p {
  margin-bottom: 16px;
}

.job-content ul,
.job-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.job-content li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .job-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .job-meta-inline {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .loading-container,
  .error-container,
  .no-news {
    padding: 40px 20px;
    min-height: 200px;
  }

  .loading-spinner {
    width: 40px;
    height: 40px;
  }
}

/* Recruitment hero should match index hero full-height background */
.recruitment-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.recruitment-hero .hero-background,
.recruitment-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.recruitment-hero .container {
  position: relative;
  z-index: 2;
}

.recruitment-hero .recruitment-hero-content {
  text-align: center;
}

/* ============================================
   NEW NEWS LAYOUT - Hero with Featured News
   ============================================ */

.news-hero-section {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  min-height: 600px;
}

.news-hero-grid {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-news-image-outer {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.featured-news-image-outer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Featured news placeholder when no image */
.featured-news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(0, 161, 224, 0.08) 0%,
    rgba(0, 161, 224, 0.15) 100%
  );
  position: relative;
  overflow: hidden;
}

.featured-news-placeholder::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 161, 224, 0.15) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

.featured-news-placeholder i {
  position: relative;
  z-index: 1;
  font-size: 80px;
  color: #00a1e0;
  opacity: 0.4;
}

.news-hero-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.news-hero-title {
  font-size: 42px;
  font-weight: 800;
  color: #032d60;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.5px;
}

.news-hero-graphic {
  width: 100%;
  max-width: 600px;
  margin-top: 20px;
}

.news-hero-graphic img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

/* Featured News Section */
.news-featured {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: fit-content;
  border: 1px solid #e8ecf1;
  width: 100%;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.featured-label {
  font-size: 12px;
  font-weight: 700;
  color: #00a1e0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: rgba(0, 161, 224, 0.1);
  border-radius: 20px;
  display: inline-block;
}

.featured-news-card {
  display: flex;
  flex-direction: column;
}

.featured-news-title {
  font-size: 24px;
  font-weight: 700;
  color: #032d60;
  line-height: 1.4;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
}

.featured-news-date {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin-bottom: 16px;
}

.featured-news-content {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 24px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-news-content p {
  margin: 0 0 12px 0;
}

.featured-news-content p:last-child {
  margin-bottom: 0;
}

.featured-news-content strong,
.featured-news-content b {
  font-weight: 700;
  color: #032d60;
}

.featured-news-content em,
.featured-news-content i {
  font-style: italic;
}

.featured-news-content a {
  color: #00a1e0;
  text-decoration: underline;
}

.featured-news-content ul,
.featured-news-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.featured-news-content li {
  margin-bottom: 8px;
}

.featured-news-link {
  color: #00a1e0;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.featured-news-link:hover {
  color: #032d60;
  transform: translateX(4px);
}

/* News Detail Grid Layout */
.news-detail-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  margin-top: 30px;
  align-items: start;
  min-height: calc(100vh - 200px); /* Ensure enough space for sticky to work */
}

.news-detail-main {
  min-width: 0;
}

.news-detail-sidebar {
  position: sticky;
  top: 92px; /* navbar 72px + 20px margin */
  align-self: flex-start;
  max-height: calc(100vh - 120px);
}

/* Sidebar is now sticky, so news-featured doesn't need to be */

/* Latest News List (in news-detail) */
.latest-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.latest-news-item {
  padding: 16px 0;
  border-bottom: 1px solid #e8ecf1;
}

.latest-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.latest-news-item:first-child {
  padding-top: 0;
}

.latest-news-link {
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.latest-news-link:hover {
  transform: translateX(4px);
}

.latest-news-link:hover .latest-news-title {
  color: #00a1e0;
}

.latest-news-title {
  font-size: 16px;
  font-weight: 600;
  color: #032d60;
  line-height: 1.4;
  margin: 0 0 8px 0;
  transition: color 0.3s ease;
}

.latest-news-date {
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

.latest-news-date i {
  margin-right: 6px;
  color: #00a1e0;
}

/* News Grid Section */
.news-grid-section {
  padding: 20px 0;
  background: white;
}

.news-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.news-section-title {
  font-size: 40px;
  font-weight: 800;
  color: #00a1e0;
  margin: 0;
  letter-spacing: -1px;
}

.news-view-all {
  color: #00a1e0;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.news-view-all:hover {
  color: #032d60;
  transform: translateX(4px);
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 161, 224, 0.2);
}

/* Image Wrapper */
.news-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.news-card-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card-image img {
  transform: scale(1.08);
}

.news-card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card:hover .news-card-image-overlay {
  opacity: 1;
}

.news-card-image.has-error img {
  opacity: 0.5;
}

/* Icon Wrapper */
.news-card-icon-wrapper {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(0, 161, 224, 0.05) 0%,
    rgba(0, 161, 224, 0.1) 100%
  );
  position: relative;
  overflow: hidden;
}

.news-card-icon-wrapper::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 161, 224, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.news-card-icon {
  position: relative;
  z-index: 1;
  color: #00a1e0;
  font-size: 36px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.news-card:hover .news-card-icon {
  transform: scale(1.1);
  opacity: 1;
}

/* Card Body */
.news-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 18px;
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.news-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: linear-gradient(
    135deg,
    rgba(0, 161, 224, 0.1) 0%,
    rgba(0, 161, 224, 0.15) 100%
  );
  color: #00a1e0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 16px;
  border: 1px solid rgba(0, 161, 224, 0.2);
  transition: all 0.3s ease;
}

.news-card:hover .news-card-badge {
  background: linear-gradient(135deg, #00a1e0 0%, #0088c7 100%);
  color: white;
  transform: scale(1.05);
}

.news-card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.news-card-date i {
  color: #00a1e0;
  font-size: 11px;
}

.news-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.news-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-title-link:hover {
  color: #00a1e0;
}

.news-card:hover .news-card-title {
  color: #032d60;
}

.news-card-content {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 62px;
}

.news-card-content p {
  margin: 0 0 8px 0;
}

.news-card-content p:last-child {
  margin-bottom: 0;
}

.news-card-content strong,
.news-card-content b {
  font-weight: 700;
  color: #032d60;
}

.news-card-content em,
.news-card-content i {
  font-style: italic;
}

.news-card-content a {
  color: #00a1e0;
  text-decoration: underline;
}

.news-card-content ul,
.news-card-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.news-card-content li {
  margin-bottom: 4px;
}

.news-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00a1e0;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  padding: 6px 0;
}

.news-card-link i {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.news-card-link:hover {
  color: #032d60;
  gap: 12px;
}

.news-card-link:hover i {
  transform: translateX(4px);
}

.news-card-link span {
  transition: all 0.3s ease;
}

/* Pagination */
.pagination-container {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination-btn {
  padding: 12px 24px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #4a5568;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
  background: #00a1e0;
  color: white;
  border-color: #00a1e0;
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-number {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #4a5568;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover {
  background: #f7fafc;
  border-color: #00a1e0;
  color: #00a1e0;
}

.pagination-number.active {
  background: #00a1e0;
  border-color: #00a1e0;
  color: white;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: #718096;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .news-hero-section {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .news-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
  }

  .featured-news-image-outer {
    height: 300px;
    order: 1;
  }

  .featured-news-placeholder i {
    font-size: 60px;
  }

  /* Keep sticky on tablet for news-detail page */
  .news-hero-grid .news-featured {
    position: static;
    order: 2;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .news-section-title {
    font-size: 36px;
  }
}

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

  .news-hero-grid {
    gap: 20px;
  }

  .featured-news-image-outer {
    height: 250px;
  }

  .featured-news-placeholder i {
    font-size: 50px;
  }

  .news-featured {
    padding: 24px;
  }

  .featured-label {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 20px;
  }

  .featured-news-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .featured-news-date {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .featured-news-content {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .featured-news-link {
    font-size: 14px;
  }

  .news-grid-section {
    padding: 40px 0;
  }

  .news-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }

  .news-section-title {
    font-size: 32px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }

  .news-card-image-wrapper {
    height: 180px;
  }

  .news-card-image img {
    min-height: 180px;
  }

  .news-card-icon-wrapper {
    height: 140px;
  }

  .news-card-icon {
    font-size: 32px;
  }

  .news-card-body {
    padding: 16px;
  }

  .news-card-header {
    margin-bottom: 12px;
    gap: 8px;
  }

  .news-card-badge {
    font-size: 10px;
    padding: 5px 12px;
  }

  .news-card-date {
    font-size: 12px;
  }

  .news-card-title {
    font-size: 18px;
    margin: 0 0 10px 0;
  }

  .news-card-content {
    font-size: 13px;
    margin: 0 0 16px 0;
    min-height: 60px;
  }

  .news-card-footer {
    padding-top: 12px;
  }

  .news-card-link {
    font-size: 13px;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-numbers {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .news-hero-section {
    padding: 60px 0 30px;
  }

  .featured-news-image-outer {
    height: 200px;
  }

  .featured-news-placeholder i {
    font-size: 40px;
  }

  .news-featured {
    padding: 20px;
  }

  .featured-news-title {
    font-size: 18px;
  }

  .featured-news-content {
    font-size: 13px;
    line-height: 1.6;
  }

  .news-section-title {
    font-size: 28px;
  }

  .news-grid {
    gap: 16px;
    margin-bottom: 30px;
  }

  .news-card {
    border-radius: 12px;
  }

  .news-card-image-wrapper {
    height: 160px;
  }

  .news-card-image img {
    min-height: 160px;
  }

  .news-card-icon-wrapper {
    height: 120px;
  }

  .news-card-icon {
    font-size: 28px;
  }

  .news-card-body {
    padding: 14px;
  }

  .news-card-header {
    margin-bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news-card-badge {
    font-size: 9px;
    padding: 4px 10px;
  }

  .news-card-date {
    font-size: 11px;
  }

  .news-card-title {
    font-size: 16px;
    margin: 0 0 8px 0;
  }

  .news-card-content {
    font-size: 12px;
    margin: 0 0 12px 0;
    min-height: 54px;
    line-height: 1.6;
  }

  .news-card-footer {
    padding-top: 10px;
  }

  .news-card-link {
    font-size: 12px;
    padding: 6px 0;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .pagination-number {
    min-width: 36px;
    height: 36px;
    font-size: 12px;
  }
}

/* ============================================
   NEWS DETAIL PAGE
   ============================================ */

.news-detail-section {
  padding: 120px 0 80px;
  background: white;
  min-height: 80vh;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00a1e0;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  margin-top: 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: white;
}

.back-link i {
  font-size: 14px;
}

.news-detail-article {
  max-width: 900px;
  margin: 0 auto;
}

.news-detail-image {
  width: 100%;
  max-height: 500px;
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.news-detail-image img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-detail-header {
  margin-bottom: 40px;
}

.news-detail-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #00a1e0;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  background: rgba(0, 161, 224, 0.1);
  border-radius: 6px;
  margin-bottom: 20px;
}

.news-detail-title {
  font-size: 48px;
  font-weight: 800;
  color: #032d60;
  line-height: 1.3;
  margin: 0 0 24px 0;
  letter-spacing: -1px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
  font-size: 16px;
  font-weight: 500;
}

.news-detail-meta i {
  color: #00a1e0;
  font-size: 18px;
}

.news-detail-content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-top: 40px;
}

.news-detail-content p {
  margin-bottom: 24px;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
  color: #032d60;
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 700;
}

.news-detail-content h2 {
  font-size: 32px;
}

.news-detail-content h3 {
  font-size: 28px;
}

.news-detail-content h4 {
  font-size: 24px;
}

.news-detail-content ul,
.news-detail-content ol {
  margin: 24px 0;
  padding-left: 32px;
}

.news-detail-content li {
  margin-bottom: 12px;
}

.news-detail-content img {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  margin: 32px auto;
  display: block;
}

.news-detail-content a {
  color: #00a1e0;
  text-decoration: none;
  font-weight: 600;
}

.news-detail-content a:hover {
  text-decoration: underline;
}

.btn-back {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  background: #00a1e0;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: #032d60;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .news-detail-section {
    padding: 100px 0 60px;
  }

  .news-detail-article {
    max-width: 100%;
  }

  /* Adjust grid for tablet */
  .news-detail-grid {
    grid-template-columns: 1fr 320px;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .news-detail-section {
    padding: 80px 0 40px;
  }

  .back-link {
    font-size: 14px;
    margin-top: 36px;
  }

  .news-detail-image {
    max-height: 350px;
    margin-bottom: 30px;
    border-radius: 12px;
  }

  .news-detail-image img {
    max-height: 350px;
  }

  .news-detail-badge {
    font-size: 10px;
    padding: 5px 10px;
    margin-bottom: 16px;
  }

  .news-detail-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .news-detail-meta {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .news-detail-content {
    font-size: 16px;
    margin-top: 30px;
  }

  .news-detail-content p {
    margin-bottom: 20px;
  }

  .news-detail-content h2 {
    font-size: 24px;
    margin-top: 28px;
    margin-bottom: 14px;
  }

  .news-detail-content h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .news-detail-content h4 {
    font-size: 18px;
  }

  .news-detail-content ul,
  .news-detail-content ol {
    margin: 20px 0;
    padding-left: 24px;
  }

  .news-detail-content li {
    margin-bottom: 10px;
  }

  .news-detail-content img {
    max-height: 400px;
    margin: 24px auto;
  }
}

@media (max-width: 480px) {
  .news-detail-section {
    padding: 60px 0 30px;
  }

  .back-link {
    font-size: 13px;
    margin-top: 32px;
    padding: 10px 20px;
  }

  .news-detail-image {
    max-height: 250px;
    margin-bottom: 24px;
    border-radius: 8px;
  }

  .news-detail-image img {
    max-height: 250px;
  }

  .news-detail-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .news-detail-meta {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .news-detail-content {
    font-size: 15px;
    margin-top: 24px;
  }

  .news-detail-content h2 {
    font-size: 22px;
  }

  .news-detail-content h3 {
    font-size: 18px;
  }

  .news-detail-content h4 {
    font-size: 16px;
  }

  .news-detail-content img {
    max-height: 300px;
    margin: 20px auto;
  }

  /* News Detail Grid - Stack on mobile */
  .news-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .news-detail-sidebar {
    position: static;
    max-height: none;
  }

  .news-featured {
    max-height: none;
  }
}
