/* Base Styles */
:root {
  /* Updated color scheme to match logo */
  --primary-color: #08407c; /* Main accent color - blue from logo */
  --secondary-color: #FF6B6B; /* Secondary accent - coral */
  --accent-color: #00D9C0; /* Additional accent - teal */
  --dark-color: #2D3047; /* Dark blue for headers */
  --light-color: #F8F9FA; /* Light background */
  --gray-color: #6C757D; /* Gray for text */
  --border-color: #E9ECEF; /* Light border */
  --success-color: #28A745; /* Success color */
  --warning-color: #FFC107; /* Warning color */
  --danger-color: #DC3545; /* Danger color */
  --info-color: #17A2B8; /* Info color */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --card-border-radius: 12px; /* Rounded corners */
  --button-border-radius: 8px; /* Button rounded corners */
}

html {
  font-size: 15px; /* Slightly larger base font size */
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7; /* Improved line height for readability */
  color: var(--dark-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #FAFAFA; /* Slightly off-white for better contrast */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition);
  color: var(--primary-color);
}

.btn {
  transition: var(--transition);
  border-radius: var(--button-border-radius);
  padding: 0.6rem 1.5rem; /* Slightly larger padding */
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.btn:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

.btn:hover::after {
  transform: scale(0, 0);
  opacity: 0.2;
  animation: ripple 0.7s;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #003d7a;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
  transform: translateY(-2px);
}

@keyframes ripple {
  0% { transform: scale(0, 0); }
  20% { transform: scale(5, 5); opacity: 0.2; }
  100% { transform: scale(10, 10); opacity: 0; }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

.section-title {
  position: relative;
  margin-bottom: 2.5rem;
  font-size: 2rem;
  letter-spacing: -0.5px;
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* Top Bar */
.top-bar {
  font-size: 0.875rem;
  padding: 8px 0;
  background: var(--primary-color);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Responsive styles for the top bar */
@media (max-width: 767.98px) {
  /* Hide top bar completely on mobile devices */
  .top-bar {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Optimize top bar for medium screens */
  .top-bar {
    font-size: 0.75rem;
    padding: 5px 0;
  }
  
  .top-bar .social-links a {
    width: 26px;
    height: 26px;
    margin-right: 3px;
  }
  
  .top-bar .language-toggle {
    padding: 5px 10px !important;
    min-width: 100px !important;
    font-size: 12px !important;
  }
  
  .top-bar .user-actions {
    font-size: 0.75rem;
  }
}

.top-bar .social-links a {
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  margin-right: 5px;
}

.top-bar .social-links a:hover {
  background-color: #003d7a;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

/* Header */
.main-header {
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgb(179, 68, 68);
  transition: var(--transition);
}

/* Add extra padding to header on mobile to compensate for missing top bar */
@media (max-width: 767.98px) {
  .header-main {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
}

.header-main {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 5px 0;
}

.main-header.scrolled .logo h1 {
  font-size: 2rem;
}

.logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: var(--transition);
  margin: 0;
}

.logo small {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-ad {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box form {
  position: relative;
}

.search-box .form-control {
  padding-right: 40px;
  border-radius: 20px;
  background-color: #f5f5f5;
  border: none;
  transition: var(--transition);
}

.search-box .form-control:focus {
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.search-box button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border-radius: 0 20px 20px 0;
  background-color: transparent;
  color: var(--gray-color);
  border: none;
  padding: 0 15px;
  transition: var(--transition);
}

.search-box button:hover {
  color: var(--primary-color);
}

/* Navigation */
.main-nav {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003d7a 100%);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.main-nav::before,
.main-nav::after {
  content: '';
  position: absolute;
  height: 5px;
  width: 100%;
  left: 0;
}

.main-nav::before {
  top: 0;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color) 50%, var(--info-color));
}

.main-nav::after {
  bottom: 0;
  background: rgba(0,0,0,0.1);
}

.nav-menu {
  flex-wrap: wrap;
}

.nav-menu .nav-link {
  transition: var(--transition);
  border-radius: 0;
  position: relative;
  font-weight: 600;
}

.nav-menu .nav-link:hover {
  background-color: rgba(255,255,255,0.1);
}

.nav-menu .nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: white;
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-menu .nav-link:hover:before {
  width: 70%;
}

.nav-menu .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  z-index: 1050 !important;
}

.nav-menu .dropdown-item {
  transition: var(--transition);
  padding: 8px 15px;
}

.nav-menu .dropdown-item:hover {
  background-color: #f0f8ff;
  padding-left: 20px;
  color: var(--primary-color);
}

/* Main Content */
.main-content {
  min-height: 60vh;
}

/* Article Cards */
.article-card {
  border: none;
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  background-color: white;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.article-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

.article-card .card-img-top {
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 200px;
  object-fit: cover;
}

.article-card:hover .card-img-top {
  transform: scale(1.08);
}

.article-card .card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 48, 71, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
  backdrop-filter: blur(2px);
}

.article-card:hover .card-img-overlay {
  opacity: 1;
}

.article-card .card-body {
  padding: 1.25rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--gray-color);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.category-badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 50rem;
  color: white;
  background: linear-gradient(45deg, var(--primary-color), #003d7a);
  text-decoration: none;
  transition: var(--transition);
}

.category-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(93, 89, 255, 0.2);
}

.article-card .card-title {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-card .card-title a {
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-card .card-title a:hover {
  color: var(--primary-color);
}

.article-card .card-text {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-card .read-more {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: white;
  color: var(--primary-color);
  border-radius: var(--button-border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid white;
}

.article-card .read-more:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(93, 89, 255, 0.2);
}

/* Auth Pages Styles */
.auth-container {
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.auth-image {
  position: relative;
  min-height: 100%;
}

.auth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.auth-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.avatar-icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  padding: 0;
  z-index: 5;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #dee2e6;
}

.separator::before {
  margin-right: 1em;
}

.separator::after {
  margin-left: 1em;
}

.form-floating > .form-control {
  border-radius: 0.5rem;
  border-color: #dee2e6;
}

.form-floating > .form-control:focus {
  border-color: var(--primary-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.access-denied-illustration img {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Top Bar */
.top-bar {
  font-size: 0.875rem;
  padding: 8px 0;
  background: var(--primary-color);
}

.top-bar .social-links a {
  transition: var(--transition);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
}

.top-bar .social-links a:hover {
  background-color: #003d7a;
  transform: translateY(-3px);
}

/* Header */
.main-header {
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: var(--transition);
  margin: 0;
}

.logo small {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-ad {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box form {
  position: relative;
}

.search-box .form-control {
  padding-right: 40px;
  border-radius: 20px;
  background-color: #f5f5f5;
  border: none;
  transition: var(--transition);
}

.search-box .form-control:focus {
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.search-box button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border-radius: 0 20px 20px 0;
  background-color: transparent;
  color: var(--gray-color);
  border: none;
  padding: 0 15px;
  transition: var(--transition);
}

.search-box button:hover {
  color: var(--primary-color);
}

/* Navigation */
.main-nav {
  background-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.nav-menu {
  flex-wrap: wrap;
}

.nav-menu .nav-link {
  transition: var(--transition);
  border-radius: 0;
  position: relative;
  font-weight: 600;
}

.nav-menu .nav-link:hover {
  background-color: rgba(255,255,255,0.1);
}

.nav-menu .nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: white;
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-menu .nav-link:hover:before {
  width: 70%;
}

.nav-menu .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.3s ease;
}

.nav-menu .dropdown-item {
  transition: var(--transition);
  padding: 8px 15px;
}

.nav-menu .dropdown-item:hover {
  background-color: #f0f8ff;
  padding-left: 20px;
  color: var(--primary-color);
}

/* Main Content */
.main-content {
  min-height: 60vh;
}

/* Article Cards */
.article-card {
  border: none;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.article-card .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

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

.article-card .card-body {
  padding: 1.5rem;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--gray-color);
}

.category-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  display: inline-block;
}

.category-badge:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

/* Breaking News */
.breaking-news {
  background: var(--secondary-color);
  overflow: hidden;
  border-radius: 4px;
}

.breaking-news .badge {
  font-size: 0.75rem;
  padding: 5px 10px;
}

/* Featured Articles */
.featured-section {
  margin-bottom: 3rem;
}

.featured-article {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 450px;
  box-shadow: var(--shadow-md);
}

.featured-article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8) 70%);
  color: white;
  padding: 2rem;
  transition: var(--transition);
}

.featured-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.featured-overlay h3 a {
  color: white;
}

.featured-overlay h3 a:hover {
  color: rgba(255,255,255,0.8);
}

.featured-overlay .article-meta {
  color: rgba(255,255,255,0.8);
}

.featured-overlay p {
  color: rgba(255,255,255,0.9);
}

/* Latest Section */
.latest-section {
  margin-bottom: 3rem;
}

/* Sidebar optimization */
.latest-section .row {
  align-items: flex-start;
}

.latest-section .col-lg-4 {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

/* Ensure sidebar cards don't exceed viewport */
@media (min-width: 992px) {
  .latest-section .col-lg-4 .card {
    margin-bottom: 1.5rem;
  }
  
  .latest-section .col-lg-4 .card:last-child {
    margin-bottom: 0;
  }
}

/* Sidebar */
.sidebar-widget {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h5 {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.sidebar-widget h5:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.sidebar-widget .list-group-item {
  padding: 0.75rem 0;
  border-color: #f0f0f0;
  transition: var(--transition);
}

.sidebar-widget .list-group-item:hover {
  background-color: #f8f9fa;
  padding-left: 0.5rem;
}

.sidebar-widget .list-group-item .badge {
  transition: var(--transition);
}

.sidebar-widget .list-group-item:hover .badge {
  background-color: var(--secondary-color);
}

/* Footer */
.main-footer {
  margin-top: 4rem;
  background-color: var(--dark-color);
}

.footer-widget {
  margin-bottom: 2rem;
}

.footer-widget h5 {
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-widget h5:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-widget ul li {
  margin-bottom: 0.75rem;
}

.footer-widget ul li a {
  color: #ddd;
  transition: var(--transition);
}

.footer-widget ul li a:hover {
  color: var(--primary-color) !important;
  padding-left: 5px;
}

.footer-widget .social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  transition: var(--transition);
}

.footer-widget .social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.newsletter-form .input-group {
  margin-top: 1rem;
}

.newsletter-form .form-control {
  border-radius: 4px 0 0 4px;
  border: none;
}

.newsletter-form .btn {
  border-radius: 0 4px 4px 0;
  background-color: var(--primary-color);
  color: white;
  transition: var(--transition);
}

.newsletter-form .btn:hover {
  background-color: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Category Pages */
.category-header {
  background-color: #f8f9fa;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.category-header h1 {
  margin: 0;
}

/* Article Details */
.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: 2.5rem;
}

.article-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2, 
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-tags {
  margin: 2rem 0;
}

.article-tags .badge {
  background-color: #f0f0f0;
  color: var(--gray-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.article-tags .badge:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Comments */
.comment {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
  border-bottom: none;
}

.comment-author {
  font-weight: 600;
}

.comment-date {
  color: var(--gray-color);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .logo h1 {
    font-size: 2rem;
  }

  .nav-menu {
    flex-direction: column;
  }

  .nav-menu .nav-link {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .featured-article {
    height: 350px;
  }

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

/* Special Features */
.article-card .card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.article-card .card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.article-card:hover .card-img-overlay {
  opacity: 1;
}

.article-card .read-more {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transform: translateY(20px);
  transition: var(--transition);
}

.article-card:hover .read-more {
  transform: translateY(0);
}

.article-card .read-more:hover {
  background-color: var(--secondary-color);
}

/* Back to top styles moved to enhanced section below */

/* Search Results */
.search-result {
  transition: var(--transition);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.search-result:hover {
  background-color: #f8f9fa;
  box-shadow: var(--shadow-sm);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Category Cards */
.category-card {
  overflow: hidden;
  border: none;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-card .card-img-wrapper {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.category-card .card-img-top {
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.category-overlay h5 {
  margin: 0;
  font-weight: 700;
}

.category-overlay p {
  opacity: 0.8;
  margin: 0.5rem 0 0;
}

/* Owl Carousel Custom Styling */
.featured-slider .owl-nav {
  position: absolute;
  top: -4rem;
  right: 0;
  display: flex;
}

.featured-slider .owl-prev,
.featured-slider .owl-next {
  width: 40px;
  height: 40px;
  background-color: white !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: var(--dark-color) !important;
}

.featured-slider .owl-prev:hover,
.featured-slider .owl-next:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-2px);
}

.featured-slider .owl-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.featured-slider .owl-dot span {
  background: rgba(255, 255, 255, 0.5) !important;
  transition: var(--transition);
}

.featured-slider .owl-dot.active span {
  background: white !important;
  transform: scale(1.3);
}

/* Animations */
.wow {
  visibility: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInRight {
  animation-name: fadeInRight;
}

/* Related posts slider */
.related-posts-slider {
  margin-top: 1.5rem;
}

.related-posts-slider .owl-nav {
  position: absolute;
  top: -40px;
  right: 0;
}

.related-posts-slider .owl-prev,
.related-posts-slider .owl-next {
  width: 30px;
  height: 30px;
  border-radius: 50% !important;
  background-color: var(--primary-color) !important;
  color: white !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  transition: var(--transition);
}

.related-posts-slider .owl-prev:hover,
.related-posts-slider .owl-next:hover {
  background-color: var(--secondary-color) !important;
}

/* Tùy chỉnh cho logo */
.logo-img {
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: rotate(5deg);
}

/* Hiệu ứng gradient và tối ưu cho navigation */
.main-nav {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003d7a 100%);
}

.nav-menu .nav-link:before {
  background: linear-gradient(to right, transparent, white, transparent);
}

/* Tối ưu cho featured articles */
.featured-article {
  box-shadow: var(--shadow-lg);
}

.featured-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 30%, transparent 50%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

.featured-overlay {
  z-index: 2;
}

/* Article card improvements */
.article-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-card:hover {
  transform: translateY(-8px) scale(1.01);
}

.article-card .card-title a {
  transition: var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-card .card-title a:hover {
  color: var(--primary-color) !important;
}

.article-card .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category card improvements */
.category-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.category-overlay {
  opacity: 0.9;
  transition: var(--transition);
}

.category-card:hover .category-overlay {
  opacity: 1;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8));
}

/* Header scrolled effect */
.main-header.scrolled {
  padding: 5px 0;
}

.main-header.scrolled .logo h1 {
  font-size: 2rem;
}

/* Improved newsletter form */
.newsletter-form .form-control {
  border-radius: 30px 0 0 30px;
  padding-left: 20px;
  height: 45px;
}

.newsletter-form .btn {
  border-radius: 0 30px 30px 0;
  height: 45px;
}

/* Breaking news improvements */
.breaking-news {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #d32f2f 100%);
  border-left: 5px solid #222;
}

/* Badge improvements */
.badge {
  padding: 0.4em 1em;
  transition: var(--transition);
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Article details page improvements */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2, 
.article-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Optimize for long images - aggressive override */
  max-height: 80vh !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Special handling for very tall images in article content */
.article-content img[src*="media"] {
  max-height: 80vh !important;
  width: auto !important;
  object-fit: contain !important;
  background: #f8f9fa !important;
  padding: 1rem !important;
  border: 1px solid #dee2e6 !important;
}

/* Pulse animation for breaking news */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.breaking-news .badge {
  animation: pulse 2s infinite;
}

/* Author info hover effect */
.author-card img {
  transition: var(--transition);
  border: 3px solid transparent;
}

.author-card:hover img {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

/* Custom avatar effect */
.comment-header img,
.author-info img {
  transition: var(--transition);
  border: 2px solid transparent;
}

.comment-header:hover img,
.author-info:hover img {
  border-color: var(--primary-color);
}

/* Hover effect for buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Category Pages with Cover Image */
.category-header {
  height: 300px;
  margin-bottom: 40px;
  overflow: hidden;
}

.category-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.category-header:hover .category-cover {
  transform: scale(1.05);
}

.category-cover .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.category-header .z-index-1 {
  z-index: 1;
}

/* Article image hover effect */
.article-img-wrapper {
  position: relative;
  overflow: hidden;
}

.article-img-wrapper img {
  transition: var(--transition);
}

.article-card:hover .article-img-wrapper img {
  transform: scale(1.1);
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: var(--transition);
}

.article-img-wrapper:hover .hover-overlay {
  opacity: 1;
}

/* Pagination styling */
.pagination {
  margin-top: 2rem;
}

.pagination .page-link {
  border-radius: 30px;
  margin: 0 3px;
  color: var(--dark-color);
  transition: var(--transition);
}

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

.pagination .page-link:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Enhanced blockquote styling */
blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  background-color: #f8f9fa;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

blockquote p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

blockquote footer {
  font-size: 0.9rem;
}

/* Enhanced tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud .badge {
  padding: 8px 12px;
  transition: var(--transition);
}

.tag-cloud .badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* Search results highlight */
.search-highlight {
  background-color: rgba(255, 243, 148, 0.5);
  padding: 0 2px;
}

/* Floating labels for forms */
.form-floating > label {
  color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-color);
}

/* Enhance article img */
.article-content img {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-content img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
}

/* Improve tables in content */
.article-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-content table th,
.article-content table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
}

.article-content table thead {
  background-color: var(--primary-color);
  color: white;
}

/* User menu animation */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate.slideIn {
  animation: slideIn 0.3s ease-out forwards;
}

.dropdown-menu {
  margin-top: 5px !important;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1050 !important;
}

.dropdown-item {
  padding: 8px 15px;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: #f5f8ff;
  padding-left: 18px;
}

.dropdown-item i {
  width: 20px;
  text-align: center;
}

.dropdown-item:hover i {
  color: var(--primary-color);
}

.dropdown-item.text-danger {
  color: var(--danger-color) !important;
}

.dropdown-item.text-danger:hover {
  background-color: rgba(220, 53, 69, 0.08);
}

.dropdown-item.text-danger i {
  color: var(--danger-color);
}

.dropdown-divider {
  margin: 0.3rem 0;
  border-color: var(--border-color);
}

.user-actions a {
  transition: all 0.2s;
}

.user-actions a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

/* Add styles for responsive navbar toggle */
.navbar-toggler {
  padding: 5px 10px;
  z-index: 5;
}

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

@media (max-width: 767px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    z-index: 1000;
    padding: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu {
    flex-direction: column !important;
  }
  
  .nav-menu .nav-item {
    width: 100%;
  }
  
  .top-bar .social-links {
    display: none;
  }
}

/* Authentication Menu Styles */
.nav-menu-auth {
    align-items: center;
}

.nav-menu-auth .nav-link {
    transition: all 0.3s ease;
}

.nav-menu-auth .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.nav-menu-auth .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.nav-menu-auth .btn-outline-light:hover {
    background-color: white;
    color: #333;
    border-color: white;
}

.nav-menu-auth .dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.nav-menu-auth .dropdown-item {
    padding: 10px 20px;
    transition: background-color 0.2s ease;
}

.nav-menu-auth .dropdown-item:hover {
    background-color: #f8f9fa;
}

.nav-menu-auth .dropdown-item button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: inherit;
}

/* Responsive adjustments for auth menu */
@media (max-width: 768px) {
    .nav-menu-auth {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-menu-auth .nav-item {
        width: 100%;
    }

    .nav-menu-auth .nav-link {
        text-align: center;
    }
}

/* News Ticker */
.breaking-news {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.breaking-news .badge {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
  color: var(--primary-color);
  font-weight: 700;
}

.news-ticker-container {
  position: relative;
  height: 32px;
  overflow: hidden;
}

.news-ticker {
  display: flex;
  position: absolute;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

.news-ticker span {
  display: inline-block;
  padding: 0 30px;
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
}

.news-ticker span:after {
  content: '•';
  margin-left: 30px;
}

.news-ticker span:last-child:after {
  content: '';
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

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

/* Modern Card Effects */
.card {
  transition: var(--transition);
  border: none;
  overflow: hidden;
}

.card-hover {
  transform: translateY(-7px);
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hover Effects */
.hover-scale {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale:hover {
  transform: scale(1.1);
}

/* Button Effects */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.7s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary, 
.btn-outline-primary:hover {
  box-shadow: 0 4px 15px rgba(93, 89, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(93, 89, 255, 0.5);
}

/* Enhanced Header and Navigation */
.main-header {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-header.scrolled {
  padding: 5px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo img {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover img {
  transform: rotate(5deg) scale(1.1);
}

/* Modern Category Cards */
.category-card {
  overflow: hidden;
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.category-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 160px;
}

.category-card .card-img-top {
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.category-card:hover .card-img-top {
  transform: scale(1.15);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  text-align: center;
  backdrop-filter: blur(3px);
}

.category-card:hover .category-overlay {
  opacity: 1;
}

.category-overlay h5 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: 0.1s;
  opacity: 0;
}

.category-card:hover .category-overlay h5 {
  transform: translateY(0);
  opacity: 1;
}

.category-overlay p {
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: 0.2s;
}

.category-card:hover .category-overlay p {
  transform: translateY(0);
  opacity: 1;
}

/* Back to Top Button - Enhanced Visibility */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #003d7a 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
  text-decoration: none;
}

.back-to-top.show {
  opacity: 0.9;
  visibility: visible;
  bottom: 30px;
}

.back-to-top:hover {
  background: linear-gradient(135deg, #003d7a 0%, var(--primary-color) 100%);
  color: white;
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 86, 179, 0.5);
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.4);
}

.back-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(93, 89, 255, 0.3);
}

.nav-menu {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-menu .nav-link {
  transition: var(--transition);
  border-radius: 0;
  position: relative;
  font-weight: 600;
  padding: 0.5rem 0.75rem !important;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .nav-menu .nav-link {
    padding: 0.5rem 0.6rem !important;
    font-size: 0.95rem;
  }
}

@media (min-width: 1400px) {
  .nav-menu .nav-link {
    padding: 0.5rem 0.85rem !important;
  }
}

/* Tối ưu kích thước logo cho không gian header */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .logo-box {
    width: 65px !important;
    height: 65px !important;
    font-size: 1.8rem !important;
  }
  
  .logo h1 {
    font-size: 1.9rem !important;
  }
  
  .logo small {
    font-size: 0.9rem;
  }
}

@media (max-width: 1199.98px) {
    .logo-box {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.6rem !important;
    }
    
    .logo h1 {
        font-size: 1.6rem !important;
    }
    
    .logo small {
        font-size: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .logo-box {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.4rem !important;
        margin-right: 10px !important;
    }
    
    .logo h1 {
        font-size: 1.4rem !important;
    }
    
    .logo small {
        font-size: 0.8rem;
    }
}

/* Base styles for logo-box */
.logo-box {
    display: inline-flex;
    align-items: center;
    background: #2d3142;
    color: white;
    width: 75px;
    height: 75px;
    justify-content: center;
    font-weight: bold;
    font-size: 2rem;
    margin-right: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Logo image styles */
.logo-image {
    max-height: 38px;
    width: auto !important;
    margin-right: 0;
    transition: all 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.4rem !important;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text from wrapping */
}

.tagline {
    display: block;
    line-height: 1;
}

.tagline small {
    font-size: 0.75rem;
    letter-spacing: 0.25px;
    white-space: nowrap; /* Prevent text from wrapping */
}

@media (max-width: 767.98px) {
    .logo-image {
        max-height: 34px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem !important;
    }
    
    .tagline small {
        font-size: 0.65rem;
    }
}

/* Text gradient for logo text */
.text-gradient {
    color: #003366 !important;
    background: linear-gradient(135deg, #003366, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo text container styles */
.logo {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.logo > div {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Base styles for logo text */
.logo h1 {
    font-size: 1.4rem !important;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text from wrapping */
}

.logo small {
    font-size: 0.75rem;
    letter-spacing: 0.25px;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Logo image styles */
.logo-image {
    max-height: 42px;
    width: auto !important;
    margin-right: 8px;
    transition: all 0.3s ease;
}

/* Navigation links larger size */
.nav-menu .nav-link {
    transition: var(--transition);
    border-radius: 0;
    position: relative;
    font-weight: 600;
    padding: 0.5rem 0.85rem !important;
    font-size: 1.1rem;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .nav-menu .nav-link {
        padding: 0.5rem 0.7rem !important;
        font-size: 1rem;
    }
}

@media (min-width: 1400px) {
    .nav-menu .nav-link {
        padding: 0.5rem 0.95rem !important;
        font-size: 1.1rem;
    }
}

/* Newsletter Modal */
.modal-header.bg-primary {
  background: linear-gradient(135deg, var(--primary-color), #003d7a) !important;
}

#newsletterModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: var(--shadow-lg);
}

#newsletterModal .modal-header {
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#newsletterModal .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

#newsletterModal .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #003d7a);
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#newsletterModal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

/* News Ticker styles */
.trending-news-ticker {
    overflow: hidden;
}

.rounded-custom {
    border-radius: 4px;
}

.news-ticker-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.news-ticker {
    white-space: nowrap;
    display: flex;
    animation: tickerAnimation 30s linear infinite;
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 30px;
    transition: all 0.3s ease;
}

.news-ticker-item:hover {
    color: var(--bs-primary);
    cursor: pointer;
}

.news-ticker-item i {
    margin-right: 8px;
    color: var(--bs-primary);
}

@keyframes tickerAnimation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}