
:root {
  --color-light: #f9f9f9;
  --color-dark: #222;
  --color-link: #0066cc;
  --color-link-hover: #0099ff;
  --color-btn: #f7f7f7;
  --font-base: 'Inter', sans-serif;
  --font-heading: 'Merriweather', serif;
}

/* Base */
body {
  margin: 0;
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: #f9f9f9;
}

/* Hover state on non-link buttons. */
a {
  transition: color 0.25s ease-in-out;
}

a:not(.btn):hover {
  color: var(--color-link-hover);
}

/* Hero */
.hero {
  position: relative;
  background: url('images/hero.jpeg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background-attachment: fixed;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  animation: fadeIn 1s ease-in-out;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 0.3em;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1em;
}

/* Buttons */
.btn {
  background-color: var(--color-btn);
  color: var(--color-dark);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  border: 1px solid var(--color-btn);
  transition: color 0.25s ease-in-out, background 0.25s ease-in-out;
}

.btn:hover {
  background-color: var(--color-dark);
  color: var(--color-btn);
}

/* Sections */
.section {
  padding: 60px 20px;
}

.section.alt {
  background-color: white;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.02);
}

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

.card-content {
  padding: 20px;
}

.read-more {
  color: var(--color-link);
  text-decoration: none;
  font-weight: bold;
}

/* Contact */
.socials a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--color-link);
  font-weight: 500;
}

footer {
  text-align: center;
  padding: 20px;
  background: var(--color-dark);
  color: white;
  font-size: 0.9em;
}


/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Disable animations and transitions if disallowed */
@media (preferse-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsiveness */
@media screen and (max-width:425px) {
  /* Reduce hero size on mobile */
  .hero {
    height: 60vh;
  }

  /* Ensure that main title doesn't break on small screens */
  .hero h1 {
    font-size: 2.2rem;
  }
}