body {
  margin: 0;
  font-family: DM Sans, sans-serif;
  background: #f5f5f5;
}

 .loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* semi-transparent background */
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    justify-content: center;
    align-content: center;
    align-items: center;
  }
 
 
  .loading {
    --speed-of-animation: 0.9s;
    --gap: 6px;
    --first-color: #4c86f9;
    --second-color: #49a84c;
    --third-color: #f6bb02;
    --fourth-color: #f6bb02;
    --fifth-color: #2196f3;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    gap: 6px;
    height: 100px;
   }
   
   .loading span {
    width: 4px;
    height: 50px;
    background: var(--first-color);
    animation: scale var(--speed-of-animation) ease-in-out infinite;
   }
   
   .loading span:nth-child(2) {
    background: var(--second-color);
    animation-delay: -0.8s;
   }
   
   .loading span:nth-child(3) {
    background: var(--third-color);
    animation-delay: -0.7s;
   }
   
   .loading span:nth-child(4) {
    background: var(--fourth-color);
    animation-delay: -0.6s;
   }
   
   .loading span:nth-child(5) {
    background: var(--fifth-color);
    animation-delay: -0.5s;
   }
   
   @keyframes scale {
    0%, 40%, 100% {
     transform: scaleY(0.05);
    }
   
    20% {
     transform: scaleY(1);
    }
   }
 
/* Top Black Strip */
.top-strip {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 8px 10px;
  font-size: 14px;
}

/* Sticky White Header */
.main-header {
  background: #ffffff;
  position: sticky;
  /* Makes it stick */
  top: 0;
  z-index: 1000;
  /* Keeps it above other content */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1300px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-area img {
  width: 421px;
  height: 56px;
  margin-left: 76px;
}

.title-area h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.title-area h1 span {
  color: #0c7b77;
}

.title-area p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #555;
  letter-spacing: 1px;
}

/* Teal Banner */
.university-banner {
  background: linear-gradient(90deg, #1b5e63, #0c7b77);
  color: white;
  padding: 30px 20px;
}

.banner-container {
  max-width: 1300px;
  margin: auto;
}

.banner-left img {
  width: 80px;
  margin-bottom: 15px;
}

.banner-left h2 {
  margin: 0;
  font-size: 26px;
}

.banner-left p {
  margin-top: 5px;
  font-size: 14px;
  opacity: 0.9;
}

.resource-section {
  padding: 100px 80px;
}

.container {
  max-width: 1300px;
  margin: auto;
}

/* Tag */
.section-tag {
  font-size: 12px;
  letter-spacing: 3px;
  color: #0c7b77;
  font-weight: 600;
}

/* Title */
.section-title {
  font-size: 56px;
  font-family: "Georgia", serif;
  font-weight: 700;
  margin: 15px 0;
  color: #111;
}

/* Description */
.section-desc {
  max-width: 650px;
  color: #555;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 60px;
}




.icon {
  font-size: 40px;
  margin-bottom: 20px;
}

/* Number */
.stat-card h3 {
  margin: 0;
  font-size: 28px;
  color: #0c7b77;
  font-weight: 700;
}

/* Label */
.stat-card span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #666;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .resource-section {
    padding: 60px 30px;
  }

  .section-title {
    font-size: 38px;
  }
}

.hero-section {
  padding: 80px 50px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: -550px;
  right: -180px;
  width: 900px;
  height: 900px;

  background: conic-gradient(from 140deg,
      rgba(200, 235, 240, 0.4) 0deg,
      rgba(200, 235, 240, 0.4) 60deg,
      transparent 120deg,
      transparent 360deg);

  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  z-index: 0;
}

