/* ===============================
   Sticky Header & Navigation
================================*/

/* Top header bar (logo + date) */
.top-header-bar {
  position: sticky;
  top: 0;
  z-index: 1020; /* Highest layer */
  background-color: white;
  border-bottom: solid #4506f1;
  padding: 5px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: #222;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.5px;
  margin-left: 10px;
}

.current-date {
  color: #080000;
  font-size: 0.95rem;
  font-weight: 400;
  margin-right: 10px;
}

/* Navbar (blue) just below top-header */
.navbar {
  position: sticky;
  top: 50px; /* height of .top-header-bar */
  z-index: 1030;
  background: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}


/* Sticky black trending bar */
.trending-bar a {
  text-decoration: none;
  margin: 0 15px;
  color: red;
  font-weight: bold;
  white-space: nowrap;
}

.trending-bar a:hover {
  color: yellow;
}


.trending-bar {
  position: sticky;
  top: 120px;
  z-index: 1050;
  background-color: black;
  color: red;

  /* alignment fix */
  display: flex;
  align-items: center;
  gap: 10px; /* space between label and marquee */
  padding: 5px 10px;
}
.trending-bar b {
  white-space: nowrap; /* prevent "Today Trending News :" from wrapping */
}
.trending-bar marquee {
  flex: 1; /* take remaining width */
  width: 60;
}


/* Scrolled effect */
body.scrolled .top-header-bar {
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
body.scrolled .brand-name {
  font-size: 0.5rem;
}

/* ===============================
   Header Color Theme
================================*/
:root {
  --header-bg: linear-gradient(135deg, #0909ee 0%, #16213e 100%);
  --header-text: #ffffff;
  --header-hover: rgba(243, 8, 8, 0.877);
  --nav-active: var(--primary-color);
  --nav-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  --primary-color: #e63946;
  --primary-hover: #d62839;
  --secondary-color: #457b9d;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --border-color: #e9ecef;
  --body-bg: #f5f6fa;
  --card-bg: #ffffff;
  --transition: all 0.3s ease;
}

/* Navigation Links */
.navbar-brand img {
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}
.navbar-brand:hover img {
  transform: scale(1.05) rotate(-5deg);
}
.nav-link {
  color: var(--header-text) !important;
  font-weight: 500;
  padding: 0.75rem 1.25rem !important;
  margin: 0 0.15rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.nav-link:hover {
  background: var(--header-hover);
  transform: translateY(-2px);
}
.nav-link i {
  margin-right: 8px;
  font-size: 0.9em;
}

/* Active Nav */
.nav-item.active .nav-link {
  color: white !important;
  background: rgba(230, 57, 70, 0.2);
  border-left: 3px solid var(--primary-color);
}

/* Underline animation */
.nav-link:after {
  content: '';
  position: relative;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover:after {
  width: 60%;
}

/* Mobile Menu */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* Dropdown */
.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}
.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}
.dropdown-item:hover {
  background: var(--primary-color);
  color: white !important;
}

/* Responsive Header */
@media (max-width: 992px) {
  .navbar-collapse {
    background: var(--header-bg);
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--nav-shadow);
    margin-top: 10px;
  }
  .nav-link {
    padding: 0.75rem !important;
    margin: 0.25rem 0;
  }
  .nav-link:hover:after {
    display: none;
  }
}

/* ===============================
   Base Styles
================================*/
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--body-bg);
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* Main Content */
.container-fluid {
  padding: 0 30px;
}

/* Sidebar Cards */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  background-color: var(--card-bg);
}
.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 1.1rem;
}
.card-body {
  padding: 1.25rem;
}

/* Category List */
.list-unstyled li {
  margin-bottom: 0.5rem;
  transition: var(--transition);
}
.list-unstyled li:hover {
  transform: translateX(5px);
}
.list-unstyled a {
  color: var(--gray-color);
  display: block;
  padding: 0.25rem 0;
}
.list-unstyled a:hover {
  color: var(--primary-color);
}

/* News Cards */
.card-img-top {
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card-img-top:hover {
  transform: scale(1.02);
}
.card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}
.card-title:hover {
  color: var(--primary-color);
}
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 4px;
}
.bg-success {
  background-color: var(--secondary-color) !important;
}
.bg-warning {
  background-color: #f4a261 !important;
}

/* Widgets */
.widget-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-weight: 600;
}
.widget-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}
.widget-title span {
  color: var(--primary-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.page-link {
  border: none;
  color: var(--gray-color);
  margin: 0 5px;
  border-radius: 6px !important;
  transition: var(--transition);
}
.page-link:hover {
  background-color: var(--primary-color);
  color: white;
}


        /* Footer */
footer {
  background-color: var(--dark-color);
  color: rgb(12, 1, 1);
  padding: 30px 0;
  margin-top: 50px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .container-fluid {
    padding: 0 15px;
  }
  
  .col-md-2 {
    display: none;
  }
  
  .col-md-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
    height: 50px;
  }
  
  .card-img-top {
    height: 180px;
  }
}

/* Animations */
.animate__animated {
  animation-duration: 0.5s;
}

/* Owl Carousel Customization */
.owl-carousel .owl-item img {
  border-radius: 8px;
}

.owl-theme .owl-nav [class*='owl-'] {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.owl-theme .owl-nav [class*='owl-']:hover {
  background: var(--primary-color);
}

/* Google Translate Widget */
#google_translate_element {
  margin-left: 15px;
}

.goog-te-gadget {
  font-family: inherit !important;
}

.goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
  padding: 5px !important;
}

.goog-te-menu-value span {
  color: var(--dark-color) !important;
}

.goog-te-menu-value img {
  display: none !important;
}