/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #c8102e;
  --secondary-color: #003366;
  --accent-color: #ff6b35;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

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

/* Header */
.header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.logo a:hover {
  color: var(--secondary-color);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  color: white;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.25rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Main Content */
.main-content {
  padding: 3rem 0;
  min-height: 60vh;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

/* News Grid */
.featured-section {
  margin-bottom: 3rem;
}

.featured-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

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

.news-card {
  background: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

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

.news-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.news-card-content {
  padding: 1.5rem;
}

.category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card h3 a {
  color: var(--text-color);
}

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

.news-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Categories Section */
.categories-section {
  margin-top: 3rem;
}

.categories-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.category-card:hover {
  background: var(--bg-color);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.category-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.category-card h3 {
  color: var(--text-color);
  font-size: 1.25rem;
}

/* News List */
.news-section {
  margin-bottom: 3rem;
}

.news-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-item {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-hover);
}

.news-item img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-item-content {
  padding: 1.5rem;
  flex: 1;
}

.news-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.news-item h3 a {
  color: var(--text-color);
}

.news-item h3 a:hover {
  color: var(--primary-color);
}

.news-item p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.news-item time {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Article Page */
.article-content {
  max-width: 800px;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 1rem 0;
  color: var(--secondary-color);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.separator {
  color: var(--border-color);
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-body .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: var(--secondary-color);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* About Page */
.about-section {
  margin-bottom: 3rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-image {
  width: 100%;
  border-radius: 8px;
}

.about-text h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: var(--secondary-color);
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.stats-section {
  margin-top: 3rem;
}

.stats-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--secondary-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
}

/* Contact Page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-info h2,
.contact-form-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.map-section {
  margin-top: 3rem;
}

.map-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Privacy Page */
.privacy-content {
  max-width: 800px;
}

.privacy-content section {
  margin-bottom: 2rem;
}

.privacy-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.privacy-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.privacy-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #a00d25;
  color: white;
}

.btn-secondary {
  background-color: var(--bg-light);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  color: var(--text-color);
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p {
  line-height: 1.8;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: white;
  opacity: 0.9;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary-color);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-content p {
  flex: 1;
  margin: 0;
  line-height: 1.6;
}

.cookie-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* Error Page */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.error-page h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.error-page p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.active {
    max-height: 300px;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .nav li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav a {
    display: block;
    padding: 1rem 20px;
  }

  .hero {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

  .news-item {
    flex-direction: column;
  }

  .news-item img {
    width: 100%;
    height: 200px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-buttons .btn {
    width: 100%;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

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

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
