/* custom.css */
/* Import external stylesheets */
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.navbar-static-top {
    padding: 0;
    background-color: #ffffff !important;
    color: #ffffff !important;
    border-bottom: none !important;
}

.masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  position: relative;
}

.masthead {
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

/* Logo Section */
.navbar-left {
    display: left !important;
    margin-right: auto;
    align-items: center;
    justify-content: flex-start;
    z-index: 1001;
}

.logo img {
    max-height: 100px;
    width: auto;
}

/* Mobile Toggle Button */
.navbar-toggle {
  display: none;
  background-color: transparent;
  border: 2px solid #1F61D6;
  padding: 8px 12px;
  margin: 0;
  order: 3;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.navbar-toggle:hover {
  background-color: #1F61D6;
  border-color: #1F61D6;
}

.navbar-toggle .fa-bars {
  color: #1F61D6;
  font-size: 18px;
  transition: color 0.3s ease;
}

.navbar-toggle:hover .fa-bars {
  color: #ffffff;
}


/* Navigation Container */
#main-navigation-toggle {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    transition: all 0.3s ease;
}

/* Navigation Links */
.section.navigation {
    display: inline-flex;
    align-items: center;
}

.nav-pills {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  list-style: none;
}

.nav-pills > li > a {
    color: #000000 !important;
    padding: 10px 15px;
    font-weight: 500;
    font-size: 20px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: transparent !important;
    transition: all 0.3s ease;
    display: block;
}

/* Create the underline effect using ::after */
.nav-pills > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #002a74; /* Sky Blue */
    border-radius: 5px; /* Curved edges */
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}


.nav-pills > li > a:hover {
    color: #013CA4 !important;
    background: transparent !important;
}

.nav-pills > li > a:hover::after {
    width: 100%; /* Make the underline span the full width */
    left: 0; /* Align to the left */
}

/* Search Form */
.site-search {
    margin-left: 20px;
}

.site-search .field {
    display: flex;
    align-items: center;
    position: relative;
}

.site-search input[type="text"] {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    min-width: 200px;
}

.site-search input[type="text"]::placeholder {
    color: rgba(0, 0, 0, 0.7);
}

.site-search .btn-search {
    background: none;
    border: none;
    color: #ffffff;
    padding: 8px 15px;
    cursor: pointer;
    position: absolute;
    right: 0;
}

