:root {
  --primary-color: #000;
  --secondary-color: #f8f9fa;
  --accent-color: #dc3545;
  --dark-blue: #012169;
  --mint-green: #00af50;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
}
.container-custom {
  width: 100%;
  max-width: 1168px;
  margin: 0 auto;
  position: relative;
}

.mw-993 {
  max-width: 993px;
}
.mb-16 {
  margin-bottom: 16px !important;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar {
  position: relative;

  max-height: 60px;
}
.navbar-brand {
  
  color: white;
  background: transparent;
  max-width: 166px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}
.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 6%;
  width: 94%;
  height: var(--bs-border-width);
  border-bottom: var(--bs-border-style) var(--bs-border-color);
  background-color: var(--bs-border-color);
}

.navbar-brand img {
  width: 254px;
  height: 100px;
  padding-top: 16px;
}
.nav-link {
  font-weight: 800 !important;
  color: var(--dark-blue) !important;
}

.nav-link:hover {
  color: var(--mint-green) !important;
}

.search-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--dark-blue);
  padding-right: 8px;
}
.search-icon-btn:hover {
  color: var(--mint-green);
  cursor: pointer;
}
.search-icon-btn .search-input {
  opacity: 0;
  width: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
  border-radius: 50px;
  padding: 4px 8px;
  outline: 1px solid var(--dark-blue);
  font-size: 14px;
  background: transparent;
}
.search-icon-btn.active .search-input {
  opacity: 1;
  width: 340px;
}

.search-icon-btn.active i {
  color: var(--mint-green);
}

.search-results {
  position: absolute;
  top: 46px;
  width: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

.search-results.active {
  display: block;
}

.search-results .result-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  cursor: pointer;
}
.search-results .result-item:hover {
  background-color: #f5f5f5;
}

