/* Reset & General Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Top Accent Bar */
.top-bar {
  background-color: #d92323;
  height: 35px;
  display: flex;
  align-items: center;
}

.top-bar-content {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.search-icon {
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

/* Header Banner */
.main-banner {
  text-align: center;
  padding: 20px 0;
}

.main-banner img {
  max-width: 1000px;
  width: 100%;
  height: auto;
  display: inline-block;
}

/* Main Navigation */
.main-nav {
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 35px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  height: 50px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative; /* Essential for dropdown positioning */
}

.main-nav a {
  text-decoration: none;
  color: #333333;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #d92323;
}

/* Navigation Hover Dropdown */
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  flex-direction: column;
  padding: 10px 0;
  z-index: 100;
  height: auto;
}

.main-nav .has-dropdown:hover .dropdown-menu {
  display: flex;
}

.main-nav .dropdown-menu li {
  width: 100%;
}

.main-nav .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #333;
  white-space: nowrap;
}

.main-nav .dropdown-menu a:hover {
  background-color: #f5f5f5;
  color: #d92323;
}

/* Two-Column Site Layout */
.site-body {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.content-area {
  flex: 1;
  min-width: 0;
}

/* Sidebar */
.sidebar {
  width: 280px;
  flex-shrink: 0;
}

.widget, .sidebar-widget {
  margin-bottom: 35px;
}

.widget-title, .sidebar-widget h3 {
  font-size: 18px;
  font-weight: 800;
  color: #000000;
  border-bottom: 2px solid #000000;
  padding-bottom: 8px;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.sidebar-widget hr {
  display: none; /* Hidden since we use border-bottom on h3 */
}

.widget-list {
  list-style: none;
  line-height: 2.2;
}

.widget-list a {
  color: #6bb070;
  text-decoration: none;
  font-size: 15px;
}

.widget-list a:hover {
  text-decoration: underline;
}

/* Unified Sizing for Search Input and Archive Select */
.search-form input[type="search"],
.widget select,
.sidebar-widget select.archive-select {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #cccccc;
  font-size: 14px;
  background-color: #ffffff;
  border-radius: 0; /* Keeps it square like WordPress style */
  color: #333333;
}

.sidebar-widget select.archive-select {
  cursor: pointer;
}

/* Page Titles */
.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #222222;
}

/* Post Cards */
.post-card {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eeeeee;
}

.post-thumb {
  width: 180px;
  flex-shrink: 0;
}

.post-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  flex: 1;
}

.post-meta-categories {
  font-size: 13px;
  color: #6bb070;
  margin-bottom: 5px;
  font-weight: 500;
}

.post-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.post-title a {
  color: #111111;
  text-decoration: none;
}

.post-title a:hover {
  color: #d92323;
}

.post-meta-info {
  font-size: 13px;
  color: #888888;
  margin-bottom: 12px;
  display: flex;
  gap: 15px;
}

.post-excerpt {
  font-size: 14px;
  color: #444444;
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn-read-more {
  display: inline-block;
  background-color: #d92323;
  color: #ffffff;
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-read-more:hover {
  background-color: #b81b1b;
}

/* Footer Grid */
.site-footer {
  margin-top: 40px;
  padding-bottom: 40px;
}

.footer-divider {
  border: none;
  border-top: 1px solid #eeeeee;
  margin-bottom: 30px;
}

.grid {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: #555555;
}

.column h2 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #111111;
}

.column h2 a {
  color: inherit;
  text-decoration: none;
}

.column ul {
  list-style: none;
  line-height: 1.8;
}

.column a {
  color: #666666;
  text-decoration: none;
}

.column a:hover {
  color: #111111;
}