/*! 
Theme Name: Basic Starter Dev
Theme URI: https://github.com/solankisoftware89/basic-starter-dev
Author: Kirtikumar Solanki
Author URI: https://profiles.wordpress.org/solankisoftware/
Description: A clean and minimal starter WordPress theme built for easy customization and scalability.
Version: 1.1.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: basic-starter-dev
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Copyright: Copyright (C) 2025 Kirtikumar Solanki
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This theme is licensed under the GNU General Public License v2 or later.
Portions of this theme are based on the Underscores (_s) starter theme by Automattic (https://underscores.me/), which is licensed under GPL v2 or later.
Normalize.css by Nicolas Gallagher and Jonathan Neal is included under the MIT license. */

/* The rest of the CSS content is inherited from Underscores with minor changes. */

/* To pass WordPress theme review, you need to make visible and unique design customizations. Here are suggestions: */

/* 1. Unique Color Palette */
body {
  background-color: #f9f9f9;
  color: #333;
}

/* WordPress Core
-------------------------------------------------------------- */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float:right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post-thumbnail {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px; /* Optional: for rounded corners */
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: inherit;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 3rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nav-links a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.nav-links a:hover {
  background-color: #005b8e;
}

.nav-subtitle {
  display: block;
  font-size: 0.8em;
  color: #d9e8f5;
  margin-bottom: 2px;
}

.nav-title {
  font-weight: bold;
  font-size: 1.1em;
}


.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%; /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

.sticky {
    border: 2px solid #0073aa;
    background-color: #f9f9f9;
    padding: 10px;
}

.gallery-caption {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.bypostauthor {
    border-left: 3px solid #0073aa;
    background-color: #eef6fb;
    padding: 5px;
}

/* Header Styles */
main#primary {
    margin-top: 2em;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  background-color: #f5f7fa;
  border-bottom: 1px solid #dcdcdc;
}

.site-branding {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-branding .custom-logo-link img {
  max-height: 60px;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-branding .site-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
  line-height: 1.2;
}

.site-branding .site-title a {
  text-decoration: none;
  color: inherit;
}

.site-branding .site-description {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: #555;
}

/* Navigation */

.main-navigation {
  flex: 1 1 auto;
  text-align: right;
  position: relative;
  margin-top: 1rem;
}

.main-navigation .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background-color: #e4e6eb;
}

.menu-toggle .menu-icon {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #333;
  position: relative;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #333;
  left: 0;
}

.menu-toggle .menu-icon::before {
  top: -6px;
}

.menu-toggle .menu-icon::after {
  bottom: -6px;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  text-decoration: none;
  color: #222;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: #4169e1;
}

/* Remove min-width and allow submenu to size based on its content */
.main-navigation ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  display: none;
  flex-direction: column;
  border-radius: 4px;
  transition: all 0.2s ease;
  opacity: 0;
  visibility: hidden;
  width: max-content; /* ✅ Auto-width based on content */
  white-space: nowrap; /* ✅ Prevent text wrapping */
}

/* Show submenu on hover */
.main-navigation li.menu-item-has-children:hover > .sub-menu {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Submenu items */
.main-navigation ul.sub-menu li {
  width: 100%;
}

.main-navigation ul.sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #222;
  background-color: #fff;
  font-weight: 500;
}

.main-navigation ul.sub-menu a:hover,
.main-navigation ul.sub-menu a:focus {
  background-color: #f0f0f0;
  color: #4169e1;
}

/* Submenu container */
.main-navigation ul ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: max-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 9999;
  margin-left: 20px;
}

/* Show submenu on hover */
.main-navigation li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Submenu list items */
.main-navigation ul.sub-menu li {
  padding: 0;
  margin: 0;
}

/* Submenu links */
.main-navigation ul.sub-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #333;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  border-radius: 6px;
}

/* Hover effect */
.main-navigation ul.sub-menu li a:hover {
  background-color: #f0f4ff;
  color: #1e3a8a;
}

/* Down arrow indicator */
.main-navigation .menu-item-has-children > a::after {
  content: "▼";
  font-size: 0.6rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.2s;
}

/* Optional: Rotate on hover */
.main-navigation .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Menu links and toggle buttons */
.menu a:focus,
.menu-toggle:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Form fields and submit buttons */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Links in post content */
.entry-content a:focus,
.comment-content a:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Underline links in post/page content and comments */
.entry-content a,
.comment-content a,
.widget_text a {
    text-decoration: underline;
}

.entry-content a:hover,
.comment-content a:hover,
.widget_text a:hover {
    text-decoration: none; /* Optional: remove underline on hover */
}

/* Submenu styling for keyboard focus (opens when toggled via keyboard) */
.sub-menu {
    display: none;
}

.sub-menu.toggled,
.menu-item.focus > .sub-menu {
    display: block;
}

/* Keep focus styles consistent in mobile menu */
.toggled .sub-menu a:focus {
    background-color: #f0f0f0; /* Light background for visibility */
}



/* Responsive */