/* Account Masthead */
.account-masthead {
    background: linear-gradient(to right, #1F61D6, #001437) !important; 
    padding: 1px 0;
    border-bottom: none !important;
}

.account-masthead .navbar-nav a {
    color: #ffffff !important;
    padding: 5px 15px;
    font-size: 14px;
}

.account-masthead .notifications {
    background-color: transparent;
    color: #ffffff;
}

.account-masthead .username {
    font-weight: bold;
}

/* Mobile Navigation */
.navbar-toggle {
    margin-left: 15px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .masthead .container {
      padding: 0;
    }

    .navbar-toggle {
      display: block;
    }
    
    #main-navigation-toggle {
        width: 100%;
        flex-direction: column;
        padding: 10px 0;
    }
    
    .nav-pills {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-pills > li {
        width: 100%;
        text-align: left;
    }
    
    .nav-pills > li > a {
        padding: 12px 15px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .site-search {
        width: 100%;
        margin: 10px 0;
    }
    
    .site-search input[type="text"] {
        width: 100%;
    }
    
    .navbar-left {
        float: none !important;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Footer Base */
.site-footer {
  flex-shrink: 0; /* Prevents footer from shrinking */
  background-color: #080f24;
  width: 100%;
  padding: 15px 0;
}

/* Footer Layout */
.footer-wrapper {
  width: 100%;
}

.footer-wrapper .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

/* Main Content Wrapper */
[role="main"], 
.main {
    min-height: calc(100vh - 60px);  /* viewport height minus footer height */
    position: relative;
    width: 100%;
}

/* Container styles */
.container {
    width: 100%;
    max-width: 1200px;  /* match your site's container width */
    margin: 0 auto;
}

.footer-links {
  display: flex;
  align-items: center;
}

/* Footer Links Section */
.footer-links ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links li {
  margin: 0;
}

.footer-right p {
  margin: 0;
  padding: 0;
}

.footer-links .list-inline-item:not(:last-child) {
  margin-right: 1.5rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e6e6e6;
  text-decoration: underline;
}

/* Right Section (Powered by & Language) */
.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ffffff;
}

.footer-right .powered-by a {
  color: #8ec7ff; /* Royal blue color */
  text-decoration: none;
}

.footer-right .powered-by {
  margin: 0;
}


/* Custom Language Selector Styles */
/* Language Selector Container */
.language-selector-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  background-color: transparent;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
.language-selector-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dropdown Wrapper */
.select-wrapper {
  position: relative;
  display: inline-block;
}

/* Dropdown Styling */
.language-dropdown {
  appearance: none; /* Remove default arrow */
  padding: 8px 30px 8px 12px;
  font-size: 14px;
  color: #ffffff;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.language-dropdown:hover {
  border-color: #007bff;
  color: #000000;
  background-color: #ffffff;
}

/* Custom Dropdown Arrow */
.dropdown-arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
}

/* Submit Button Styling */
.language-submit-btn {
  padding: 8px 16px;
  font-size: 14px;
  color: #ffffff;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.language-submit-btn:hover {
  background-color: #0056b3;
}

/* Override any existing language selector styles */
.language-selector {
  display: none !important;
}

/* Main Content Adjustment */
.main {
  margin-bottom: 60px;
}

/* Fix for duplicate language selector */
.footer-right .language-selector:not(:first-of-type),
.site-footer .language-selector:not(:first-of-type) {
    display: none !important;
}


/* Tablet and below (768px and down) */
@media (max-width: 768px) {
  
  /* Show the toggle button */
  .navbar-toggle {
    display: block;
    z-index: 1002;
  }
  
  /* Header container adjustments */
  .masthead .container {
    padding: 0 15px;
    flex-wrap: wrap;
  }
  
  /* Logo adjustments */
  .navbar-left {
    flex: 1;
  }
  
  .logo img {
    max-height: 100px;
  }
  
  /* Collapsible navigation container */
  #main-navigation-toggle {
    /* Hidden by default on mobile */
    display: none !important;
    width: 100%;
    order: 4;
    margin-top: 15px;
    margin-left: 0;
    background: white;
    border-top: 2px solid #f0f0f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
  }
  
  /* When expanded */
  #main-navigation-toggle.collapse.in,
  #main-navigation-toggle.collapsing {
    display: block !important;
  }
  
  /* Navigation section adjustments */
  .section.navigation {
    width: 100%;
    display: block;
    padding: 15px 0;
  }
  
  /* Navigation list - stack vertically */
  .nav-pills {
    flex-direction: column;
    width: 100%;
  }
  
  /* Navigation items - full width */
  .nav-pills > li {
    width: 100%;
    margin: 0;
  }
  
  /* Navigation links - mobile styles */
  .nav-pills > li > a {
    padding: 15px 20px;
    font-size: 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #333 !important;
    transition: all 0.3s ease;
  }
  
  /* Remove underline effect on mobile */
  .nav-pills > li > a::after {
    display: none;
  }
  
  /* Mobile hover/active states */
  .nav-pills > li > a:hover,
  .nav-pills > li > a:focus {
    background: #f8f9ff !important;
    color: #1F61D6 !important;
    padding-left: 25px;
  }
  
  /* Last item - no border */
  .nav-pills > li:last-child > a {
    border-bottom: none;
  }
  
  /* Add mobile-specific icons */
  .nav-pills > li > a:before {
    content: '→';
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .nav-pills > li > a:hover:before {
    opacity: 1;
  }
}


@media (max-width: 480px) {
  
  /* Further adjustments for very small screens */
  .masthead .container {
    padding: 0 10px;
  }
  
  .logo img {
    max-height: 35px;
  }
  
  .navbar-toggle {
    padding: 6px 10px;
  }
  
  .navbar-toggle .fa-bars {
    font-size: 16px;
  }
  
  .nav-pills > li > a {
    padding: 12px 15px;
    font-size: 16px;
  }
}


/* Smooth collapse animations */
.collapse {
  transition: height 0.35s ease;
}

.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}


/* Mobile menu slide-in animation */
@media (max-width: 768px) {
  #main-navigation-toggle.collapse.in {
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Stagger animation for menu items */
  .nav-pills > li {
    opacity: 0;
    animation: fadeInStagger 0.3s ease-out forwards;
  }
  
  .nav-pills > li:nth-child(1) { animation-delay: 0.1s; }
  .nav-pills > li:nth-child(2) { animation-delay: 0.2s; }
  .nav-pills > li:nth-child(3) { animation-delay: 0.3s; }
  .nav-pills > li:nth-child(4) { animation-delay: 0.4s; }
  .nav-pills > li:nth-child(5) { animation-delay: 0.5s; }
  
  @keyframes fadeInStagger {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-wrapper {
      flex-direction: column;
      text-align: center;
  }

  .footer-links ul {
      flex-direction: column;
      margin-bottom: 1rem;
  }

  .footer-links .list-inline-item {
      margin: 0.5rem 0;
  }

  .footer-right {
      flex-direction: column;
  }

  .footer-right .powered-by {
      margin: 0 0 1rem 0;
  }
}

/* Focus states */
.navbar-toggle:focus {
  outline: 2px solid #1F61D6;
  outline-offset: 2px;
}

.nav-pills > li > a:focus {
  outline: 2px solid #1F61D6;
  outline-offset: -2px;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



@media (max-width: 768px) {
  
  /* Add backdrop blur effect */
  #main-navigation-toggle.collapse.in {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
  }
  
  /* Add subtle gradient to mobile menu */
  .section.navigation {
    background: linear-gradient(180deg, 
      rgba(255, 255, 255, 1) 0%, 
      rgba(248, 249, 255, 1) 100%);
  }
  
  /* Enhanced mobile link styling */
  .nav-pills > li > a {
    position: relative;
    overflow: hidden;
  }
  
  /* Add ripple effect on tap */
  .nav-pills > li > a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(31, 97, 214, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
  }
  
  .nav-pills > li > a:active::before {
    width: 200px;
    height: 200px;
  }
}


@media (min-width: 769px) {
  
  /* Ensure desktop menu is always visible */
  #main-navigation-toggle {
    display: flex !important;
  }
  
  /* Desktop-specific hover effects */
  .nav-pills > li > a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-pills > li > a:hover {
    transform: translateY(-1px);
  }
}


