/*
Theme Name: Searchwary
Theme URI: https://www.searchwary.com/
Author: v0
Description: A custom WordPress theme based on Searchwary website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: searchwary
Tags: blog, news, custom-menu, featured-images, right-sidebar
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base font for the entire site */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  font-size: 16px;
  font-weight: 400;
}

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

a:hover {
  color: #1db954;
}

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

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

/* Header Styles */
.site-header {
  padding: 15px 0;
  position: relative;
  z-index: 100;
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
}

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

.site-branding {
  display: flex;
  align-items: center;
  max-width: 200px;
}

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.site-logo span {
  color: #1db954;
}

.custom-logo-link {
  display: block;
}

.custom-logo {
  max-height: 50px;
  width: auto;
}

.mobile-icon {
  display: none;
}

.mobile-icon-link {
  font-size: 24px;
  color: #1db954;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-mobile-logo-link {
  display: block;
}

.custom-mobile-logo {
  max-height: 40px;
  width: auto;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}

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

.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li {
  margin-left: 25px;
  position: relative;
}

/* Menu items - font size and weight controlled by customizer */
.main-menu a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-menu a:hover {
  color: #1db954;
}

.main-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 999;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li:hover > .sub-menu {
  display: block;
}

.main-menu .sub-menu li {
  margin: 0;
}

.main-menu .sub-menu a {
  display: block;
  padding: 10px 15px;
  border-bottom: 1px solid #eaeaea;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
}

/* Search */
.search-container {
  position: relative;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.search-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: #fff;
  padding: 15px;
  z-index: 999;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-dropdown.active {
  display: block;
}

/* Header Search */
.header-search {
  max-width: 250px;
}

.search-form {
  display: flex;
  align-items: center;
  position: relative;
}

.search-form-inner {
  display: flex;
  width: 100%;
  position: relative;
}

.search-field {
  border: 1px solid #eaeaea;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 16px;
  width: 239px;
  height: 38px;
}

.search-submit {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: #1db954;
  color: #fff;
  border: none;
  padding: 0 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 16px;
}

.mobile-header-actions {
  display: none;
}

/* Hero Banner */
.hero-banner {
  background-color: #1e2b50;
  color: #fff;
  text-align: center;
  padding: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px; /* Reduced to 30% of previous value (40px) */
}

/* Hero banner */
.hero-banner h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

/* Category Header */
.category-header {
  background-color: #4caf50;
  color: #fff;
  padding: 20px 30px;
  margin: 30px 0;
  border-radius: 8px;
}

/* Category titles */
.category-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.category-description {
  color: #fff;
  margin-top: 10px;
  font-size: 16px;
}

/* Content Sections */
.site-content {
  padding: 40px 0;
}

/* For front page specifically */
.searchwary-front-page .site-main {
  padding-top: 10px; /* Reduced padding for desktop */
}

.content-area {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Section titles */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
}

/* Latest Article */
.latest-article {
  margin-bottom: 40px;
}

.latest-article-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.latest-article-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.latest-article-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.latest-article-image:hover img {
  transform: scale(1.05);
}

.latest-article-content {
  padding: 15px 0;
}

/* Category labels */
.article-category {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #1db954;
  margin-bottom: 10px;
}

/* Article titles - font size and weight controlled by customizer */
.article-title {
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: #777;
  margin-bottom: 10px;
}

.article-meta span {
  margin-right: 15px;
}

/* Post excerpts - font size and weight controlled by customizer */
.article-excerpt {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Read more link styling */
.read-more {
  display: inline-flex;
  align-items: center;
  color: #4caf50;
  font-weight: 500;
  margin-top: 10px;
  text-decoration: none;
}

.read-more i,
.read-more svg {
  margin-left: 5px;
}



.topic-card {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
  position: relative;
}

.topic-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  background-color: #1db954;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 2;
}

.topic-image {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
  position: relative;
}

.topic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-content {
  flex-grow: 1;
}

.topic-category {
  display: inline-block;
  font-size: 13px;
  color: #1db954;
  margin-bottom: 5px;
}

/* Topic titles - font size and weight controlled by customizer */
.topic-title {
  margin-bottom: 5px;
  line-height: 1.3;
}

/* Trending Topics arrow styling */
.topic-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 5px;
}

