* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Sans 3", 'Times New Roman', Times, serif;
  line-height: 1.6;
}

.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =================================
   HEADER & NAVIGATION
   ================================= */
header {
  background: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo {
  color: #0e0e0e;
  font-style: 'Roboto';
  font-weight: bold;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  /* clamp(minimum, preferred, maximum) 
    Fluid typography allows text to scale
    smoothly and remain readable on different
    devices
  */
  display: flex;
  align-items: center;
  gap: .5rem;
}

.logo img {
  width: 34px;
  height: 34px;
}

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

.nav-links a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: color .3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #0e7490;
}

/* =================================
   HERO SECTION
   ================================= */

.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 70vh;
  background: url('/images/hero-img.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

.date {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(.875rem, 2vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-section a {
  text-decoration: none;
  color: white;
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  /* clamp(min, preferred, max)*/
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 2rem;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 800px;
}

.hero-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  max-width: 800px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* =================================
   BLOG SECTION
   ================================= */
.blog-section {
  padding: 4rem 2rem;
  background: white;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* 
    ~ repeats a col pattern as many times as it can fit
    ~ auto creates as many cols as possible that fit in the container
    ~ each col must be at least 280px wide, but can stretch up to take up equal space (1fr) when more room is avail
  */
  gap: 2rem;
  margin-bottom: 2rem;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f0f0f0;
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  color: #666;
  font-size: clamp(.8rem, 2vw, .9rem);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .5rem;
}

.blog-title {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.3;
  word-wrap: break-word;
}

.blog-excerpt {
  color: #666;
  line-height: 1.6;
  font-size: clamp(.9rem, 2vw, .95rem);
}

/* =================================
   VIEW MORE BUTTON
   ================================= */
.view-more {
  text-align: center;
  margin-top: 3rem;
}

.view-more-btn {
  display: inline-block;
  padding: .625rem 1.25rem;
  background: #2d3748;
  color: white;
  text-decoration: none;
  border-radius: .25rem;
  font-weight: 500;
  transition: background 0.3s ease;
  font-size: clamp(.875rem, 2vw, 1rem);
}

.view-more-btn:hover {
  background: #0e7490;
}

/* =================================
   FOOTER
   ================================= */
footer {
  background: #2d3748;
  color: white;
  padding: 2.5rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

footer p {
  font-size: clamp(.9rem, 2vw, 1rem);
  font-weight: bold;
  letter-spacing: .5px;
}

.copyright {
  font-weight: 500;
  opacity: 0.6;
  font-size: clamp(.7rem, 1.8vw, .75rem);
}

/* =================================
   MEDIA QUERIES
   ================================= */

/* Large tablets and small laptops */
@media(max-width: 1024px) {
  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-section {
    padding: 3rem 0;
  }

  .blog-section {
    padding: 3rem 1.5rem;
  }

  .blog-content-section {
    padding: 0 1.5rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }

  .nav {
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .hero-section {
    min-height: 60vh;
    padding: 2.5rem 0;
  }

  .hero-content {
    padding: 0 1.5rem;
    text-align: center;
  }

  .blog-section {
    padding: 2.5rem 1.5rem;
  }

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

  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .profile-img {
    align-self: center;
  }

  .blog-content-section {
    padding: 0 1rem;
  }

  .recent-post-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

/* Mobile Phones */
@media(max-width: 480px) {
  header {
    padding: 1rem 0;
  }

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

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section {
    min-height: 50vh;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 0 1rem;
    text-align: left;
  }

  .hero-section a {
    font-size: clamp(1.5rem, 6vh, 2.5rem);
    line-height: 1.3;
    margin-bottom: 1.5;
  }

  .hero-description {
    font-size: clamp(.9rem, 3vw, 1rem);
    line-height: 1.7;
  }

  .blog-section {
    padding: 2rem 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .blog-content {
    padding: 1.25rem;
  }

  .profile-section {
    gap: 1.25rem;
  }

  .about-content {
    padding: 2rem 1rem;
  }

  .blog-detail-content {
    padding: 2rem 1rem;
  }

  .blog-content-section {
    padding: 0 .5rem;
  }

  .recent-post-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem;
  }

  .view-more {
    margin-top: 2rem;
  }

  footer {
    padding: 2rem 0;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .nav {
    padding: 0 .75rem;
  }

  .hero-section {
    padding: 1.5rem 0;
    min-height: 20vh;
  }

  .hero-content {
    padding: 0 .75rem;
  }

  .hero-section a {
    font-size: clamp(1.25rem, 7vw, 2rem);
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: clamp(.85rem, 3.5vw, .95rem);
  }

  .blog-section {
    padding: 1.5rem 0.75rem;
  }

  .blog-content {
    padding: 1rem;
  }

  .about-content {
    padding: 1.5rem 0.75rem;
  }

  .blog-detail-content {
    padding: 1.5rem 0.75rem;
  }

  .recent-post-grid {
    padding: 0 0.75rem;
  }
}