
:root{
  --bg:#0b1220;
  --panel:#11192b;
  --text:#e6ebff;
  --muted:#a6b0cf;
  --accent:#3b82f6;
  --accent-2:#22c55e;
  --light:#fff;
  --danger:#ef4444;
  --shadow:2px 5px 5px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
section{
  padding: 50px;
}
html,body{
    margin:0;
    padding:0px;
    font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background:var(--light);
    color:var(--text)
}
.dash{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--panel);
  padding: 10px;
  margin-left: 50px;
  font-size: 1.8rem;
}
.dashboard{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--panel)
}
a{
    color:var(--panel);
    text-decoration:none
}
.container{
    width:min(1100px,92%);
    margin:0 auto
}
.admin-container{
    width:min(500px,92%);
    margin:0 auto
}
.site-header{
    position:sticky;
    padding: 10px; 
    top:0;
    z-index:50;
    background:var(--light);
    backdrop-filter:blur(8px);
    border-bottom:1px solid var(--text);
    margin-bottom: 10px;
}
.header-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:.9rem 0
}
.logo{
  font-weight:800;
  letter-spacing:.5px;
  color: var(--danger);
}
.logo span{
  color:var(--accent)
}
.nav{
  display:flex;
  gap:1rem;
  align-items:center
}
.nav a{
  opacity:.9;
  padding:.4rem .6rem;
  border-radius:.6rem;
  transition:all .2s ease; 
  color: var(--panel);
}
.nav a:hover{
  background:rgba(255,255,255,.06);
  opacity:1
}
.btn{
  background:var(--accent);
  padding:.7rem 1rem;
  border-radius:.5rem;
  font-weight:700;
  display:inline-block;
  box-shadow:var(--shadow);
  border: none;
  color: var(--light);
}
.btn.small{
  padding: .5rem;
}
.grid{
  display:grid;
  gap:1.2rem;
}
.grid.cols-3{
  grid-template-columns:repeat(3,1fr);
}
@media (max-width:900px){
  .grid.cols-3{
  grid-template-columns:1fr;
  }
}
.latest-section{
  background-color: var(--text);
}
.latest-divs{
  display: flex;
  flex-wrap: wrap;
}
.latest-card{
  width: 40%;
  height: 80px;
  margin: 10px;
  background:var(--text);
  overflow:hidden;
  display: flex;
}
.latest-post-image{
  width: 20%;
  height: auto;
  border-radius: 5px;
}
.latest-post-image img{
  width: 70px;
  height: 70px;
  border-radius: 5px;
}
.latest-post-text{
  width: 80%;
  height: 120px;
  font-size: 1.0rem;
  padding: 1px;
}
.latest-post-meta{
  color:var(--panel);
  margin: 2px 10px;
  font-size:.8rem;
  padding: 3px;
}
.latest-post-title{
  width: 75%;
  margin: 2px 10px;
  color:var(--panel);
  font-size:.9rem;
}
.card{
  background:var(--light);
  border:1px solid rgba(255,255,255,.06);
  border-radius:1rem;
  overflow:hidden;
  /* box-shadow:var(--shadow); */
}
.card .p{
  padding:0.5rem;
  color: var(--panel);
}
.card h3{
  margin:.1rem 0 0.2rem;
  color: var(--panel);  
}
.badge{
  display:inline-block;
  padding:1rem;
  font-size:.75rem;
  border-radius:.5rem;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.badge.green{
  background:var(--accent-2);
  color:var(--light);
}
.badge.danger{
  background:var(--danger);
  color:var(--light);
}
.latest-text{
  color: var(--panel);
}
.meta{
  color:var(--accent);
  font-size:.9rem;
}
.hero{
  display:grid;
  gap:1.2rem;
  grid-template-columns:2fr 1fr;
  margin:1rem 0 1.4rem
}
.hero .big{
  min-height:260px;
  background:var(--light);
}
.hero .side{
  display:grid;
  gap:1.2rem;
}
footer.site-footer{
  border-top:1px solid rgba(255,255,255,.06);
  padding:2rem 0;
  margin-top:2rem;
  color:var(--text);
  text-align:center;
  background-color: var(--panel);
}
.input{
  width:100%;
  padding:.8rem 1rem;
  border-radius:.5rem;
  border:1px solid rgba(255,255,255,.1);
  background:#0f1830;
  color:var(--text)
}
.sub-input{
  width:100%;
  padding:.8rem 1rem;
  border-radius:.4rem;
  border:1px solid rgba(255,255,255,.1);
  background:#0f1830;
  color:var(--light);
  font-size: 1.0rem;
  margin-bottom: 10px;
}
.admin-input{
  width:100%;
  padding:.8rem 1rem;
  border-radius:.5rem;
  border:1px solid rgba(255,255,255,.1);
  background:#0f1830;
  color:var(--text)
}
.table{
  width:100%;
  border-collapse:collapse;
  margin-bottom: 50px;
}
.table td{
  padding:.7rem;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  color: var(--panel);
}
.table th{
  padding:.7rem;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  color: var(--light);
  background-color: var(--accent);
}
.alert{
  padding:.75rem 1rem;
  border-radius:.6rem;
  background:rgba(59,130,246,.15);
  margin-bottom:1rem
}
.toggle-btn {
    padding: 10px 15px;
    margin-bottom: 15px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s;
}
.toggle-btn:hover {
    background: #0056b3;
}
.add-post-form {
    background: #f9f9f9;
    padding: 15px;
    display: none;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.add-post-form input, 
.add-post-form textarea {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
}
.add-post-form button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}
.add-post-form button:hover {
    background: #218838;
}
.banner {
  width: 100%;
  height: 45vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: left;
  text-align: left;
  color: var(--panel);
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay */
  z-index: 1;
}
.subscription-box{
  margin: 10px auto;
  padding: 10px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 20px;
}
.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
}
.hero-content p {
  font-size: 1.0rem;
  margin-bottom: 20px;
  text-align: left;
  margin-left: 30px;
}
.cta-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff9800;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}
.cta-btn:hover {
  background: #e68900;
}
/* Hamburger Button */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 26px;
  color: var(--panel);
}
.article-box{
  width: 70%;
  margin: 20px auto;
  height: auto;
}
/* Styling the footer section */
.footer-container{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  background-color: var(--bg);
  padding: 20px;
}
.footer-section .about{
  width: 40%;
  margin: 10px auto;
}
.footer-section h3{
  text-align: center;
  color: var(--light);
}
.footer-section p{
  width: 500px;
  text-align: left;
  color: var(--light);
  line-height: 24px;
}
.links ul li{
  list-style: none;
  text-align: left;
  line-height: 24px;
  margin-right: 50px;
}
.links ul li a{
  color: var(--light);
}
.social-icons{
  display: block;
  margin-left: 30px;
  text-align: left;
  line-height: 24px;
}
.social a{
  color: var(--light);
}




