/*
Theme Name: HowCan
Theme URI: 
Author: Faredul Ali
Author URI: 
Description: A modern blog theme with Bootstrap integration, custom header image, topbar menu, social menu, multiple layouts (boxed/full), Elementor support, full-site editing support, and widgetized footer.
Version: 1.8.9
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: howcan
Tags: blog, custom-logo, featured-images, news
Copyright (c) 2025 Faredul Ali. This theme is licensed under the GPL.

*/


/*-------------------------------------
2. Navigation & Menus
--------------------------------------*/
.primary-menu,
.topbar .top-menu ul {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.primary-menu li,
.topbar .menu-item {
  position: relative;
}
.primary-menu li ul,
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 10px 0;
}
.primary-menu li:hover > ul,
.main-navigation li:focus-within > ul,
.main-navigation li:hover > ul {
  display: block;
}
.primary-menu li ul li {
  padding: 5px 20px;
  white-space: nowrap;
}



.brand-text {
            color: green;
            font-weight: bold;
            font-size: 24px;
            margin-bottom: 20px;
        }

        .dropdown-submenu .dropdown-menu {
            display: none;
        }

        .dropdown-submenu .dropdown-menu.show {
            display: block;
        }
/*-------------------------------------
3. Topbar & Social Menu
--------------------------------------*/
.topbar {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.875rem;
}
.topbar .top-menu a,
.topbar .social-menu a {
  color: #333;
  text-decoration: underline;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
}
.topbar .top-menu a:hover,
.topbar .social-menu a:hover {
  color: #000;
}
.topbar .menu-item > a > i {
  margin-right: 6px;
}

/*-------------------------------------
4. Footer
--------------------------------------*/
footer {
  font-size: 0.9rem;
}
footer h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
footer ul {
  list-style: none;
  padding-left: 0;
}
footer ul li {
  margin-bottom: 0.5rem;
}
footer ul li a {
  color: #fff;
  text-decoration: underline;
}
footer ul li a:hover {
  color: #fff;
  
}
.copy-text {
  border-top: 2px solid #fff;
}


/* Ensure footer widget links (including tags) appear white */
footer .ftl a{
  color: #fff;
  text-decoration: underline;
  display: inline;
}
/* Ensure footer widget links (including tags) appear white */
footer .ftl a:hover{
  color: #fff;
}

/* Optional: On hover, make them darker or another color */
footer a:hover,
footer .widget a:hover,
footer .widget_tag_cloud a:hover {
  color: #000;
}

/*-------------------------------------
5. Pagination
--------------------------------------*/
.pagination {
  display: flex;
  justify-content: center;
  margin: 2em 0;
}
.pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 10px 14px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: underline;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.pagination .page-numbers:hover,
.pagination .current {
  background-color: #000;
  color: #fff;
}
.pagination .current {
  font-weight: bold;
  pointer-events: none;
}
.pagination .prev.page-numbers.disabled,
.pagination .next.page-numbers.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/*-------------------------------------
6. Content Styling
--------------------------------------*/
.entry-content a,
.comment-content a,
.widget a {
  text-decoration: underline;
}
.archive .page-title {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: 2rem;
  line-height: 1.2;
}
.nav-links {
  text-align: justify;
}
.nav-previous a,
.nav-next a {
  margin: 5px;
  padding: 5px;
  font-weight: bold;
}
.nav-previous a {
  float: left;
}
.nav-next a {
  float: right;
}
a {
  color: #000;
}
.searchform {
  display: inline-block;
  width: 100%;
}
#searchsubmit {
  background: #000;
  color: #fff;
  margin: 1px;
  padding: 1px;
  border-radius: 3px;
}
#s {
  max-width: 60%;
  border: 1px solid black;
  margin-bottom: 3px;
}
ul {
  list-style: none;
}

/*-------------------------------------
7. Widgets & Sidebar
--------------------------------------*/
.cat-item,
.page_item a {
  background: transparent;
  font-weight: bold;
  margin-bottom: 2px;
}
.current_page_item {
  color: #fff;
  font-weight: bold;
  padding-right: 2px;
  text-transform: uppercase;
}
.menu-item ul li a:hover {
  font-weight: bold;
  padding-right: 2px;
}

/*-------------------------------------
8. Media Queries
--------------------------------------*/
@media (min-width: 768px) {
  .topbar .top-menu {
    margin-right: auto;
  }
  .topbar .social-menu {
    margin-left: auto;
  }
}
@media (max-width: 575.98px) {
  .topbar .top-menu,
  .topbar .social-menu {
    flex: 1 1 auto;
    justify-content: space-between;
  }
}

/*-------------------------------------
9. Accessibility
--------------------------------------*/
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  background-color: #f8f9fa;
  color: #212529;
  padding: 0.5rem;
  border-radius: 0.25rem;
}

/*-------------------------------------
10. Caption, Alignments, and Gallery
--------------------------------------*/
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5em;
  text-align: center;
  background-color: #f8f9fa;
  padding: 8px;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}
.wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.wp-caption-text,
.gallery-caption {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.5rem;
  font-style: italic;
  text-align: center;
}
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}
.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
}
.gallery-item {
  padding: 0.5rem;
}
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}
.bypostauthor {
  border-left: 4px solid #0d6efd;
  background-color: #f1f8ff;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

/*-------------------------------------
11. Utility Classes
--------------------------------------*/
.display-4 {
  font-size: 200%;
  max-width: 100%;
}
.box {
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  margin-top: 5px;
  margin-bottom: 5px;
}
.navbar h1 {
  font-size: 30px;
  max-width: 200px;
}
* {
  margin: 0;
  padding: 0;
}
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}
.responsive-table th,
.responsive-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  white-space: nowrap;
}
.responsive-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}


.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.woocommerce-message {
    background-color: #d1e7dd;
    color: #0f5132;
}

.woocommerce-error {
    background-color: #f8d7da;
    color: #842029;
}

.woocommerce-info {
    background-color: #cff4fc;
    color: #055160;
}

    .skip-link {
      position: absolute;
      top: -40px;
      left: 0;
      background: #000;
      color: #fff;
      padding: 8px 16px;
      z-index: 999;
      text-decoration: none;
    }
    .skip-link:focus {
      top: 10px;
    }
    
    
    /* Ensure links are underlined in content */
.entry-content a,
.comment-content a,
.widget_text a,
.textwidget a,
.custom-content a {
    text-decoration: underline;
}

/*  hover effect */
.entry-content a:hover,
.comment-content a:hover,
.widget_text a:hover,
.textwidget a:hover,
.custom-content a:hover {
    text-decoration: none;
    border-bottom: 1px solid;
}