.hero-section>* {
  position: relative;
  z-index: 1;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

/* LEFT */
.hero-left {
  flex: 1;
}

.badge {
  display: inline-block;
  border: 1px solid #C0EBEC;
  background: #E0F5F5;
  color: #0D7377 !important;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 11px !important;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 900;
  font-family: 'Playfair Display', serif;
  margin: 0 0 20px;
  color: #18181B;
}

.highlight {
  color: #0c7b77;
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 6px;
  background: #ff9f43;
  z-index: -1;
}

.hero-desc {
  font-size: 17px;
  color: #555;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Search */
.search-box {
  display: flex;
  max-width: 500px;
  background: #F8F6F1 !important;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #E4E4E7 !important;
  margin-bottom: 25px;
}

.search-wrapper {
  position: relative;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 16px;
  font-size: 15px;
  background: #F8F6F1 !important;
  outline: none;
  border: 1px solid #E4E4E7 !important;
}

.search-box :hover {
  border-color: #0c7b77 !important;
  background-color: #ffffff !important;
}

.search-box button {
  background: #0c7b77;
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-size: 18px;
}

/* Mini Stats */
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.mini-stats span {
  background: #f5f5f5;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
}

/* RIGHT */
.hero-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  align-items: end;
}

.stat-card {
  background: #F8F6F1;
  padding: 35px;
  border-radius: 20px;
  border: 1px solid #E4E4E7;
  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.icon-box {
  background: #e0f3f2;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.stat-card h2 {
  margin: 0;
  font-size: 28px;
  color: #111;
  text-align: left;
}

.stat-card p {
  margin: 5px 0 0;
  font-size: 12px;
  letter-spacing: 1px;
  text-align: left;
  color: #777;
}

.stat-card:nth-child(2),
.stat-card:nth-child(4) {
  padding: 20px 35px;
  /* reduce padding */
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-right {
    width: 100%;
  }
}

.subjects-section {
  padding: 90px 50px;
  background: #F8F6F1;
}

.container {
  max-width: 1300px;
  margin: auto;
}

/* Section Heading */
.section-tag {
  font-size: 12px;
  letter-spacing: 3px;
  color: #0c7b77;
  font-weight: 600;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  margin: 15px 0 15px;
  font-family: "Georgia", serif;
  color: #111;
}

.section-desc {
  max-width: 600px;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 50px;
}

/* Grid */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

/* Card */
.subject-card {
  background: #f8f8f6;
  border: 1px solid #e0e0e0;
  padding: 25px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.subject-card h4 {
  margin: 0;
  font-size: 16px;
  color: #111;
  font-weight: 600;
}

.subject-card span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #0c7b77;
}

/* Hover Effect */
.subject-card:hover {
  transform: translateY(-5px);
  border-color: #0c7b77;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.consortium-section {
  padding: 80px 100px;
  background: #fff;
}

.consortium-container {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  max-width: 1300px;
  margin: auto;
}

/* LEFT SIDE */
.left {
  flex: 1;
  position: relative;
}

.tag {
  font-size: 12px;
  letter-spacing: 2px;
  color: #0c7b77;
  font-weight: 600;
}

.year-bg {
  position: absolute;
  /* font-family: 'Space Mono', monospace; */
  top: 0px;
  left: 0;
  font-size: 96px;
  font-weight: 800;
  color: #dcdcdc;
  z-index: 0;
}

.left h1 {
  font-size: 42px;
  font-weight: 700;
  margin-top: 80px;
  line-height: 1.2;
  color: #111;
  position: relative;
  z-index: 1;
}

.description {
  margin-top: 25px;
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  max-width: 480px;
}

.btn-learn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 22px;
  border-radius: 30px;
  background: #e6e6e6;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: 0.3s ease;
}

.btn-learn:hover {
  background: #0c7b77;
  color: white;
}

/* RIGHT SIDE */
.right {
  flex: 1;
}

.timeline-item {
  display: flex;
  gap: 15px;
  padding: 25px 0;
  border-bottom: 1px solid #ddd;
}

.timeline-item:last-child {
  border-bottom: none;
}

.dot {
  width: 10px;
  height: 10px;
  background: #0c7b77;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.timeline-item p {
  margin: 0;
  color: #333;
  line-height: 1.6;
  font-size: 15px;
}

.timeline-item strong {
  color: #000;
}

.footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 60px 80px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}


/* logo container */
.logo-box1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

/* VTU badge */
.logo1 {
     background: linear-gradient(135deg, #0D7377 0%, #14B8A6 100%);
  padding: 10px 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
  
    border-radius: 8px;
    letter-spacing: 1px;
}

/* Library Hub text */
.logo-box1 h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}
.footer-desc {
  margin-top: 20px;
  line-height: 1.6;
  max-width: 350px;
  font-size: 14px;
}

/* Social Icons */
.social-icons {
  margin-top: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #00b894;
  color: white;
}

/* Headings */
.footer-col h3 {
  color: white;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* Links */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 14px;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #00b894;
}

/* Bottom */
hr {
  border: 0.5px solid #1e293b;
  margin: 40px 0 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
  margin-left: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #00b894;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-links a {
    margin-left: 10px;
    margin-right: 10px;
  }
}

.library-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.library-item {
  color: #000;
}

