/* Main Content */
.main {
  padding-top: 2rem;
}

/* News Detail Container */
.news-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  margin-top: 2rem;
}

/* News Detail Card */
.news-detail {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-in-out;
}

/* News Detail Header */
.news-detail-header {
  padding: 2.5rem;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.news-detail-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 2.5rem;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  border-radius: 2px;
}

.news-detail-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.news-detail-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-detail-date::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

.news-detail-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-detail-category::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

.news-detail-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1e293b;
  line-height: 1.2;
  animation: slideInDown 0.8s ease-out;
}

/* News Tags */
.news-tags {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.news-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.news-tag:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  border-color: transparent;
}

/* Social Share Buttons */
.social-share-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  opacity: 0.8;
}

.social-share-btn:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.social-share-btn.linkedin {
  background: linear-gradient(135deg, #0077b5, #005885);
  color: white;
}

.social-share-btn.linkedin:hover {
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

.social-share-btn.twitter {
  background: linear-gradient(135deg, #1da1f2, #0c85d0);
  color: white;
}

.social-share-btn.twitter:hover {
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.social-share-btn.facebook {
  background: linear-gradient(135deg, #1877f2, #0d5bb5);
  color: white;
}

.social-share-btn.facebook:hover {
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-share-btn.email {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
}

.social-share-btn.email:hover {
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
}

.news-detail-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
  animation: zoomIn 0.8s ease-out;
}

.news-detail-image:hover {
  transform: scale(1.02);
}

/* News Detail Content */
.news-detail-content {
  padding: 2.5rem 2.5rem 2.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
  animation: fadeIn 1s ease-in-out 0.2s both;
  position: relative;
}

/* Content Image Styles */
.content-image-container {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
  padding: 1.5rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

.content-image-container:hover {
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.content-image {
  width: 50%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.news-detail-content p {
  margin-bottom: 1.75rem;
  text-align: justify;
  line-height: 1.8;
  transition: all 0.3s ease;
}

.news-detail-content p:hover {
  color: #1e293b;
}

.news-detail-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  color: #1e293b;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
  animation: slideInLeft 0.6s ease-out;
  position: relative;
}

.news-detail-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #2563eb);
  border-radius: 1px;
}

.news-detail-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 2.5rem 0 1.25rem;
  color: #1e293b;
  animation: slideInLeft 0.6s ease-out 0.1s both;
  position: relative;
  padding-left: 1rem;
}

.news-detail-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #2563eb, #2563eb);
  border-radius: 2px;
}

.news-detail-content ul {
  margin: 1.5rem 0 2rem 1.75rem;
  list-style-type: none;
  padding-left: 0;
}

.news-detail-content li {
  margin-bottom: 0.75rem;
  position: relative;
  animation: slideInLeft 0.6s ease-out 0.2s both;
  padding-left: 1.5rem;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.news-detail-content li:hover {
  color: #1e293b;
  transform: translateX(5px);
}

.news-detail-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #2563eb, #2563eb);
  border-radius: 50%;
  transform: translateY(-50%);
}

.news-detail-content a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.news-detail-content a:hover {
  color: #2563eb;
}

.news-detail-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #2563eb);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.news-detail-content a:hover::after {
  width: 100%;
}

/* Blockquote Styles */
.news-detail-content blockquote {
  border-left: 4px solid #2563eb;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: #f8fafc;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #475569;
  animation: fadeIn 0.8s ease-out 0.3s both;
  transition: all 0.3s ease;
}

.news-detail-content blockquote:hover {
  background: #f1f5f9;
  transform: translateX(5px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Emphasis Styles */
.news-detail-content strong {
  color: #1e293b;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-detail-content strong:hover {
  color: #2563eb;
}

/* Back to News Button */
.back-to-news {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4), 0 2px 4px -2px rgba(37, 99, 235, 0.3);
  animation: fadeIn 1s ease-in-out 0.4s both;
  position: relative;
  margin-top: 3rem;
  display: block;
  width: fit-content;
}

.back-to-news:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.5), 0 4px 6px -4px rgba(37, 99, 235, 0.3);
}

.back-to-news::before {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 15L3 9m0 0l6-6M3 9h18a2 2 0 012 2v10a2 2 0 01-2 2H3a2 2 0 01-2-2V11a2 2 0 012-2z' /%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
  position: relative;
}

.back-to-news::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  border-radius: 0.75rem;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.back-to-news:hover::after {
  opacity: 1;
}

.back-to-news span {
  position: relative;
  z-index: 2;
}

.back-to-news::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Related News Section */
.related-news {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
  animation: fadeIn 1s ease-in-out 0.6s both;
}

.related-news h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .related-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .related-news-grid {
    grid-template-columns: 1fr;
  }
}

.related-news-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: slideInUp 0.8s ease-out;
}

.related-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.related-news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-news-content {
  padding: 1.5rem;
}

.related-news-date {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.related-news-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.related-news-excerpt {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.related-news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.related-news-link:hover {
  color: #2563eb;
  transform: translateX(3px);
}

.related-news-link::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: white;
  z-index: 1001;
  box-shadow: -10px 0 15px -3px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu-logo img {
  height: 32px;
  width: auto;
}

.mobile-menu-logo span {
  font-weight: 700;
  color: #1e40af;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-nav a {
  padding: 0.75rem 0;
  color: #64748b;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.3s ease;
}

.mobile-menu-nav a:hover {
  color: #1e40af;
}

.mobile-menu-nav a.active {
  color: #1e40af;
}

.mobile-menu-cta {
  margin-top: 2rem;
}

.mobile-menu-cta a {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.mobile-menu-cta a:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* Footer Logo */
.footer-logo img {
  height: 20px;
  max-width: 75px;
}

/* Form Submit Button */
.btn.btn-primary {
  width: 100%;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .news-detail-container {
    padding: 2.5rem 1.5rem;
  }
  
  .news-detail-header {
    padding: 2rem;
  }
  
  .news-detail-content {
    padding: 0 2rem 2rem;
  }
  
  .news-detail-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .news-detail-container {
    padding: 1.5rem 1rem;
  }
  
  .news-detail-header {
    padding: 1.5rem;
  }
  
  .news-detail-header::after {
    left: 1.5rem;
    width: 60px;
  }
  
  .news-detail-content {
    padding: 1.5rem 1.5rem 1.5rem;
  }
  
  .news-detail-image {
    height: 280px;
  }
  
  .news-detail-title {
    font-size: 1.75rem;
  }
  
  .news-detail-content {
    font-size: 1rem;
  }
  
  .related-news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-detail-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .news-detail-container {
    padding: 1rem 0.75rem;
  }
  
  .news-detail-header {
    padding: 1rem;
  }
  
  .news-detail-header::after {
    left: 1rem;
    width: 50px;
  }
  
  .news-detail-content {
    padding: 1rem 1rem 1rem;
  }
  
  .news-detail-image {
    height: 220px;
  }
  
  .news-detail-title {
    font-size: 1.5rem;
  }
  
  .back-to-news {
    width: 100%;
    justify-content: center;
  }
}