/* Focus States for Accessibility */
a:focus, button:focus, input:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.custom-promoted-background h1 {
    font-size: 2.5em;
    font-weight: bold;
}

/* Promoted Section: Center alignment */
.custom-promoted-background {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: start; /* Align text content to the center */
    min-height: 400px; /* Set a minimum height for the section */
    background-color: transparent !important; /* Keep background transparent */
    border: none !important; /* Remove any borders */
    box-shadow: none !important; /* Remove shadows */
    padding: 0px; /* Add some padding for spacing */
}

.btn-default-inverted {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    font-size: 20px !important;
    max-width: 400px !important;
    width: fit-content;
    display: block !;
    word-wrap: break-word !important;
    text-align: start !important;
    padding: 15px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    margin: 20px 0;
    line-height: 1.5;
}

.btn-default-inverted:hover {
    background-color: #007bff !important;
    color: #ffffff !important;
    border-color: transparent !important;
    text-decoration: none;
}
  /* Active/Focused state */
  .btn-default-inverted:active, 
  .btn-default-inverted:focus {
    background-color: #0056b3; /* Slightly darker shade */
    color: #fff;
  }
  

/* Center the text inside the intro-container */
.transparent-welcome {
    max-width: auto; /* Limit the width for better readability */
    margin: 0 auto; /* Center the container horizontally */
}

  
/* Title inside the promoted section */
.custom-promoted-background .page-heading {
    line-height: 1.5;
    font-size: 35px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    margin-bottom: 15px !important;
    text-align: left;
    padding-left: 0;
 }
 
 .intro-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
    width: 800px;
 }
 

/* Styling the intro paragraph */

/* Featured media overlay for the home image */
.custom-promoted-background .featured.media-overlay {
    background: transparent !important; /* Remove background */
    padding: 0 !important; /* Remove any padding */
    border: none !important; /* Remove borders */
    box-shadow: none !important; /* Remove any box-shadow */
}

/* Ensure the container is transparent and has no borders */

/* Ensure the container is transparent and has no borders */
.transparent-container {
    background-color: transparent !important; /* Removes background */
    border: none !important;  /* Removes border */
    box-shadow: none !important;  /* Removes box-shadow */
}

/* Make the entire search form transparent and remove unnecessary borders */
.search-form {
    background-color: transparent !important; /* Remove background */
    border: none !important; /* Remove border */
    box-shadow: none !important; /* Remove shadow */
    padding: 0 !important; /* Remove padding for a sleeker look */
}