@media (max-width:500px){
  .site-header{
    position:sticky;
    padding: 5px; 
    top:0;
    z-index:50;
    background:var(--light);
    backdrop-filter:blur(8px);
    border-bottom:1px solid var(--text);
    margin-bottom: 3px;
  }
  .header-wrap{
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:.9rem 0
  }
  .logo{
    font-weight:800;
    letter-spacing:.5px;
    color: var(--danger);
    font-size: 20px;
  }
  .logo span{
    color:var(--accent);
    font-size: 20px;
  }
  .nav{
    display:block;
    gap:1rem;
    align-items:left;
    text-align: left;
  }
  .nav a{
    opacity:.9;
    padding:.4rem .6rem;
    border-radius:.6rem;
    transition:all .2s ease; 
    color: var(--panel);
    text-align: left;
  }
  .nav a:hover{
    background:rgba(255,255,255,.06);
    opacity:1
  }
  .banner {
  width: 100%;
  height: auto;
  position: relative;
  display: block;
  align-items: center;
  justify-content: left;
  text-align: left;
  color: var(--panel);
  overflow: hidden;
  margin-top: -30px;
  }
  .hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay */
    z-index: 1;
  }
  .subscription-box{
    margin: 10px auto;
    padding: 10px;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 10px;
  }
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
  }
  .hero-content p {
    font-size: .8rem;
    margin-bottom: 5px;
    text-align: left;
    margin-left: 15px;
  }
  .sub-input{
    width:65%;
    padding:.8rem 1rem;
    border-radius:.4rem;
    border:1px solid rgba(255,255,255,.1);
    background:#0f1830;
    color:var(--light);
    font-size: 1.0rem;
    margin-bottom: 10px;
  }
  .hero{
    display:block;
    gap:1.2rem;
    grid-template-columns:2fr 1fr;
    margin:1rem 0 1.4rem
  }
  .hero .big{
    min-height:260px;
    background:var(--light);
  }
  .hero .side{
    display:grid;
    gap:1.2rem;
  }
  .latest-divs{
    display: block;
    flex-wrap: wrap;
  }
  .latest-card{
    width: 96%;
    height: 90px;
    margin: 10px;
    background:var(--text);
    overflow:hidden;
    display: flex;
  }
  .nav {
    display: none;
    flex-direction: column;
    background: var(--light);
    position: absolute;
    top: 80px;
    left: 0;
    width: 200px;
    border-radius: 0 0 0 8px;
    padding: 10px 0;
    box-shadow: var(--shadow);
    text-align: left;
  }
  .nav.open {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  section{
    padding: 10px;
  }
  .hamburger {
    display: block;
  }
  .dash{
    font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color:var(--panel);
    padding: 10px;
    margin-left: 10px;
    font-size: 1.4rem;
  }
  .article-box{
    width: 96%;
    margin: 10px auto;
    height: auto;
  }
  /* Smooth Dropdown Animation */
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  /* Styling the footer section */
  .footer-container{
    width: 100%;
    display: block;
    flex-wrap: wrap;
    background-color: var(--panel);
    padding: 10px;
  }
  .footer-section .about{
    width: 90%;
    margin: 10px auto;
  }
  .footer-section h3{
    text-align: center;
    color: var(--light);
  }
  .footer-section p{
    width: 99%;
    text-align: left;
    color: var(--light);
    line-height: 24px;
    font-size: 14px;
  }
  .links ul li{
    list-style: none;
    text-align: left;
    line-height: 24px;
    font-size: 14px;
  }
  .links ul li a{
    font-size: 14px;
    color: var(--light);
  }
}