/* ========================================
   ENHANCED NEWS PORTAL STYLES
   ======================================== */

/* Header Fixes for News Portal */
.news-portal-main,
.news-detail-main {
  padding-top: 100px; /* Match main header height */
}

/* Ensure header compatibility */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.15s ease-in-out;
}

/* CSS Variables for consistent theming */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --hero-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* News Portal Main */
.news-portal-main {
  padding-top: 0; /* Remove extra padding */
  min-height: calc(100vh - 80px);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Enhanced Hero Section */
.news-hero {
  position: relative;
  min-height: 70vh;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}

.news-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.news-hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

.news-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 50px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideIn 1s ease-out 0.3s both;
}

.news-hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin: 0 0 20px 0;
  line-height: 1.1;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.news-hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0 0 40px 0;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Enhanced Section Styles */
.section-header {
  text-align: center;
  margin: 0 0 20px 0; /* Remove any top margin and reduce bottom margin */
  animation: fadeInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--card-shadow);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 15px 0;
  line-height: 1.2;
}

/* Main title for Breaking News - match main website heading */
.section-title.main-title {
  font-size: 5rem;
  font-weight: 800;
  line-height: 5rem;
  margin: 0 auto 30px auto; /* Use auto margins for horizontal centering */
  text-align: center;
  color: var(--text-color);
  width: 100%; /* Ensure full width */
  display: block; /* Ensure block display */
  /* text-transform: uppercase; Make it uppercase */
}

/* Remove underline from main title */
.section-title.main-title::after {
  display: none; /* Remove the underline for main title */
}

/* Responsive design for main title */
@media (max-width: 1024px) {
  .section-title.main-title {
    font-size: 4rem;
    line-height: 4rem;
    margin: 0 auto 25px auto; /* Ensure centering with auto margins */
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section-title.main-title {
    font-size: 3rem;
    line-height: 3rem;
    margin: 0 auto 20px auto; /* Ensure centering with auto margins */
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section-title.main-title {
    font-size: 2.5rem;
    line-height: 2.5rem;
    margin: 0 auto 15px auto; /* Ensure centering with auto margins */
    text-align: center;
  }
}

.section-subtitle {
  font-size: 1.3rem;
  color: #0000FF;
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  font-weight: 700;
}

/* Featured News Section */
.featured-news-section {
  padding: 10px 0; /* Reduce top/bottom padding from 80px to 10px */
  background: white;
}

/* Enhanced News Filter */
.news-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-color);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  transition: left 0.3s ease;
  z-index: 0;
}

.filter-btn i,
.filter-btn span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

/* All News Section */
.all-news-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Enhanced Search Functionality */
.news-search {
  margin: 30px auto 40px auto;
  max-width: 500px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  box-shadow: var(--card-shadow);
  border: 2px solid transparent;
  transition: var(--transition);
  overflow: hidden;
}

.search-container:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-icon {
  position: absolute;
  left: 20px;
  color: var(--light-text-color);
  font-size: 1.1rem;
  z-index: 2;
}

.news-search-input {
  width: 100%;
  padding: 18px 20px 18px 50px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text-color);
}

.news-search-input::placeholder {
  color: var(--light-text-color);
}

.search-clear {
  position: absolute;
  right: 15px;
  background: rgba(102, 126, 234, 0.1);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #667eea;
  transition: var(--transition);
}

.search-clear:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.1);
}

.search-clear.hidden {
  display: none;
}

/* Search Results */
.search-results-info {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 15px;
  color: var(--text-color);
  font-weight: 600;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--light-text-color);
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #667eea;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1.5rem;
  margin: 0 0 10px 0;
  color: var(--text-color);
}

.no-results p {
  font-size: 1rem;
  margin: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--card-shadow);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.scroll-to-top i {
  font-size: 1.2rem;
}

/* Footer Compatibility - Uses main site footer styles */
/* The footer structure now matches exactly with the main site */

/* Social Icons - Ensure FontAwesome icons display properly */
.footer-social-container .social-link i {
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  font-family: "Font Awesome 6 Brands" !important;
}

