/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header {
    background: url('/images/coopbase/header.png') no-repeat center center/cover; /* Use your background image */
    color: #fff;
    text-align: center;
    padding: 5rem 1rem;
    position: relative;
    height: 35rem;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.6); /* Add a dark overlay for better text readability */
    z-index: 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 75rem; /* Optional, adjust based on your layout */
    margin: 0 auto;
    z-index: 2;
}

.left-side {
    flex: 1;
    display: flex;
}

.coopbase {
    width: 45rem;
    padding-top: 3rem;
    z-index: 1;
    margin-left: -8rem;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out; /* Smooth transition for transform and box-shadow */
    animation: fade-in 2s forwards; /* Initial fade-in animation */
}

.right-side {
    flex: 1;
    padding-left: 2rem;
    text-align: left;
}

/* Features Section */
.features-glance {
    margin-top: 2rem;
    padding: 3rem 1rem;
    background: transparent; /* Light background for contrast */
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateY(1.875rem);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-align: center;
}

.features-glance.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-glance h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(3rem, 1fr)); /* Smaller rows with 3rem minimum height */
    gap: 1rem; /* Reduce gap between items */
    justify-content: flex-end;
}

.feature-card {
    background-color: #001F3F;
    width: 100%;
    padding: 0.125rem 2rem;
    text-align: center;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card h3 {
    color: #F5F5F5;
}

.feature-card p {
    color: #f5f5f5b2;
}

.feature-card:hover {
    transform: translateY(-0.625rem);
    box-shadow: 0 0.375rem 0.625rem rgba(0, 0, 0, 0.15);
}

/* General Styling */
.features-section {
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 2%;
    padding-bottom: 5%;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    color: #333;
    font-family: 'Arial', sans-serif;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.875rem;
    color: #001F3F;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 3.125rem;
    height: 0.25rem;
    background: #FFB400;
    margin: 0.625rem auto 0;
}

.feature-category {
    margin: 0.625rem 0;
    border: 0.0625rem solid #ddd;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    width: 50rem;
    justify-self: center;
}

.category-title {
    font-size: 1.5rem;
    padding: 0.9375rem;
    margin: 0;
    background: #004080;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title::after {
    content: '\f107'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.feature-category.active .category-title::after {
    transform: rotate(180deg); /* Chevron points up when expanded */
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.feature-category.active .feature-list {
    max-height: 31.25rem; /* Set to a sufficiently large value to accommodate content */
    padding: 0.9375rem;
}

.feature-list li {
    margin: 0.625rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    color: #555;
}

.feature-list li .icon {
    margin-right: 0.625rem;
    color: #001F3F;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 48rem) {
    .category-title {
        font-size: 1.2rem;
    }

    .feature-list li {
        font-size: 0.9rem;
    }
}
  
  .coopbase-advantages-container {
    padding: 4rem 2rem;
    text-align: center;
  }
  
  /* Card Layout */
  .coopbase-advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    padding-left: 15rem;
    padding-right: 15rem;
    gap: 1rem;
  }
  
  .coopbase-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    width: 24rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .coopbase-card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #34495e;
    border-bottom: 2px solid #001F3F;
    padding-bottom: 0.5rem;
  }
  
  .coopbase-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .coopbase-card-list li {
    font-size: 1rem;
    color: #555;
    margin: 1rem 0;
    display: flex;
    align-items: center;
  }
  
  .coopbase-card-list li i {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #001F3F;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .coopbase-advantages-title {
      font-size: 2rem;
    }
  
    .coopbase-card-title {
      font-size: 1.5rem;
    }
  
    .coopbase-card-list li {
      font-size: 1rem;
    }
  }
  

/* General Section Styling */
.coopbase-users-container {
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 2%;
    padding-bottom: 2%;
    color: #333;
    text-align: center;
  }
  
  /* Counter Grid Layout */
  .coopbase-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    padding-left: 15%;
    padding-right: 15%;
    justify-content: center;
    align-items: center;
  }
  
  .coopbase-counter-card {
    background: #ffffff;
    border-radius: 1rem;
    width: 18rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Counter Numbers */
  .coopbase-counter-number {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 1rem;
    color: #001F3F;
    margin-bottom: 0.3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .coopbase-counter-label {
    font-size: 1.2rem;
    color: #001F3F;
  }
  
  /* Scroll Reveal Animation */
  .coopbase-counter-card.visible .coopbase-counter-number {
    opacity: 1;
    transform: translateY(0);
  }
  
/* Compliance Timeline Section */
.compliance-timeline-section {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    text-align: center;
    position: relative;
  }
  
  .compliance-title {
    font-size: 2.5rem;
    color: #001F3F;
    margin-bottom: 3rem;
    position: relative;
  }
  
  .compliance-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #001F3F;
    margin: 10px auto;
  }
  
  .timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }
  
  .timeline-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .timeline-item:nth-child(odd) {
    flex-direction: row;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 20rem; /* Ensure proper spacing from the vertical line */
  }
  
  .timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .timeline-icon {
    flex-shrink: 0;
    background: #001F3F;
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  .compliance-logo {
    width: 4.2rem;
    height: 4.2rem;
    object-fit: contain;
  }
  
  .timeline-content {
    text-align: left;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .compliance-heading {
    font-size: 1.4rem;
    color: #001F3F;
    margin: 0;
  }
  
  .compliance-details {
    font-size: 1rem;
    color: #555;
    margin-top: 0.5rem;
  }
  
  /* Vertical Line */
  .timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: #001F3F;
    transform: translateX(-50%);
    z-index: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    text-align: right;
  }
  
  .timeline-item:nth-child(even) .timeline-icon {
    margin-left: auto;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .timeline-item {
      flex-direction: column !important;
      align-items: center;
      text-align: center;
    }
  
    .timeline-container::before {
      left: 8px;
    }
  
    .timeline-content {
      text-align: center;
    }
  
    .timeline-item:nth-child(even) .timeline-content {
      text-align: center;
    }
  }
  