.library-item:hover {
  background: linear-gradient(90deg, #2C3E50 0%, #4CA1AF 100%);
  color: #fff;
  transform: translateX(4px);
}

.library-item:hover small {
  color: rgba(255, 255, 255, 0.7);
}

.library-item small {
  color: #6c757d;
  font-size: 13px;
}

.library-item i {
  opacity: 0.4;
  transition: opacity 0.2s;
}

.library-item:hover i {
  opacity: 1;
}

.library-list {
  position: absolute;
  /* THIS makes it float */
  top: 100%;
  left: 0;
  width: 80%;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  max-height: 250px;
  overflow-y: auto;
}


.uni-banner {
  background: linear-gradient(135deg, #1a3a4a 0%, #0D7377 100%);
  padding: 18px 6%;
  border-bottom: 3px solid #D97706 !important;

}

.uni-banner-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.uni-banner-kannada {
  font-size: 16px;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  margin-bottom: 2px;
}

.uni-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.uni-banner-english {
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.uni-banner-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}
  @media (max-width: 600px) {
    .uni-banner-inner {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .uni-banner-logo {
      width: 400px;
      margin-bottom: 8px;
    }

    .uni-banner-text {
      flex: unset;
    }

    .uni-banner-kannada,
    .uni-banner-english,
    .uni-banner-sub {
      font-size: 14px;
    }
  }



/* ═══════════════════════════════
   RESOURCES PAGE
═══════════════════════════════ */
/* Resources top nav */
.res-topnav {
  background: white;
  border-bottom: 1px solid #e4e4e7;
  padding: 0;
  position: sticky;
  top: 0;
   z-index: 92; 
}

.res-topnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 56px;
  padding: 0 32px 0 calc(260px + 32px);
}

.res-nav-link {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #71717A;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.res-nav-link:hover {
  color: #181818;
  background: #f8f6f1;
}

.res-nav-link.active {
  color: #0d7377;
  font-weight: 600;
  background: #e0f5f5;
}

.res-nav-link.active::after {
  display: none;
}

.res-spacer {
  flex: 1;
}

.res-search {
  width: 240px;
  padding: 8px 14px 8px 36px;
  border: 1.5px solid #e4e4e7;
  border-radius: 9px;
  font-size: 13px;
  color: #181818;
  background: #f8f6f1;
  outline: none;
  transition: all 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2371717A' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}

.res-search:focus {
  border-color: #0d7377;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.res-search::placeholder {
  color: #71717A;
}

.res-bookmarks-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: #f8f6f1;
  border: 1.5px solid #e4e4e7;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
  white-space: nowrap;
}

.res-bookmarks-btn:hover {
  border-color: #0d7377;
  color: #0d7377;
}

.res-bm-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #0d7377;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.res-notif-btn {
  width: 36px;
  height: 36px;
  background: #f8f6f1;
  border: 1.5px solid #e4e4e7;
  border-radius: 9px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.18s;
  margin-left: 4px;
}

.res-notif-btn:hover {
  border-color: #0d7377;
}

 .menu-bar{
    display:none;
    font-size:22px;
    cursor:pointer;
    padding:8px 12px;
}

@media (max-width:768px){
    .menu-bar{
        display:block !important;
    }
}

/* Resources layout */
.res-layout {
  display: flex;
  min-height: calc(100vh - 56px);
}

/* Sidebar */
.res-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid #E4E4E7;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.res-sidebar-college {
  padding: 0;
  flex-shrink: 0;
}

.res-sidebar-img {
  width: 100%;
  height: 33%;
  /* margin-top: 23%; */
  object-fit: cover;
  background: linear-gradient(135deg, #e0f5f5 0%, #c0ebec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.res-sidebar-img img {
  width: 100%;
  height: 90%;
  object-fit: cover;
}

.res-sidebar-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
}

.res-college-info {
  padding: 16px 20px 14px;
  /* margin-top: 20%; */
  border-bottom: 1px solid #E4E4E7;
}

.res-college-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: black;
  line-height: 1.35;
  margin-bottom: 4px;
}

.res-college-meta {
  font-size: 11.5px;
  color: grey;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Sidebar nav */
.res-sidenav {
  padding: 12px 12px;
  flex: 1;
}

.res-sidenav-section {
  margin-bottom: 4px;
}

.res-sidenav-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: grey;
  padding: 8px 8px 4px;
}

.res-sidenav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: rgb(57, 54, 54);
  cursor: pointer;
  transition: all 0.18s;
  margin-bottom: 1px;
}

.res-sidenav-item:hover {
  background: #f8f6f1;
  color: black;
}