.module-content.box.custom-promoted-background {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.module-search {
    margin-top: 100px;
    position: relative;
    z-index: 2;
}

.search-giant {
    margin-top: 20px;
}

.module {
    margin-bottom: 20px !important;
}

.box {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* Change the color of <h3> headings */
.module-search .heading {
    display: flex;
    flex-direction: column;
    color: #b9cbeb; /* Replace with your desired color */
    font-size: 1.5rem; /* Adjust font size if needed */
    font-weight: bold; /* Optional: Make it bold */
    font-size: 120px !important;
    text-align: right;
    margin-bottom: 15px !important;
}

.module-search .heading span {
    font-size: 20px;
    margin-top: 25px;
    color: #ffffff;
 }


/* Change the placeholder text color */
.search-input input::placeholder {
    color: #bbbbbb; /* Replace with your desired placeholder color */
    opacity: 1; /* Ensure full opacity */
}


/* Style the search input to be clean and modern */
.search-input input {
    background-color: #ffffff !important; /* Remove background */
    border: 1px solid #0056b3 !important; /* Optional: Add a subtle border */
    box-shadow: none !important; /* Remove any shadow */
    padding: 10px 15px; /* Add padding for a better appearance */
    font-size: 16px; /* Make text more readable */
    color: #000000 !important; /* Text color */
    width: 100%; /* Make input take full width */
    transition: border-color 0.3s ease; /* Smooth transition for focus */
}

/* Remove focus outline but change border on focus for better UX */
.search-input input:focus {
    outline: none !important; /* Remove default focus outline */
    border-color: #007bff !important; /* Change border color on focus */
}

.search-input button i.fa-search {
    color: #0056b3 !important;
    transition: color 0.3s ease;
 }
 
 .search-input button:hover i.fa-search {
    color: #023770 !important; /* Dark blue */
 }

 .section-title {
  font-size: 5.5rem;
  font-weight: bold;
  color: #ffffff; /* A deep blue-gray */
  margin-bottom: 10px;
}

.featured-group-header {
  text-align: start;
  margin-bottom: 30px;
  padding: 20px 0;
}

.stat-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-count {
  font-size: 5.5em;
  font-weight: bold;
  color: #1F61D6;
  margin-bottom: 5px;
  gap: 10px;
}

.stat-title {
  font-size: 2.5em;
  font-weight:bold;
  margin-left: 10px;
  color: #000000;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.stat-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #007bff, transparent);
}

.featured-group-content {
  margin-top: 20px;
}

/* Make it responsive */
@media (max-width: 768px) {
  .stat-count {
    font-size: 2em;
  }
  
  .stat-title {
    font-size: 1em;
  }
  
  .stat-info {
    padding: 10px 20px;
  }
}


 /* Sections Styling */
.main {
    background: #ffffff;
    padding: 40px 0;
}

.content-sections {
    padding: 40px 0;
}

.featured-section {
    margin-bottom: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}


.organization-section {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Container adjustments */
.container {
    max-width: 1200px;
    margin: 0 auto;
} 

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-section,
    .organization-section {
        margin-bottom: 30px;
        padding: 20px;
    }
}


/* Featured Groups Container */
.featured-groups {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next row */
    margin: -10px; /* Compensate for column padding */
  }
  
  /* Individual Group Item */
  .group-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Full width for each group */
    margin-bottom: 20px; /* Add spacing between rows */
  }
  
  .group-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  
  /* Group Image with Overlay */
  .group-image {
    position: relative;
    width: 100%;
    height: 200px; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
  }
  
  .group-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 27, 56, 0.7); /* #171B38 with 70% opacity */
    display: flex;
    align-items: center;
    text-align: start;
  }
  
  .group-overlay h2 {
    padding: 30px;
    font-size: 2.5em;
    color: #fff;
    margin: 0;
  }
  
  /* Group Content (Description and Button) */
  .group-content {
    padding: 20px;
    text-align: start;
  }
  
  .group-content p {
    font-size: 1.5em;
    color: #666;
    margin-bottom: 20px;
  }

  .group-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
  }
  
  .dataset-count {
    font-size: 0.9em;
    color: #666;
    font-weight: bold;
  }

  /* Slider Container */
.slider-container {
  padding: 0 40px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.dataset-resources {
  margin-top: 1px;
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
}

.recently-added-datasets-section {
  background: #001437 !important;
  padding: 40px 0;
}


/* Option 3: Gradient underline */

.recently-added-datasets-title {
  font-size: 30px;
  font-weight: bold;
  color: #ffffff;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.recently-added-datasets-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #007bff, transparent);
}

.recently-added-datasets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
}

.dataset-item {
  background-color: transparent;
  border-radius: 8px;
  border-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  overflow: hidden;
  display: flex;  /* Add this */
  flex-direction: column;  /* Add this */
  height: 100%;  /* Add this */
}

.dataset-details {
  display: flex;
  flex-direction: column;
  flex: 1;  /* Add this */
  gap: 10px;
  padding-bottom: 10px;  /* Add this for bottom spacing */
}

.dataset-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;  /* Reset margin */
}

.dataset-description {
  font-size: 14px;
  color: #666;
  margin: 0;  /* Reset margin */
  flex-grow: 1;  /* Add this to push the format tags to bottom */
}

.dataset-resources {
  margin-top: auto;  /* Add this to push to bottom */
  padding-top: 10px;  /* Add spacing from description */
  display: flex;
  flex-wrap: wrap;
  gap: 5px;  /* Add some gap between format tags */
}

.label-default[data-format] {
  display: inline-flex;  /* Change to inline-flex */
  align-items: center;  /* Center content vertically */
  padding: 4px 8px;  /* Add some padding */
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  background-color: transparent;
  color: #495057;
  border: 1px solid #dee2e6;
}

.dataset-view-link {
  display: inline-block;
  color: #000000;
  text-decoration: none;
  padding: 8px 0px;
  border-radius: 4px;
}

