/* ==========================================================================
   BAOFENG RADIO UK - CUSTOM THEME STYLESHEET
   ========================================================================== */
/* --- SECTION 1: GLOBAL LAYOUT & TITLES --- */
.home-main-title,
.main .container h1,
.main .container h2,
.homepage-blog-section .section-title,
.main .container .productGrid-heading {
  text-transform: none !important;
  text-transform: initial !important; }

/* --- SECTION 2: HERO CAROUSEL OPTIMIZATION --- */
.heroCarousel-image {
  background-size: cover;
  background-position: center; }

@media (max-width: 767px) {
  .heroCarousel {
    height: 56.25vw !important;
    min-height: 200px !important; }
  .heroCarousel-slide {
    height: 56.25vw !important;
    min-height: 200px !important; }
  .heroCarousel-image {
    object-fit: cover !important;
    height: 100% !important;
    width: 100% !important; } }

/* --- SECTION 3: PRODUCT GRID ADJUSTMENTS --- */
.productGrid .product {
  width: 50% !important;
  float: left; }

@media (min-width: 801px) {
  .productGrid .product {
    width: 25% !important; } }

.productGrid .product .card-body {
  padding-left: 5px;
  padding-right: 5px; }

.card-title > a {
  font-size: 14px; }

.price-section {
  font-size: 16px !important; }

/* --- SECTION 4: INLINE STYLES MIGRAPTION --- */
.home-main-title {
  font-size: 32px !important;
  text-align: center;
  margin: 20px 0 40px 0 !important;
  font-weight: 800; }

.homepage-blog-section {
  padding: 60px 0;
  background-color: #ffffff;
  border-top: 1px solid #eee; }

.recent-posts-wrapper {
  background-color: #fbfcfc; }

.hot-blog-header-wrapper {
  text-align: center;
  margin-bottom: 40px; }

.hot-blog-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px; }

.section-title {
  font-size: 2.2rem !important;
  margin: 0 !important;
  font-weight: 800;
  text-transform: uppercase; }

.hot-section-description {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6; }

.arrow-nav {
  font-size: 32px;
  text-decoration: none;
  color: #000;
  line-height: 1; }

.home-blog-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto; }

@media (min-width: 768px) {
  .home-blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px; } }

.blog-card {
  border: 1px solid #e5e5e5;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden; }

.blog-post-figure {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  display: block !important; }

.image-aspect-ratio {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  padding-top: 62.5% !important;
  background: #f5f5f5;
  overflow: hidden; }

img.forced-image-display {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important; }

.blog-post-body {
  padding: 30px !important;
  flex-grow: 1;
  display: flex;
  flex-direction: column; }

.blog-date {
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px; }

.blog-title {
  font-size: 22px !important;
  margin: 0 0 15px 0 !important;
  line-height: 1.3;
  font-weight: 800; }

.blog-title a {
  text-decoration: none;
  color: #111; }

.blog-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 25px;
  flex-grow: 1; }

.blog-read-more-btn {
  display: inline-block;
  padding: 14px 35px;
  background: #000;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s ease; }

.blog-read-more-btn:hover {
  background: #333; }

.view-all-wrapper {
  text-align: center;
  margin-top: 40px; }

.view-all-btn {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  border-bottom: 2px solid #000;
  padding-bottom: 4px; }

@media (max-width: 767px) {
  .section-title {
    font-size: 1.8rem !important; }
  .blog-title {
    font-size: 19px !important; }
  .blog-read-more-btn {
    width: 100%; } }

/* ==========================================================================
   FINAL FIX: PREVENT HERO BANNER JUMPING & ELIMINATE WHITE SPACE
   ========================================================================== */
html, body {
  margin-top: 0 !important;
  padding-top: 0 !important; }

header.header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important; }

.heroCarousel {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  clear: both !important; }

.heroCarousel-wrapper {
  min-height: 350px; }