@media (max-width: 768px) {
  .main-navigation .menu-toggle {
    display: inline-block;
    margin-top: 1rem;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    margin-top: 1rem;
    background-color: #f5f7fa;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 99;
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .main-navigation li {
    text-align: left;
  }

  /* Hide submenu items by default */
  .main-navigation .menu-item-has-children .sub-menu {
    display: none;
    position: static;
    padding-left: 1rem; /* optional indent */
  }

  /* Show submenu when parent anchor is hovered */
  .main-navigation .menu-item-has-children:hover > .sub-menu,
  .main-navigation .menu-item-has-children:focus-within > .sub-menu {
    display: block;
  }

  /* Optional: add arrow */
  .main-navigation .menu-item-has-children > a::after {
    content: '▼';
    margin-left: 0.5rem;
    font-size: 0.6rem;
  }

}

@media (max-width: 445px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .site-branding {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .site-branding .site-title {
    font-size: 1.25rem;
    margin: 0;
  }

  .site-branding .site-description {
    font-size: 0.9rem;
    margin: 0;
  }

  .main-navigation {
    flex: 0 0 auto;
    text-align: right;
    margin-top: 0;
  }

  .main-navigation .menu-toggle {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
}

/*Footer css*/

.site-footer {
  background-color: #f5f7fa;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #e1e1e1;
}

.site-footer .copyright-text {
  margin: 0;
  font-size: 14px;
  color: #777;
}
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0073aa;
  color: #fff;
  padding: 10px 12px;
  border-radius: 4px;
  text-decoration: none;
  display: none;
  z-index: 99;
  font-size: 18px;
}

/* Back to Top Toggle */
@media screen and (min-width: 0px) {
  .back-to-top {
    display: block;
  }
}

/* Index php code */
/* Post grid layout */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Page title */
.page-header .page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Post content block */
.post {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease;
}

.post:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.entry-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e2e2;
    color: #555;
}

.entry-footer span {
    display: inline-block;
}

.entry-footer a {
    color: #0073aa;
    text-decoration: none;
}

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

/* Responsive spacing and typography */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .page-header .page-title {
        font-size: 1.5rem;
    }
}

/* Sidebar Widget Area */
.widget-area {
    background-color: #f9f9f9;
    padding: 2rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

/* Individual Widgets */
.widget {
    margin-bottom: 2rem;
}

/* Headings inside widgets */
.widget h2,
.widget .wp-block-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    color: #333;
}

/* Search Form */
.wp-block-search {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wp-block-search__inside-wrapper {
    display: flex;
}

.wp-block-search__input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.wp-block-search__button {
    padding: 0.5rem 1rem;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.wp-block-search__button:hover {
    background-color: #005a8c;
}

/* Latest Posts & Comments */
.wp-block-latest-posts__list,
.wp-block-latest-comments,
.wp-block-archives,
.wp-block-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-block-latest-posts__list li,
.wp-block-latest-comments__comment,
.wp-block-archives li,
.wp-block-categories li {
    margin-bottom: 0.75rem;
}

.wp-block-latest-posts__post-title,
.wp-block-archives-list a,
.wp-block-categories-list a,
.wp-block-latest-comments__comment-link {
    text-decoration: none;
    color: #0073aa;
}

.wp-block-latest-posts__post-title:hover,
.wp-block-archives-list a:hover,
.wp-block-categories-list a:hover,
.wp-block-latest-comments__comment-link:hover {
    text-decoration: underline;
    color: #005a8c;
}

/* Comment meta */
.wp-block-latest-comments__comment-meta {
    font-size: 0.95rem;
    color: #555;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .widget-area {
        padding: 1rem;
    }

    .wp-block-search__inside-wrapper {
        flex-direction: column;
    }

    .wp-block-search__input,
    .wp-block-search__button {
        width: 100%;
        border-radius: 4px;
    }

    .wp-block-search__input {
        margin-bottom: 0.5rem;
    }
}

/* Page template structure */
.site-main {
  padding: 2rem 1rem;
}

.entry-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.entry-content {
  line-height: 1.7;
  color: #444;
}

.entry-content p {
  margin-bottom: 1.2em;
}

.page-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.entry-footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #888;
}


/* Single Post Layout */
.site-main {
  padding: 2rem 1rem;
}

/* Post Title */
.entry-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #222;
}

/* Post Meta */
.entry-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1.5rem;
}

/* Post Content */
.entry-content {
  line-height: 1.8;
  color: #444;
}

.entry-content p {
  margin-bottom: 1.3em;
}

/* Post Navigation */
.nav-links {
    display: flex;
    justify-content: space-between;
    margin: 2em 0;
    padding: 1em;
    background: #f7f7f7;
    border-radius: 8px;
    flex-wrap: wrap;
}

.nav-previous, .nav-next {
    margin-bottom: 10px;
}