.res-sidenav-item.active {
  background: #e0f5f5;
  color: #0d7377;
  font-weight: 600;
}

.res-sidenav-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: DM Sans, sans-serif;
}

.res-sidenav-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.res-sidenav-badge {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: #f8f6f1;
  border: 1px solid #E4E4E7;
  color: grey;
  padding: 2px 7px;
  border-radius: 100px;
}

.res-sidenav-item.active .res-sidenav-badge {
  background: #0d7377;
  border-color: #0d7377;
  color: white;
}
@media (max-width: 767.98px) {
    .res-topnav,
    .res-topnav-inner {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        left: 0 !important;
    }

    .res-main {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .res-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 270px;
        height: 100vh;
        z-index: 1050;
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(.4, 0, .2, 1);
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }

    .res-sidebar.show {
        left: 0;
    }
}
@media (max-width: 767.98px) {
    .res-topnav {
        width: 100% !important;
        left: 0 !important;
        margin-left: 0 !important;
        position: fixed !important;
        top: 0 !important;
        z-index: 999 !important;
        height: 48px !important;
        padding: 0 !important;
    }

    .res-topnav-inner {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        padding: 0 8px !important;
        gap: 4px !important;
        width: 100% !important;
        height: 48px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .res-main {
        margin-top: 48px !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .menu-bar {
        flex-shrink: 0 !important;
        font-size: 20px !important;
    }

    .res-nav-link {
        font-size: 11px !important;
        padding: 4px 6px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }


    .res-notif-btn {
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }
}


.res-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px 36px 60px;
  background: #f8f6f1;
  min-height: 100vh;
}

/* Category section */
.pub-category {
  margin-bottom: 48px;
}

.pub-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E4E4E7;
}

.pub-category-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: black;
}

.pub-category-count {
  font-size: 13px;
  color: grey;
  background: white;
  border: 1px solid #E4E4E7;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
}

/* Publisher cards */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.pub-card {
  background: white;
  border: 1.5px solid #E4E4E7;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.pub-card:hover {
  border-color: #0d7377;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.pub-card-logo {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
  border-bottom: 1px solid #E4E4E7;
}

.pub-card-logo img {
  max-width: 100%;
  max-height: 95px;
  object-fit: contain;
}

.pub-card-logo .pub-logo-fallback {
  font-size: 13px;
  font-weight: 700;
  color: #0d7377;
  text-align: center;
  line-height: 1.3;
}

.pub-card-body {
  padding: 14px 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pub-card-name {
  font-size: 14px;
  font-weight: 600;
  color: black;
  line-height: 1.35;
  margin-bottom: auto;
}

.pub-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #0d7377;
  background: #e0f5f5;
  padding: 3px 8px;
  border-radius: 100px;
  margin-top: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: fit-content;
}

.pub-card-foot {
  padding: 10px 16px 14px;
  display: flex;
  gap: 8px;
}