/* Dataset format tag styling */
.format-label {
  display: inline-block;
  padding: 4px 12px;
  background-color: #e6f3ff;  /* Light blue background */
  color: #0088cc;            /* Blue text color */
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
  text-transform: uppercase;
}

.dataset-formats {
  margin-top: 10px;
}

/* Optional hover effect */
.format-label:hover {
  background-color: #d9edff;
}

.dataset-view-link:hover {
  color: #002a74;
}

  .stats-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    color: white;
    margin-bottom: 0;
    padding: 20px 0;
    background: #001437;
  }

  .stats-section-container {
    width: 100%;
    max-width: 100%;
  }

  .stat-box {
    display: flex;
    align-items: center;
    gap: 10px;  /* Space between items inside the box */
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffffff !important;
    border-radius: 10px;
    flex-wrap: nowrap;  /* Prevent wrapping of items */
    white-space: nowrap;  /* Keep text in one line */
  }
  
  .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0 5px;
    color: #78b6f8;
  }
  
  .stat-label {
    margin-left: 5px;
    font-size: 2.0em;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
  }

  .stat-icon {
    font-size: 3.5em;
    color: #1F61D6;
    margin-bottom: 5px;
  }

  @media (max-width: 768px) {
    .stats-section {
        flex-wrap: wrap;  /* Allow wrapping on smaller screens */
        gap: 15px;
    }
    
    .stat-box {
        font-size: 0.9em;
        padding: 6px 12px;
    }
}

  .contact-us-container {
    width: 100%;
    max-width: 100%;
  }

  .contact-section {
    background: url("../images/datacollectionII.png"); 
    padding: 60px 0;
    background-size: cover;
    text-align: center;
    color: white;
  }

  .section-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
  }
  
  .section-title a {
    display: block;
    font-size: 3.2rem;
    color: #ff0000;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  
  .action-buttons {
    margin: 30px 0;
  }
  
  .btn {
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .btn-primary {
    background: white;
    color: #00b894;
  }
  
  .btn-outline {
    border: 2px solid white;
    color: white;
  }
  
  .social-links {
    margin-top: 60px;
  }
  
  .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    margin: 0 10px;
    font-size: 1.2em;
  }
  
  .btn-subscribe {
    background: white;
    color: #00b894;
    margin-left: 20px;
  }
/* Main content wrapper */
.page-wrapper {
  flex: 1; /* Allows the content to grow and push the footer down */
  padding: 20px 0; /* Add some padding */
}

/* Footer */
footer {
  margin-top: auto; /* Push the footer to the bottom */
}

/* Module styling */
.module {
  margin-bottom: 20px;
}

.module-content {
  padding: 20px;
  background-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Filters styling */
.filters {
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Pagination styling */
.pagination {
  margin-top: 20px;
}


/* Your existing custom styles would be here */

/* Dataset Search Page Styles */
.custom-dataset-module {
  background: #ffffff;
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 25px;
}

.custom-dataset-container {
  margin-top: 25px;
}

/* Dataset list */
.custom-dataset-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.custom-dataset-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.custom-dataset-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.custom-dataset-heading {
  font-size: 1.25rem;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.custom-dataset-heading a {
  color: #2d3748;
  text-decoration: none;
}

.custom-dataset-heading a:hover {
  color: #4a5568;
  text-decoration: underline;
}

.custom-dataset-description {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex: 1;
}

.custom-dataset-resources {
  padding: 0;
  margin: 15px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-dataset-resources li {
  margin: 0;
}

.custom-dataset-resources .label {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.875rem;
  border-radius: 4px;
  background: #edf2f7;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.2s ease;
}

.custom-dataset-resources .label:hover {
  background: #e2e8f0;
  color: #2d3748;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-dataset-list {
    grid-template-columns: 1fr;
  }
  
  .custom-dataset-module {
    padding: 15px;
  }
}


/* Modern Search Module */

.modern-search-module {
  background: transparent !important;
  padding: 30px !important;
  display: block !important;
}

/* Search bar styling */
.modern-search-form {
  margin-bottom: 30px;
}

.modern-search-form input[type="text"] {
  width: 100%;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
}

.modern-search-form .search-input {
  position: relative;
}

.modern-search-form .btn-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #0088cc;
  color: white;
  padding: 8px 20px;
  border-radius: 6px;
}

/* Dataset cards */
.modern-package-list {
  display: grid;
  gap: 20px;
}

.dataset-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
  position: relative;
}

/* Indicator tag */
.dataset-item::before {
  content: "INDICATOR";
  position: absolute;
  top: 15px;
  right: 15px;
  background: #0088cc;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* Filter sidebar */
.modern-filters {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: transparent;
  padding: 20px;
}

.filters-content h2 {
  font-size: 16px;
  color: #2d3748;
  margin-bottom: 10px;
  font-weight: bold;
}

.nav-item > a {
  color: #4a5568;
  text-decoration: none;
  display: block;
  padding: 8px 0;
}

/* Dataset count */
.search-form h2 {
  font-size: 18px;
  color: #2d3748;
  margin-bottom: 20px;
}

.module-narrow {
  border-right: none !important;
  background: none !important;
}

/* Additional specificity to ensure override */
[role="main"] .module-narrow {
  border-right: none !important;
}

/* If needed, also target the secondary content */
.secondary .module-narrow {
  border-right: none !important;
}

.media-grid {
  padding-left: 0;
  margin: 0;
  list-style: none;
  min-height: 205px;
  padding-top: 15px;
  background: #ff0000 url("../../../base/images/bg.png");
  border: 1px solid #ddd;
  border-width: 1px 0;
}

.media-item {
  position: relative;
  float: none;
  width: 100%;
  padding: 15px;
  margin: 0;
}

.media-item .media-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
  clear: both;  /* This ensures it clears any floating elements */
  position: relative;
  z-index: 1;
}

/* Style for actual link/button */
.see-all-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: rgb(2, 16, 46);  /* Semi-transparent white */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.see-all-button:hover {
  background-color: rgb(0, 102, 255);
  color: #ffffff;
  text-decoration: none;
}

/* Make sure the container has proper spacing */
.sections-container {
  position: relative;
  padding-bottom: 80px; /* Give space for the button */
}

.featured-group-content {
  margin-bottom: 20px; /* Space between content and button */
}

/* Tags container */
.tags {
  padding: 20px 0;
  margin-top: 15px;
}

.tags h3 {
  color: #ffffff;
  font-size: 1.2rem;
  background: transparent;
  margin-bottom: 15px;
  font-weight: 500;
}

.beta-banner {
  float: left;
  padding: 8px 0;
  color: #ffffff;
  font-size: 13px;
}

.beta-text {
  margin-right: 10px;
}

.beta-text i {
  margin-right: 5px;
}

.learn-more {
  color: #9dcafa;
  text-decoration: underline;
}

.learn-more:hover {
  color: #007bff;
  text-decoration: none;
}

.modern-login-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  min-height: 100vh;
  background: white;
  z-index: 1000;
}

.login-left {
  flex: 1;
  background:#217DC7 url("../images/ha.svg") center center no-repeat;
  background-size: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
 /* Add this to match the background color */
}

/* Remove these classes as they're no longer needed */
.logo-wrapper {
  display: none;
}

.gov-logo {
  display: none;
}

.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: white;
}

