/*
Theme Name: DailyFeed
Theme URI: https://dailystories01.nuoigaayamcemani.com/
Author: DailyFeed Team
Author URI: https://dailystories01.nuoigaayamcemani.com/
Description: Modern Story & Magazine Theme based on DailyFeed design.
Version: 3.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dailyfeed
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400;1,700&display=swap');

:root {
  --primary-color: #482ea5;
  --primary-hover: #36227e;
  --header-gradient: linear-gradient(to right, #00137d 0%, #673ab7 51%, #01137e 100%);
  --text-dark: #222222;
  --text-body: #333333;
  --text-muted: #828282;
  --text-light: #666666;
  --cat-label-color: #41455e;
  --cat-bg: #f0ebfc;
  --border-color: #eeeeee;
  --bg-body: #ffffff;
  --bg-footer: #f5f5f5;
  --font-main: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1260px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-body);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--primary-color);
}

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

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-gradient) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: height 0.3s ease;
}

.header-container {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.site-logo-text {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* Header Navigation */
.header-nav-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-menu > li > a {
  color: #ffffff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  line-height: 75px;
  display: block;
  position: relative;
  transition: opacity 0.2s ease;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
  color: #ffffff;
  opacity: 0.85;
}

/* Search Icon & Dropdown */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.search-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header-search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 16px;
  width: 320px;
  display: none;
  z-index: 1001;
}

.header-search-dropdown.is-active {
  display: block;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.header-search-form {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.header-search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
}

.header-search-submit {
  background: var(--primary-color);
  border: none;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Hamburger Menu */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
}

.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.is-active {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: #ffffff;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.is-active {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu li a {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 1px solid #f5f5f5;
}

.mobile-menu li a:hover {
  background: #f8f9fa;
  color: var(--primary-color);
}

/* ==================== HOMEPAGE LAYOUT ==================== */
.home-content-area {
  padding-top: 30px;
  padding-bottom: 50px;
}

/* Category Badge */
.cat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  background: var(--cat-bg);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.cat-label.plain-text {
  background: none;
  padding: 0;
  color: var(--cat-label-color);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Post Meta (Date) */
.post-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 400;
}

/* Post Titles */
.post-title {
  margin: 0 0 8px 0;
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
}

.post-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: var(--primary-color);
}

/* Excerpts */
.post-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Section 1: Hero 2 Posts (Side-by-side) --- */
.hero-two-posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 34px;
}

.hero-post-card {
  display: flex;
  flex-direction: column;
}

.hero-post-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 67%;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 14px;
}

.hero-post-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-post-card:hover .hero-post-thumb-wrap img {
  transform: scale(1.03);
}

.hero-post-card .post-title {
  font-size: 22px;
}

.hero-post-card .post-excerpt {
  -webkit-line-clamp: 3;
}

/* --- Section 2: 4-Column Row --- */
.grid-four-posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.card-post-small {
  display: flex;
  flex-direction: column;
}

.card-post-small .post-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 65%;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 12px;
}

.card-post-small .post-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-post-small:hover .post-thumb-wrap img {
  transform: scale(1.04);
}

.card-post-small .post-title {
  font-size: 17px;
  line-height: 1.35;
}

.card-post-small .post-excerpt {
  font-size: 13.5px;
  -webkit-line-clamp: 4;
}

/* --- Section 3: Main Feed (Horizontal List) --- */
.main-feed-list {
  display: flex;
  flex-direction: column;
}

.list-post-item {
  display: flex;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}

.list-post-item:last-child {
  border-bottom: none;
}

.list-post-thumb {
  width: 35%;
  max-width: 340px;
  min-width: 140px;
  flex-shrink: 0;
  position: relative;
  padding-top: 22.75%; /* 65% of 35% */
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
}

.list-post-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.list-post-item:hover .list-post-thumb img {
  transform: scale(1.03);
}

.list-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.list-post-content .post-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.list-post-content .post-excerpt {
  margin-top: 6px;
  -webkit-line-clamp: 3;
}

/* Bottom View All Button */
.view-all-wrap {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 20px;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: #ffffff !important;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 36px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(72, 46, 165, 0.25);
}

