/*
Theme Name: Amra News
Theme URI: https://amra-news.com/
Author: Yanal Shishani
Description: Amra News website, fully responsive, RTL-supporting and designed for news sites.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: rtl-language-support, news, two-columns, custom-menu, featured-images, translation-ready
Text Domain: amra-news
*/

:root {
  --primary-dark: #1A1A1A;
  --accent-red: #D2232A;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f8f9fa;
}

/* Header & Navigation */
.header-top {
  background-color: var(--primary-dark);
}

.site-logo-img {
  height: 45px;
  width: auto;
}

.site-logo-img-sticky {
  height: 40px;
  width: auto;
}


.search-form .form-control-dark {
  background-color: #333;
  border-color: #555;
  color: #fff;
  transition: all 0.2s ease-in-out;
}

.search-form .form-control-dark::placeholder {
  color: #adb5bd;
}

.search-form .form-control-dark:focus {
  background-color: #444;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 0.25rem rgba(210, 35, 42, 0.25);
}

.search-form .btn-outline-light {
  border-color: #555;
}

.search-form .btn-outline-light:hover {
  background-color: #333;
}

.social-icons a {
  transition: opacity 0.2s ease-in-out;
}

.social-icons a:hover {
  opacity: 0.8;
}

.main-nav {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: padding 0.3s ease-in-out;
}

/* Sticky Header Styles */
.sticky-logo-link,
.sticky-search-icon {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: -1;
}

.main-nav.is-sticky .sticky-logo-link,
.main-nav.is-sticky .sticky-search-icon {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.main-nav.is-sticky .navbar-collapse {
  flex-grow: 0;
}

.main-nav .nav-link {
  position: relative;
  color: #343a40;
  font-weight: 700;
  transition: color 0.2s ease-in-out;
  text-decoration: none;
  padding-bottom: 0.5rem;
}

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: var(--accent-red);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.main-nav .nav-link:hover {
  color: var(--accent-red);
}

.main-nav .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom right;
}

.main-nav .nav-link.active {
  color: var(--accent-red);
}

.main-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Breaking News Ticker */
.ticker-red-container {
  background-color: var(--accent-red);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.ticker-red .ticker-label {
  font-weight: 900;
  font-size: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.ticker-red .ticker-item {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Allow breaking news to wrap to multiple lines on mobile */
@media (max-width: 767.98px) {
  .ticker-red {
    align-items: flex-start !important;
  }
  .ticker-red .ticker-label {
    font-size: 1.1rem;
    padding-top: 2px;
  }
  .ticker-red .ticker-item {
    font-size: 0.95rem;
    white-space: normal;
    padding: 0 0.75rem;
  }
  .ticker-red .ticker-container {
    white-space: normal;
    overflow: visible;
  }
}

.ticker-blue {
  background-color: #0d6efd;
  /* Bootstrap blue */
}

.ticker-blue .ticker-label {
  font-weight: 700;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  padding-left: 0.75rem;
}



/* حركة الشريط – من الشمال إلى اليمين */
@keyframes ticker-scroll-ltr-move {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100%);
  }
}

.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  direction: rtl;
  /* مهم: يخلي العربية تنعرض وتتنقرأ بشكل طبيعي */
}

.scrolling-ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll-ltr-move 120s linear infinite;

  /* مهم جدًا: يمنع أي تلاعب باتجاه/ترتيب الأحرف */
  direction: rtl;
  unicode-bidi: plaintext;
}

.ticker-item {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 0 1.5rem;

  /* تأكيد القراءة الطبيعية داخل كل خبر */
  direction: rtl;
  unicode-bidi: plaintext;
}

.ticker-item:hover {
  text-decoration: underline;
}


/* Add a visual separator */
.scrolling-ticker-text>a:not(:first-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.static-ticker-text {
  font-weight: 700;
  white-space: normal;
  line-height: 1.4;
}

.ticker-container:hover .scrolling-ticker-text {
  animation-play-state: paused;
}


/* Section Title */
.section-title {
  border-bottom: 2px solid var(--accent-red);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 900;
  font-size: 1.75rem;
  color: #212529;
}

.section-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.section-title a:hover {
  color: var(--accent-red);
}


/* Featured News */
.main-featured-carousel .carousel-control-prev,
.main-featured-carousel .carousel-control-next {
  width: 8%;
}

.main-featured-carousel .carousel-control-prev-icon,
.main-featured-carousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  transition: background-color 0.2s ease;
}

