/* =========================
   BASE RESET
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #f7f9fc;
  color: #1a1a1a;
}

/* =========================
   LINKS
========================= */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.9;
}

/* =========================
   HEADER / LOGO
========================= */
#header {
  background: #ffffff;
  border-bottom: 1px solid #e6e9ef;
}

#header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  text-align: center;
}

#header-inner img {
  height: 75px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* =========================
   NAVIGATION
========================= */

#nav {
  background: #ffffff;           /* white background */
  border-bottom: 1px solid #e6e6e6;
}

#nav-inner { position:relative; }

#nav ul {
  display: flex;
  justify-content: center;       /* center nav items */
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
}

#nav ul li {
  margin: 0;
  padding: 0;
}

#nav ul li a {
  color: #222222;                /* dark text */
  font-weight: 400 !important;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.3px;
}

#nav ul li a:hover {
  color: #1f6fd2;                /* subtle brand blue hover */
}

#searchbar {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 260px;
}



/* =========================
   CONTENT WRAPPER
========================= */
#content {
  background: #f7f9fc;
}

#content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* =========================
   SECTION HEADERS
========================= */
.section-header {
  font-size: 22px;
  font-weight: 800;
  margin: 30px 0 16px;
  border-left: 5px solid #3b82f6;
  padding-left: 12px;
}

/* =========================
   HOME GRID
========================= */
.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* =========================
   CARDS
========================= */
.rightnews,
.home-blog-list {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.rightnews:hover,
.home-blog-list:hover {
  transform: translateY(-4px);
}

.sidenews-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.rightnews p,
.home-blog-list p {
  padding: 14px;
  margin: 0;
}

.titlenews {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.storys {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.viewcount {
  font-size: 12px;
  color: #777;
  margin-bottom: 6px;
}

/* =========================
   CATEGORY TAGS
========================= */
.cat-tag-news,
.cat-tag-fun,
.cat-tag-video,
.cat-tag-img {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
}

.cat-tag-news { background: #2563eb; }
.cat-tag-fun { background: #f97316; }
.cat-tag-video { background: #dc2626; }
.cat-tag-img { background: #16a34a; }

/* =========================
   VIEW MORE
========================= */
.viewmore {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: #2563eb;
}

/* =========================
   FOOTER
========================= */
#footernav {
  background: #ffffff;
  border-top: 1px solid #e6e9ef;
  padding: 20px 0;
  text-align: center;
}

#footernav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}

#socialfooter {
  margin-top: 14px;
  text-align: center;
}

#socialfooter img {
  margin: 0 6px;
  border-radius: 50%;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #nav ul {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  #header-inner img {
   height: auto;
   max- height: 60px;
   width: auto;
   max-width: 100%;
  }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
    #searchbar {
        display: none;
    }
}
