/* News Page Styles - Optimized Version */

/* Base Styles and Variables */
:root {
  --primary-blue: #3b82f6;
  --dark-blue: #1e3a8a;
  --light-blue: #60a5fa;
  --accent-blue: #2563eb;
  --primary-orange: #f59e0b;
  --light-orange: #fbbf24;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border-color: #cbd5e1;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.25);
  --transition-base: all 0.3s ease;
  --transition-transform: transform 0.3s ease;
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-pill: 50px;
}

/* Hero Section */
.page-hero.news-hero {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

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

.page-hero.news-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="bg-gradient" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:#1e3a8a;stop-opacity:0.8" /><stop offset="100%" style="stop-color:#3b82f6;stop-opacity:0.8" /></linearGradient><pattern id="news-pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)" /><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.1)" /><path d="M 0 50 L 100 50" stroke="rgba(255,255,255,0.05)" stroke-width="1" /><path d="M 50 0 L 50 100" stroke="rgba(255,255,255,0.05)" stroke-width="1" /></pattern></defs><rect width="1200" height="800" fill="url(%23bg-gradient)" /><rect width="1200" height="800" fill="url(%23news-pattern)" /><g transform="translate(200, 200)"><rect x="0" y="0" width="800" height="400" rx="20" fill="rgba(255,255,255,0.05)" /><path d="M 50 100 L 750 100" stroke="rgba(255,255,255,0.1)" stroke-width="2" /><path d="M 50 200 L 750 200" stroke="rgba(255,255,255,0.1)" stroke-width="2" /><path d="M 50 300 L 750 300" stroke="rgba(255,255,255,0.1)" stroke-width="2" /><rect x="70" y="70" width="60" height="40" rx="8" fill="rgba(255,255,255,0.15)" /><rect x="70" y="170" width="60" height="40" rx="8" fill="rgba(255,255,255,0.15)" /><rect x="70" y="270" width="60" height="40" rx="8" fill="rgba(255,255,255,0.15)" /><rect x="150" y="70" width="500" height="20" rx="10" fill="rgba(255,255,255,0.2)" /><rect x="150" y="110" width="350" height="20" rx="10" fill="rgba(255,255,255,0.15)" /><rect x="150" y="170" width="500" height="20" rx="10" fill="rgba(255,255,255,0.2)" /><rect x="150" y="210" width="400" height="20" rx="10" fill="rgba(255,255,255,0.15)" /><rect x="150" y="270" width="500" height="20" rx="10" fill="rgba(255,255,255,0.2)" /><rect x="150" y="310" width="380" height="20" rx="10" fill="rgba(255,255,255,0.15)" /><circle cx="720" cy="90" r="15" fill="rgba(255,255,255,0.2)" /><circle cx="720" cy="190" r="15" fill="rgba(255,255,255,0.2)" /><circle cx="720" cy="290" r="15" fill="rgba(255,255,255,0.2)" /></g></svg>') center/cover no-repeat;
  opacity: 0.3;
}

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

.news-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.news-hero-content .highlight {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--primary-orange), var(--light-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.page-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.page-hero-actions .btn {
  min-width: 180px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-medium);
}

/* News Categories */
.news-categories {
  background: var(--bg-light);
  padding: 40px 0;
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-tab {
  padding: 12px 24px;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.category-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.category-tab:hover::before {
  left: 100%;
}

.category-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

/* Featured News */
.featured-news {
  padding: 80px 0;
  background: linear-gradient(to bottom, var(--white) 0%, var(--bg-light) 100%);
}

.featured-news .section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.featured-news .section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
  margin: 1rem auto;
  border-radius: 2px;
}

.featured-news .section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.featured-news .section-header p {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Featured Main News */
.featured-main {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-light);
  background: var(--white);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease-out;
}

.featured-main:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-medium);
}

.featured-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-main .news-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.featured-main .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.featured-main .news-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-main .news-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.featured-main .news-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.featured-main .news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-main .news-title a:hover {
  color: var(--primary-blue);
}

.featured-main .news-excerpt {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex: 1;
}

.featured-main .news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.featured-main .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-medium);
  background: rgba(59, 130, 246, 0.1);
}

.featured-main .read-more:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateX(5px);
}

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

.featured-main .read-more:hover i {
  transform: translateX(3px);
}

.featured-main .news-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.featured-main .news-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.featured-main:hover .news-stats span {
  color: var(--primary-blue);
}

/* Featured Side News */
.featured-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-side .news-card {
  background: var(--white);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-side .news-card:nth-child(1) {
  animation-delay: 0.2s;
}

.featured-side .news-card:nth-child(2) {
  animation-delay: 0.4s;
}

.featured-side .news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.featured-side .news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.featured-side .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.featured-side .news-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-side .news-meta {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-gray);
}

.featured-side .news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  flex: 1;
}

.featured-side .news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-side .news-card:hover .news-title a {
  color: var(--primary-blue);
}

.featured-side .news-excerpt {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 1rem;
}

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

.main-featured {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-light);
  height: fit-content;
  transition: var(--transition-base);
  background: var(--white);
}

.main-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.main-featured img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: var(--transition-transform);
}

.main-featured:hover img {
  transform: scale(1.05);
}

.main-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(30, 41, 59, 0.9) 0%, transparent 100%);
  color: var(--white);
}

