/*
Theme Name: Elcar
Author: Tanveen Sorkar
Author URI: https://www.facebook.com/iamtanveensorkar.tanvir
Description: Elcar is a modern, responsive Bootstrap-based WordPress theme ideal for blogs, portfolios, or business websites.
Version: 1.0.3
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
Tags: blog, news, translation-ready
Text Domain: elcar
*/
/* Copyright (C) 2025 Tanveen Sorkar. Elcar WordPress theme is licensed under the GPL. */

.alignright {
  float: right;
  margin: 1em;
}

.alignleft {
  float: left;
  margin: 1em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #f9f9f9;
  padding: 5px;
}

.wp-caption-text {
  font-size: 0.9em;
}

.gallery-caption {
  font-style: italic;
}

.bypostauthor {
  font-weight: bold;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.container .pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container .pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
}

.container .pagination ul li {
  display: inline-block;
}

.container .pagination ul li a,
.container .pagination ul li span {
  display: block;
  padding: 8px 14px;
  color: #555;
  background: #f5f5f5;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container .pagination ul li a:hover {
  background-color: #0073aa;
  color: #fff;
}

.container .pagination ul li .current {
  background-color: #0073aa;
  color: #fff;
  pointer-events: none;
  box-shadow: none;
}

.container .pagination ul li .dots {
  cursor: default;
  color: #999;
  background: transparent;
  box-shadow: none;
}

.blog-title {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.blog-title a {
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.post-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  word-break: break-word;
}

.comments-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  word-break: break-word;
}

.entry-content a,
.comment-content a,
.widget a {
  text-decoration: underline;
  color: #0073aa;
}

.entry-content a:hover {
  text-decoration: none;
  color: #005177;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

/* fix part */
.main-navigation ul ul {
  display: none;
}

.main-navigation li:focus-within>ul,
.main-navigation li:hover>ul {
  display: block;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 15px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Desktop menu */
.main-menu.desktop-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Desktop menu links */
.main-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 10px 5px;
  display: inline-block;
}

.main-menu li a:hover,
.main-menu li a:focus {
  color: #0073aa;
}

/* Hamburger toggle button */
.menu-toggle {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  /* hide by default, show on mobile */
  color: #333;
}

/* Search toggle button */
.search-toggle {
  font-size: 22px;
  background: none;
  cursor: pointer;
  color: #333;
  margin-left: 15px;
  margin-top: 9px;
}

/* Mobile menu styles */
.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  width: 250px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

/* Hide mobile menu by default */
.mobile-menu[hidden] {
  display: none;
}

/* Mobile menu list */
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

/* Responsive styles */
@media (max-width: 991px) {
  .main-menu.desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }
}

.mobile-menu[hidden] {
  display: none;
}

#mobile-menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

@media (max-width: 991px) {
  #mobile-menu-toggle {
    display: inline-block;
  }

  .desktop-menu {
    display: none;
  }
}

.mobile-menu {
  position: relative;
  top: 0;
  margin-top: 10px;
  z-index: 1000;
}

@media (max-width: 991px) {
  .mobile-menu {
    position: relative;
    top: 0;
    margin-top: 10px;
    width: 100%;
    background-color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

.nav {
  background: none;
}