/*
Theme Name: HowCan
Theme URI:https://demo-howcan.free.nf 
Author: Faredul Ali
Author URI: https://faredulali.great-site.net/
Description: A modern blog theme with Bootstrap integration, custom header image, topbar menu, social menu, Dropdown Menu, Elementor support, full-site editing support, and widgetized footer.
Version: 2.0.15
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: custom-menu,threaded-comments, translation-ready, Blog, Portfolio, news

Copyright (c) 2025 Faredul Ali. This theme is licensed under the GPL.

*/

.text-muted.small {
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 4px;
}

.text-muted.small::before {
  content: "👁️";
  font-size: 0.9rem;
}
#menu-top li{
  padding-left: -2px !important;
}
.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 rgb(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:700;font-size:24px;margin-bottom:20px}.dropdown-submenu .dropdown-menu{display:none}.dropdown-submenu .dropdown-menu.show{display:block}.topbar{background-color:#f8f9fa;border-bottom:1px solid #dee2e6;font-size:.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}footer{font-size:.9rem}footer h5{font-weight:600;margin-bottom:.75rem}footer ul{list-style:none;padding-left:0}footer ul li{margin-bottom:.5rem}footer ul li a{color:#fff;text-decoration:underline}footer ul li a:hover{color:#fff}.copy-text{border-top:2px solid #fff}footer .ftl a{color:#fff;text-decoration:underline;display:inline}footer .ftl a:hover{color:#fff}footer a:hover,footer .widget a:hover,footer .widget_tag_cloud a:hover{color:#000}.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:700;pointer-events:none}.pagination .prev.page-numbers.disabled,.pagination .next.page-numbers.disabled{pointer-events:none;opacity:.5}.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:700}.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 #000;margin-bottom:3px}ul{list-style:none}.cat-item,.page_item a{background:#fff0;font-weight:700;margin-bottom:2px}.current_page_item{color:#fff;font-weight:700;padding-right:2px;text-transform:uppercase}.menu-item ul li a:hover{font-weight:700;padding-right:2px}@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}}.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:.5rem;border-radius:.25rem}.wp-caption{max-width:100%;margin-bottom:1.5em;text-align:center;background-color:#f8f9fa;padding:8px;border:1px solid #dee2e6;border-radius:.25rem}.wp-caption img{max-width:100%;height:auto;display:block;margin:0 auto}.wp-caption-text,.gallery-caption{font-size:.875rem;color:#6c757d;margin-top:.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:.5rem}.gallery-item img{width:100%;height:auto;border-radius:.25rem}.bypostauthor{border-left:4px solid #0d6efd;background-color:#f1f8ff;padding:1rem;border-radius:.25rem;margin-bottom:1rem}.display-4{font-size:200%;max-width:100%}.box{box-shadow:0 0 15px rgb(0 0 0 / .1);margin-top:5px;margin-bottom:5px}.navbar h1{font-size:30px;max-width:200px}*{margin:0;padding:0}.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}.entry-content a,.comment-content a,.widget_text a,.textwidget a,.custom-content a{text-decoration:underline}.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}
/* ========== HEADER IMAGE BASE STYLE ========== */
#site-header {
  position: relative;
  overflow: hidden;
}

#site-header .header-img {
  display: block;
  width: 100%;
  height: 60vh; /* make it proportional */
  object-fit: cover;
  object-position: center;
}

/* ========== OVERLAY TEXT ========== */
.header-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.35); /* light transparent background */
  border-radius: 12px;
  max-width: 90%;
}

/* Text styling */
.header-overlay .site-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.header-overlay .site-tagline {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
}

/* ========== RESPONSIVE FIXES FOR MOBILE ========== */
@media (max-width: 768px) {
  #site-header .header-img {
    height: 50vh; /* smaller image height */
    object-position: center top;
  }

  .header-overlay {
    background: rgba(0, 0, 0, 0.55); /* darker overlay on mobile for better readability */
    padding: 10px 12px;
  }

  .header-overlay .site-title {
    font-size: 1.6rem;
  }

  .header-overlay .site-tagline {
    font-size: 0.95rem;
  }
}

/* ========== SMALL SCREEN FIX (less than 480px) ========== */
@media (max-width: 480px) {
  .header-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 10px;
  }

  .header-overlay .site-title {
    font-size: 1.4rem;
  }

  .header-overlay .site-tagline {
    font-size: 0.9rem;
  }
}

.pvp a:hover{
  color:#fff; !important;
}

.nep a:hover{
  color:#fff; !important;
}
.ath-img img{
  border-radius: 50%;
}

.tp-nav li a{
  margin: 0;
  padding-left: -5 !important;
  outline: 0;
}


/* Premium Most Viewed Hero Section */
.most-viewed-hero {
  min-height: 80vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.most-viewed-hero .hero-bg {
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) blur(8px);
  transform: scale(1.1);
  z-index: 1;
}

.most-viewed-hero .container {
  z-index: 2;
}

.text-shadow {
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.most-viewed-hero .btn:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Responsive optimization */
@media (max-width: 767px) {
  .most-viewed-hero {
    min-height: 60vh;
    padding: 60px 15px;
  }
  .most-viewed-hero h1 {
    font-size: 1.8rem;
  }
}