.linang-card {
  max-width: 320px;
  min-width: 320px;
}

.card-wrapper {
  margin-top: 40px;
  padding-bottom: 40px;
}

.nowrap {
  white-space: nowrap;
}

.white-on-grey {
  color: white;
  position: relative;
  padding: 2rem;
}

.white-on-grey h1 {
  margin: 0;
}

.white-on-grey a {
  color: #c3fffa;
}

.white-on-grey p {
  margin: 0.5rem 0 0 0;
}

#header.white-on-grey {
  margin-top: 50px
}

#headerOverlay {
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 76, 89, 0.5);
  /* Dark overlay - same color as image*/
  backdrop-filter: blur(1px) brightness(1.2);
  /* Blur and darken background */
  z-index: 1;
}

#headerOverlay span,
#headerOverlay h2,
#headerOverlay h1 {
  position: relative;
  z-index: 2;
  /* Bring text above overlay */
}

div#news {
  border: 1px solid black;
}

div#news h3 {
  color: #fff;
  background: #000;
  text-align: center;
  margin-top: 0;
}

div#news dl {
  margin: 0 1em;
}

@media screen and (min-width: 768px) {
  .navbar-wrapper {
    margin-top: 20px;
  }

  .navbar-wrapper .container {
    padding-right: 15px;
    padding-left: 15px;
  }

  .navbar-wrapper .navbar {
    padding-right: 0;
    padding-left: 0;
  }

  .white-on-grey h1 {
    font-size: 63px;
  }
}

@media (min-width: 992px) {}

@media (min-width: 978px) {
  .card-wrapper {
    margin-left: 80px;
  }
}



/* Updates form D/Seek */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --accent-color: #4cc9f0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  scroll-behavior: smooth;
  font-family: Raleway, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fb;
  color: var(--dark-color);
  font-size: initial;
}

/* Header Section */
#header {
  /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
  background: center / 400px no-repeat url("images/portal6.jpg"), #894d4d 50% url("images/portal6.jpg");
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4rem 0;
  /* margin-bottom: 2rem; */
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

#header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center bottom;
}

#header h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#header h2 {
  font-weight: 300;
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Navigation */
/* .category-nav {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 50px;
  z-index: 100;
  padding: 1rem 0;
} */

.category-nav .nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: var(--transition);
  margin: 0 0.2rem;
}

.category-nav .nav-link:hover,
.category-nav .nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

/* Search and Filter */
.search-container {
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
}

.search-box input {
  padding-left: 3rem;
  border-radius: 50px;
  border: 1px solid #e0e0e0;
  height: 50px;
}

.search-box i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  z-index: 5;
}

.filter-buttons .btn {
  border-radius: 50px;
  margin: 0.2rem;
  font-weight: 500;
}

/* Cards */
.app-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  box-shadow: var(--shadow);
  background-color: white;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img-container {
  /* height: 180px; */
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  position: relative;
  border-radius: 0.25rem 0.25rem 0 0; /* match Bootstrap card top corners */
  text-align: center;
}

.card-img-container img {
  max-height: 100%;
  width: auto;
  transition: var(--transition);
}

.app-card:hover .card-img-container img {
  transform: scale(1.05);
}

.card-img-text {
  color: #fff;
  font-size: 2rem; /* large text */
  font-weight: bold;
  padding: 0 10px;
}

/* Indigo gradient */
.gradient-indigo {
  background: linear-gradient(135deg, #3f51b5, #1a237e);
}

/* Orange/Red gradient */
.gradient-orange-red {
  background: linear-gradient(135deg, #ff7043, #d32f2f);
}

/* Dark gradient */
.gradient-dark {
  background: linear-gradient(135deg, #424242, #000000);
}


.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-text {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-footer {
  background-color: transparent;
  border-top: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-weight: 500;
}

.badge-chrome {
  background-color: #f1f3f4;
  color: #4285f4;
}

.badge-edge {
  background-color: #f1f3f4;
  color: #0078d7;
}

/* Category Sections */
.category-section {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.category-icon {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  border-radius: 10px;
  color: white;
}

.category-title {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--dark-color);
  margin: 0;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.copyright {
  border-top: 1px solid #343a40;
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: #adb5bd;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 0.1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 99;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Fixed Full Width Navigation Container */
.category-nav-container {
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 1000;
  left: 0;
  right: 0;
  top: 50px;
}

.category-nav {
  width: 100%;
  padding: 1rem 0;
  margin: 0;
}

/* Navigation Wrapper - Full width with proper scrolling */
.nav-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 transparent;
}

/* Show scrollbar on desktop */
.nav-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.nav-scroll-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.nav-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.nav-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Navigation Content */
.nav-scroll-content {
  display: flex;
  flex-wrap: nowrap;
  padding: 0 15px;
  gap: 0.5rem;
  min-width: min-content;
}

/* Navigation Links */
.nav-link {
  padding: 0.7rem 1.2rem;
  color: var(--dark-color);
  font-weight: 500;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .category-nav {
    padding: 0.8rem 0;
  }

  .nav-scroll-content {
    padding: 0 10px;
    gap: 0.3rem;
  }

  .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Hide full text on very small screens, show icons + short text */
  @media (max-width: 576px) {
    .nav-link {
      padding: 0.5rem 0.8rem;
      font-size: 0.8rem;
    }

    .nav-link span:not(.bi) {
      display: none;
    }

    .nav-link .bi {
      margin-right: 0 !important;
      font-size: 1rem;
    }
  }

  /* Hide scrollbar on mobile for cleaner look */
  .nav-scroll-wrapper {
    scrollbar-width: none;
  }

  .nav-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }
}

/* Desktop Optimizations */
@media (min-width: 769px) {
  .nav-scroll-content {
    justify-content: center;
  }

  /* Ensure container spans full width without overflow */
  .category-nav-container {
    margin-left: 0;
    margin-right: 0;
    left: 0;
    right: 0;
  }
}

/* Ensure no horizontal scroll on body */
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #header h1 {
    font-size: 2rem;
  }

  #header h2 {
    font-size: 1.1rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

}

/* Animation for filtered items */
.fade-in {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}