.bookmark-card {
  background: white;
  border: 1.5px solid #E4E4E7;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.bookmark-card:hover {
  border-color: #0d7377;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}





.btn-access {
  flex: 1;
  padding: 9px 12px;
  background: #0d7377;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}

.btn-access:hover {
  background: #0a5e5b;
}

.btn-bookmark {
  width: 36px;
  height: 36px;
  border: 1.5px solid #E4E4E7;
  background: #f8f6f1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.18s;
  flex-shrink: 0;
}

.btn-bookmark:hover {
  border-color: #c0ebec;
  background: #b2e0e0;
}

.btn-bookmark.bookmarked {
  background: #b2e0e0;
  border-color: #c0ebec;
}

/* Resources header strip */
.res-header-strip {
  background: linear-gradient(135deg, #1a3a4a 0%, #0d7377 100%);
  padding: 24px 36px;
  margin: -32px -36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.res-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.res-header-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}

.res-header-stats {
  display: flex;
  gap: 24px;
}

.res-header-stat {
  text-align: center;
  color: white;
}

.res-header-stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.res-header-stat-label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* Filter pills */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-pill {
  padding: 6px 16px;
  border: 1.5px solid #E4E4E7;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: rgb(57, 54, 54);
  background: white;
  cursor: pointer;
  transition: all 0.18s;
}

.filter-pill:hover {
  border-color: #0d7377;
  color: #0d7377;
}

.filter-pill.active {
  background: #0d7377;
  border-color: #0d7377;
  color: white;
  font-weight: 600;
}
















/* .res-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
} */

.res-title {
  font-size: 22px;
  font-weight: 700;
  color: #0d7377;
}

.res-filter-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.res-filter-buttons .btn {
  border-radius: 20px;
  padding: 6px 12px;
}

.res-stats {
  display: flex;
  gap: 18px;
  align-items: center;
}

.res-stat {
  text-align: center;
  color: #0d7377;
}

.res-stat .count {
  font-weight: 700;
  font-size: 18px;
}

.com-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.res-card {
  background: white;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}

.res-card-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.res-card-title {
  font-weight: 700;
  color: #123;
  font-size: 16px;
}

.res-card-tag {
  font-size: 12px;
  color: #0d7377;
  font-weight: 700;
  background: #eaf7f7;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-block;
}

.res-card-desc {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  flex: 1;
}

.res-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.res-access-btn {
  background: #0d7377;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.res-pin-btn {
  background: transparent;
  border: 1px solid #e4e4e7;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

/* Favourite Compact Card */
.fav-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 15px;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* prevent cards from shrinking vertically when container is constrained */
  flex: 0 0 auto;
}

.fav-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.2s;
}

.fav-card:hover {
  background: #fff;
  border-color: #0d9488;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}

.fav-card:hover::before {
  opacity: 1;
}
.usage-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* prevent cards from shrinking vertically when container is constrained */
  flex: 0 0 auto;
  margin: 8px;
  width: 32%;
}

.usage-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.2s;
}

.usage-card:hover {
  background: #fff;
  border-color: #0d9488;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}

.usage-card:hover::before {
  opacity: 1;
}

.fav-logo {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fav-logo img {
  max-width: 100%;
  max-height: 80%;
  object-fit: contain;
}

.fav-logo span {
  font-weight: 600;
  font-size: 14px;
  color: #0f4c5c;
}

.fav-content {
  flex: 1;
}

.fav-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.fav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-access-sm {
  background: #0f4c5c;
  color: white;
  border: none;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-access-sm:hover {
  opacity: 0.9;
}

.favouriteBtn {
  background: none;
  border: none;
  font-size: 14px;
  color: #888;
  cursor: pointer;
}

.modal-popup-header {
    background-color: #0D7377 !important;
    color: white !important;
    padding: 5px !important;
}

.modal-popup-header p {
    font-size: 18px !important;
}

.modal-popup-header .add {
    font-size: 24px !important;
}

.modal-popup-header .title {
    font-weight: 500 !important;
}

.content-typeDiv {
    padding: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 8px;
}

.content-typeDiv.selected {
    border-color: #0D7377;
    background-color: #FBFFF2;
}
.content-typeDiv {
    padding: 14px;
    border: 1px solid rgba(33, 33, 33, 0.07);
    border-radius: 5px;
    margin-right: 14px;
}
.selected>.content-typeDiv {
    border: 1px solid #0D7377;
    background-color: #FBFFF2;
}
.btn-add {
    background-color: #0d7377 !important;
    border-radius: 6px !important;
    color: rgb(255, 255, 255) !important;
    font-weight: 500 !important;
}
.btn-newfolder {
    border: 0.7px solid #0d7377 !important;
    border-radius: 6px !important;
    color: #0d7377 !important;
    font-weight: 500 !important;
}


.bookmarkdropdown {
    list-style: none;
    /* removes dots */
    margin: 0;
    padding: 5px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 140px;
    position: absolute;
    z-index: 1000;
}

.bookmarkdropdown li {
    padding: 6px 12px;
}

.bookmarkdropdown li a {
    display: flex;
    /* icon left, text right */
    align-items: center;
    /* vertical align */
    gap: 8px;
    /* space between icon and text */
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.bookmarkdropdown li a:hover {
    background: #f1f1f1;
    border-radius: 4px;
}
.bookmark-card {
    position: relative;
    overflow: visible !important;   /* VERY IMPORTANT */
}

.bookmark-menu {
    position: relative;
}

.bookmark-card-dropdown {
    display: none;
    position: fixed;   /* changed */
    background: #fff;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    width: 130px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 9999;
}
.bookmark-card {
    position: relative;
    z-index: 1;
}

.bookmark-card:hover {
    z-index: 1000;
}
.bookmark-three-dots i {
    color: #0d7377;   /* your theme color */
    font-size: 16px;
}

        /* Subdocument Section Styling */
        .subdocument-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .breadcrumb-nav {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .breadcrumb-item {
            color: #212121B2;
            font-weight: 600;
            margin: 0;
            cursor: pointer;
            font-size: 14px;
        }
        
        .breadcrumb-item:hover {
            color: #1a4d80;
        }
        
        .breadcrumb-item-active {
            font-weight: 600;
            margin: 0;
            font-size: 14px;
            color: #212121;
        }
        
        .breadcrumb-separator {
            padding: 0 4px;
            color: #666;
            font-size: 14px;
        }
        
        .subdocument-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-add-mobile {
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 18px;
        }
        
        .subdocument-content {
            padding: 0;
        }
        
        .subdocument-container {
            padding: 20px;
        }
        .folder-count-badge {
    position: absolute;
    top: -6px;
    right: 22px;
    background: #0d7377;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 50px;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.bookmarkdropdown {
    position: absolute;
    top: 60px;
    left: 30px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px 0;
    min-width: 120px;
    z-index: 999;
    list-style: none;
    margin: 0;
}

.bookmarkdropdown li a {
    display: flex;
    align-items: center;
    gap: 9px;
  padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #344054;
    text-decoration: none;
    transition: background .15s, color .15s;
    cursor: pointer;
}

.bookmarkdropdown li a:hover {
    background: #f5f8ff;
    color: #0d7377;
}

/* Icon colors per action */
.bookmarkdropdown li:nth-child(1) a i { color: #0d7377; }
.bookmarkdropdown li:nth-child(2) a i { color: #f59e0b; }
.bookmarkdropdown li:nth-child(3) a i { color: #ef4444; }

.bookmarkdropdown li:nth-child(3) a:hover {
    background: #fff5f5;
    color: #ef4444;
}

/* Divider between items */
.bookmarkdropdown li + li {
    border-top: 1px solid #f0f2f5;
}

/* Small arrow pointer */
.bookmarkdropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 14px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1.5px solid #e2e8f0;
    border-top: 1.5px solid #e2e8f0;
    transform: rotate(45deg);
}
/* Bookmark card 3-dot dropdown */
.bookmark-card-dropdown {
    position: absolute;
    right: 0;
    bottom: 100%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 4px 0;
    min-width: 120px;
    z-index: 999;
    list-style: none;
    margin: 0;
}

.bookmark-card-dropdown li {
    border-top: 1px solid #f0f2f5;
}

.bookmark-card-dropdown li:first-child {
    border-top: none;
}

.bookmark-card-dropdown li .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: #344054;
    width: 100%;
    text-align: left;
    border-radius: 0;
    transition: background .15s, color .15s;
}

.bookmark-card-dropdown li:first-child .btn:hover {
    background: #f5f8ff;
    color: #0d7377;
}
.bookmark-card-dropdown li:first-child .btn i { color: #f59e0b; }

.bookmark-card-dropdown li:last-child .btn:hover {
    background: #fff5f5;
    color: #ef4444;
}
.bookmark-card-dropdown li:last-child .btn i { color: #ef4444; }

/* Dropdown container */
.dropdown-menu {
    min-width: 160px;
    padding: 8px 0;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.2s ease-in-out;
}

/* Dropdown items */
.dropdown-menu li {
    list-style: none;
}

/* Dropdown links */
.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Hover effect */
.dropdown-menu .dropdown-item:hover {
    background-color: #f5f7fa;
}

/* View color */
.dropdown-item.view i {
    color: #17a2b8;   /* teal */
}

/* Edit color */
.dropdown-item.edit i {
    color: #f39c12;   /* orange */
}

/* Delete color */
.dropdown-item.delete i {
    color: #e74c3c;   /* red */
}

/* Delete hover background */
.dropdown-item.delete:hover {
    background-color: #fdecea;
}

/* Smooth fade */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ══ Pagination styling to match design ══ */
.pagination-demo1 {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-demo1 .page-link {
    width: 32px;
    height: 32px;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    color: #718096 !important;
    cursor: pointer;
    transition: all 0.15s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 !important;
}

.pagination-demo1 .page-link:hover {
    background: #f0fdfa !important;
    border-color: #0d9488 !important;
    color: #0d9488 !important;
}

.pagination-demo1 .page-link.active,
.pagination-demo1 .active .page-link {
    background: #0d9488 !important;
    color: #ffffff !important;
    border-color: #0d9488 !important;
}
.publisher-section {
    position: relative;
    align-self: flex-start;
}

.publisher-header {
    cursor: pointer;
    padding: 8px 14px;
    height: 40px;
    border: 1.5px solid #dee2e6;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    background: #fff;
    user-select: none;
    white-space: nowrap;
}

.publisher-header:hover {
    border-color: #0d7377;
    color: #0d7377;
}

.publisher-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 9999;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 240px;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
}

.publisher-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
}

.publisher-item:hover {
    background: #f0fdfa;
}

.publisher-name { flex: 1; }

.publisher-count {
    color: #94a3b8;
    font-size: 11px;
}

@media (max-width: 767.98px) {
   .res-header-stats {
        width: 100% !important;
        justify-content: space-between !important;
    }
       .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }  
    
    .res-grid {
      padding-left: 35px;
    }
   
    .res-header-strip {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding-left: 57px !important;
        padding-right: 83px !important;
    }
}
@media (max-width:768px){

/* Top row: Titles + Favourites */
.top-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

/* keep titles + fav in same line */
.total-badge{
    order:0;
}

.bookmark-top-btn{
    order:2;
    margin-left:240px;
}

/* pagination below */
.pagination-demo1{
    order:3;
    width:50%;
    display:flex;
    justify-content:center;
    margin-top:8px;
    margin-left: 70px;
}
.pagination-demo1 .page-link{
   width: 22px !important;
   height: 22px !important;
}
.filter-panel{
    order:3;
}

/* alphabet scroll */
.az-row{
    overflow-x:auto;
    white-space:nowrap;
}

/* search responsive */
#azSearchInput{
    width:100% !important;
    max-width:100%;
}
}
@media (max-width: 767.98px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 !important;
        gap: 8px !important;
    }
   #maindocument{
    margin-left: 20px;
   }
    .content {
        padding: 9px !important;
        overflow-x: hidden !important;
    }
     .contentmob {
        padding: 30px !important;
        overflow-x: hidden !important;
    }
    .content .section-head{
      margin-left:5px !important ;
    }
    .section-head{
      margin-left: 30px;
    }
    .stats-grid{
      margin-left: 30px;
    }
    .req-grid{
      margin-left: 30px;
    }
    .com-grid{
      margin-left: 30px;
    }
    .mobile-left-space {
    margin-left: 20px !important;
  }
}
@media (max-width: 768px) {
    .section-head {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .request-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px 0 !important;
        width: 100% !important;
    }
    
    .request-tabs .add-btn {
        width: 100% !important;
        justify-content: center !important;
        margin-bottom: 6px !important;
    }
    
    .request-tabs .tab-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    #bmSearchInput {
        width: 145% !important;
        margin-bottom: 15px;
        margin-left: 15px;
    }
    .searchmob{
      left:30px !important;
      top:40% !important;
    }
    .searchdocmob{
      left:15px !important;
      top:40% !important;
    }
    #docSearchInput {
        width: 150% !important;
        margin-bottom: 15px;
    }
  .mob{
    margin-left: 6px !important;
  }
  .folder-count-badge{
    right: 5px !important;
  }
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
    }
    
    .modal-content {
        width: 100% !important;
    }
}
@media (max-width: 768px) {
    .row.g-1.mb-4 .col-auto .dropdown {
        top: 0 !important;
        right: 0 !important;
        position: absolute !important;
    }

    .row.g-1.mb-4 .col-auto .position-relative {
        width: 90px !important;
        margin: 0 auto !important;
    }
}
@media (max-width: 768px) {
    .d-flex.align-items-center.justify-content-between.mb-3 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    #fileadd-sub {
        width: 100% !important;
        justify-content: center !important;
    }
    .row.g-1.mb-4 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .row.g-1.mb-4 .col-auto {
        width: 100% !important;
    }
    .tab-panel{
      margin:0 15px;

    }
}

