:root {
  --bg: #fff9f9;
  --black: #121212;
  --blue: #0267B1;
  --gap-v: 40px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  background: var(--bg);
  font-family: 'Domine', serif;
  color: var(--black);
}

/* Heading */
.news-heading {
  font-family: 'Domine', serif;
  font-weight: 700;
  font-size: 56px;
  text-align: center;
  margin: 40px 0;
}

/* Grid */
.news-grid {
  width: min(1616px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-v);
  padding: 20px;
}

/* Card */
.news-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  text-decoration: none;
  color: var(--black);
  transition: transform 0.35s ease;
}

.news-card:hover {
  transform: scale(1.03);
  cursor: pointer;
}

/* Image wrapper */
.news-img-wrap {
  width: 100%;
  padding-top: 76%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.news-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title */
.news-title {
  margin-top: 32px;
  font-size: 32px;
  font-weight: 700;
  font-family: 'Domine', serif;
  line-height: 1.3;
}

/* Footer */
.footer {
  background: var(--bg);
  padding: 50px 80px 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-weight: 500;
  font-size: 24px;
  color: var(--black);
  text-decoration: none;
}

.social-icons {
  display: flex;
  gap: 22px;
}

.social-icons a {
  font-size: 24px;
  color: var(--black);
  text-decoration: none;
}

.copyright {
  font-size: 16px;
  text-align: center;
  color: var(--black);
}

/* Tablet */
@media screen and (max-width: 1100px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr !important;
    padding: 16px;
    gap: 24px;
  }

  .news-heading {
    font-size: 36px;
    margin: 24px 0;
  }

  .news-title {
    font-size: 22px;
    margin-top: 16px;
  }
}