*{
    margin: 0;
    padding: 0;
}
.html{
    margin: 0;
    padding: 0;
}
body{
    font-family: Aeonik,Helvetica,sans-serif;
}

.d-none{
  display: none;
}


/* Style for the navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    color: rgb(245, 244, 240);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0px 4%;
    z-index: 999;
    transition: background-color 0.3s ease-in-out; /* Add the transition property */
}

.navbar .animate {
  background-color: #ffffff;
}


/* Style for the hamburger icon */
.hamburger {
    display: none;
    cursor: pointer;
    margin-left: auto;
    margin-top: auto;
    margin-bottom: auto;
    order: 2;
    justify-self: flex-end;
    /* z-index: 10; */
}

/* Style for the hamburger stripes */
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin-bottom: 5px;
    position: relative;
    border-radius: 2px;
    z-index: 1;
    transform-origin: 0 0;
    transition: all 0.5s cubic-bezier(0.75, 0, 0.125, 1);
}

/* Style for the navigation menu */
nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 2;
    order: 2;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    margin: 0 4px;
    margin-top: 8px;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-size: 1em;
    padding: 10px;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    color: #cf2e2e;
}


nav .logo-outer{
    height: 60px;
}

nav .logo-outer img{
    height: 60px;
}



/* =============== home section ============== */

.resident-top-small-text{
    margin-top: 180px;
    text-align: center;
    font-weight: 500;
    font-size: 24px;
    font-family: Aeonik,Helvetica,sans-serif;
    margin-bottom: 0.8em;
}
.resident-top-heading{
    text-align: center;
    font-weight: 500;
    font-size: 64px;
    font-family: Aeonik,Helvetica,sans-serif;
    margin-bottom: 0.8em;
}
.resident-top-image-outer{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.resident-top-image{
    border-radius: 22px;
    width: 100%;
    height: 50vw;
    object-fit: cover;
}
.resident-top-sub-heading{
    font-size: 33px;
    line-height: 1.2em;
    font-weight: 500;
    font-family: Aeonik,Helvetica,sans-serif;
    margin-top: 58px;
    margin-bottom: 1em;
    text-align: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}


.resident-topic-lists-outer{
    margin: 120px 0;
    display: flex;
    width: 90%;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    
}
.resident-topic-list-outer{
    width: 31%;
    min-width: 300px;
}
.resident-topic-image-outer{
    width: 100%;
    height: 100%;
    height: 220px;
    margin-bottom: 40px;
}
.resident-topic-image-outer img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
}
.resident-topic-detail-outer h3{
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 400;
}

.resident-topic-detail-outer p{
    margin-bottom: 24px;
    line-height: 24px;
    font-size: 18px;
    font-weight: 400;
}

.resident-ask-heading{
    font-size: 48px;
    font-weight: 500;
    text-align: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: .8em;
}

.resident-ask-button-outer{
    max-width: 485px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 120px;
}
.resident-ask-button{
    width: 220px;
    font-size: 18px;
    padding: 12px 4px;
    cursor: pointer;
    background-color: #05b044;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;

}
.resident-ask-button i{
    font-size: 24px;
    margin-right: 8px;
}





/* ============ footer ================ */
  footer {
    background-color: #000;
    color: #fff;
    padding: 20px 0;
    min-height: 200px;
  }
  
  .footer-container {
    max-width: 1200px;
    padding: 40px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
  }
  .footer-first-outer{
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    flex: .5;
    
  }
  .footer-second-outer{
    flex: 2;
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
  }
  
  .footer-logo {
    height: 100px;
    margin-bottom: 20px;
  }
  
  .footer-logo img {
    max-width: 100%;
  }
  
  .social-icons {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 0;
    font-size: 30px;
    width: 100%;
  }
  
  .social-icons a {
    color: #fff;
    margin: 0 12px;
  }
  
  .footer-links {
    display: flex;
  }
  
  .footer-column {
    margin-right: 50px;

  }

  
  .footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .footer-column ul li {
    margin-bottom: 5px;
  }
  
  .footer-column ul li a {
    color: #fff;
    text-decoration: none;
    font-family: Aeonik,Helvetica,sans-serif;
    font-size: 14px;
  }
  .footer-column:nth-child(1) ul li:nth-child(1){
    margin-bottom: 0;
  }

  .footer-column:nth-child(1) ul li:nth-child(1) a{
    color: #c1c1c1;
  }

  .footer-column ul li{
    margin-bottom: 24px;
  }
  