.main-featured-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.main-featured-carousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6);
}

.main-featured-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.6;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  border: none;
  margin: 0 5px;
}

.main-featured-carousel .carousel-indicators .active {
  opacity: 1;
  background-color: var(--accent-red);
}

.main-featured-card {
  position: relative;
  border: none;
  overflow: hidden;
}

.main-featured-card .card-img-top {
  transition: transform 0.3s ease-in-out;
}

.main-featured-card:hover .card-img-top {
  transform: scale(1.05);
}

.main-featured-card img {
  height: 100%;
  object-fit: cover;
  border-radius: .375rem;
}

.main-featured-card .card-body {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  border-bottom-right-radius: .375rem;
  border-bottom-left-radius: .375rem;
}

.main-featured-card .card-title {
  font-size: 2.5rem;
  font-weight: 900;
}

.main-featured-card .card-title a {
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.95);
}

/* Editor's Picks */
.editors-picks {
  background-color: #f1f3f5;
  height: 100%;
}

.editors-picks-title {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent-red);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.editors-picks-card {
  border: none;
  background-color: #fff;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.editors-picks-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.editors-picks-card .card-title a {
  color: #212529;
  transition: color 0.2s ease-in-out;
}

.editors-picks-card .card-title a:hover {
  color: var(--accent-red);
}


/* News Cards */
.news-card {
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  overflow: hidden;
  background-color: #fff;
}

.news-card .card-body {
  background-color: #fff;
}

.news-card .card-img-top {
  transition: transform 0.3s ease-in-out;
}

.news-card:hover .card-img-top {
  transform: scale(1.05);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.news-card .card-title a {
  color: #212529;
  transition: color 0.2s ease-in-out;
}

.news-card .card-title a:hover {
  color: var(--accent-red);
}

/* Video Card Overlay */
.video-icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 4.5rem;
  opacity: 0.8;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-card:hover .video-icon-overlay {
  background-color: rgba(210, 35, 42, 0.7);
  opacity: 1;
}

/* Article Page */
.article-body {
  font-size: 1.2rem;
  line-height: 2;
}

.article-body h2 {
  color: #343a40;
}

.article-body blockquote {
  background-color: #f8f9fa;
  border-right: 5px solid var(--accent-red);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

/* Responsive Content in Articles */
.article-body img,
.article-body video {
  max-width: 100%;
  height: auto;
  border-radius: .375rem;
}

.article-body iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: .375rem;
}

/* Featured Video Player Container */
.video-container-wrapper iframe,
.video-container-wrapper video,
.video-container-wrapper object,
.video-container-wrapper embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}


.image-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 30%, transparent 100%);
  color: #fff;
  font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  border-right: 4px solid var(--accent-red);
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: .25rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  background-size: 50% 50%;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Share & Tools Bar */
.share-tools-bar {
  background-color: #f1f3f5;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

.share-btn,
.tool-btn {
  font-weight: bold;
}

.share-btn-facebook {
  background-color: #1877f2;
  color: white;
}

.share-btn-twitter {
  background-color: #000000;
  color: white;
}

.share-btn-whatsapp {
  background-color: #25d366;
  color: white;
}

.share-btn-linkedin {
  background-color: #0a66c2;
  color: white;
}

.share-btn:hover,
.tool-btn:hover {
  opacity: 0.9;
}

.tool-btn {
  background-color: #6c757d;
  color: white;
}

/* ========================================= */
/* Video Section (Dark)                      */
/* ========================================= */
.video-section-dark {
  background-color: #1a1a1a;
  padding: 2.5rem 2rem;
  border-radius: .375rem;
}

.video-section-dark .section-title {
  color: #fff;
}

.browse-all-link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.browse-all-link:hover {
  color: #3395ff;
}

.video-card-dark {
  border: 1px solid transparent;
}

.video-card-dark img {
  border: 1px solid #333;
  transition: border-color 0.3s ease;
}

.video-card-dark:hover img {
  border-color: #007bff;
}

.play-icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, color 0.3s ease;
}