/* contactus modal */
    .contact-modal-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,0.45);
display:none;
align-items:center;
justify-content:center;
z-index:5000;
}

.contact-modal{
width:520px;
background:white;
border-radius:14px;
overflow:hidden;
font-family:Segoe UI;
box-shadow:0 20px 40px rgba(0,0,0,0.25);
}

.contact-header{
background:#243659;
color:white;
padding:10px 20px;
display:flex;
justify-content:space-between;
align-items:center;
}

.contact-title{
display:flex;
gap:12px;
align-items:center;
}

.contact-title h3{
margin:0;
font-size:20px;
}

.contact-title p{
margin:2px 0 0;
font-size:13px;
opacity:.8;
}

.contact-close{
background:none;
border:none;
color:white;
font-size:18px;
cursor:pointer;
}

.contact-body{
padding:25px;
display:grid;
grid-template-columns:1fr 1fr;
gap:18px;
background:#ffffff;
}

.contact-card{
background:#fdfaf4;
border-radius:12px;
padding:10px;
text-align:center;
border:1px solid #eee;
}

.contact-card span{
display:block;
font-size:12px;
letter-spacing:1px;
color:#b88900;
margin-top:6px;
}

.contact-card p{
margin:6px 0 0;
font-weight:600;
}

.contact-card.full{
grid-column:span 2;
}

