/*
Theme Name: HowCan
Theme URI: https://howcan.free.nf/
Author: Faredul Ali
Author URI: https://faredulali.great-site.net/
Description: HowCan is a modern, fast, and responsive WordPress theme designed for Blog, News, Magazine, Portfolio, and Landing pages. 
It comes with full Bootstrap integration, a custom header image, sticky topbar menu, social menu, multi-level dropdown navigation, and a widgetized footer. [cite: 15]
The theme supports Elementor, Classic Editor, and Full-Site Editing (FSE) features. [cite: 16]
It includes a clean layout, SEO-friendly structure, optimized performance, and mobile-first design to ensure the best reading experience. [cite: 17]
Perfect for bloggers, content creators, tech writers, news portals, and personal websites. [cite: 18]
Version: 2.0.17.6
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, custom-header, custom-logo, threaded-comments, 
translation-ready, blog, news, portfolio, landing-page, 
full-site-editing, one-column, two-columns, right-sidebar, 
footer-widgets, featured-images, theme-options, 
editor-style, responsive-layout, bootstrap, 
elementor, rtl-language-support

Copyright (c) 2025 Faredul Ali.
This theme is licensed under the GPL. [cite: 20]
*/

.howcan-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center; [cite: 21]
  position: relative;
  overflow: hidden;
}

.howcan-slider-content {
  text-align: center;
  background: rgba(0,0,0,0.4);
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 90%;
  overflow: hidden; [cite: 22]
}

.howcan-slide-title {
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis; [cite: 23]
}

.howcan-slide-subtitle {
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  margin-bottom: 15px;
  overflow: hidden;
  text-overflow: ellipsis; [cite: 24]
}

/* 🔹 মোবাইলে fix height */
@media (max-width: 768px) {
  .howcan-slide {
    height: 100% !important; [cite: 25]
  }

  .howcan-slider-content {
    padding: 10px 15px;
    max-height: 100%;
    /* টেক্সট যেন 300px এর বাইরে না যায় */
    overflow: hidden; [cite: 27]
  }

  .howcan-slide-title,
  .howcan-slide-subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 3; [cite: 28]
    /* সর্বোচ্চ ৩ লাইন */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.howcan-breaking-news {
  display: flex;
  align-items: center;
  background-color: transparent; /* red background */
  color: #000;
  padding: 8px 10px;
  overflow: hidden; [cite: 29]
}

.breaking-label {
  background-color: #000;
  color: #fff; [cite: 30]
  padding: 5px 10px;
  font-weight: bold;
  text-transform: uppercase;
  margin-right: 10px;
  border-radius: 3px;
  font-size: 14px;
}

.breaking-marquee {
  flex: 1; [cite: 31]
}

.breaking-marquee a {
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.breaking-marquee a:hover {
  text-decoration: underline; [cite: 32]
}

/* ===== Howcan Slider ===== */
.howcan-slider {
  position: relative;
  width: 100%;
  height: auto;
  /* Full screen height */
  margin: 0;
  padding: 0px;
  overflow: hidden; [cite: 33]
}

.howcan-slider .swiper {
  width: 100%;
  height: auto; [cite: 34]
}

.howcan-slider .swiper-slide {
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center; [cite: 35]
}

.howcan-slider-content {
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  margin-top: 10%;
  margin-bottom: 10%;
  padding: 10px 20px;
  margin-inline: block; [cite: 36]
  border-radius: 15px;
  animation: fadeInUp 1s ease;
}

.howcan-slider-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1.2;
  color: white; [cite: 37]
}

.howcan-slider-content p {
  font-size: 18px;
  margin-bottom: 15px;
}

.howcan-slider-content .btn {
  padding: 12px 30px;
  border-radius: 30px; [cite: 38]
}

/* Animation */
@keyframes fadeInUp {
  from { transform: translateY(25px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; [cite: 39] }
}

/* Remove unwanted space below slider */
.howcan-slider + * {
  margin-top: 0 !important;
  padding-top: 0 !important; [cite: 40]
}

.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; [cite: 41]
}

#menu-top li{
  padding-left: -2px !important;
}

.primary-menu,.topbar .top-menu ul{display:flex;gap:0.5rem;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; [cite: 43]
}

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

/* ========== OVERLAY TEXT ========== */
.header-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; [cite: 45]
  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 */ [cite: 46]
  border-radius: 12px;
  max-width: 90%;
}

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

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

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

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

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

  .header-overlay .site-tagline {
    font-size: 0.95rem; [cite: 53]
  }
}

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

  .header-overlay .site-title {
    font-size: 1.4rem; [cite: 55]
  }

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

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

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

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

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

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

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

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

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

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

.inside-post-ad {
    margin: 20px 0;
    text-align: center; [cite: 63]
}

/* ========== PROFESSIONAL LANG SWITCHER SECTION ========== */
.lang-switcher {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.5);
    margin: 10px 0;
}

.lang-btn {
    text-decoration: none !important;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #333 !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: inline-block;
}

.lang-btn:hover {
    background: #0073aa;
    color: #ffffff !important;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.25);
}

.lang-btn:active {
    transform: translateY(0);
}