.arrow-icon {
  color: #1db954;
  display: inline-flex;
  align-items: center;
}

.arrow-icon i {
  font-size: 14px;
}

/* All Articles */
.all-articles {
  margin-bottom: 40px;
}

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

/* Article Card Styling */
.article-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.article-card-image {
  height: 180px;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-category {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #4caf50;
  margin-bottom: 10px;
  text-transform: capitalize;
}

/* Article card titles - font size and weight controlled by customizer */
.article-card-title {
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-card-title a {
  color: #333;
  text-decoration: none;
}

.article-card-title a:hover {
  color: #4caf50;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
  margin-top: auto;
}

.article-meta span {
  margin-right: 15px;
  margin-bottom: 5px;
}

.article-author a {
  color: #555;
  font-weight: 500;
}

.article-author a:hover {
  color: #4caf50;
}

.arrow-icon {
  color: #4caf50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  font-size: 14px;
}

.arrow-icon i {
  transition: transform 0.2s ease;
}

.article-card:hover .arrow-icon i {
  transform: translateX(3px);
}

/* Single Article */
.single-article {
  max-width: 800px;
  margin: 0 auto;
}

.single-article-header {
  margin-bottom: 30px;
}

/* Single post title - font size and weight controlled by customizer */
.single-article-title {
  margin-bottom: 15px;
  line-height: 1.2;
}

.single-article-meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.single-article-meta span {
  margin-right: 15px;
}

.single-article-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

/* Article content - font size and weight controlled by customizer */
.single-article-content {
  line-height: 1.7;
}

.single-article-content p,
.single-article-content ul,
.single-article-content ol,
.single-article-content blockquote {
  margin-bottom: 20px;
}

.single-article-content h2,
.single-article-content h3,
.single-article-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.single-article-content blockquote {
  border-left: 4px solid #1db954;
  padding-left: 20px;
  font-style: italic;
  color: #555;
}

/* AdSense Styles */
.adsense-container {
  margin: 30px 0;
  text-align: center;
  clear: both;
  overflow: hidden;
  max-width: 100%;
}

.adsense-before-comments {
  margin-bottom: 40px;
}

/* Featured Image Styles */
.single-article-image {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
}

.single-article-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Make sure the featured image has proper spacing when inserted within content */
p + .single-article-image {
  margin-top: 30px;
}

.single-article-image + p {
  margin-top: 30px;
}

/* Author Box */
.author-box {
  display: flex;
  align-items: center;
  margin: 40px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.author-bio {
  font-size: 14px;
  color: #555;
}

/* Author Archive Styles */
.author-archive-header {
  margin-bottom: 40px;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.author-profile {
  display: flex;
  align-items: flex-start;
}

.author-avatar {
  margin-right: 30px;
}

.author-avatar img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
}

.author-info {
  flex: 1;
}

.author-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.author-bio {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.6;
}

.author-meta {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.author-website,
.author-email {
  display: inline-flex;
  align-items: center;
  color: #1db954;
  font-size: 14px;
}

.author-website i,
.author-email i {
  margin-right: 5px;
}

.author-articles-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
}

/* Related Articles */
.related-articles {
  margin-bottom: 40px;
}

.related-articles-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.related-articles-title span {
  color: #4caf50;
}

.related-article-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
}

/* Related article titles - font size and weight controlled by customizer */
.related-article-title {
  margin-bottom: 10px;
  line-height: 1.3;
}

.related-article-title a {
  color: #333;
  text-decoration: none;
}

.related-article-title a:hover {
  color: #1db954;
}

/* Editor's Choice */
.editors-choice {
  margin-top: 40px;
  margin-bottom: 40px;
}

.editors-choice-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 10px;
}

.editors-choice-title span {
  color: #4caf50;
}

.editors-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

/* Google-like Search Results */
.search-results-page {
  max-width: 650px;
  margin: 0 auto;
  padding: 20px 0;
}

.search-results-header {
  margin-bottom: 30px;
}

.search-title {
  font-size: 20px;
  font-weight: normal;
  color: #202124;
  margin-bottom: 5px;
}

.search-results-count {
  margin-bottom: 25px;
  color: #70757a;
  font-size: 14px;
}

/* Search form in results page - hidden as we already have one in header */
/*
.search-results-form {
  margin-bottom: 30px;
}

.search-results-form .search-field {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  font-size: 16px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.search-results-form .search-submit {
  background-color: #1db954;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
*/

.search-result-item {
  padding-bottom: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid #eaeaea;
}

.search-result-item:last-child {
  border-bottom: none;
}

/* Search result titles - font size and weight controlled by customizer */
.search-result-title {
  margin-bottom: 5px;
  line-height: 1.3;
}

.search-result-title a {
  color: #1a0dab;
  text-decoration: none;
}

.search-result-title a:hover {
  text-decoration: underline;
}

.search-result-url {
  color: #006621;
  font-size: 14px;
  margin-bottom: 5px;
}

/* Search result snippets - font size and weight controlled by customizer */
.search-result-snippet {
  color: #545454;
  line-height: 1.58;
  margin-bottom: 5px;
}

.search-result-meta {
  display: flex;
  font-size: 13px;
  color: #70757a;
  margin-top: 5px;
}

.search-result-meta span {
  margin-right: 15px;
}

.search-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  color: #4285f4;
}

