/*updated nav style */
.popup_title{
  position:absolute;
  top:15px;
  font-weight: bold;
  text-decoration: underline;
}
nav a{
  text-decoration: none;
  list-style: none !important;
}



nav, nav ul{
  padding: 0 !important;
  margin: 0 !important;
}

.disabled{
  display: none !important;
}

/*uncollapsed navbar */
@media (min-width: 891px){
  nav{
    display: flex;
    justify-content: center;
    width: 100vw;
    position: relative;
  }

  .nav_group {
    margin-top: 20px;
  }

  nav ul{
    display: flex ;
    justify-content: space-between ;
    width: 100%;
    align-items: center;
  }
}

/*collapsed navbar */
@media (max-width: 890px){
  nav{
    margin-left: 0px;
  }
  nav ul{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .nav_group:nth-child(1){
    margin-bottom: -50px;
  }
}

nav img{

  position: absolute;
}

@media (min-width: 842px){
  #service_title {
    font-size: 50px;
    width: 100%;
    background-color: #F1C40F;
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  body {
    display: flex;
    flex-direction: column;
  }

  .no-scroll{
    overflow: hidden;
  }

  /* services popup styling */

  .overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9;
    animation: overlayFadeIn 0.3s ease;
    display: none;
  }

  .service_popup{
    position: absolute;
    background-color: #fefefe;
    color: black;
    padding: 10px;
    border: 4px solid #1e3a8a; 
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    min-height: 200px;
    max-width: 500px;
    width: 90%;

    /* This will center the popup */
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: popupFadeIn 0.3s ease; 
    display: none;
  }

  .popup_text{
    color:blue;
  }

  .popup_close{
    min-width: 50px;
    max-width: 80px;
    align-self:flex-end;
    position: absolute;
    bottom:77%; 
    right: 2px;
    background-color: #f59e0b;
    border: none;
    color:white;
    font-size:20px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius:8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .popup_close:hover{
    background:#d97706; /*darker gold*/
    transform: scale(1.1);
  }

  .services-container {
    display: flex;
    flex-direction: column;
  }

  .service-card{
    border: 1px solid #F1C40F; 
    text-align: center;
  }

  .secondary_container {
    display: flex;
    justify-content: space-between;
  }



  .secondary_container .service-card,
  .secondary_container .loading_holder {
    width: 45%;
  }

  .loading_holder .service-card {
    width: 100%;
    height: 100%;
  }

  .slides_container {
    max-width: 600px;
    position: relative;
    margin: auto;
  }

  .double_icon_container .icon_container {
    width: 100%;
    height: auto;
  }

  .loading_holder {
    display: flex;
    flex-direction: column;
  }

  .unhidden {
    display: flex;
    animation: appear 1s ease-in;
    flex-direction: column;
    gap: 50px;
  }

  .hidden {
    display: none;
  }

  .loading_circles {
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  .loading_circle {
    margin-top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
  }

  .clicked_circle {
    background-color: grey;
    border: 1px solid;
  }

  .unclicked_circle {
    border: 1px solid;
  }

  .unclicked_circle:hover {
    background-color: lightgray;
    cursor: pointer;
  }

  .icon_container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 20px;
  }

  .circle {
    width: 100px;
    height: 100px;
    display: flex;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
  }

  .circle:hover{
    transform: scale(1.1);
    cursor: pointer;
  }

  /**This was for the gradient circle behind 

  .circle::before {
    content: "";
    position: absolute;
    width: 107%;
    height: 107%;
    background-image: linear-gradient(to right, pink, green);
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.3s ease;
  }

  */

  .group_1,
  .group_2,
  .group_3,
  .group_4 {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
  }

  .group_4 {
    gap: 30px;
    align-items: center;
    justify-content: center;
  }

  .icon_text_holder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .icon_text_holder span {
    margin-top: 10px;
    text-align: center;
  }

  nav{
    z-index: 1;
  }
}

/*responsiveness */

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes vanish {
  from {
    display: block;
    opacity: 1;
  }

  to {
    display: none;
    opacity: 0;
  }
}

/* Updated media queries */

@media (max-width: 841px) {
  /* Navigation */
  nav {
    width: 100vw;
    z-index: 1;
  }

  /* Service Title */
  #service_title {
    font-size: 40px;
    width: 100vw;
    background-color: #F1C40F;
    text-align: center;
    padding: 5px 0;
    margin-top: -10px;
  }

  /* Page Layout */
  body {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 10px;
  }

  .services {
    margin-top: -50px; /*reducing the space between our services and the first entry*/
  }

  /* Service Card */
  .service-card {
    text-align: center;
    background: none;
    box-shadow:none;
    background-color: #fefefe;
    border: 1px solid #F1C40F; 
  }

  .service-card h2 {
    font-size: 20px; 
  }

  .service-card:hover {
    transform: none;
    box-shadow: none; 
  }

  /* Responsive Layout Groups */
  .icon_container,
  .group_1,
  .group_2,
  .group_3,
  .group_4,
  .slides_container,
  .slides{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
  }

  /* Icon Text Holder */
  .icon_text_holder {
    display: flex;
    border: 2px solid gold;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    gap: 10px;
    height: 60px;
    align-items: center;
    text-align: left;
    font-size: 15px;
    position: relative;
    padding: 35px;
    
  }

  .service_popup {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 10;
    margin-top: -10px; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: ease-in all 3s;
    display: none;
    border: 2px solid gold;
    border-top: none;
  }

  .service_clicked {
    background-color: #1e3a8a;
    color:white; 
    border-bottom: none;
  }

  /* Circular Icon */
  .circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    margin-left: 0px;
    background-color:#F1C40F;
    color:white;
    padding: 10px;
    
  }

  /* Secondary Container */
  .secondary_container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 30px;
  }

  /* Footer */
  footer {
    background-color: black;
    width: 100vw;
    height: 60px;
    color: white;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
  }

  footer img {
    width: 40px;
    height: 40px;
    margin-top: 10px;
  }

  footer span {
    align-self: flex-end;
  }
}

