/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styling */
.header {
    width: 100%;
    height: 40vh;
    background-image: 
        linear-gradient(rgba(89, 2, 149, 0.95), rgba(89, 2, 149, 0.95)),
        url(../images/banner.png);
    background-position: center;
    background-size: cover;
    background-blend-mode: multiply;
    overflow: hidden;
    position: relative;
}






/* Adjust header background and gradient on mobile */
@media (max-width: 500px) {
    .header {
        height: 400px; 
        background-position: center;
        background-size: cover; 
    }
}

@media (max-width: 500px) {
    .header {
        height: 300px; 
        background-size: cover; 
        background-position: center; 
    }
}

/* Header Section Styling */
.header-section {
    width: 100%;
    height: 40vh; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    position: relative;
    color: white;
    background-image: 
    linear-gradient(rgba(89, 2, 149, 0.95), rgba(89, 2, 149, 0.95)),
    

    
}

/* Center the text and make the div responsive */
.center-div {
    width: 100%;
    max-width: 900px; /* Set max-width for larger screens */
    padding: 20px;
    margin: 0 auto;
    text-align: center;
    display: flex;
}

h1 {
    font-size: 48px;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.2;
    font-weight: bolder !important;
    margin: 0 auto;
    word-wrap: break-word; /* Ensures long text wraps */
    animation: fadeInUp 1s ease-out forwards; /* Animation applied here */
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px); /* Starts below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Ends in the normal position */
    }
}



/* Mobile Responsive Adjustments */
@media (max-width: 500px) {
    .header-section {
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .center-div {
        width: 100%; /* Full width for mobile */
        max-width: none;
        padding: 20px;
    }

    h1 {
        font-size: 16px; /* Smaller font size on mobile */
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: px; /* Further reduction for smaller devices */
    }
}





/* Navbar Image Size Adjustments */
.navbar-brand img {
    height: 50px;
    width: auto;
    margin-right: 50px;
}

/* Adjust Navbar Image on Smaller Screens */
@media (max-width: 992px) {
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 500px) {
    .navbar-brand img {
        height: 40px;
    }
}

.navbar-nav .nav-item {
    margin-right: 20px;
}

.navbar-nav .nav-item:last-child {
    margin-right: 0; /* Remove the margin from the last item */
}

.navbar-nav .nav-item .btn {
    background-color:#0D9920; /* Normal state background */
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;

}

.navbar-nav .nav-item .btn:hover {
    background-color:#3DD952; /* Hover state background */
    border: none;
    transform: scale(1.05); /* Slightly grow on hover */

}



        /* Footer Styles */
        .footer {
            background-color: #f1f1f1;
            color: #000;
            padding: 20px 0;
        }
        
        .footer-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #ccc;
            padding-bottom: 10px;
            margin-bottom: 10px;
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 10px;
            font-size: 14px;
            color: #000;
            margin-top: 10px;  /* Add some space above */
        }
        




        .back-to-top {
          position: fixed;
          bottom: 30px;
          right: 30px;
          display: none;
          background-color: #3DD952;
          color: #fff;
          padding: 10px 15px;
          border-radius: 50%;
          text-align: center;
          font-size: 20px;
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
          cursor: pointer;
          z-index: 1000;
          transition: opacity 0.3s ease;
          animation: pulse 2s infinite;
        }
        
        .back-to-top:hover {
          background-color: #2bb03e;
        }
        
        @keyframes pulse {
          0% {
            box-shadow: 0 0 0 0 rgba(61, 217, 82, 0.4);
          }
          70% {
            box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
          }
          100% {
            box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
          }
        }
                



/* Circle Flowchart Styling */
.flow-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.red {
    background-color: #d62b55;
}

.purple {
    background-color: #4e2f85;
}

/* Optional: Hover effect for circles */
.circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}






/* Header Welcome Section - Left Align + Top Space */
.header-welcome {
    padding-top: 80px; /* Adds space from top */
    text-align: left; /* Align all text to left */
}

.header-welcome h2 {
    text-align: left; /* Left align heading */
    margin-bottom: 30px; /* Space below heading */
}

.flow-chart {
    justify-content: flex-start; /* Align circles to left */
}





