/* custom.css */
.select-dropdown,
.chosen-container .chosen-single {
  font-size: 16px;
  height: 40px;
  padding: 10px;
}

.chosen-container .chosen-drop .chosen-results li {
  font-size: 16px;
  padding: 10px;
}

.chosen-container-single .chosen-single {
  line-height: 40px !important;

  height: 40px !important;
}

/****** NEW MSN CODE ****/
/* RSS Feed Source Styles */
.rssfeed-source {
  display: flex;
  align-items: center;
  justify-content: space-between; /* "Read More" aligned to the right */
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0; /* Optional border for separation */
}

/* Source Information */
.rssfeed-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Adjusts for smaller screens */
  max-width: 70%;
}

.source-logo {
  margin: 0 8px;
  border-radius: 50%; /* Makes the logo circular */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Adds a soft shadow */
}

.source-link {
  text-decoration: none;
  color: var(--link-color);
  font-weight: bold;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 150px; /* Limit width for mobile compatibility */
}

.source-link:hover {
  text-decoration: underline;
  color: #e64a19; /* Hover color */
}

/* Clean Button Styles */
/* Button Hover Animation */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
  background-color: transparent;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover Effect */
.btn-read-more:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Icon Animation */
.btn-read-more i {
  margin-right: 6px;
  transition: transform 0.3s ease;
}

.btn-read-more:hover i {
  transform: translateX(4px); /* Moves the icon slightly to the right */
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
  .rssfeed-source {
    flex-wrap: wrap;
  }

  .rssfeed-info {
    max-width: 100%; /* Allow source information to span the full width */
    margin-bottom: 10px; /* Add spacing between the source and button */
  }

  .btn-read-more {
    width: 100%; /* Full-width button for mobile */
    text-align: center;
  }
}

/* MSN Category Menu Styling */
.msn-categories {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.msn-categories .nav-link {
  background-color: #f9f9f9; /* Soft white background */
  color: #555; /* Dark gray text */
  padding: 10px 15px;
  border: 1px solid #e6e6e6; /* Light border for a subtle card effect */
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow for a clean card look */
}

.msn-categories .nav-link:hover {
  background-color: #f0f5ff; /* Light blue background on hover */
  color: #0078d4; /* Blue text on hover */
  transform: translateY(-2px); /* Slight lift effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Deeper shadow on hover */
}

.msn-categories .nav-link.active {
  background-color: #0078d4; /* MSN Blue for active state */
  color: #fff; /* White text */
  border-color: #0078d4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.home-button i,
.category-button i {
  margin-right: 5px;
  color: inherit; /* Icons inherit text color */
}

/* Default styles for large screens */
/* Default styles for large screens */
.logo-text-large {
  display: inline-block;
  font-size: 1.8rem;
  font-family: Poppins, Helvetica, "sans-serif";
  font-weight: 500;
  color: #623c0e;
  letter-spacing: 0.1rem;
  padding: 4px 10px;
  position: relative;
  text-shadow: 0 0 5px #fff, 0 0 10px rgba(203, 99, 8, 0.9);
}

/* White outline for better visibility */
.logo-text-large::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  color: white;
  font-size: 1.8rem;
  font-weight: 500;
  font-family: Poppins, Helvetica, "sans-serif";
  -webkit-text-stroke: 2px white; /* Strong white outline */
  opacity: 0.8;
}

/* Bubble Container */
.bubble-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 50px;
  pointer-events: none;
}

/* Bubble Animation */
@keyframes bubble-float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  40% {
    opacity: 1;
    transform: translateY(-15px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(1.3);
  }
}

/* General bubble styling */
.bubble {
  position: absolute;
  bottom: 0;
  background: rgba(255, 200, 50, 0.5);
  border-radius: 50%;
  opacity: 0;
  animation: bubble-float 2s infinite ease-in-out;
}