.video-card-dark:hover .play-icon-overlay {
  transform: scale(1.1);
  color: #fff;
}

.video-title a {
  color: #e0e0e0;
  transition: color 0.2s ease;
}

.video-title a:hover {
  color: #007bff;
}

/* ========================================= */
/* Sports Section (Dark)                     */
/* ========================================= */
.sports-section-dark {
  background-color: var(--primary-dark);
}

.sports-section-dark .section-title {
  color: #fff;
  border-bottom-color: #495057;
}

.featured-sport-card-dark {
  position: relative;
  border: none;
  overflow: hidden;
}

.featured-sport-card-dark img {
  transition: transform 0.3s ease-in-out;
}

.featured-sport-card-dark:hover img {
  transform: scale(1.05);
}

.featured-sport-card-dark .card-body {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0) 100%);
}

.featured-sport-card-dark .card-title a {
  color: #fff;
  font-weight: 900;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.featured-sport-card-dark .card-text {
  color: #e9ecef;
}

.sport-list-item-dark {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #495057;
}

.sport-list-item-dark:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sport-list-item-dark img {
  width: 120px;
  height: 90px;
  object-fit: cover;
}

.sport-list-item-dark h5 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #f8f9fa;
  transition: color 0.2s ease;
}

.sport-list-item-dark a:hover h5 {
  color: var(--accent-red);
}

/* ========================================= */
/* Technology Section                        */
/* ========================================= */
.tech-section {
  background-color: #e9ecef;
  border-radius: .375rem;
  padding: 1.5rem;
}

.featured-tech-card {
  position: relative;
  border: none;
  overflow: hidden;
  border-radius: .375rem;
}

.featured-tech-card .card-img {
  transition: transform 0.3s ease-in-out;
  height: 100%;
  object-fit: cover;
}

.featured-tech-card:hover .card-img {
  transform: scale(1.05);
}

.featured-tech-card .card-img-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 20%, rgba(0, 0, 0, 0) 100%);
}

.featured-tech-card .card-title a {
  color: #fff;
  font-weight: 700;
}

.tech-list-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.tech-list-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tech-list-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
}

.tech-list-item h5 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #212529;
  transition: color 0.2s ease;
}

.tech-list-item a:hover h5 {
  color: var(--accent-red);
}

.tech-list-item p {
  color: #495057;
  font-size: 0.9rem;
}

/* ========================================= */
/* Sidebar                                   */
/* ========================================= */
.sidebar {
  position: sticky;
  top: 120px;
  /* Adjust based on sticky header height */
}

.sidebar-widget {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: .375rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent-red);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-post-list {
  list-style: none;
  padding-right: 0;
  counter-reset: post-counter;
}

.sidebar-post-list.un-numbered {
  counter-reset: none;
}

.sidebar-post-list.un-numbered .sidebar-post>a::before {
  content: none;
}

.sidebar-post-list.un-numbered .sidebar-post>a {
  padding-right: 0;
}


.sidebar-post {
  counter-increment: post-counter;
  border-bottom: 1px solid #e9ecef;
}

.sidebar-post:last-child {
  border-bottom: none;
}

.sidebar-post>a {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 1rem 0.5rem;
  margin: 0 -0.5rem;
  transition: background-color 0.2s ease-in-out;
  border-radius: .25rem;
}

.sidebar-post>a::before {
  content: counter(post-counter);
  font-size: 1.5rem;
  font-weight: 900;
  color: #adb5bd;
  margin-left: 1rem;
  min-width: 20px;
  text-align: center;
  transition: color 0.2s ease-in-out;
}

.sidebar-post>a:hover {
  background-color: #f8f9fa;
}

.sidebar-post a:hover h5 {
  color: var(--accent-red);
}

.sidebar-post a:hover::before {
  color: var(--accent-red);
}

.sidebar-post img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: .25rem;
}

.sidebar-post h5 {
  font-size: 1rem;
  font-weight: bold;
  color: #212529;
  transition: color 0.2s ease;
  margin-right: 1rem;
}