@media (max-width: 845px) and (min-width: 368px) {
  .services-container{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #Financial, #Secondary, #Organizational {
    width: 85vw;
  }
}

@media (max-width: 367px) {
  .secondary_container, .services-container, .loading_holder {
    width: 75vw;
  }
}


.fancy-footer {
  width: 100%;
  overflow: hidden; /* Ensures no unwanted overflow */
  line-height: 0;   /* Removes any extra spacing */
}

.fancy-footer svg {
  display: block;
  width: 100%;
  height: 190px;
}


.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  margin-top: -8px;
}

/* Social icons in a row */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 50px;
  /* Adjust margin as needed */
  margin-bottom:20px;
}

.footer-social a {
  text-decoration: none;
  color: #fff;
  font-size: 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fab:hover, .fas:hover {
  transform: translateY(-5px) scale(1.3);
  color: #fbf6c6;
}

/* Footer text styling */
.footer-text {
  margin-top: -10px;
  text-align: center;
}

.footer-text p {
  font-size: 16px;
  color: #ffffff;
  margin: 0; /* Remove extra margins if needed */
}




  
  @media (max-width: 500px) {
    .footer-text p {

      font-size: 13px;

    }




  }

  @media (max-width: 360px) {
    .footer-text p {

      font-size: 11px;

    }

    .footer-social{
      gap: 30px;
    }

    .footer-social a {

      font-size: 23px;

    }

    .circle{
      margin-left: -20px;
    }

    .icon_text_holder{
      font-size: 12px;
      word-wrap: break-word;
    }
  }

  @media (max-width: 330px) {
    .footer-text p {

      font-size: 9px;

    }

    .icon_text_holder{
      font-size: 10px;
      word-wrap: break-word;
    }

  }