/*
Theme Name: Green News Portal Plus
Theme URI: https://example.com
Author: You
Author URI: https://example.com
Description: A clean news/magazine style WordPress theme with a simple options panel (logo, slider, footer, contact & social).
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: green-news-portal-plus
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f3f5f6;
  color: #222;
}

/* LINKS */
a {
  color: #0b4d8a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* TOP BAR */
.top-bar {
  background: #0b4d8a;
  color: #fff;
  font-size: 14px;
  padding: 6px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left span {
  margin-right: 15px;
}

.top-bar-right a {
  color: #fff;
  margin-left: 10px;
}

/* HEADER */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dde2e7;
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 15px 15px;
  justify-content: space-between;
  gap: 20px;
}

.site-branding h1 {
  margin: 0;
  font-size: 30px;
  color: #0b4d8a;
}

.site-branding p {
  margin: 2px 0 0;
  font-size: 14px;
  color: #777;
}

.custom-logo {
  max-height: 80px;
  width: auto;
  height: auto;
  margin-bottom: 4px;
}

.site-header-contact {
  text-align: right;
  font-size: 14px;
  color: #333;
}

.site-header-contact div {
  margin-bottom: 3px;
}

/* MAIN NAV */
.main-nav {
  background: #13324f;
}

.main-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 15px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.main-nav li {
  margin-right: 20px;
}

.main-nav a {
  display: block;
  padding: 10px 0;
  color: #fff;
  font-size: 15px;
}

/* TICKER */
.news-ticker {
  background: #f7f0c8;
  border-bottom: 1px solid #e2d387;
}

.news-ticker-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-ticker-label {
  font-weight: 700;
  color: #b35a00;
}

.news-ticker-items {
  flex: 1;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* HOME SLIDER */
.home-slider {
  background: #000;
  padding: 10px 0;
}

.home-slider-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.home-slide-caption {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  padding: 5px 8px;
  margin-top: 4px;
}

/* LAYOUT */
.site-main-wrapper {
  max-width: 1180px;
  margin: 20px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* MAIN CONTENT BLOCKS */
.main-content .block-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 2px solid #0b4d8a;
  padding-bottom: 5px;
}

.article-list {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr;
  gap: 15px;
}

.article-featured,
.article-list-small {
  background: #fff;
  border: 1px solid #dde2e7;
  padding: 10px;
}

.article-featured h2 {
  font-size: 22px;
  margin-top: 0;
}

.article-featured p {
  font-size: 14px;
}

.article-list-small article {
  border-bottom: 1px solid #eceff2;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.article-list-small article:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* SIDEBAR */
.sidebar {
  background: #fff;
  border: 1px solid #dde2e7;
  padding: 10px;
}

.sidebar h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
}

/* POSTS / PAGES */
.entry-title {
  font-size: 26px;
  margin-bottom: 10px;
}

.entry-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.7;
}

/* FOOTER */
.site-footer {
  background: #13324f;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .site-main-wrapper {
    grid-template-columns: 1fr;
  }
  .home-slider-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .main-nav ul {
    flex-wrap: wrap;
  }
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-header-contact {
    text-align: left;
  }
}