/* ========================================= */
/* Page titles & General UI Elements         */
/* ========================================= */
h1,
.page-title {
  font-weight: 900;
  color: #212529;
}

.form-control:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 0.25rem rgba(210, 35, 42, 0.25);
}

.pagination .page-link {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination .page-item.active .page-link {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
}

.pagination .page-link:hover {
  color: var(--accent-red);
}

/* Search Results */
.search-result-item {
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
  overflow: hidden;
}

.search-result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
}

.search-result-item a {
  text-decoration: none;
}

.search-result-item .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-result-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.search-result-item h5 a {
  color: #0d6efd;
}

.search-result-item h5 a:hover {
  text-decoration: underline;
}

.search-result-item .text-success {
  font-size: 0.9rem;
}

/* Contact Page */
.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Breadcrumbs */
.breadcrumb {
  background-color: #e9ecef;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
}

.breadcrumb-item a {
  text-decoration: none;
  color: var(--accent-red);
  font-weight: 700;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item+.breadcrumb-item::before {
  float: right;
  padding-left: var(--bs-breadcrumb-divider-margin-x);
}

/* Advertising Spaces */
.ad-wrapper {
  position: relative;
}

.ad-label {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #e9ecef;
  color: #6c757d;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  border-bottom-right-radius: .25rem;
  z-index: 1;
}

.ad-space {
  text-align: center;
  background-color: #f1f1f1;
  padding: 0.5rem;
  border-radius: .375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.ad-space a {
  display: block;
}

.ad-space img {
  max-width: 100%;
  height: auto;
  border-radius: .25rem;
}

.ad-space-box {
  max-width: 300px;
}

/* Search Modal */
.modal-header .btn-close {
  margin-left: 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  /* RTL friendly */
  width: 45px;
  height: 45px;
  background-color: var(--accent-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #a71b20;
  /* Darker red */
  color: #fff;
}

/* Mobile Share Bar */
.mobile-share-bar {
  display: none;
}

/* ========================================= */
/* Footer                                    */
/* ========================================= */
.footer-main {
  background-color: #2c343f;
  color: #adb5bd;
}

.footer-main h5 {
  color: #fff;
}

.footer-main a {
  color: #adb5bd;
  transition: color 0.2s ease-in-out;
}

.footer-main a:hover {
  color: #fff;
  text-decoration: underline !important;
}

.footer-bottom {
  background-color: var(--primary-dark);
  color: #adb5bd;
}

.footer-bottom a {
  color: #fff;
  transition: color 0.2s ease-in-out;
}

.footer-bottom a:hover {
  color: var(--accent-red);
}

.footer-bottom .list-inline-item a {
  color: #adb5bd;
}

.footer-bottom .list-inline-item a:hover {
  color: var(--accent-red);
}

/* ========================================= */
/* Responsive Design Adjustments             */
/* ========================================= */
@media (min-width: 992px) {
  .editors-picks-card {
    display: flex;
    flex-direction: row;
  }

  .editors-picks-card .card-img-top {
    width: 40%;
    object-fit: cover;
    border-top-left-radius: 0;
    border-top-right-radius: var(--bs-card-inner-border-radius);
    border-bottom-right-radius: var(--bs-card-inner-border-radius);
  }

  .editors-picks-card .card-body {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .editors-picks-card .card-title {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }

  .main-nav .nav-item {
    margin-left: 0.5rem;
    /* margin-right: 0.5rem; */
  }
}


@media (max-width: 991.98px) {
  .main-nav .container {
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
  }

  .main-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
  }

  .main-nav .nav-link {
    padding: 0.5rem;
    border-bottom: none;
  }

  .main-nav .nav-link::after {
    display: none;
  }

  .main-nav .nav-link:hover,
  .main-nav .nav-link.active {
    color: var(--accent-red);
    background-color: #f8f9fa;
    border-radius: .25rem;
  }

  .sidebar {
    position: static;
    margin-top: 2rem;
  }

  .main-nav.is-sticky .navbar-nav {
    margin-right: auto !important;
    margin-left: auto !important;
  }

  /* Mobile Sticky Header Alignment Override */
  .main-nav.is-sticky .container {
    align-items: center;
  }

  .main-nav.is-sticky .sticky-logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-right: 0 !important;
  }

  .main-nav.is-sticky .sticky-search-icon {
    margin-left: 0;
    order: 1;
  }

  .main-nav.is-sticky .navbar-toggler {
    order: 2;
  }
}

@media (max-width: 767.98px) {
  body.is-article-page {
    padding-bottom: 55px;
    /* Height of the share bar */
  }

  .header-top {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .header-top .container>.d-flex {
    width: 100%;
    justify-content: space-between;
  }

  .header-top .search-form {
    flex-grow: 1;
    margin-left: 1rem;
  }

  .header-top .social-icons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
  }

  .header-top .social-icons a {
    margin: 0 !important;
  }

  .main-featured-card .card-body {
    padding: 1rem;
  }

  .main-featured-card .card-title {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .page-title,
  .article-page h1 {
    font-size: 1.75rem;
  }

  /* In-article Share Buttons Mobile Alignment */
  .share-tools-bar .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
  }

  .share-tools-bar .share-buttons .btn {
    margin: 0 !important;
  }

  .share-tools-bar .tools-buttons {
    margin: 0.5rem auto 0;
  }

  /* Adjust Back-to-Top button on article page to avoid share bar */
  body.is-article-page .back-to-top.visible {
    bottom: 70px;
    /* 55px bar height + 15px margin */
  }

  /* Mobile Vertical Spacing Optimization */
  .category-section.mb-4 {
    margin-bottom: 2rem !important;
  }

  .featured-news.mb-5 {
    margin-bottom: 2.5rem !important;
  }

  .tech-section.my-5,
  .sports-section-dark.my-5,
  .video-section-dark.my-5 {
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
  }

  .related-articles-section.mt-5 {
    margin-top: 2.5rem !important;
  }

  /* Mobile Share Bar */
  .mobile-share-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    align-items: stretch;
  }

  .mobile-share-bar .share-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
  }

  .mobile-share-bar .share-link:hover {
    opacity: 0.85;
  }

  .mobile-share-bar .share-link.phone {
    background-color: #5a3f99;
  }

  .mobile-share-bar .share-link.telegram {
    background-color: #0088cc;
  }

  .mobile-share-bar .share-link.whatsapp {
    background-color: #25d366;
  }

  .mobile-share-bar .share-link.twitter {
    background-color: #000000;
  }

  .mobile-share-bar .share-link.facebook {
    background-color: #3b5998;
  }
}

