/* assets/css/style.css
   OyinBlog - Dark navy aesthetic inspired by OYINDev
   Responsive layout, card grid, navbar, mobile hamburger, article styling
*/

:root{
  --bg-1: #071025;       /* deep navy */
  --bg-2: #0b1630;       /* slightly lighter */
  --card: #0f2134;
  --muted: #98a6b5;
  --text: #e9f1f8;
  --accent-a: #22c1a5;   /* teal */
  --accent-b: #7c4dff;   /* purple */
  --glass: rgba(255,255,255,0.03);
  --glass-2: rgba(255,255,255,0.02);
  --radius: 12px;
  --max-width: 1180px;
}
 .logo img{
        width: 90px;
        height: 90px;
        margin-left: 250px;
      }
      .logo span{
        margin-top:40px;
        font-size: 30px;
        margin-left: -30px;
      }
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
   /* background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 120%);  */
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background-color: rgb(220, 235, 242);
  color: black;
}

/* Header / Navbar */
header {position: sticky; top: 0; z-index: 60; backdrop-filter: blur(6px); background-color: #0f2134;}

#box{background-color: rgb(255, 255, 255); color: black;}
#p2{color: #0b1630;}
#p{color: #131315;}
.navbar{
  max-width: var(--max-width);
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 20px;
  top: 0;
  max-width: 100%;
}
.logo{
  font-weight:700;
  font-size:20px;
  letter-spacing:0.6px;
  color:var(--text);
   margin-left: 100px;
}
#but1{ width: 100px; padding: 5px; color: #071025; background-color: white; border-radius: 10px;}
#but1:hover {background: linear-gradient(90deg, rgba(34,193,165,0.12), rgba(124,77,255,0.08));  box-shadow: 0 10px 24px rgba(2,6,23,0.35);}
#hold-return{margin-right: 100px; gap: 20px; justify-content: space-between;}

.nav-links{
  display:flex;
  gap:12px;
  list-style:none;
  padding:0;
  float: right;
  margin-right: 35%;
}

@media (max-width:1400px){
  nav-links{
  display:flex;
  gap:12px;
  list-style:none;
  padding:0;
  float: right;
  margin-left: 50%
}
}
.nav-links li a{
  padding:8px 12px;
  border-radius:10px;
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}
.nav-links li a:hover,
.nav-links li a.active{
  background: linear-gradient(90deg, rgba(34,193,165,0.12), rgba(124,77,255,0.08));
  box-shadow: 0 6px 18px rgba(2,6,23,0.25);
}

/* Hamburger for mobile */
.hamburger{
  display:none;
  font-size:22px;
  cursor:pointer;
  padding:8px;
  border-radius:8px;
  background:transparent;
  border: none;
  color:var(--text);
}

/* Hero */
.hero{
  max-width: var(--max-width);
  margin: 28px auto;
  padding: 28px 20px;
  text-align:center;
}
.hero h1{
  margin:0;
  font-size:34px;
  line-height:1.05;
}
.hero p{
  margin-top:10px;
  color:var(--muted);
  font-size:16px;
}

/* Container & Grid */
.articles-container{
  max-width: var(--max-width);
  margin: 12px auto 36px;
  padding: 0 20px 40px;
}
.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
/* Card */
.card{
  background-color: rgb(255, 255, 255); color: black;;
  padding:12px;
  border-radius: var(--radius);
  border: 1px solid var(--glass);
  display:flex;
  flex-direction:column;
  gap:10px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2,6,23,0.42);
}
.card img{
  width:100%;
  height:165px;
  object-fit:cover;
  border-radius:8px;
  background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}
.card h2{
  margin:0;
  font-size:18px;
}
.card p{ margin:0; color:var(--muted); font-size:14px; }
.read-more{
  color:#fff;
  margin-top:auto;
  display:inline-block;
  text-decoration:none;
  padding:8px 12px;
  border-radius:10px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  font-weight:700;
  width:fit-content;
  font-size:13px;
}

/* Category pages where full articles listed */
.category-page .article-full{
  background:var(--card);
  padding:18px;
  border-radius:12px;
  margin-bottom:16px;
  border:1px solid var(--glass);
}
.article-full h2{ margin:6px 0 10px; }
.article-full img{ width:100%; height:300px; object-fit:cover; border-radius:8px; }