.circle{
width:48px;
height:48px;
margin:auto;
border-radius:50%;
background:#1f2a44;
color:white;
display:flex;
align-items:center;
justify-content:center;
font-size:20px;
}

.contact-footer{
display:flex;
justify-content:flex-end;
align-items:center;
padding:15px 20px;
border-top:1px solid #eee;
}

.contact-footer button{
background:#1f2a44;
color:white;
border:none;
padding:8px 18px;
border-radius:6px;
cursor:pointer;
}
/* overlay */
.contact-modal-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,0.45);
display:flex;
align-items:center;
justify-content:center;
z-index:5000;

opacity:0;
visibility:hidden;
transition:opacity 0.3s ease, visibility 0.3s ease;
}

/* when modal opens */
.contact-modal-overlay.show{
opacity:1;
visibility:visible;
}

/* modal box */
.contact-modal{
width:520px;
background:white;
border-radius:14px;
overflow:hidden;
box-shadow:0 20px 40px rgba(0,0,0,0.25);

transform:translateY(40px);
opacity:0;
transition:all 0.35s ease;
}


.contact-modal-overlay.show .contact-modal{
transform:translateY(0);
opacity:1;
}



@media (max-width: 768px) {

    #contactModal {
        width: 100% !important;
        max-width: 100vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
        padding:0 20px;
    }
    #contactModal .contact-item,
    #contactModal .contact-info {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    #contactModal p,
    #contactModal span,
    #contactModal a {
        word-break: break-all !important;
        font-size: 13px !important;
    }
}
        /* ── PANEL ── */
        .panel {
            width: 340px;
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
            overflow: hidden;
            animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(30px) scale(0.97);
            }

            to {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }

        /* ── PANEL HEADER ── */
        .panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 20px 16px;
            border-bottom: 1px solid #f1f5f9;
            background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
        }

        .panel-title-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .panel-icon {
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.681);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .panel-title {
            font-family: 'DM Serif Display', serif;
            font-size: 17px;
            color: white;
            letter-spacing: -0.01em;
        }

        .panel-count {
            font-size: 11px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.681);
            color: black;
            padding: 5px 8px;
            border-radius: 20px;
            margin-left: 6px;
        }

        .close-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: none;
            background: rgba(255, 255, 255, 0.15);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
            transition: background 0.15s;
            line-height: 1;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.28);
        }

        /* ── CARDS LIST ── */
        .cards-list {
            padding: 14px;
            display: flex;
            flex-direction: column;
            /* gap: 10px; */
            flex: 1 1 auto;
            box-sizing: border-box;
            /* keep the header visible, allow the list to scroll within the panel */
            max-height: calc(100vh - 72px);
            overflow-y: auto;
        }

        .cards-list::-webkit-scrollbar {
            width: 4px;
        }

        .cards-list::-webkit-scrollbar-track {
            background: transparent;
        }

        .cards-list::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }


        /* Logo Box */
       .logo-box{
    width: 40px;
    height: 40px;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 600;
    font-size: 14px;
    color: #5b21b6;
    margin-bottom: 10px;
    background: #f5f0ff;
}

.logo-box img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-box span{
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

        /* Card Info */
        .card-info {
            flex: 1;
            min-width: 0;
        }

        .card-name {
            font-size: 13.5px;
            font-weight: 600;
            color: #1e293b;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 4px;
        }

        .card-tag {
            display: inline-block;
            font-size: 9.5px;
            font-weight: 600;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            color: #0f766e;
            background: #ccfbf1;
            padding: 5px 7px;
            border-radius: 20px;
        }

        /* Access Button */
        .card-actions {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
            flex-shrink: 0;
        }

        .access-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 7px 12px;
            background: linear-gradient(135deg, #0d9488, #0f766e);
            color: white;
            border: none;
            border-radius: 8px;
            font-family: inherit;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
            white-space: nowrap;
        }

        .access-btn:hover {
            background: linear-gradient(135deg, #0f766e, #115e59);
            box-shadow: 0 3px 10px rgba(13, 148, 136, 0.35);
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
    .filter-scroll-wrapper {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .filter-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }
    .filter-scroll-wrapper .d-flex {
        flex-wrap: nowrap !important;
        white-space: nowrap;
    }
}