.bg-secondary a,
.article-categories a {
  color: #fff !important;
  text-decoration: none;
}

/* Homepage Wrapper & Skyscrapers */
.homepage-wrapper {
  position: relative;
  overflow-x: clip;
  /* Prevent horizontal scrollbars if skyscrapers slightly overflow on some viewports */
}

.homepage-wrapper .skyscraper {
  position: absolute;
  top: 150px;
  /* offset from the top header */
  width: 160px;
  height: auto;
  z-index: 99;
}

.homepage-wrapper .skyscraper-left {
  left: calc(50% - 660px - 160px - 20px);
  /* Position 20px left of the container */
}

.homepage-wrapper .skyscraper-right {
  right: calc(50% - 660px - 160px - 20px);
  /* Position 20px right of the container */
}

.homepage-wrapper .skyscraper .ad-space {
  width: 160px;
  height: 600px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.homepage-wrapper .skyscraper .ad-label {
  font-size: 11px;
  color: #adb5bd;
  margin-bottom: 4px;
  text-align: center;
}

/* Hide skyscrapers on viewports under 1700px width to prevent overlaps with container content */
@media (max-width: 1699px) {
  .homepage-wrapper .skyscraper {
    display: none !important;
  }
}

/* ========================================= */
/* Print Styles                              */
/* ========================================= */
@media print {
  body {
    background-color: #fff !important;
    color: #000 !important;
  }

  header,
  nav,
  footer,
  .ad-space,
  .ad-wrapper,
  .share-tools-bar,
  .breadcrumb,
  .video-section-dark,
  .sidebar,
  .ticker-blue,
  .ticker-red-container,
  .back-to-top,
  .mobile-share-bar {
    display: none !important;
  }

  .col-lg-8 {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card,
  .card-body {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  a,
  p {
    color: #000 !important;
  }
}