/* ==========================================
   GLOBAL
========================================== */

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    background:#f5f6f8;
    color:#222;
    line-height:1.6;
}

/* ==========================================
   NAVBAR
========================================== */

.navbar {
  background-color: var(--bg-alt);
  padding: 12px 20px;
  border-bottom: 2px solid var(--border-soft);
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.navbar-search {
  display: flex;
}

.navbar-search input {
  padding: 6px 10px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.navbar-search button {
  padding: 6px 12px;
  border: none;
  background-color: var(--accent-verified);
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* ==========================================
   PAGE
========================================== */

.guides-page{
    max-width:1600px;
    margin:0 auto;
    padding:45px 25px 70px;
}

.main-header{
    text-align:center;
    margin-bottom:55px;
}

.main-header h1{
    margin-bottom:15px;
    font-size:2.6rem;
    font-weight:700;
    color:#111;
}

.subheading{
    max-width:760px;
    margin:auto;
    color:#666;
    font-size:1.05rem;
}

/* ==========================================
   BLOG GRID
========================================== */

.guides-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:28px;
}

/* ==========================================
   BLOG CARD
========================================== */

.guide-box{
    display:flex;
    flex-direction:column;
    overflow:hidden;
    background:#fff;
    border:1px solid #e8e8e8;
    border-radius:18px;
    text-decoration:none;
    color:inherit;
    transition:.25s;
    box-shadow:0 4px 16px rgba(0,0,0,.05);
}

.guide-box:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 30px rgba(0,0,0,.10);
}

.guide-box img{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    display:block;
}

.guide-box h3{
    margin:0;
    padding:18px 20px 10px;
    font-size:1.08rem;
    color:#111;
}

.guide-box p{
    margin:0;
    padding:0 20px 22px;
    color:#666;
    font-size:.95rem;
}

/* ==========================================
   FOOTER
========================================== */

footer{
    margin-top:70px;
    padding:30px 20px;
    text-align:center;
    color:#666;
    border-top:1px solid #e6e6e6;
    background:#fff;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width:1200px){

    .guides-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

/* ==========================================
   SMALL TABLET
========================================== */

@media (max-width:900px){

    .navbar-container{
        flex-direction:column;
        align-items:stretch;
    }

    .navbar-search{
        width:100%;
    }

    .navbar-search input{
        width:100%;
    }

    .guides-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width:600px){

    .guides-page{
        padding:30px 15px 50px;
    }

    .main-header h1{
        font-size:2rem;
    }

    .guides-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .navbar-logo img{
        height:36px;
    }

}
