/* === Base Settings ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #666;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 15px 0;
}

/* === Main Content Wrapper ====================================== */
main {
  flex: 1 0 auto;
  width: 100%;
}

/* === Header ===================================================== */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  z-index: 1000;
  width: 100%;
  flex-shrink: 0;
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.logo a {
  color: #333;
  display: block;
}

.main-navigation {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

#top_menus {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 30px;
}

#top_menus li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

#top_menus .nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #333;
  padding: 8px 0;
  display: inline-block;
  line-height: 1.2;
  white-space: nowrap;
}

#top_menus .nav-link:hover,
#top_menus .current-menu-item .nav-link,
#top_menus .current_page_item .nav-link {
  color: #666;
}


/* === Hero Section =============================================== */
.hero {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin: 0 0 60px 0;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #fff;
  color: #333;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  color: #333;
}

/* === Sections ================================================== */
section {
  margin-bottom: 60px;
}

/* === Post List ================================================= */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #333;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

/* === Post Card ================================================= */
.post-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.post-featured-image {
  height: 200px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-item:hover .post-featured-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: #888;
}

.post-meta span {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.post-meta i {
  margin-right: 5px;
}

.post-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-item p {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

.read-more {
  display: inline-block;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #333;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* === Pagination ================================================ */
.pagination {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover {
  background: #333;
  color: #fff;
}

.prev.page-numbers,
.next.page-numbers {
  width: auto;
  padding: 0 15px;
  border-radius: 20px;
}

/* === Single Post =============================================== */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.post-header {
  margin-bottom: 30px;
}

.post-header h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 15px;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.post-content p,
.post-content ul,
.post-content ol {
  margin-bottom: 20px;
}

.post-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
}

.post-content h3 {
  font-size: 24px;
  margin: 30px 0 20px;
}

.post-content img {
  margin: 30px 0;
  border-radius: 8px;
}

.post-content blockquote {
  border-left: 4px solid #333;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #666;
}

/* === Recommended Posts ========================================= */
.recommended-posts {
  padding-bottom: 60px;
}

/* === Footer =================================================== */
footer {
  background: #333;
  color: #fff;
  padding: 60px 0 20px;
  width: 100%;
  flex-shrink: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-widget h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #fff;
}

.footer-widget p {
  margin-bottom: 15px;
  color: #ccc;
  font-size: 14px;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: #ccc;
  font-size: 14px;
}

.footer-menu a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}

.footer-bottom a {
  color: #fff;
}

/* === Breadcrumbs ============================================== */
.breadcrumbs {
  margin: 0 0 30px 0;
  padding: 0;
  font-size: 14px;
  color: #888;
}

.breadcrumbs a {
  color: #333;
}

.breadcrumbs a:hover {
  color: #666;
}

.breadcrumbs span {
  margin: 0 5px;
}

/* === 404 Page ================================================= */
.error-page {
  text-align: center;
  padding: 100px 0;
}

.error-page h1 {
  font-size: 120px;
  margin-bottom: 20px;
}

.error-page h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.error-page p {
  margin-bottom: 30px;
}

/* === Responsive Styles ======================================== */
@media (max-width: 1024px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    height: 450px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  #top_menus {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    height: auto;
  }
  
  #top_menus.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  #top_menus li {
    margin: 0 !important;
    text-align: center;
    padding: 10px 0;
    height: auto;
    justify-content: center;
  }
  
  #top_menus .nav-link {
    padding: 10px 20px;
  }
  
  .post-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .post-list {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .hero {
    height: 350px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .hero p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 12px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .error-page h1 {
    font-size: 80px;
  }
  
  .error-page h2 {
    font-size: 24px;
  }
}