.search-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  color: #4285f4;
  font-weight: normal;
  font-size: 14px;
}

.search-pagination .page-numbers.current {
  color: #000;
  font-weight: bold;
}

.search-pagination .prev,
.search-pagination .next {
  padding: 0 15px;
}

.no-results {
  margin-top: 30px;
  color: #545454;
  font-size: 16px;
}

/* Search Suggestions */
.search-suggestions {
  margin-top: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.search-suggestions h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.search-suggestions ul {
  list-style-type: disc;
  padding-left: 20px;
}

.search-suggestions li {
  margin-bottom: 8px;
  color: #555;
}

/* Footer */
.site-footer {
  background-color: #f9f9f9;
  padding: 40px 0;
  border-top: 1px solid #eaeaea;
}

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

.footer-widget-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
}

.footer-widget ul {
  list-style: none;
}

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

/* Footer Menu */
.footer-navigation {
  margin: 20px 0;
  text-align: center;
  border-top: 1px solid #eaeaea;
  padding-top: 20px;
}

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

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

/* Footer menu */
.footer-menu a {
  font-size: 16px;
  font-weight: 400;
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

@media (max-width: 576px) {
  .footer-menu {
    flex-direction: column;
    align-items: center;
  }

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
  font-size: 14px;
  color: #777;
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f9f9f9;
  padding: 10px 0;
  border-top: 1px solid #eaeaea;
  z-index: 9999;
  font-size: 14px;
  text-align: center;
}

.cookie-notice-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-notice-buttons {
  margin-left: 15px;
}

.cookie-notice-button {
  background: none;
  border: 1px solid #ddd;
  padding: 5px 10px;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.cookie-notice-button.accept {
  background-color: #1db954;
  color: #fff;
  border-color: #1db954;
}

/* Sticky Header */
.site-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Menu Close Button */
.menu-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
  color: #333;
}

.main-navigation.toggled .menu-close {
  display: block;
}

/* Pagination Container */
.pagination-container {
  margin: 30px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-widgets {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-area {
    grid-template-columns: 3fr 2fr;
  }

  .editors-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-logo {
    display: none;
  }

  .mobile-icon {
    display: block;
  }

  .desktop-search {
    display: none;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
  }

  .mobile-search-container {
    margin-right: 15px;
    width: 150px;
    display: block;
  }

  .mobile-search-container .search-field {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    width: 100%;
    height: 36px;
  }

  .mobile-search-container .search-submit {
    padding: 0 10px;
    font-size: 14px;
  }

  .menu-toggle {
    display: block;
    font-size: 24px;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
  }

  .main-navigation.toggled {
    display: block;
  }

  .main-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background: #fff;
    flex-direction: column;
    padding: 60px 20px 20px;
    overflow-y: auto;
  }

  .main-menu li {
    margin: 0 0 15px 0;
  }

  .main-menu a {
    display: block;
    padding: 10px 0;
  }

  .main-menu .sub-menu {
    position: static;
    box-shadow: none;
    display: block;
    padding-left: 15px;
    width: 100%;
  }

  .main-menu .sub-menu a {
    padding-left: 15px;
  }

  .editors-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-avatar {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .author-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .mobile-search-form {
    display: none;
  }

  .site-header {
    padding: 10px 0;
    border-bottom: 1px solid #eaeaea;
  }

  .header-inner {
    justify-content: space-between;
    padding: 0 15px;
    display: flex;
    align-items: center;
  }

  .site-branding {
    max-width: 40px;
    flex: 0 0 auto;
  }

  .custom-logo {
    max-height: 35px;
  }

  .custom-mobile-logo {
    max-height: 35px;
  }

  .mobile-icon-link {
    font-size: 22px;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
  }

  .mobile-search-container {
    flex: 1;
    max-width: calc(100% - 60px);
    margin: 0 10px;
  }

  .mobile-search-container .search-field {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    width: 100%;
  }

  .mobile-search-container .search-submit {
    padding: 0 12px;
  }

  .menu-toggle {
    font-size: 22px;
    flex: 0 0 auto;
  }

  .hero-banner h2 {
    font-size: 22px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }

  /* Vertical layout for mobile */
  .content-area {
    display: block;
  }

  .sidebar {
    width: 100%;
    margin-top: 20px;
  }

  /* Section titles */
  .section-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .article-title {
    font-size: 18px;
  }

  /* Mobile vertical layout fixes */
  .latest-article,
  .trending-topics {
    padding: 0;
    margin-bottom: 30px;
  }

  .topic-card {
    display: flex;
    align-items: flex-start;
    padding: 15px 0 15px 15px;
    margin-bottom: 15px;
    position: relative;
  }

  .topic-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
  }

  .topic-number {
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .topic-content {
    padding-right: 15px;
  }

  .topic-category {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .topic-title {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 5px;
  }

  .arrow-icon {
    position: absolute;
    right: 15px;
    bottom: 15px;
  }

  /* Single column layout for all content */
  .container {
    padding: 0;
  }

  .site-content {
    padding: 20px 0;
  }

  .all-articles {
    padding: 0 15px;
  }

  .article-card {
    margin-bottom: 20px;
  }

  .cookie-notice-inner {
    flex-direction: column;
  }

  .cookie-notice-buttons {
    margin-left: 0;
    margin-top: 10px;
  }

  /* Search results page padding */
  .search-results-page {
    padding: 20px 15px;
  }

  .search-results-header {
    padding: 0;
  }

  .search-result-item {
    padding: 0;
  }

  /* Menu close button styling */
  .menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    color: #333;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .main-navigation.toggled .menu-close {
    display: flex;
  }

  /* Category header mobile styling */
  .category-header {
    padding: 15px;
    margin-bottom: 20px;
  }

  /* Category titles */
  .category-title {
    font-size: 24px;
  }

  .related-articles-title,
  .editors-choice-title {
    font-size: 20px;
  }

  .single-article-title {
    font-size: 24px;
  }

  .article-title {
    font-size: 18px;
  }

  .main-menu a {
    font-size: 16px;
  }

  .hero-banner h2 {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .category-title {
    font-size: 24px;
  }
}
@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  /* Fix section titles and content padding */
  .section-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    padding-left: 0;
    margin-top: 25px;
  }

  /* Latest Article section padding */
  .latest-article {
    padding: 0;
    margin-bottom: 30px;
  }

  /* Trending Topics section padding */
  .trending-topics {
    padding: 0;
    margin-bottom: 30px;
  }

  /* Topic card padding */
  .topic-card {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    margin-bottom: 15px;
    position: relative;
    border-bottom: 1px solid #eaeaea;
  }

  .topic-card:last-child {
    border-bottom: none;
  }

  /* Fix topic number position */
  .topic-number {
    left: 0;
    top: 15px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  /* Fix topic image padding */
  .topic-image {
    margin-left: 15px;
  }

  /* All Articles section padding */
  .all-articles {
    padding: 0;
  }

  /* Hero banner text size */
  .hero-banner h2 {
    font-size: 22px;
    padding: 0 15px;
  }

  /* Improve article spacing */
  .article-card {
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Improve article meta display */
  .article-meta {
    display: flex;
    flex-wrap: wrap;
  }

  /* Improve read more link */
  .read-more {
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
  }

  /* Improve hero banner */
  .hero-banner {
    padding: 0;
    height: 60px;
  }
}

/* Author Archive Styles */
@media (max-width: 576px) {
  .author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-avatar {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .author-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .search-results-page {
    padding: 20px 15px;
  }
}

/* Google-like Search Results Styles */
@media (max-width: 576px) {
  .search-results-page {
    padding: 20px 15px;
  }
}

/* Page Styles */
.page .single-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.page .single-article-header {
  margin-bottom: 30px;
}

.page .single-article-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #333;
}

.page .single-article-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page .single-article-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Page content */
.page .single-article-content {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #333;
}

.page .single-article-content p,
.page .single-article-content ul,
.page .single-article-content ol,
.page .single-article-content blockquote {
  margin-bottom: 20px;
}

.page .single-article-content h2,
.page .single-article-content h3,
.page .single-article-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.page .single-article-content h2 {
  font-size: 24px;
}

.page .single-article-content h3 {
  font-size: 20px;
}

.page .single-article-content h4 {
  font-size: 18px;
}

.page .single-article-content a {
  color: #4caf50;
  text-decoration: none;
}

.page .single-article-content a:hover {
  text-decoration: underline;
}

.page .single-article-content blockquote {
  border-left: 4px solid #4caf50;
  padding-left: 20px;
  font-style: italic;
  color: #555;
}

.page .single-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.page .single-article-content .wp-block-image figcaption {
  text-align: center;
  font-size: 14px;
  color: #777;
  margin-top: 5px;
}

.page .single-article-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
}

.page .edit-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
}

.page .edit-link a {
  color: #4caf50;
  text-decoration: none;
}

.page .edit-link a:hover {
  text-decoration: underline;
}

.page-links {
  margin: 20px 0;
  font-size: 16px;
}

.page-links a {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 5px;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
}

.page-links a:hover {
  background-color: #4caf50;
  color: #fff;
}

/* Responsive styles for pages */
@media (max-width: 768px) {
  .page .single-article {
    padding: 15px;
  }

  .page .single-article-title {
    font-size: 28px;
  }

  .page .single-article-content {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .page .single-article {
    padding: 10px 15px;
  }

  /* Single post/article title: 28px, 700 weight */
  .page .single-article-title {
    font-size: 24px;
  }

  .page .single-article-content h2 {
    font-size: 22px;
  }

  .page .single-article-content h3 {
    font-size: 18px;
  }

  .page .single-article-content h4 {
    font-size: 16px;
  }
}

/* Keep original mobile spacing */
@media (max-width: 576px) {
  .hero-banner {
    margin-bottom: 0; /* Reset to original value for mobile */
    padding: 0;
    height: 60px;
  }

  .searchwary-front-page .site-main {
    padding-top: 0; /* Reset to original value for mobile */
  }
}