.login-box {
  width: 100%;
  max-width: 400px;
  padding: 10px;
}

.login-header {
  margin-bottom: 40px;
}

.login-header h1 {
  font-size: 50px;
  color: #003c81;
  margin-bottom: 8px;
  font-weight: 600;
}

.login-header p {
  color: #666;
  font-size: 16px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 20px;
}

/* Target the specific button container */
.login-form input[type="submit"],
.login-form button[type="submit"] {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
    margin: 0;
    padding: 12px;
    border: none;
    background: #0065D9;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
}

/* Remove any default CKAN button wrapper styles */
.form-actions,
.action-wrapper,
.button-wrapper {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.login-form .btn-primary {
  width: 100%;
  padding: 12px;
  background: #002E7D;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 20px;
}

.login-form .btn-primary:hover {
  background: #022955;
}

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #666;
  text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .modern-login-container {
    flex-direction: column;
  }
  
  .login-left {
    padding: 20px;
  }
  
  .login-right {
    padding: 20px;
  }
  
  .gov-logo {
    width: 60%;
  }
}

/* featured groups */
.card {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.group-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
}

.overlay a {
  align-items: start;
  text-align: start;
  font-size: 18px;
  text-decoration: none;
}

.card-body {
  padding: 15px;
}

.text-primary {
  font-size: 14px;
  font-weight: regular;
  color: #878e97; /* Bootstrap primary blue */
}

.gap-3 {
  gap: 10px; /* Ensures counts are close together */
}


.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-wrapper main,
.site-wrapper .main {
  flex: 1;
}

footer,
.site-footer {
  margin-top: auto;
  flex-shrink: 0;
}



/* ADDED NEW CSS */


/* Homepage Revamp CSS */