/* Different bubble sizes and random placements */
.bubble:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 5%;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 10px;
  height: 10px;
  left: 30%;
  animation-delay: 0.4s;
}

.bubble:nth-child(3) {
  width: 8px;
  height: 8px;
  left: 50%;
  animation-delay: 0.7s;
}

.bubble:nth-child(4) {
  width: 12px;
  height: 12px;
  left: 75%;
  animation-delay: 1s;
}

.bubble:nth-child(5) {
  width: 57px;
  height: 57px;
  left: 60%;
  animation-delay: 1.3s;
}


.logo-text-small {
  display: none;
}

/* Responsive styling for small screens */
@media (max-width: 768px) {
  .logo-text-large {
    display: none;
    /* Hide full logo text on small screens */
  }

  .logo-text-small {
    display: inline;
    /* Show abbreviated logo text */
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.1rem;
    color: #333;
    /* Adjust color as needed */
  }

  .logo-light,
  .logo-dark {
    width: auto;
    /* Adjust logo width for smaller screens */
    max-height: 30px;
    /* Ensure the logo fits well */
  }
}

/* Featured Post Slider */

.ebook-card {
  border: none;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.ebook-card:hover {
  transform: translateY(-5px);
}

.ebook-cover img {
  height: 200px;
  object-fit: cover;
}

.format-badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
}

.ebook-title {
  text-decoration: none;
  transition: color 0.3s ease;
}
.ebook-title:hover {
  color: #0056b3;
}

.genres-list .badge {
  font-size: 0.8rem;
}

.price-tag {
  font-size: 1.5rem;
}

.thumbnail-container img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.google-auto-placed {
  display: inline-block !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
}


