* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* background-color: white; */
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f9f9f9;
    color: #333;
}

#back {
    position: fixed;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    z-index: -1;
    /* stay behind content */
    pointer-events: none;
    /* allow clicks to reach page */
    overflow: hidden;
    display: block;
}

#back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* CONTENT LAYER — MUST be positioned so z-index works */
#top {
    position: relative;
    /* <-- important */
    z-index: 10;
    
}


/* NAVBAR */
#nav {
    pointer-events: all;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 5vw;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #111;
    /* color: white; */
    
}

#nav img {
    height: 80px;
    background-color: transparent;
}

#nleft,
#nright {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

#nright a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 650;
    color: white;
    transition: 0.3s;
}
 

#nright a:hover {
    color: #ffcc70;
}

/* HERO */
.hero {
    width: 100%;
    height: 40vh;
    background: url("https://images.unsplash.com/photo-1599058917212-d750089bc04f") no-repeat center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: white;
    position: relative;
}

.hero h1 {
    font-size: clamp(24px, 6vw, 50px);
    margin-bottom: 10px;
    font-family: "kajiro";
    font-size: 11vw;
    font-weight: 300;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* BLOG GRID */
.blog-container {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.blog-card {
    background: rgb(236, 227, 209);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-content {
    padding: 15px;
}

.blog-content h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #111;
}

.blog-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.blog-content a {
    display: inline-block;
    text-decoration: none;
    padding: 8px 16px;
    background: white;
    color: black;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.3s;
}

.blog-content a:hover {
    background: black;
    color: white;
}

/* LOAD MORE */
.load-more {
    text-align: center;
    margin: 30px 0 60px;
}

.load-more button {
    padding: 12px 25px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.load-more button:hover {
    background: #ffcc70;
    color: black;
}

/* FOOTER */
footer {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    /* color: white; */
    position: relative;
     /* background-color:  black;  */
}

footer p {
    font-size: 14px;
    color: black;
}

footer .social-icons {
    display: flex;
    gap: 15px;
    /* color: #f9f9f9; */
}

footer .social-icons a {
    /* color: white;
     */
     color: #f9f9f9;
    font-size: 20px;
    transition: 0.3s;
    text-decoration: none;
}

footer .social-icons a:hover {
    color: #ffcc70;
}

@media (max-width: 600px) {
    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}




/* Tablets and Mobiles (<=768px) */
@media (max-width: 768px) {
  #nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  #nleft {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }

  #nright {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }

  #nav img {
    height: 60px;
  }

  #nright a {
    font-size: 11px;
    margin: 5px 0;
  }

  .hero {
    height: 25vh;
    padding: 10px;
  }

  .hero h1 {
    font-size: 10vw;
    line-height: 1.2;
  }

  .hero p {
    font-size: 14px;
  }

  .blog-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card img {
    height: 200px;
  }

  .blog-content h2 {
    font-size: 16px;
  }

  .blog-content p {
    font-size: 13px;
  }

  .blog-content a {
    font-size: 13px;
    padding: 6px 12px;
  }

  .load-more button {
    width: 100%;
    max-width: 200px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  footer p {
    font-size: 12px;
  }

  footer .social-icons {
    justify-content: center;
  }
}

/* Extra Small Mobiles (<=480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 12vw;
  }

  .hero p {
    font-size: 12px;
  }

  .blog-card img {
    height: 160px;
  }

  .blog-content h2 {
    font-size: 15px;
  }

  .blog-content p {
    font-size: 12px;
  }

  .blog-content a {
    font-size: 12px;
    padding: 5px 10px;
  }
}