/* Hero Section */
.main.hero {
  background: linear-gradient(135deg, #1F61D6 0%, #001437 100%);
  padding: 60px 0 40px;
  color: white;
}

.hero-content {
  text-align: center;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn-hero {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: white;
  color: #1F61D6;
  text-decoration: none;
}

/* Hero Search */
.search-row {
  margin-top: 40px;
}

.hero-search {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.hero-search-input {
  width: 100%;
  padding: 15px 60px 15px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.btn-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #1F61D6;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
}

.popular-tags {
  text-align: center;
}

.tags-label {
  color: #666;
  margin-right: 10px;
}

.tag-chip {
  display: inline-block;
  background: #f0f0f0;
  color: #333;
  padding: 6px 15px;
  border-radius: 20px;
  text-decoration: none;
  margin: 0 5px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tag-chip:hover {
  background: #1F61D6;
  color: white;
  text-decoration: none;
}

/* Main Content
.main-content {
  padding: 60px 0;
  background: white;
} */

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.view-all-link {
  color: #1F61D6;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Sections */
.featured-groups-section,
.recent-reports-section,
.recent-datasets-section {
  margin-bottom: 60px;
}

/* Reports Grid */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.report-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

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

.report-description {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.report-card .report-title a {
  color: #000000;
  text-decoration: none;
}
.report-card .report-title a:hover {
  color: #003366;
  text-decoration: underline;
}


.report-meta {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 14px;
}

.view-report-link {
  color: #1F61D6;
  text-decoration: none;
  font-weight: 600;
}

/* Dataset Grid */
.datasets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.dataset-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

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

.dataset-title {
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.dataset-title a {
  color: #333;
  text-decoration: none;
}

.dataset-title a:hover {
  color: #1F61D6;
}

.dataset-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.dataset-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-tag {
  background: #f0f0f0;
  color: #333;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Statistics Section */
.stats-section {
  background: #f8f9fa;
  padding: 50px 0;
}

/* .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
} */

.stat-card {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #1F61D6;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

/* Connect Section */
.connect-section {
  background: white;
  padding: 50px 0;
  text-align: center;
}

.connect-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  color: #1F61D6;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #1F61D6;
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
      font-size: 2rem;
  }
  
  .section-header {
      flex-direction: column;
      gap: 20px;
      text-align: center;
  }
  
  .stats-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
  }
  
  .social-links {
      flex-direction: column;
      gap: 10px;
  }
  
  .reports-grid,
  .datasets-grid {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
      grid-template-columns: 1fr;
  }
  
  .stat-number {
      font-size: 2.5rem;
  }
}



/* MORE CSS */



/* Refined Stats Section */
.stats-section-refined {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f3ff 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section-refined::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(31, 97, 214, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(31, 97, 214, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stats-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-card-refined {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-refined::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1F61D6, #00A8FF);
}

.stat-card-refined:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(31, 97, 214, 0.2);
}

.stat-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #1F61D6, #00A8FF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stat-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #1F61D6, #00A8FF);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

.stat-icon {
  font-size: 2rem;
  color: white;
}

.stat-content {
  position: relative;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1F61D6;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #1F61D6, #00A8FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.2rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Connect Section Refined */
.connect-section-refined {
  background: #080f24;
  padding: 80px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.connect-section-refined::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.connect-wrapper {
  text-align: center;
  position: relative;
  z-index: 1;
}

.connect-header {
  margin-bottom: 60px;
}

.connect-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, #b8d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.connect-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.social-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.social-card:hover::before {
  left: 100%;
}

.social-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: white;
}

.social-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #1F61D6, #00A8FF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.social-card.twitter:hover .social-icon {
  background: #1DA1F2;
}

.social-card.linkedin:hover .social-icon {
  background: #0077B5;
}

.social-card.facebook:hover .social-icon {
  background: #1877F2;
}

.social-card.instagram:hover .social-icon {
  background: linear-gradient(45deg, #833AB4, #FD1D1D, #FCAF45);
}

.social-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.social-info p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0;
}

/* Newsletter Signup */
.newsletter-signup {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-signup h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
  outline: none;
  border-color: #1F61D6;
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
  padding: 15px 35px;
  background: linear-gradient(135deg, #1F61D6, #00A8FF);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 97, 214, 0.4);
}

/* Animations for Numbers */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-number {
  animation: countUp 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-card-refined {
    padding: 25px 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .connect-title {
    font-size: 2rem;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-input {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-wrapper {
    grid-template-columns: 1fr;
  }
}






/* HERO SECTION */

/* Enhanced Hero Section CSS - Add to your custom.css */

/* Enhanced Hero Styles */
.enhanced-hero {
  background: linear-gradient(135deg, #1F61D6 0%, #001437 100%);
  padding: 80px 0 60px;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

/* Animated Background */
.animated-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  animation: float var(--duration, 10s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.floating-element:nth-child(1) { top: 20%; left: 10%; }
.floating-element:nth-child(2) { top: 60%; right: 15%; }
.floating-element:nth-child(3) { bottom: 30%; left: 20%; }
.floating-element:nth-child(4) { top: 40%; right: 30%; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(90deg); }
  50% { transform: translateY(-40px) rotate(180deg); }
  75% { transform: translateY(-20px) rotate(270deg); }
}

/* Data Particles */
.data-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  left: var(--x);
  top: var(--y);
  animation: pulse 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Hero Container */
.enhanced-hero .container {
  position: relative;
  z-index: 2;
}

/* Enhanced Content */
.enhanced-content {
  text-align: center;
  margin-bottom: 50px;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animated Title */
.animated-title {
  font-size: 6.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
}

.title-line {
  display: block;
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.highlight {
  background: linear-gradient(135deg, #78b6f8, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Animated Subtitle */
.animated-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeIn 1s ease-out 0.8s forwards;
  opacity: 0;
}

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

/* Hero Stats Preview */
.hero-stats-preview {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  animation: fadeIn 1s ease-out 1s forwards;
  opacity: 0;
}

.stat-preview {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  min-width: 120px;
}

.stat-preview:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.stat-preview .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #78b6f8;
  margin-bottom: 5px;
}

.stat-preview .stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  animation: fadeIn 1s ease-out 1.2s forwards;
  opacity: 0;
}

.hero-actions-insights {
  width: 600px;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  animation: fadeIn 1s ease-out 1.2s forwards;
  opacity: 0;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-hero.primary {
  background: white;
  color: #1F61D6;
  border: 2px solid white;
}

.btn-hero.primary:hover {
  background: #f8f9ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #1F61D6;
}

.btn-hero.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-hero.secondary:hover {
  background: white;
  color: #1F61D6;
  transform: translateY(-3px);
  text-decoration: none;
}

/* Enhanced Search Section */
.enhanced-search {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: fadeIn 1s ease-out 1.4s forwards;
  opacity: 0;
  margin-top: 40px;
}

.search-header {
  text-align: center;
  margin-bottom: 30px;
}

.search-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.search-subtitle {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* Enhanced Search Form */
.enhanced-form {
  position: relative;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 25px;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  z-index: 3;
}

.enhanced-hero .hero-search-input {
  width: 100%;
  padding: 18px 60px 18px 55px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8f9ff;
}

.enhanced-hero .hero-search-input:focus {
  outline: none;
  border-color: #1F61D6;
  background: white;
  box-shadow: 0 0 0 3px rgba(31, 97, 214, 0.1);
}

.enhanced-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #1F61D6;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.enhanced-btn:hover {
  background: #1a56c4;
  transform: translateY(-50%) scale(1.05);
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  margin-top: 5px;
}

.hero-search-input:focus + .enhanced-btn + .search-suggestions,
.search-suggestions:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.suggestions-header {
  padding: 15px 20px 10px;
  font-weight: 600;
  color: #666;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
}

.suggestion-item:hover {
  background: #f8f9ff;
  color: #1F61D6;
}

.suggestion-item i {
  width: 16px;
  color: #1F61D6;
}

/* Enhanced Tags */
.enhanced-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.enhanced-tags .tags-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-weight: 600;
  margin-right: 10px;
}

.enhanced-chip {
  background: #f0f4ff;
  color: #1F61D6;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid #e0e8ff;
}

.enhanced-chip:hover {
  background: #1F61D6;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.tag-count {
  margin-left: 5px;
  opacity: 0.7;
  font-size: 12px;
}

/* Quick Filters */
.quick-filters {
  text-align: center;
}

.filters-label {
  color: #666;
  font-weight: 600;
  margin-bottom: 15px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8f9ff;
  color: #1F61D6;
  border: 1px solid #e0e8ff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #1F61D6;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeIn 1s ease-out 1.6s forwards;
  opacity: 0;
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .enhanced-hero {
    padding: 60px 0 40px;
    min-height: 70vh;
  }
  
  .animated-title {
    font-size: 2.5rem;
  }
  
  .hero-stats-preview {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .enhanced-search {
    padding: 25px;
  }
  
  .filter-buttons {
    flex-direction: column;
  }
  
  .floating-element {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .animated-title {
    font-size: 2rem;
  }
  
  .enhanced-hero .hero-search-input {
    padding: 15px 50px 15px 45px;
  }
  
  .enhanced-btn {
    padding: 10px 20px;
  }
}


.main-content {
  position: relative;
  background: white;
  z-index: 1;
}

.main-map-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: stretch; /* stretch full height */
  width: 100%;
  overflow: hidden;
}

.main-map-overlay img {
  height: 100%; /* make it stretch vertically */
  width: auto;
  max-height: 100%;
  opacity: 0.15;
  filter: brightness(1.1) contrast(1.2);
  transform: translateY(0); /* no vertical offset now */
}


.main-content > .container {
  position: relative;
  z-index: 2;
}


.stats-section-refined {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f3ff 100%);
  overflow: hidden;
}

.stats-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;      /* Full width viewport */
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.stats-map-overlay img {
  height: 100%;
  width: auto;
  max-height: 100%;
  opacity: 2.12;
  filter: brightness(1.2) contrast(1.2);
  transform: translateY(0);
}


.stats-wrapper {
  position: relative;
  z-index: 2;  /* Ensure it sits above the background */
}