@media (width < 1040px){
    .resident-top-small-text{
        font-size: 20px;
    }
    .resident-top-heading{
        font-size: 52px;
    }
    .resident-top-sub-heading{
        font-size: 28px;
        width: 90%;
    }

    .resident-topic-list-outer{
        width: 28%;
        min-width: 260px;
    }
    .resident-topic-image-outer{
        height: 190px;
        margin-bottom: 30px;
    }


    .resident-ask-heading{
        font-size: 42px;
    }

}

@media (width < 900px){

    .resident-topic-lists-outer{
        justify-content: center;
    }

    .resident-topic-list-outer{
        width: 42%;
        min-width: 200px;
        margin: 40px 10px;
    }
    .resident-topic-image-outer{
        height: 220px;
        margin-bottom: 30px;
    }
}

/* Media query for mobile devices */

@media screen and (max-width: 850px) {

    nav{
        padding: 0px 2%;
        background-color: transparent;
        transition: background-color 0.3s ease-in-out;
    }
   
    /* Style for the navigation menu on mobile devices */
    nav ul {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background-color: #fff;
      z-index: -2;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding-top: 80px;
      padding-left: 10px;
    }
  
    /* Style for the navigation menu links on mobile devices */
    nav ul li {
      margin: 10px;
    }

    nav ul li a{
        color: rgb(0, 0, 0);
    }
  
    /* Style for the active navigation menu on mobile devices */
    nav ul.active {
      transform: translateX(0%);
    }
  
    /* Style for the hamburger icon on mobile devices */
    .hamburger {
        margin-right: 20px;
        display: block;
    }

    .hamburger.active span:first-child {
        transform: rotate(45deg) translate(4px, -1px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:last-child {
        transform: rotate(-45deg) translate(-1px, 4px);
        /* rotate(45deg) translate(4px, 1px); */
    }











    /* =========== footer =========== */
    .footer-container {
      flex-direction: column;
    }
    .footer-first-outer{
      width: 60%;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 40px;
    }
    .footer-second-outer{
      justify-content: space-around;
      width: 100%;
    }
  }

  @media screen and (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      align-items: center;
    }
  
    .footer-links {
      margin-top: 20px;
    }
  
    .footer-column {
      margin-right: 0;
      margin-bottom: 20px;
      text-align: center;
    }


    .resident-top-small-text{
        font-size: 18px;
    }
    .resident-top-heading{
        font-size: 44px;
    }
    .resident-top-sub-heading{
        font-size: 24px;
        width: 90%;
    }


    .resident-topic-list-outer{
        width: 60%;
        min-width: 400px;
    }
    .resident-topic-image-outer{
        height: 240px;
        margin-bottom: 30px;
    }


    .resident-ask-heading{
        font-size: 36px;
    }
   
  }


  @media (width < 550px){
    .resident-top-small-text{
        font-size: 16px;
    }
    .resident-top-heading{
        font-size: 40px;
        width: 90%;
        margin-right: auto;
        margin-left: auto;
    }
    .resident-top-image-outer{
        width: 90%;
    }
    .resident-top-image{
      height: 60vw;
    }


    .resident-topic-list-outer{
        width: 100%;
        min-width:280px;
    }
    .resident-topic-image-outer{
        height: 30vh;
    }
    .resident-ask-heading{
        font-size: 32px;
        width: 90%;
    }


    /* ========= footer =========== */
    .footer-first-outer{
      width: 80%;
    }
    .footer-second-outer{
      flex-direction: column;
    }
}


@media (width < 450px){
    .resident-topic-lists-outer{
        margin-top: 80px;
        margin-bottom: 80px;
    }
    .resident-topic-list-outer{
        margin: 20px 0;
    }
    .resident-topic-image-outer{
        height: 26vh;
    }
}