/* --------- EXACT STYLE FROM INLINE STYLE --------- */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: system-ui, Arial, sans-serif; background:#f7f7f7; color:#064e3b; line-height:1.5; }
a { text-decoration:none; color:inherit; }
img { display:block; max-width:100%; }

.container { width:90%; max-width:1400px; margin:0 auto; padding:20px 0; display:flex; gap:20px; align-items:flex-start; }
.main-content { flex:3; }
.sidebar { flex:1; background:#fff; border-radius:12px; padding:15px; box-shadow:0 5px 15px rgba(0,0,0,0.1); }
.sidebar-top { max-height:750px; overflow:hidden; }
.sidebar h3 { font-size:18px; font-weight:600; margin-bottom:12px; text-align:center; color:#111; }
.sidebar .sidebar-item { display:flex; align-items:center; margin-bottom:10px; }
.sidebar .sidebar-item img { width:50px; height:50px; object-fit:cover; border-radius:6px; margin-right:10px; }
.sidebar .sidebar-item a { font-size:14px; color:#064e3b; }

.slider-hero { position:relative; width:100%; height:300px; overflow:hidden; border-radius:12px; margin-bottom:20px; background-color:#111113; }
.slider-hero img { width:100%; height:100%; object-fit:cover; display:none; }
.slider-hero img.active { display:block; }
.slider-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.35); }
.slider-text { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; color:#fff; }
.slider-text h1 { font-size:2rem; margin-bottom:10px; }
.slider-text p { font-size:1rem; }

.grid { display:grid; grid-template-columns: repeat(9, 1fr); gap:20px; margin-bottom:30px; }
.card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; display:flex; flex-direction:column; opacity:0; animation:fadeUp 0.8s forwards; }
.card:hover { transform:translateY(-5px); box-shadow:0 8px 20px rgba(0,0,0,0.15); }
.card-thumb { width:100%; height:150px; overflow:hidden; background:#f0f0f0; }
.card-thumb img { width:100%; height:100%; object-fit:cover; transition:transform 0.3s; }
.card:hover .card-thumb img { transform:scale(1.05); }
.card-body { padding:10px 12px; flex-grow:1; display:flex; flex-direction:column; justify-content:space-between; text-align:center; }
.card-title { font-size:14px; font-weight:600; margin-bottom:6px; color:#111; }
.card-title a { color:#111; text-decoration:none; transition: color 0.3s; }
.card-title a:hover { color:#2563eb; }
.card-content { font-size:13px; color:#444; margin-bottom:10px; flex-grow:1; }
.card-rating { color:#f5a623; font-size:12px; margin-bottom:6px; }
.read-more-btn { display:inline-block; padding:5px 12px; background:#2563eb; color:#fff; border-radius:6px; font-size:13px; font-weight:600; transition:background 0.3s; }
.read-more-btn:hover { background:#1e40af; }

.pager { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin:30px 0; }
.pager a, .pager span { padding:6px 10px; border-radius:8px; border:1px solid rgba(0,0,0,0.1); text-decoration:none; color:#111; font-weight:600; }
.pager .active { background:#2563eb; color:#fff; border-color:#2563eb; }

.hero-posts { width:928px; height:90px; margin:20px auto; display:flex; justify-content:center; align-items:center; gap:5px; background:#fff; border-radius:8px; box-shadow:0 5px 15px rgba(0,0,0,0.1); overflow:hidden; }
.hero-posts img { width:80px; height:80px; object-fit:cover; border-radius:6px; }

.sidebar-bottom { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:20px; }
.sidebar-bottom .card-thumb { height:100px; }

/* Animation keyframes */
@keyframes fadeUp { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }

@media(max-width:1600px){ .grid{ grid-template-columns:repeat(6, 1fr); } .hero-posts{width:100%;} }
@media(max-width:1200px){ .grid{ grid-template-columns:repeat(4, 1fr); } }
@media(max-width:992px){ .container{ flex-direction:column; } .grid{ grid-template-columns:repeat(3, 1fr); gap:15px; } .sidebar{ width:100%; } }
@media(max-width:768px){ 
  .grid{ grid-template-columns:repeat(2, 1fr); } 
  .sidebar-bottom { grid-template-columns:repeat(2,1fr); } 
  .sidebar { display:none; } 
}
@media(max-width:480px){ 
  .grid{ grid-template-columns:repeat(2, 1fr); } 
  .slider-hero{height:200px;} 
  .sidebar .sidebar-item img{ width:40px;height:40px; } 
  .hero-posts img{width:60px;height:60px;} 
  .sidebar-bottom { grid-template-columns:repeat(2,1fr); } 
}