/* Breaking News Ticker */
.breaking-news-ticker {
  position: relative;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.ticker-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

.ticker-label {
  background: rgba(0, 0, 0, 0.2);
  padding: 0 20px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.ticker-scroll {
  animation: scroll-left 60s linear infinite;
  white-space: nowrap;
  line-height: 40px;
  padding-left: 100%;
}

@keyframes scroll-left {
  0% { transform: translate3d(100%, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-item {
  margin-right: 3rem;
}

/* Enhanced Navigation Tabs */
.enhanced-nav-tabs .nav-pills .nav-link {
  border-radius: 25px;
  padding: 12px 20px;
  margin: 0 2px;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 2px solid transparent;
}

.enhanced-nav-tabs .nav-pills .nav-link:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.enhanced-nav-tabs .nav-pills .nav-link.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Enhanced Navigation Sidebar */
.enhanced-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 12px;
  margin: 2px 8px;
  position: relative;
}

.enhanced-nav .nav-link:hover {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #495057;
  transform: translateX(5px);
  text-decoration: none;
}

.enhanced-nav .active .nav-link {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.enhanced-nav .active .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: #ffd700;
  border-radius: 0 4px 4px 0;
}

/* Emergency Widget */
.emergency-widget .emergency-btn {
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 11px;
  padding: 10px 8px;
}

.emergency-widget .emergency-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Status Indicators */
.status-indicator {
  width: 18px;
  height: 18px;
  bottom: 5px;
  right: 5px;
  border: 3px solid white;
}

.verified-badge {
  bottom: -2px;
  right: -2px;
}

/* Activity Timeline */
.timeline-mini .activity-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Community Stats */
.community-stats .stat-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Crisis Banner */
.crisis-banner {
  border-left: 5px solid #dc3545;
  background: linear-gradient(135deg, #fff5f5, #ffeaea);
}

/* Trending Tags */
.trending-tag {
  transition: all 0.3s ease;
}

.trending-tag:hover {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: white !important;
  transform: translateY(-1px);
}

/* Source Items */
.source-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

.source-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* User Suggestions */
.user-suggestion {
  transition: all 0.3s ease;
}

.user-suggestion:hover {
  background: #f8f9fa !important;
}

.hover-bg:hover {
  background: #f8f9fa;
}

/* Publisher Enhanced */
.publisher-enhanced textarea {
  border: none !important;
  background: #f8f9fa !important;
  border-radius: 15px !important;
  padding: 15px 20px !important;
  font-size: 16px !important;
  resize: none !important;
}

.publisher-enhanced textarea:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
  background: white !important;
}

.publisher-btn {
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  border: 1px solid #e9ecef !important;
}

.publisher-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #667eea !important;
}

/* Card hover effects */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Sticky Sidebar */

.js_sticky-sidebar::-webkit-scrollbar {
  width: 6px;
}

.js_sticky-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.js_sticky-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 10px;
}

.js_sticky-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .enhanced-nav-tabs .nav-pills .nav-link {
    padding: 8px 12px;
    font-size: 14px;
  }

  .enhanced-nav .nav-link {
    padding: 12px 15px;
  }

  .emergency-widget .emergency-btn {
    font-size: 10px;
    padding: 8px 4px;
  }

  .ticker-label {
    display: none;
  }

  .publisher-enhanced textarea {
    font-size: 14px !important;
    padding: 12px 15px !important;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}


/* Breaking News Ticker - Working Animation */
.breaking-news-ticker {
  position: relative;
  overflow: hidden;
  height: 45px;
  display: flex;
  align-items: center;
  z-index: 1000;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.ticker-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
}

.ticker-label {
  background: rgba(0, 0, 0, 0.4);
  padding: 0 25px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-right: 3px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-size: 14px;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-scroll {
  animation: scroll-left 60s linear infinite;
  white-space: nowrap;
  line-height: 45px;
  padding-left: 100%;
  font-weight: 500;
}

@keyframes scroll-left {
  0% { transform: translate3d(100%, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-item {
  margin-right: 4rem;
  font-weight: 500;
  font-size: 14px;
}

.ticker-scroll:hover {
  animation-play-state: paused;
}

/* Enhanced Widget Styling */
.featured-news-item:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

.hover-bg-primary:hover {
  background-color: #e7f3ff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .enhanced-nav-tabs .nav-pills .nav-link {
    width: 42px;
    height: 42px;
    padding: 10px;
    margin: 0 2px;
  }

  .enhanced-nav-tabs .nav-pills .nav-link i {
    font-size: 16px;
  }

  .ticker-label {
    padding: 0 15px;
    font-size: 12px;
  }

  .ticker-scroll {
    font-size: 13px;
  }
}

/* Enhanced Navigation Tabs - Working Styles */
.enhanced-nav-tabs .nav-pills .nav-link {
  padding: 12px;
  margin: 0 4px;
  transition: all 0.3s ease;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid transparent;
}

.enhanced-nav-tabs .nav-pills .nav-link i {
  font-size: 18px;
  transition: all 0.3s ease;
}

.enhanced-nav-tabs .nav-pills .nav-link:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.enhanced-nav-tabs .nav-pills .nav-link.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}
/* Floating Action Button Styles */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.fab-main {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  color: white;
  font-size: 24px;
}

.fab-main:hover {
  transform: scale(1.1) rotate(45deg);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.fab-menu {
  position: absolute;
  bottom: 80px;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 15px;
}

.fab-menu.active {
  display: flex;
  animation: fabSlideIn 0.3s ease-out;
}

.fab-option {
  position: relative;
}

.fab-option-inner {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: #667eea;
  font-size: 18px;
  border: 2px solid #f0f0f0;
}

.fab-option-inner:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.fab-option-inner.emergency {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.fab-option-inner.emergency:hover {
  background: #c82333;
  border-color: #c82333;
}

.fab-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fab-tooltip.emergency {
  background: #dc3545;
}

.fab-option:hover .fab-tooltip {
  opacity: 1;
}

@keyframes fabSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fab-container {
    bottom: 20px;
    right: 20px;
  }

  .fab-main {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .fab-option-inner {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .fab-menu {
    bottom: 70px;
  }
}