.btn-view-all:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(72, 46, 165, 0.35);
}

/* ==================== SINGLE POST ==================== */
.single-post-wrapper {
  padding-top: 36px;
  padding-bottom: 60px;
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: flex-start;
}

.single-main-col {
  min-width: 0;
}

.single-header {
  margin-bottom: 20px;
}

.single-title {
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin: 10px 0 12px;
}

.single-divider {
  width: 30px;
  height: 2px;
  background: #e0e0e0;
  margin-bottom: 14px;
}

.single-byline {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.single-byline a {
  color: var(--primary-color);
  text-decoration: none;
}

.single-featured-media {
  margin: 24px 0;
  border-radius: 6px;
  overflow: hidden;
}

.single-featured-media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.single-body-content {
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.8;
  color: #292929;
}

.single-body-content p {
  margin: 0 0 20px 0;
}

.single-body-content h2,
.single-body-content h3,
.single-body-content h4 {
  font-family: var(--font-main);
  color: var(--text-dark);
  font-weight: 700;
  margin: 32px 0 14px;
}

.single-body-content h2 { font-size: 24px; }
.single-body-content h3 { font-size: 20px; }

.single-body-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 12px 20px;
  margin: 24px 0;
  background: #fbfbfe;
  font-style: italic;
  color: #555;
}