/* Article (single full article) */
.article{
  max-width:900px;
  margin:28px auto;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.01));
  border-radius:12px;
  border:1px solid var(--glass);
}
 a[href]{text-decoration-line: none; color: white;}
.article h1{ margin-top:0; font-size:28px; }
.article .meta{ color:var(--muted); font-size:13px; margin-bottom:10px; }
.article img{ width:100%; height:auto; border-radius:8px; margin:12px 0; }
.article p{ line-height:1.75; color: #dbe9f6; margin:12px 0; font-size:16px; }
.article h2{ font-size:20px; margin-top:20px; margin-bottom:8px; }
.article ul{ margin-left:20px; color:var(--muted) }

/* Footer */
footer{
  max-width: var(--max-width);
  margin: 36px auto;
  padding:18px 20px;
  text-align:center;
  color:var(--muted);
}

/* Utilities */
.container-row{ max-width:var(--max-width); margin:0 auto; padding:0 20px;}
#hold-foot{background-color: #0f2134;  top: 0; max-width:100%; margin: 0; padding: 0; height: 90px; align-content: center; }
#link{text-decoration-style: none;}

/* Responsive */
@media (max-width:1024px){
  .grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:780px){
  .grid{ grid-template-columns:1fr; gap:12px; }
  .nav-links{display:none;}
  .hamburger{display:block;}
  .hero h1{ font-size:24px; }
  .hero p{ font-size:14px; }
    .logo img{
            margin-left: 1px;
          }
 
}
#desktop{display: flex;}


/* --- Filter toolbar & buttons --- */
.filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin: 12px 0 18px;
  margin-left: 230px
}

/* Make category buttons look like pills and match site theme */
.category-btn{
  background: transparent;
  border: 1px solid rgb(0, 0, 0);
  /* color: var(--text); */
  color: #071025;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: transform .16s ease, box-shadow .16s ease, background .18s ease;
  backdrop-filter: blur(4px);
}

li{color: #071025;}

/* subtle hover */
.category-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(2,6,23,0.35);
  background: linear-gradient(90deg, rgba(34,193,165,0.06), rgba(124,77,255,0.04));
}

/* active/selected state */
.category-btn.active{
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: rgba(2,16,24,0.98); /* dark text on bright gradient */
  border: none;
  box-shadow: 0 14px 36px rgba(12,40,70,0.45);
}

/* keyboard focus */
.category-btn:focus{
  outline: 2px solid rgba(34,193,165,0.16);
  outline-offset: 3px;
}

 #hold-categories{
                  display: none;
                    position: absolute;
            background:white;
            border: 1px solid #ccc;
            border-radius: 8px;
            z-index: 100;
             margin-left: 70px;
            margin-top: 31px;

        }
     
        #menu-moblie{display: none;}
          #cata{
          width: 100px;
          height: 30px;
          border-radius: 10px;
          border-style: none;
          
           /*  border-style: solid;
             border-radius: 10px;
             border-color: rgb(25, 25, 97);
             font-family: sans-serif; */
        }
        #cata:hover + #hold-categories {
            display: block;
        }
        #hold-categories:hover {
            display: block;
        }
        #hold-categories li {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        #hold-categories a {
            display: block;
            padding: 8px 16px;
            color: #222;
            text-decoration: none;
        }
        #hold-categories a:hover {
            background: #f0f0f0;
        }
        #ul{
          margin-left: 40%;
        }
        a[href]{
          
          text-decoration-line: none;
          color: white;
        }
        

        @media (max-width: 760px) {
            #active{
              display: none;
            }
            #cata{
              display: none;
            }
            #cancel{display: none;}
            #menu-moblie{width: 100%;padding-top: 5%; padding-bottom: 5%; z-index: 2; background-color: #222; height: auto; padding-left: 60%; list-style-type: none;  color: aliceblue; background-color: #0f2134; margin-top: -50px; font-size: 18px;}
            a[href]{
              color: white;
              text-decoration-line: none;
            }
                      .filters{ justify-content:center; gap:8px; padding: 8px 10px;}
            .category-btn{ padding:7px 10px; font-size:13px; }
            #hold-categories{display: none;}
            .nav-links li a{
              background: linear-gradient(90deg, rgba(34,193,165,0.12), rgba(124,77,255,0.08));
            box-shadow: 0 6px 18px rgba(2,6,23,0.25);
            }
            .filters{
              margin-left: 0;
            }

        }
/* responsive adjustments */
@media (max-width:680px){
  
}