.main-featured-content .category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.main-featured-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.main-featured-content h3 a {
  color: inherit;
  text-decoration: none;
}

.main-featured-content .date {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.main-featured-content .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.main-featured-content .read-more:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
}

.main-featured-content .read-more i {
  transition: var(--transition-transform);
}

.main-featured-content .read-more:hover i {
  transform: translateX(3px);
}

/* Side Featured News */
.side-featured {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.side-news-item {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: var(--transition-base);
}

.side-news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-medium);
}

.side-news-img {
  flex: 0 0 120px;
  overflow: hidden;
}

.side-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-transform);
}

.side-news-item:hover .side-news-img img {
  transform: scale(1.05);
}

.side-news-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-news-content .category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.side-news-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.side-news-content h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.side-news-content h4 a:hover {
  color: var(--primary-blue);
}

.side-news-content .date {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-top: auto;
}

/* News List */
.news-list {
  padding: 80px 0;
  background: var(--bg-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* News Cards */
.news-card {
  background: var(--white);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: backwards;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

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

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-medium);
  border-color: rgba(59, 130, 246, 0.3);
}

.news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.news-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card .news-date {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.news-card .news-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--text-dark);
  flex-grow: 1;
}

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

.news-card .news-title a:hover {
  color: var(--primary-blue);
}

.news-card .news-excerpt {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.news-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-medium);
  background: rgba(59, 130, 246, 0.1);
  position: relative;
}

.news-card .read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
  transition: width 0.3s ease;
}

.news-card .read-more:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateX(5px);
}

.news-card .read-more:hover::after {
  width: 100%;
}

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

.news-card .read-more:hover i {
  transform: translateX(3px);
}

.news-card .news-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.news-card .news-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.news-card:hover .news-stats span {
  color: var(--primary-blue);
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 3rem;
  animation: fadeIn 0.8s ease-out;
}

.load-more-btn {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

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

.load-more-btn.loading {
  cursor: not-allowed;
  opacity: 0.8;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="cta-pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(59, 130, 246, 0.1)" /><circle cx="75" cy="75" r="2" fill="rgba(59, 130, 246, 0.1)" /><path d="M 0 50 L 100 50" stroke="rgba(59, 130, 246, 0.05)" stroke-width="1" /><path d="M 50 0 L 50 100" stroke="rgba(59, 130, 246, 0.05)" stroke-width="1" /></pattern></defs><rect width="1200" height="800" fill="url(%23cta-pattern)" /></svg>') center/cover no-repeat;
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn {
  min-width: 200px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.cta-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.cta-actions .btn-outline-primary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.cta-actions .btn-outline-primary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-large);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-gray);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-base);
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

.modal-body {
  padding: 1.5rem 2rem;
}

.subscribe-form .form-group {
  margin-bottom: 1.5rem;
}

.subscribe-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.subscribe-form input,
.subscribe-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-small);
  font-size: 1rem;
  transition: var(--transition-base);
}

.subscribe-form input:focus,
.subscribe-form select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-small);
  transition: var(--transition-base);
}

.checkbox-group label:hover {
  background: var(--bg-light);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-small);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Accessibility Improvements */
.btn:focus,
.category-tab:focus,
.read-more:focus,
.newsletter-form input:focus,
.newsletter-form button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 992px) {
  .news-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .news-hero-content .highlight {
    font-size: 1.25rem;
  }
  
  .news-hero-content p {
    font-size: 1.1rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .main-featured img {
    height: 350px;
  }
  
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-hero.news-hero {
    padding: 80px 0;
  }
  
  .news-hero-content {
    padding: 0 15px;
  }
  
  .news-hero-content h1 {
    font-size: 2rem;
  }
  
  .news-hero-content .highlight {
    font-size: 1.1rem;
  }
  
  .news-hero-content p {
    font-size: 1rem;
  }
  
  .page-hero-actions {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .page-hero-actions .btn {
    width: 100%;
    min-width: auto;
    padding: 14px 24px;
  }
  
  .category-tabs {
    gap: 0.75rem;
  }
  
  .category-tab {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .main-featured img {
    height: 300px;
  }
  
  .main-featured-content {
    padding: 1.5rem;
  }
  
  .main-featured-content h3 {
    font-size: 1.5rem;
  }
  
  .side-news-img {
    flex: 0 0 100px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .cta {
    padding: 80px 0;
  }
  
  .cta-content h2 {
    font-size: 1.75rem;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .news-hero-content h1 {
    font-size: 1.75rem;
  }
  
  .news-hero-content .highlight {
    font-size: 1rem;
  }
  
  .news-hero-content p {
    font-size: 0.95rem;
  }
  
  .main-featured img {
    height: 250px;
  }
  
  .main-featured-content {
    padding: 1rem;
  }
  
  .main-featured-content h3 {
    font-size: 1.25rem;
  }
  
  .side-news-img {
    flex: 0 0 80px;
  }
  
  .side-news-content {
    padding: 1rem;
  }
  
  .side-news-content h4 {
    font-size: 1rem;
  }
  
  .news-card-content {
    padding: 1.25rem;
  }
  
  .news-card .news-title {
    font-size: 1.1rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .cta-content h2 {
    font-size: 1.5rem;
  }
  
  .cta-content p {
    font-size: 0.95rem;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}