.nav-previous a, .nav-next a {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-previous a:hover, .nav-next a:hover {
    background-color: #005a8c;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    color: #ccc;
}

.nav-title {
    display: block;
    font-weight: bold;
    font-size: 16px;
}


/* Comments */
.comments-area {
  margin-top: 3rem;
  border-top: 1px solid #ddd;
  padding-top: 2rem;
}

/* =Comments Section
----------------------------------------------- */

.comments-area {
  padding: 2rem;
  margin-top: 3rem;
  border-top: 2px solid #e0e0e0;
  background-color: #fafafa;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
  font-weight: 600;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

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

.comment-list .comment {
  margin-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1.5rem;
}

.comment-author {
  font-weight: bold;
  color: #222;
}

.comment-meta {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
}

.comment-content {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.comment-reply-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #0073aa;
  text-decoration: none;
}

.comment-reply-link:hover,
.comment-reply-link:focus {
  text-decoration: underline;
}

.comment-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.no-comments {
  color: #999;
  font-style: italic;
  margin-top: 1rem;
}

#respond {
  margin-top: 3rem;
}

#reply-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #222;
}

.comment-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form input[type="submit"] {
  background-color: #0073aa;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.comment-form input[type="submit"]:hover {
  background-color: #005177;
}

/* === Archive Page Styles === */

.page-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1rem;
}

.page-title {
  font-size: 2rem;
  margin: 0;
  color: #222;
}

.archive-description {
  color: #666;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.archive-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.pagination-wrap {
  margin-top: 2rem;
  text-align: center;
}

.pagination-wrap .nav-links a,
.pagination-wrap .nav-links span {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #333;
}

.pagination-wrap .nav-links .current {
  background-color: #333;
  color: #fff;
}

/* Search Results Page Styles */
.page-header {
  padding: 30px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
  text-align: center;
}

.page-header .page-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
}

.search-results .post {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.search-results .post-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}

.search-results .post-title a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.search-results .post-title a:hover {
  color: #005177;
}

.search-results .entry-summary {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.search-results .entry-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.search-results .no-results {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin: 50px 0;
}

/* Navigation (Previous/Next) */
.nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.nav-links a {
  padding: 10px 15px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.nav-links a:hover {
  background: #005177;
}

/* Search Result Article */
.search-results article {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 25px 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.search-results article:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Post Title */
.search-results .entry-title {
  font-size: 24px;
  margin: 0 0 10px;
}

.search-results .entry-title a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.search-results .entry-title a:hover {
  color: #005177;
}

/* Meta info (date, author) */
.search-results .entry-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

/* Featured image */
.search-results .post-thumbnail {
  margin-bottom: 15px;
}

.search-results .post-thumbnail img {
  max-width: 100%;
  border-radius: 6px;
}

/* Excerpt */
.search-results .entry-summary {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
}

/* Footer (e.g., categories, tags) */
.search-results .entry-footer {
  font-size: 14px;
  color: #999;
}

/* Optional: Add responsive behavior */
@media screen and (max-width: 768px) {
  .search-results .entry-title {
    font-size: 20px;
  }

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


/* No Results Section */
.no-results {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

/* Heading */
.no-results .page-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

/* Message Text */
.no-results .page-content p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

/* Search Form */
.no-results .search-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.no-results .search-form input[type="search"] {
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 250px;
}

.no-results .search-form input[type="submit"] {
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.no-results .search-form input[type="submit"]:hover {
  background-color: #005177;
}


@media screen and (max-width: 600px) {
  .no-results {
    padding: 30px 20px;
  }

  .no-results .page-title {
    font-size: 22px;
  }

  .no-results .search-form input[type="search"] {
    width: 100%;
  }
}


/* 404 Error Page */
.error-404 {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 50px 30px;
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.error-404 .page-title {
  font-size: 32px;
  color: #c0392b;
  margin-bottom: 20px;
}

.error-404 .page-content p {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

/* Search Form */
.error-404 .search-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.error-404 .search-form input[type="search"] {
  padding: 10px 15px;
  font-size: 16px;
  width: 260px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.error-404 .search-form input[type="submit"] {
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.error-404 .search-form input[type="submit"]:hover {
  background-color: #005177;
}

/* Widgets */
.error-404 .widget {
  text-align: left;
  margin: 30px 0;
}

.error-404 .widget-title {
  font-size: 20px;
  margin-bottom: 10px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
  color: #333;
}

.error-404 ul {
  list-style: disc inside;
  color: #444;
}

.error-404 li {
  margin-bottom: 6px;
}


@media screen and (max-width: 600px) {
  .error-404 {
    padding: 30px 20px;
  }
  .error-404 .page-title {
    font-size: 24px;
  }
  .error-404 .search-form input[type="search"] {
    width: 100%;
  }
}

/* Space between articles */
article {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

/* Optional: remove border on last article */
article:last-of-type {
  border-bottom: none;
}


/* Space between post articles */
article.post {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

/* Optional: remove bottom border from last post */
article.post:last-of-type {
  border-bottom: none;
}

/* Title spacing */
.entry-title {
  margin-bottom: 0.5rem;
}

/* Meta styling */
.entry-meta {
  color: #777;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Thumbnail spacing */
.post-thumbnail {
  margin-bottom: 1rem;
}

/* Entry content spacing */
.entry-content {
  line-height: 1.7;
}