/**************** Custom Card Grid Layout **************/
.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: start;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .card-row .card {
    max-width: 540px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background: #fff;
    border: 1px solid rgb(206, 206, 206);
    border-radius: 8px;
    padding: 8px;
    font-weight: 400;
    height: 320px;
    overflow: hidden;
  }
  
  /* On very small screens (mobile), cards take full width and become auto height */
  @media (max-width: 500px) {
    .card-row {
      grid-template-columns: 1fr;
    }
  
    .card-row .card {
      max-width: 100%;
      height: auto;
      margin-bottom: 40px;
    }
  }
  
  /* Card title colors */
  .card-row .card:nth-child(1) .card-title {
    color: #D5365E;
  }
  
  .card-row .card:nth-child(2) .card-title {
    color: #590295;
  }
  
  /* Animation for all cards */
  .card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .card.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /**************** New Card Section: Regulatory Affairs **************/
  .new-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: start;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .new-card-row .card {
    width: 100%;
    flex-shrink: 0;
    padding: 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .new-card-row .card.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Background colors with 20% transparency */
  .new-card-row .card:nth-child(odd) {
    background-color: rgba(213, 54, 94, 0.2);
  }
  
  .new-card-row .card:nth-child(even) {
    background-color: rgba(89, 2, 149, 0.2);
  }
  
  /* Card title bold */
  .new-card-row .card .card-title {
    font-weight: 700;
    color: #222;
  }
  
  /**************** Shared Text Styles **************/
  .card .card-text,
  .new-card-row .card .card-text {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    color: #333;
  }
  


  .image-cropper6 {
    width: 540px;
    height: 500px;
    overflow: hidden;
    position: relative;
  }
  
  .cropped-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  @media (max-width: 768px) {
    .image-cropper6 {
      max-width: 100%;
      /* padding removed */
    }
  }
  


  .image-cropper7 {
    width: 540px;
    height: 400px;
    margin-bottom: 20%;
    overflow: hidden;
    position: relative;
  }
  
  .cropped-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  @media (max-width: 768px) {
    .image-cropper7 {
      max-width: 100%;
      /* padding removed */
    }
  }
  
  

  .image-cropper2 {
    box-sizing: border-box;
    width: 540px;
    height: 600px;
    overflow: hidden;
    position: relative;
  }
  
  
  .cropped-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  @media (max-width: 768px) {
    .image-cropper2 {
      max-width: 100%;
      /* padding removed */
    }
  }
  

    

  
/* Heading Styles */
h1 {
    font-size: 48px !important;
    font-weight: bold;
  }
  
  h2 {
    font-size: 32px !important;
    font-weight: bold;
  }
  
  .card-title h3,
  .card h3 {
    font-size: 24px !important;
    font-weight: bold;
    margin-bottom: 0.75rem;
  }
  
  /* Paragraph and Card Text Styles */
  p,
  .card-text {
    font-size: 16px !important;
    line-height: 1.6;
  }
  
  /* Optional: if you're using h3 outside cards and want 24px there too */
  h3 {
    font-size: 24px !important;
    font-weight: bold;
  }

  
  h2 {
    font-size: 32px !important;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px; /* space between text and line */
    margin-bottom: 20px;  /* space below the whole heading */
  }
  
  h2::after {
    content: "";
    display: block;
    width: 100%;         /* full width of the heading */
    height: 1px;
    background-color: rgb(182, 182, 182);
    margin-top: 8px;
  }


  

  /* Remove extra padding/margin on ul and align bullet and text */
.regence-description ul,
.regence-description li {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}

/* Optional: fine-tune bullet and text alignment */
.regence-description ul li {
  text-indent: -1.2em;
  padding-left: 1.2em;
}


#newSection {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  

  img {
    transition: transform 0.4s ease, filter 0.4s ease;
  }
  
  img:hover {
    transform: scale(1.05);
  }
  

  .nav-link.selected {
    font-weight: bold;
    color: #3DD952 !important; /* or any highlight color */
  }
  


  @media (max-width: 500px) {
    .card-row {
      grid-template-columns: 1fr !important;  /* single column grid */
      padding: 10px; /* optional padding */
    }
  
    .card-row .card {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      margin-bottom: 30px;
      padding: 12px; /* more padding for mobile */
    }
  
    /* Make sure image wrappers are responsive */
    .image-cropper6,
    .image-cropper7,
    .image-cropper2 {
      width: 100% !important;
      height: auto !important;
      max-width: 100% !important;
    }
  }

  
  