/* Single Post Category Link */
.entry-category {
  font-family: var(--font-main);
  font-size: 11.2px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.entry-category a {
  color: #482ea5;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border: none;
}

.entry-category a:hover {
  text-decoration: underline;
}

/* Social Share Buttons */
.blog-share {
  margin: 35px 0 20px;
  text-align: center;
}

.blog-share .is-divider.medium {
  height: 2px;
  max-width: 30px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 0 auto 16px;
}

.social-share-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #ddd;
  border-radius: 50%;
  color: #555555;
  text-decoration: none;
  transition: all 0.25s ease;
  background: #ffffff;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.whatsapp:hover { border-color: #25d366; color: #25d366; }
.share-btn.facebook:hover { border-color: #1877f2; color: #1877f2; }
.share-btn.twitter:hover { border-color: #000000; color: #000000; }
.share-btn.email:hover { border-color: #ea4335; color: #ea4335; }
.share-btn.pinterest:hover { border-color: #bd081c; color: #bd081c; }
.share-btn.linkedin:hover { border-color: #0077b5; color: #0077b5; }

/* Author Box */
.entry-author.author-box {
  margin: 30px 0 25px;
  padding: 24px 0;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}

.author-box-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-avatar-wrap {
  flex-shrink: 0;
}

.author-avatar-img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.author-info-wrap {
  flex: 1;
}

.author-name {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #222222;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.author-desc {
  font-family: var(--font-main);
  font-size: 13.5px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

/* More From This Author Section */
.relatedcat-section {
  margin-top: 15px;
  margin-bottom: 40px;
}

.relatedcat-title {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 700;
  color: #222222;
  margin: 0 0 20px 0;
}

.relatedcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.relatedcat-card {
  display: flex;
  flex-direction: column;
}

.relatedcat-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 12px;
}

.relatedcat-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.relatedcat-card:hover .relatedcat-thumb img {
  transform: scale(1.05);
}

.relatedcat-post-title {
  font-family: var(--font-main);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
}

.relatedcat-post-title a {
  color: #222222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.relatedcat-post-title a:hover {
  color: #482ea5;
}

.relatedcat-date {
  font-family: var(--font-main);
  font-size: 12px;
  color: #888888;
  margin-bottom: 8px;
}

.relatedcat-excerpt {
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  color: #444444;
  margin: 0;
}

@media (max-width: 768px) {
  .relatedcat-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==================== SIDEBAR ==================== */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sidebar-widget {
  background: #ffffff;
}

.widget-title {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin: 0;
  display: block;
}

.is-divider {
  background-color: rgba(0, 0, 0, 0.1);
  display: block;
  height: 3px;
  margin: 0.6em 0 1em;
  max-width: 30px;
  width: 100%;
}

/* Most Viewed Posts Widget */
.widget-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.widget-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.widget-post-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}

.widget-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-date-badge {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  text-transform: uppercase;
}

.widget-date-badge span:first-child {
  font-size: 15px;
}

.widget-post-info {
  flex: 1;
}

.widget-post-title {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget-post-title a {
  color: var(--text-dark);
}

.widget-post-title a:hover {
  color: var(--primary-color);
}

/* Category & Archive List Widget */
.widget-taxonomy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-taxonomy-list li {
  padding: 9px 0;
  border-bottom: 1px solid #f1f1f1;
  font-size: 15px;
}

.widget-taxonomy-list li:last-child {
  border-bottom: none;
}

.widget-taxonomy-list li a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.widget-taxonomy-list li a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.widget-taxonomy-list li a {
  color: var(--primary-color);
  font-weight: 600;
}

.widget-taxonomy-list li a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==================== STATIC PAGE ==================== */
.page-wrapper {
  padding-top: 40px;
  padding-bottom: 60px;
}

.page-content-box {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-main);
  font-size: 30px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.page-body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
}

.page-body h2, .page-body h3 {
  font-family: var(--font-main);
  color: var(--text-dark);
  font-weight: 700;
  margin: 28px 0 12px;
}

/* ==================== CATEGORY & ARCHIVES ==================== */
.archive-wrapper {
  padding-top: 36px;
  padding-bottom: 60px;
}

.archive-header {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.archive-title {
  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

/* Numbered Pagination & Multi-Page Links */
.page-links {
  margin: 35px 0 25px;
  clear: both;
}

.nav-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 0 15px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-pagination > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-pagination > li > a,
.nav-pagination > li > span {
  border: 2px solid #222222;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  height: 34px;
  min-width: 34px;
  padding: 0 8px;
  text-align: center;
  transition: all 0.25s ease;
  color: #222222;
  text-decoration: none;
  background-color: #ffffff;
  box-sizing: border-box;
}

.nav-pagination > li > .current,
.nav-pagination > li > a:hover,
.nav-pagination > li > span:hover {
  background-color: #482ea5 !important;
  border-color: #482ea5 !important;
  color: #ffffff !important;
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination-wrap a,
.pagination-wrap span {
  border: 2px solid #222222;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  height: 34px;
  min-width: 34px;
  padding: 0 8px;
  text-align: center;
  transition: all 0.25s ease;
  color: #222222;
  text-decoration: none;
  background-color: #ffffff;
  box-sizing: border-box;
}

.pagination-wrap a:hover {
  border-color: #482ea5;
  background-color: #482ea5;
  color: #ffffff;
}

.pagination-wrap .current {
  background: #482ea5;
  border-color: #482ea5;
  color: #ffffff;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background-color: var(--bg-footer);
  border-top: 1px solid #e9ecef;
  padding-top: 35px;
  padding-bottom: 35px;
}

.footer-container {
  text-align: center;
}

.footer-menu {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-menu li a {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555555;
  transition: color 0.2s ease;
}

.footer-menu li a:hover {
  color: var(--primary-color);
}

.footer-copyright {
  font-family: var(--font-main);
  font-size: 13px;
  color: #888888;
  margin: 0;
}

/* Floating Back-To-Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #333333;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */
@media (max-width: 1024px) {
  .hero-two-posts {
    gap: 20px;
  }
  .grid-four-posts {
    grid-template-columns: repeat(2, 1fr);
  }
  .single-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  .primary-menu {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .hero-two-posts {
    grid-template-columns: 1fr;
  }
  .hero-post-card .post-title {
    font-size: 20px;
  }
  .grid-four-posts {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  .footer-menu {
    gap: 12px;
  }
}

@media (max-width: 549px) {
  .grid-four-posts {
    grid-template-columns: 1fr;
  }
  .list-post-item {
    gap: 14px;
  }
  .list-post-thumb {
    width: 45%;
    padding-top: 30%;
  }
  .list-post-content .post-title {
    font-size: 16px;
    line-height: 1.3;
  }
  .list-post-content .post-excerpt {
    display: none;
  }
  .single-title {
    font-size: 24px;
  }
}
