/*
Theme Name: NewsBlogger
Theme URI: https://example.com/newsblogger
Author: Theme Developer
Description: Default stylesheet for NewsBlogger theme.
Version: 1.0
*/

/* ===============================
   RESET
   =============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #222222;
  line-height: 1.6;
}

a {
  color: #0073e6;
  text-decoration: none;
}
a:hover {
  color: #005bb5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   LAYOUT
   =============================== */

.container {
  width: 90%;
  max-width: 1150px;
  margin: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.col-8 { width: 66.666%; }
.col-4 { width: 33.333%; }
.col-12 { width: 100%; }

/* ===============================
   HEADER
   =============================== */

.site-header {
  background: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

.site-title {
  font-size: 2rem;
  font-weight: bold;
}
.site-title a {
  color: #111111;
}

/* ===============================
   NAVIGATION
   =============================== */

.main-navigation {
  background: #f2f2f2;
  border-bottom: 1px solid #e1e1e1;
}

.main-navigation ul {
  list-style: none;
  display: flex;
}

.main-navigation ul li a {
  padding: 12px 18px;
  display: block;
  color: #333333;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  background: #dddddd;
  color: #111111;
}

/* ===============================
   CONTENT
   =============================== */

.post,
.page {
  background: #ffffff;
  border: 1px solid #e1e1e1;
  padding: 20px;
  margin-bottom: 25px;
}

.post-title {
  margin-bottom: 12px;
}
.post-title a {
  font-size: 1.6rem;
  font-weight: bold;
  color: #111111;
}
.post-title a:hover {
  color: #0073e6;
}

.post-meta {
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 15px;
}

.post-content p {
  margin-bottom: 15px;
  color: #333333;
}

/* ===============================
   SIDEBAR
   =============================== */

.sidebar {
  padding-left: 20px;
}

.widget {
  background: #fafafa;
  border: 1px solid #e1e1e1;
  padding: 15px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 1.2rem;
  font-weight: bold;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid #0073e6;
}

/* ===============================
   FOOTER
   =============================== */

.site-footer {
  background: #f2f2f2;
  padding: 25px 0;
  text-align: center;
  border-top: 1px solid #e1e1e1;
}

.site-footer p {
  color: #555555;
}

.site-footer a {
  color: #0073e6;
}
.site-footer a:hover {
  color: #005bb5;
}

/* ===============================
   BUTTONS & FORMS
   =============================== */

button,
input[type="submit"],
input[type="button"],
.btn {
  background: #0073e6;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 4px;
}
button:hover,
input:hover,
.btn:hover {
  background: #005bb5;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cccccc;
  padding: 10px;
  border-radius: 4px;
  color: #333333;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #0073e6;
  outline: none;
}

/* ===============================
   TABLES
   =============================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th {
  background: #f2f2f2;
  padding: 10px;
  border: 1px solid #dddddd;
  font-weight: bold;
}

table td {
  padding: 10px;
  border: 1px solid #dddddd;
}

table tr:nth-child(even) {
  background: #fafafa;
}

/* ===============================
   PAGINATION
   =============================== */

.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination a,
.page-numbers {
  background: #ffffff;
  color: #333333;
  padding: 8px 12px;
  border: 1px solid #cccccc;
  margin: 2px;
  text-decoration: none;
  border-radius: 4px;
}

.pagination a:hover,
.page-numbers.current {
  background: #0073e6;
  color: #ffffff;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 992px) {
  .col-8,
  .col-4 {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .main-navigation ul {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .post-title a {
    font-size: 1.3rem;
  }
}