/* Force FontAwesome to load */
.footer-social-container .social-link i.fa-brands,
.footer-social-container .social-link i[class*="fa-"] {
  font-family: "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* Specific icon fixes */
.footer-social-container .social-link i.fa-square-facebook::before {
  content: "\f082" !important;
}

.footer-social-container .social-link i.fa-linkedin::before {
  content: "\f08c" !important;
}

.footer-social-container .social-link i.fa-discord::before {
  content: "\f392" !important;
}

/* Fallback if FontAwesome fails completely */
.footer-social-container .social-link[href*="facebook"] i {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>') no-repeat center;
  background-size: 16px 16px;
  width: 16px;
  height: 16px;
}

/* Only add minimal adjustments if needed for news portal */
.news-portal-main + .scroll-to-top,
.news-detail-main + .scroll-to-top {
  z-index: 999; /* Ensure scroll button doesn't interfere with footer */
}

/* Enhanced Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 60px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 18px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.load-more-btn:active {
  transform: translateY(-1px);
}

.load-more-btn .btn-icon {
  transition: transform 0.3s ease;
}

.load-more-btn:hover .btn-icon {
  transform: translateY(2px);
}

.loading-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--light-text-color);
  font-size: 0.9rem;
}

.loading-indicator.show {
  display: flex;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .news-hero-title {
    font-size: 2.5rem;
  }
  
  .news-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    gap: 30px;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .stat-number {
    font-size: 2rem !important;
    margin-bottom: 0 !important;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .filter-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }
  
  .featured-news-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .featured-news-section,
  .all-news-section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .news-hero {
    min-height: 50vh;
  }
  
  .news-hero-title {
    font-size: 2rem;
  }
  
  .hero-badge {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .section-badge {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .news-hero,
  .filter-btn,
  .load-more-section,
  .header {
    display: none;
  }
  
  .news-card,
  .featured-news-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* News Detail Main */
.news-detail-main {
  padding-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Breadcrumb */
.breadcrumb-section {
  padding: 20px 0;
  background: var(--card-color);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #667eea;
}

.breadcrumb-separator {
  color: var(--light-text-color);
}

.breadcrumb-current {
  color: var(--light-text-color);
}

/* News Article Styles */
.news-article {
  padding: 60px 0;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-category {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-date,
.article-author {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--light-text-color);
  font-size: 0.9rem;
}

.article-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1.2;
  margin: 0;
}

.article-image {
  margin: 40px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.article-text strong,
.article-text b {
  font-weight: 700 !important;
  color: var(--text-color);
}

.article-text p {
  margin: 15px 0;
}

.article-text h3 {
  color: var(--text-color);
  margin: 30px 0 15px 0;
  font-size: 1.5rem;
}

.article-text h4 {
  color: var(--text-color);
  margin: 25px 0 10px 0;
  font-size: 1.2rem;
}

.article-text ul,
.article-text ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-text li {
  margin: 8px 0;
}

/* Article Share */
.article-share {
  margin: 50px 0;
  padding: 30px;
  background: var(--card-color);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.article-share h4 {
  margin: 0 0 20px 0;
  color: var(--text-color);
}

.share-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.linkedin {
  background: #0077b5;
  color: white;
}

.share-btn.whatsapp {
  background: #25D366;
  color: white;
}

.share-btn.copy {
  background: var(--border-color);
  color: var(--text-color);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Article Tags */
.article-tags {
  margin: 30px 0;
}

.article-tags h4 {
  margin: 0 0 15px 0;
  color: var(--text-color);
}

.tag-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.05);
}

/* Related News */
.related-news {
  padding: 60px 0;
  background: var(--card-color);
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.related-news-card {
  background: var(--background-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
}

.related-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.related-news-image {
  height: 60%;
  overflow: hidden;
  flex-shrink: 0;
}

.related-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.related-news-content {
  padding: 15px 20px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-news-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-news-date {
  color: var(--light-text-color);
  font-size: 0.85rem;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.related-news-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  margin-top: auto;
}

.related-news-link:hover {
  color: #764ba2;
}

/* Back to News */
.back-to-news {
  padding: 40px 0;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.back-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.news-hero {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9)), 
              url('../assets/images/Gallery/Cybercon24.jpeg') center/cover;
  padding: 100px 0;
  text-align: center;
  color: white;
  position: relative;
}

.news-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.news-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.news-hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.news-hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.9;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Featured News Section */
.featured-news-section {
  padding: 80px 0;
  background: var(--background-color);
}

.featured-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.featured-news-card {
  background: var(--card-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}

.featured-news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  background: var(--card-color-light);
}

.featured-news-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.featured-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.news-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-news-content {
  padding: 30px;
}

.news-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--light-text-color);
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-news-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.featured-news-excerpt {
  color: var(--light-text-color);
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1rem;
}

/* All News Section */
.all-news-section {
  padding: 80px 0;
  background: transparent;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.news-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--card-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  background: var(--card-color-light);
}

.news-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.news-card-content {
  padding: 25px;
}

.news-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card-excerpt {
  color: var(--light-text-color);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Read More Button */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.read-more-btn:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
  gap: 12px;
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.read-more-btn:hover i {
  transform: translateX(5px);
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 60px;
}

.load-more-btn {
  padding: 15px 35px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .featured-news-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
  }
  
  .news-filter {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .news-hero-title {
    font-size: 2.5rem;
  }
  
  .news-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .featured-news-content,
  .news-card-content {
    padding: 20px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .news-hero {
    padding: 60px 0;
  }
  
  .news-hero-title {
    font-size: 2rem;
  }
  
  .featured-news-section,
  .all-news-section {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  /* Article image responsive styles */
  .article-image {
    margin: 30px 0;
    padding: 0 10px;
  }
  
  .article-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  }
}

/* Additional responsive styles for article images */
@media (max-width: 768px) {
  .article-image {
    margin: 25px 0;
  }
  
  .article-image img {
    border-radius: 8px;
  }
  
  /* Related news responsive styles */
  .related-news-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .related-news-content {
    padding: 12px 15px 15px 15px;
  }
  
  .related-news-title {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .article-image {
    margin: 20px 0;
    padding: 0 5px;
  }
  
  .article-image img {
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Related news mobile styles */
  .related-news-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .related-news-content {
    padding: 10px 12px 12px 12px;
  }
  
  .related-news-title {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
  }
  
  .related-news-date {
    font-size: 0.8rem;
    margin: 0 0 8px 0;
  }
  
  .related-news-link {
    font-size: 0.8rem;
  }
}

/* ========================================
   PROFESSIONAL NOTIFICATION SYSTEM
   ======================================== */

/* Notification Container */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: none;
}

/* Individual Notification */
.notification {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  cursor: pointer;
}

/* Success notification variant */
.notification.success {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Error notification variant */
.notification.error {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

/* Info notification variant */
.notification.info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animation states */
.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(400px);
  opacity: 0;
}

/* Notification icon */
.notification-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Notification text */
.notification-text {
  flex: 1;
  line-height: 1.4;
}

/* Notification close button */
.notification-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Progress bar for auto-dismiss */
.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 12px 12px;
  transform-origin: left;
  animation: progressBar 3s linear forwards;
}

@keyframes progressBar {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .notification-container {
    right: 16px;
    left: 16px;
    top: 16px;
  }
  
  .notification {
    padding: 14px 18px;
    font-size: 13px;
    transform: translateY(-100px);
  }
  
  .notification.show {
    transform: translateY(0);
  }
  
  .notification.hide {
    transform: translateY(-100px);
  }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  .notification {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .notification.success {
    background: linear-gradient(135deg, #38a169 0%, #68d391 100%);
  }
  
  .notification.error {
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);
  }
  
  .notification.info {
    background: linear-gradient(135deg, #3182ce 0%, #63b3ed 100%);
  }
}
