/* News Page Styles */
.news-page {
  padding-top: calc(var(--header-height) + 20px);
}

/* News Hero */
.news-hero {
  background: linear-gradient(
    135deg,
    #1e1b4b 0%,
    #312e81 25%,
    #1e293b 75%,
    #0f172a 100%
  );
  padding: 80px 0;
  text-align: center;
}

.news-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.3rem;
  color: #e2e8f0;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

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

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 500;
}

/* Latest News Section */
.latest-news-section {
  padding: 100px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.1);
}

.news-card.featured {
  grid-column: span 2;
}

.news-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(139, 92, 246, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.news-content {
  padding: 2rem;
}

.news-content h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-content p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-time {
  color: #94a3b8;
  font-size: 0.9rem;
}

.read-more {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #a855f7;
}

/* Events Section */
.events-section {
  padding: 100px 0;
  background: rgba(30, 41, 59, 0.3);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.event-card {
  background: rgba(30, 41, 59, 0.6);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  gap: 2rem;
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.1);
}

.event-date {
  text-align: center;
  flex-shrink: 0;
}

.event-month {
  display: block;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px 8px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-day {
  display: block;
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
  padding: 1rem;
  border-radius: 0 0 8px 8px;
  font-size: 2rem;
  font-weight: 700;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-top: none;
}

.event-content {
  flex: 1;
}

.event-type {
  background: rgba(139, 92, 246, 0.2);
  color: #a855f7;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.event-content h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.event-content p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.event-details {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.event-time,
.event-location {
  color: #94a3b8;
  font-size: 0.9rem;
}

.event-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.event-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  color: white;
}

/* Newsletter Section */
.newsletter-section {
  padding: 100px 0;
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.newsletter-text h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.newsletter-text p {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
}

.subscription-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subscription-form input {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.subscription-form input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.subscription-form input::placeholder {
  color: #64748b;
}

.subscribe-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.newsletter-note {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .news-page {
    padding-top: calc(var(--header-height) + 10px);
  }

  .news-hero {
    padding: 70px 0;
  }

  .page-title {
    font-size: 3rem;
  }

  .page-subtitle {
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 2.5rem;
  }

  .latest-news-section,
  .events-section,
  .newsletter-section {
    padding: 80px 0;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .news-card.featured {
    grid-column: span 1;
  }

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

  .events-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .newsletter-text h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .news-page {
    padding-top: calc(var(--header-height) + 4px);
  }

  .news-hero {
    padding: 60px 0;
  }

  .page-title {
    font-size: 2.4rem;
  }

  .page-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .latest-news-section,
  .events-section,
  .newsletter-section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.9rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .news-content {
    padding: 1.5rem;
  }

  .news-content h3 {
    font-size: 1.15rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .event-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  .event-details {
    justify-content: center;
  }

  .event-day {
    font-size: 1.75rem;
  }

  .newsletter-text h2 {
    font-size: 1.9rem;
  }

  .newsletter-text p {
    font-size: 1rem;
  }

  .subscription-form {
    flex-direction: column;
  }

  .news-card:hover,
  .event-card:hover,
  .event-btn:hover,
  .subscribe-btn:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .news-page {
    padding-top: var(--header-height);
  }

  .news-hero {
    padding: 45px 0;
  }

  .page-title {
    font-size: 1.85rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .stat-number {
    font-size: 1.85rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .latest-news-section,
  .events-section,
  .newsletter-section {
    padding: 45px 0;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .news-image {
    height: 160px;
  }

  .news-content {
    padding: 1.25rem;
  }

  .news-content h3 {
    font-size: 1.05rem;
  }

  .news-content p {
    font-size: 0.9rem;
  }

  .read-time,
  .read-more {
    font-size: 0.82rem;
  }

  .event-card {
    padding: 1.25rem;
  }

  .event-content h3 {
    font-size: 1.05rem;
  }

  .event-content p {
    font-size: 0.88rem;
  }

  .event-day {
    font-size: 1.5rem;
    padding: 0.75rem;
  }

  .event-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }

  .newsletter-text h2 {
    font-size: 1.6rem;
  }

  .newsletter-text p {
    font-size: 0.92rem;
  }

  .subscription-form input {
    padding: 0.85rem;
    font-size: 0.9rem;
  }

  .subscribe-btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  .newsletter-note {
    font-size: 0.8rem;
  }
}
/* ---------- 360px (Extra Small Mobile) ---------- */
@media (max-width: 360px) {
  .news-page {
    padding-top: var(--header-height);
  }

  .news-hero {
    padding: 30px 0;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .latest-news-section,
  .events-section,
  .newsletter-section {
    padding: 30px 0;
  }

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

  .news-content {
    padding: 1rem;
  }

  .news-title {
    font-size: 1rem;
  }
}

/* ---------- Landscape ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .news-page {
    padding-top: calc(var(--header-height) + 8px);
  }

  .news-hero {
    padding: 25px 0;
  }

  .latest-news-section,
  .events-section,
  .newsletter-section {
    padding: 25px 0;
  }
}

/* ---------- Safe-area Insets ---------- */
@supports (padding: env(safe-area-inset-left)) {
  .latest-news-section,
  .events-section,
  .newsletter-section {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  @media (max-width: 480px) {
    .latest-news-section,
    .events-section,
    .newsletter-section {
      padding-left: max(0.75rem, env(safe-area-inset-left));
      padding-right: max(0.75rem, env(safe-area-inset-right));
    }
  }
}
