/* ===== BASE STYLES & RESET ===== */
html {
  box-sizing: border-box;
  font-size: 100%;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  transition: opacity ease-in 0.2s;
}

body[unresolved] {
  opacity: 0;
  display: block;
  overflow: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #dd3333;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #b32424;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  margin-top: 0;
  line-height: 1.3;
  color: #222;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* ===== LAYOUT STRUCTURE ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-6, .col-sm-12 {
  padding: 0 15px;
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  padding: 20px 0;
}

/* ===== HEADER STYLES ===== */
.site-header {
  padding: 20px 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}

.site-branding {
  text-align: center;
}

.site-logo img {
  max-height: 80px;
  width: auto;
  margin: 0 auto;
}

/* ===== NAVIGATION ===== */
.site-topbar {
  background: #f8f8f8;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 99;
  border-bottom: 1px solid #eee;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.ft-menu > li {
  margin: 0 15px;
  position: relative;
}

.ft-menu a {
  color: #333;
  font-weight: 500;
  padding: 5px 0;
}

.ft-menu a:hover {
  color: #dd3333;
}

.home-menu a {
  font-size: 1.2rem;
}

.topbar-elements {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.topbar-search {
  position: relative;
  margin-left: 15px;
}

.dropdown-search {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  display: none;
  min-width: 250px;
}

.topbar-search:hover .dropdown-content {
  display: block;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
}

.search-field {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
}

.search-submit {
  background: #dd3333;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

.search-submit:hover {
  background: #c12a2a;
}

/* ===== ARTICLE/CONTENT STYLES ===== */
.block1_grid, .block1_list {
  margin: 30px 0;
}

.post {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.entry-thumb {
  position: relative;
  overflow: hidden;
}

.entry-thumb img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.post:hover .entry-thumb img {
  transform: scale(1.03);
}

.entry-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dd3333;
  color: white;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 3px;
  text-transform: uppercase;
}

.entry-detail {
  padding: 15px;
}

.entry-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.entry-title a {
  color: #222;
}

.entry-title a:hover {
  color: #dd3333;
}

.entry-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
}

.entry-meta span {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.entry-meta i {
  margin-right: 5px;
}

.entry-excerpt {
  color: #666;
  line-height: 1.6;
}

/* ===== PAGINATION ===== */
.ft-paginate {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
  flex-wrap: wrap;
  align-items: center;
}

.page-numbers {
  padding: 8px 15px;
  margin: 0 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
  display: inline-block;
  color: #333;
}

.page-numbers.current {
  background: #dd3333;
  color: white;
  border-color: #dd3333;
}

.page-numbers:hover:not(.current) {
  background: #f5f5f5;
}

.page-numbers.dots {
  border: none;
}

.total-pages {
  margin-left: 15px;
  color: #777;
  font-size: 0.9rem;
}

/* ===== SIDEBAR ===== */
.sidebar {
  padding: 0 0 0 30px;
}

@media (max-width: 991px) {
  .sidebar {
    padding: 30px 0 0;
  }
}

.widget {
  margin-bottom: 30px;
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #222;
}

.wp-block-latest-posts__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-block-latest-posts__list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}

.wp-block-latest-posts__list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.wp-block-latest-posts__post-title {
  color: #333;
}

.wp-block-latest-posts__post-title:hover {
  color: #dd3333;
}

.wp-block-categories-list, .wp-block-archives-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-block-categories-list li, .wp-block-archives-list li {
  margin-bottom: 8px;
}

.wp-block-categories-list a, .wp-block-archives-list a {
  color: #333;
  display: block;
  padding: 5px 0;
}

.wp-block-categories-list a:hover, .wp-block-archives-list a:hover {
  color: #dd3333;
}

/* ===== FOOTER ===== */
.footer-shadow {
  background: #f5f5f5;
  padding: 20px 0 0;
}

.site-footer {
  background: #f8f8f8;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-navigation li {
  margin: 0 15px;
}

.footer-navigation a {
  color: #555;
}

.footer-navigation a:hover {
  color: #dd3333;
}

.site-info {
  color: #777;
  font-size: 0.9rem;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-navigation {
  display: none;
  background: #fff;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mobile-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-navigation li {
  margin-bottom: 10px;
}

.mobile-navigation a {
  display: block;
  padding: 8px 0;
  color: #333;
}

.mobile-navigation a:hover {
  color: #dd3333;
}

.nav-toggle {
  display: none;
}

/* ===== UTILITY CLASSES ===== */
.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.clear {
  clear: both;
}

.text-center {
  text-align: center;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }
  
  .ft-menu {
    display: none;
  }
  
  .mobile-navigation {
    display: block;
  }
  
  .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .sidebar {
    padding: 30px 0 0;
  }
  
  .topbar-left, .topbar-right {
    float: none;
    width: 100%;
  }
  
  .topbar-elements {
    justify-content: center;
    margin-top: 10px;
  }
}

/* ===== PAGE-SPECIFIC STYLES ===== */
/* Homepage specific */
.home .block1_grid {
  margin-top: 0;
}

/* Archive/page-2 specific */
.archive .page-header, .blog .page-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.archive .page-title, .blog .page-title {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

/* ===== ANIMATIONS & EFFECTS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.entry-thumb {
  overflow: hidden;
}

.entry-thumb img {
  transition: transform 0.3s ease;
}

.post:hover .entry-thumb img {
  transform: scale(1.05);
}

/* ===== WORDPRESS DEFAULT CLASSES ===== */
.aligncenter {
  display: block;
  margin: 0 auto;
}

.alignleft {
  float: left;
  margin-right: 1em;
}

.alignright {
  float: right;
  margin-left: 1em;
}

.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin: 0 auto;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.85em;
  color: #666;
  margin-top: 0.5em;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  clip: auto !important;
  display: block;
  height: auto;
  left: 5px;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ===== EMOJI STYLES ===== */
img.wp-smiley, img.emoji {
  display: inline !important;
  border: none !important;
  box-shadow: none !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.07em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
}