/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #f8f9fa;
  line-height: 1.6;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: #cc0000;
}

h2 {
  font-size: 2rem;
  color: #333;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  color: #444;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: #cc0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #990000;
}

/* ===== Header & Navigation ===== */
header {
  background: #fff;
  border-bottom: 2px solid #cc0000;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav a:hover {
  background: #f0f0f0;
  color: #cc0000;
}

/* ===== Container ===== */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero-section h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: 1.3rem;
  margin: 1.5rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section img {
  max-width: 70%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ===== CTA Button ===== */
.cta-button {
  background: #cc0000;
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid #cc0000;
}

.cta-button:hover {
  background: #fff;
  color: #cc0000 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(204, 0, 0, 0.3);
}

/* ===== Article Preview Cards ===== */
.article-preview {
  margin: 3rem 0;
  padding: 2rem 0;
}

.article-preview h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.article-card {
  display: flex;
  gap: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  align-items: center;
  transition: all 0.3s ease;
  border-left: 4px solid #cc0000;
}

.article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.article-card img {
  width: 200px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-content {
  flex: 1;
}

.article-card h3 {
  margin: 0 0 0.5rem;
}

.article-card a {
  color: #cc0000;
  font-weight: 600;
  font-size: 1.1rem;
}

/* ===== Features Section ===== */
.features {
  background: #f8f9fa;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 3rem 0;
}

.features h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.features li {
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===== Info Section ===== */
.info {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 3rem 0;
  border: 1px solid #ddd;
}

.info h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.info p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.info img {
  max-width: 40%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 6px;
}

/* ===== Main Content ===== */
main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

main.container {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

main.container h1 {
  margin-bottom: 1.5rem;
}

main.container h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

main.container ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

main.container li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

main.container img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== Footer ===== */
footer {
  background: #333;
  color: #fff;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
  border-top: 2px solid #cc0000;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #ccc;
}

footer ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

footer a:hover {
  color: #cc0000;
}

footer-bottom {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid #555;
  margin-top: 1rem;
  color: #999;
  font-size: 0.85rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .article-card {
    flex-direction: column;
    gap: 1rem;
  }
  
  .article-card img {
    width: 100%;
    max-width: 300px;
  }
  
  nav ul {
    gap: 0.5rem;
  }
  
  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .features ul {
    grid-template-columns: 1fr;
  }
  
  footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  footer ul {
    justify-content: center;
  }
  
  main.container {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .hero-section h1 {
    font-size: 1.4rem;
  }
  
  .hero-section .lead {
    font-size: 0.95rem;
  }
  
  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  nav a {
    width: 100%;
    text-align: center;
  }
  
  .article-card {
    padding: 1rem;
  }
  
  main.container {
    padding: 1rem;
  }
}

/* ===== Print Styles ===== */
@media print {
  header, footer, .cta-button {
    display: none;
  }
  
  body {
    background: #fff;
  }
  
  main.container {
    box-shadow: none;
    border: none;
  }
}

/* ===== Accessibility ===== */
a:focus, button:focus {
  outline: 2px solid #cc0000;
  outline-offset: 2px;
}

/* ===== Loading & Animation ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card, .features li {
  animation: fadeIn 0.6s ease-out;
}