.search-results .result-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}
.no-result {
  text-align: center;
  padding: 15px;
  color: #999;
}
.login-links {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.login-links a {
  color: var(--deep-blue);
  text-decoration: none;
  font-weight: 800 !important;
}

.login-links a:hover {
  color: var(--mint-green) !important;
}

/* Main Content */
.main-article {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.main-article > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.main-article a {
  color: white;
  text-decoration: none;
}
.main-article a :hover {
  color: var(--mint-green);
}

.overlay-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  border-radius: 8px;
}
.thumbnail-describe {
  position: absolute;
  z-index: 100;
  left: 0;
  bottom: 0;
  color: #fff;
  padding: 0 18px 1rem;
}
.thumbnail-describe h2 {
  font-size: 16px;
  font-weight: 700;
}
.thumbnail-describe h4 {
  font-size: 13px;
}
.article-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.article-content {
  padding: 8px 0px;
}
.article-content > a {
  text-decoration: none;
  color: #333;
}

.article-content > a:hover {
  color: var(--mint-green);
}

.article-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-excerpt {
  color: #666;
  font-size: 13px;
  margin-bottom: 1rem;
  line-height: 17px;
  letter-spacing: 0.06px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
}

.engagement-stats {
  display: flex;
}

.editor-picks {
  background: white;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.editor-picks h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}

.small-article {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  letter-spacing: 0.4px;
  font-weight: 700;
}

.small-article:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.small-article-image {
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.small-article-content {
  flex: 1;
  text-decoration: none;
  color: #333;
}
.small-article-content :hover {
  color: var(--mint-green);
}

.small-article-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.small-article-meta {
  font-size: 0.5rem;
  color: #999;
}

/* Editor's Picks */
.hot-section {
  border-radius: 15px;
}

.hot-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.hot-item:last-child {
  border-bottom: none;
}

.hot-number {
  font-size: 3rem;
  font-weight: bold;
  color: rgb(170, 18, 18);
  min-width: 50px;
}

.hot-content h6 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #333 !important;
}

.hot-meta {
  font-weight: 700;

  font-size: 0.7rem;
  color: #6c757d;
}

.see-all {
  text-decoration: none;
  color: var(--dark-blue);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-weight: 600;
  padding-right: 16px;
}

.see-all:hover {
  color: var(--mint-green);
}

/* Author */

.authors-sidebar {
  padding: 2rem;
  border-radius: 15px;
}

.author-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.author-item:last-child {
  border-bottom: none;
}

.author-avatar-large {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.author-title {
  font-size: 0.6rem;
  font-weight: 600;

  color: #666;
}

/* Footer */
.footer {
  background: var(--mint-green);
  color: white;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.section-header {
  border-bottom: #ccc 1px solid;
  margin-bottom: 14px;
}
.section-title {
  position: relative;
  padding-left: 4px;
  color: var(--dark-blue);
  font-weight: 800;
  font-size: 24px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--mint-green);
}

.license-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.form-control {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.btn-subscribe {
  background-color: var(--mint-green);
  color: var(--dark-blue);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-subscribe:hover {
  background-color: white;
  transform: translateY(-2px);
}

.copyright {
  background-color: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--mint-green);
  color: var(--dark-blue);
  transform: translateY(-3px);
}

.color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin-right: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.swatch-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.swatch-item {
  text-align: center;
  font-size: 0.75rem;
  color: white;
}
/* Mobile Responsive Header Styles */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-blue);
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 0.5rem;
}

.mobile-menu-toggle:hover {
  color: var(--mint-green);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Menu Sidebar */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: white;
  z-index: 999;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  background: var(--mint-green);
}

.mobile-menu-header .navbar-brand {

  color: var(--dark-blue);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu Content */
.mobile-menu-content {
  padding: 1rem 0;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--dark-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background: #f8f9fa;
  color: var(--mint-green);
  transform: translateX(5px);
}

.mobile-nav-link i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

/* Mobile Auth Section */
.mobile-auth-section {
  padding: 1.5rem;
  border-top: 2px solid #eee;
  background: #f8f9fa;
  margin-top: 1rem;
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-auth-buttons .btn {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-btn-login {
  background: var(--dark-blue);
  color: white;
  border: 2px solid var(--dark-blue);
}

.mobile-btn-login:hover {
  background: white;
  color: var(--dark-blue);
}

.mobile-btn-register {
  background: transparent;
  color: var(--dark-blue);
  border: 2px solid var(--dark-blue);
}

.mobile-btn-register:hover {
  background: var(--dark-blue);
  color: white;
}

/* Mobile User Info */
.mobile-user-info {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #eee;
  background: #f8f9fa;
}

.mobile-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 2px solid var(--mint-green);
}

.mobile-user-details h6 {
  margin: 0;
  font-weight: 600;
  color: var(--dark-blue);
}

.mobile-user-details small {
  color: #666;
}

/* Mobile User Menu */
.mobile-user-menu {
  padding: 0.5rem 0;
}

.mobile-user-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.mobile-user-link:hover {
  background: #f0f0f0;
  color: var(--mint-green);
}

.mobile-user-link i {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
}

.mobile-logout-link {
  color: #dc3545 !important;
  border-top: 1px solid #eee;
  margin-top: 0.5rem;
  padding-top: 1rem !important;
}

/* Search adjustments for mobile */
.search-icon-btn .search-input {
  max-width: 200px;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
  .navbar-brand {
    width: 80px;
  }
  .user-info,
  .auth-buttons,
  .author-info,
  #userDropdown {
    display: none !important;
  }
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide desktop navigation */
  .navbar-nav.me-auto {
    display: none;
  }

  /* Adjust search input width */
  .search-icon-btn.active .search-input {
    width: 200px;
  }

  
}

@media (max-width: 767.98px) {

  /* Further mobile optimizations */
  .navbar-brand {
    width: 80px;
  }
  .search-icon-btn.active .search-input {
    width: 100%;
  }

  .container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar {
    padding: 0.5rem 0;
  }
}

@media (max-width: 575.98px) {
  /* Small mobile devices */
  .search-icon-btn.active .logoicon {
    display: none;
  }
  .navbar-brand {
    width: 80px;
    
  }
  .search-icon-btn.active .search-input {
    width: 100%;
  }

  .mobile-menu {
    width: 100%;
    left: -100%;
  }

  .container-custom {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .navbar .navbar-brand {
    display: none !important;
  }
  .navbar-brand {
    width: 80px;
  }
  .navbar::after {
    display: none;
  }
  .navbar-brand img {
    margin-left: 80px;
  }
}

/* Animation for smooth transitions */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.mobile-menu.active {
  animation: slideInLeft 0.3s ease-out;
}

/* Focus states for accessibility */
.mobile-menu-toggle:focus,
.mobile-menu-close:focus,
.mobile-nav-link:focus,
.mobile-user-link:focus {
  outline: 2px solid var(--mint-green);
  outline-offset: 2px;
}

