/*
Theme Name: Smart Kiddos Premium
Version: 5.0
*/

/* ROOT */
:root {
 --primary:#4CAF50;
 --secondary:#FF9800;
 --dark:#222;
 --light:#f9f9f9;
 --text:#333;
}

/* RESET */
body{
  font-family:'Poppins',sans-serif;
  margin:0;
  background:var(--light);
  color:var(--text);
}

/* CONTAINER */
.container{
  width:90%;
  max-width:1100px;
  margin:auto;
}

/* ================= HEADER ================= */

.main-header{
  position:sticky;
  top:0;
  z-index:999;
  background:var(--primary);
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.header-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
}

/* LOGO */
.logo img{ max-height:50px; }
.logo h1{ color:white; margin:0; }

/* MENU */
.primary-menu{
  list-style:none;
  display:flex;
  gap:25px;
  margin:0;
  padding:0;
}

.primary-menu li{ position:relative; }

.primary-menu a{
  color:white;
  text-decoration:none;
  font-weight:500;
}

.primary-menu a:hover{
  color:#FFEB3B;
}

/* DROPDOWN */
.primary-menu li ul{
  display:none;
  position:absolute;
  background:white;
  top:30px;
  left:0;
  padding:10px;
  border-radius:5px;
}

.primary-menu li:hover ul{
  display:block;
}

.primary-menu li ul a{
  color:#333;
}

/* SEARCH */
.search-box input{
  padding:6px 10px;
  border-radius:5px;
  border:none;
}

/* CTA */
.cta-btn{
  background:var(--secondary);
  color:white;
  padding:8px 15px;
  border-radius:5px;
  text-decoration:none;
}

/* MOBILE */
.menu-toggle{
  display:none;
  color:white;
  font-size:24px;
}

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

.hero{
  background:linear-gradient(to right,#4CAF50,#66bb6a);
  color:white;
  text-align:center;
  padding:80px 20px;
}

.btn{
  background:var(--secondary);
  padding:12px 25px;
  color:white;
  text-decoration:none;
  border-radius:6px;
}

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

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:25px;
  margin-top:20px;
}

/* CARD */
.post-card{
  background:white;
  padding:20px;
  border-radius:10px;
  box-shadow:0 3px 10px rgba(0,0,0,0.05);
  transition:0.3s;
}

.post-card:hover{
  transform:translateY(-5px);
}

.post-card img{
  width:100%;
  border-radius:8px;
}

/* ================= SINGLE POST ================= */

.content-area{
  display:flex;
  gap:30px;
  margin-top:30px;
}

/* MAIN */
.main-post{
  flex:3;
  background:white;
  padding:25px;
  border-radius:10px;
}

/* TITLE */
.post-title{
  font-size:30px;
  margin-bottom:10px;
}

/* META */
.post-meta{
  font-size:13px;
  color:#777;
  margin-bottom:15px;
}

/* IMAGE */
.post-image img{
  width:100%;
  border-radius:10px;
  margin-bottom:20px;
}

/* CONTENT */
.post-content{
  font-size:16px;
  line-height:1.8;
}

.post-content p{
  margin-bottom:15px;
}

/* DOWNLOAD BOX */
.download-box{
  background:#e8f5e9;
  padding:20px;
  border-radius:10px;
  text-align:center;
  margin:30px 0;
}

.download-btn{
  background:var(--secondary);
  color:white;
  padding:10px 20px;
  border-radius:5px;
  text-decoration:none;
}

/* SECTION TITLE */
.section-title{
  margin-top:30px;
}

/* ================= SIDEBAR ================= */

.sidebar{
  flex:1;
}

.widget{
  background:white;
  padding:15px;
  margin-bottom:20px;
  border-radius:10px;
}

.widget h3{
  margin-bottom:10px;
}

.widget ul{
  list-style:none;
  padding:0;
}

.widget ul li{
  margin-bottom:8px;
}

.widget ul a{
  text-decoration:none;
  color:#333;
}

/* ================= ADS ================= */

.ad{
  background:#eee;
  padding:20px;
  text-align:center;
  margin:30px 0;
  border-radius:5px;
}

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

footer{
  background:var(--dark);
  color:white;
  text-align:center;
  padding:30px;
  margin-top:50px;
}

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

@media(max-width:768px){

  .header-flex{
    flex-wrap:wrap;
  }

  #menu{
    display:none;
    width:100%;
  }

  #menu.active{
    display:block;
  }

  .primary-menu{
    flex-direction:column;
    gap:10px;
    background:var(--primary);
    padding:10px;
  }

  .menu-toggle{
    display:block;
  }

  .search-box,
  .cta-btn{
    display:none;
  }

  .content-area{
    flex-direction:column;
  }
}