@media screen and (max-width: 1240px) {
  .latest-publicators-carousel-item p {
    font-size: 0.8rem;
    line-height: 1.6;
  }
  nav ul {
    width: 50%;
  }
}

@media screen and (max-width: 1150px) {
  .about-header > div{
    flex-direction: column-reverse;
    gap: 20px;
  }

  .about-header img{
    width: 100%;
    max-height: 70%;
  }

}

@media screen and (max-width: 1000px) {
  .latest-publicators-carousel-item h6 {
    font-size: 1rem;
  }
  .about-header p,
  .about-main .our-mission-vision p,
  .about-main .our-services p {
    font-size: 0.9rem;
  }
  .about-main .our-mission-vision h2 {
    font-size: 1.6rem;
  }
  .about-main .our-services h2 {
    font-size: 1.7rem;
  }
  .experts-main .about-expert-text {
    font-size: 4rem;
  }
  .contact-main .contactUs-section p {
    font-size: 1.2rem;
  }
  .contact-main .contactUs-section h1 {
    font-size: 2rem;
  }

  .map-section iframe {
    width: 420px;
  }
  .contact-main {
    gap: 30px;
  }
  nav ul {
    width: 60%;
  }
  .news-about-section h3 {
    font-size: 1rem;
  }
  .news-about-section {
    gap: 18px;
  }
}

@media screen and (max-width: 950px) {
  .carousel-container {
    width: 85%;
  }

  .right-btn, .team-right-btn, .latest-publicators-right-btn {
    right: 15px;
}
.left-btn, .team-left-btn, .latest-publicators-left-btn {
  left: 15px;
}
nav{
  padding:7px 60px;
}
}

@media screen and (max-width: 850px) {
  .carousel-item p,
  .team-carousel-item p {
    font-size: 0.8rem;
  }
  .experts-filters p {
    font-size: 1rem;
  }
  .experts-filters label {
    padding: 10px;
  }
  .experts-main .experts-filters {
    grid-template-columns: repeat(2, 1fr);
  }
  .experts-main .filters-section {
    padding: 10px 20px;
  }
  .publication-header img {
    height: 67vh;
  }
  .contact-main .contactUs-section p {
    font-size: 1rem;
  }
  .contact-main .contactUs-section h1 {
    font-size: 1.6rem;
  }
  .contactUs-section {
    padding-left: 20px;
  }
  nav {
    padding: 7px 26px;
  }
  .carousel-item img,
  .team-carousel-item img {
    height: 29vh;
    width: 40vh;
  }
  .news-container h3 {
    font-size: 1.3rem;
  }
  .news-container p {
    font-size: 1rem;
  }
  .news-container img {
    height: 45vh;
  }
  .all-team {
    width: 15vh;
    height: 6vh;
    font-size: 1.2rem;
  }
  .latest-news-section h1,
  .team-section h1,
  .latest-publicators-section h1,
  .news-section h1 {
    font-size: 2.1rem;
  }
  .experts-details-main .expert-details-section > div {
    flex-direction: column;
    align-items: flex-start;
  }
  .experts-details-main .expert-details-section > div > div {
    width: 100%;
  }
  .experts-details-main .expert-details-section img {
    width: 100%;
  }
  .experts-details-main .expert-details-section h2 {
    font-size: 2.2rem;
    margin: 20px 0;
  }
  .homemain > div {
    height: 85px;
  }
  .homemain > div h1 {
    font-size: 2rem;
  }
  footer div li a {
    font-size: 15px;
  }
  .footer_img img {
    width: 100px;
    height: 110px;
  }
  footer > div > div:not(:first-of-type) {
    gap: 30px;
  }
  footer > div > div:not(:first-of-type) {
    flex-wrap: wrap;
  }
  .carousel-item h2, .team-carousel-item h2{
    font-size: 1rem;
  }
  .latest-news-section, .team-section, .latest-publicators-section, .news-section {
    padding: 30px 40px;
  }
  .news-about-section img {
    height: 180px;
  }
}

@media screen and (max-width: 768px) {
  nav ul {
    gap: 10px;
}
  .latest-publicators-carousel-item h6 {
    font-size: 0.8rem;
  }
  .latest-publicators-carousel-item p {
    font-size: 0.7rem;
  }
  .navbar {
    padding: 7px 40px !important;
  }
  .carousel-item img,
  .team-carousel-item img {
    height: 26vh;
  }
  .carousel-item p,
  .team-carousel-item p {
    font-size: 0.7rem;
  }
  .experts-main .experts-about-section img, .news-about-section img {
    height: 40vh;
  }
  .experts-main .about-expert-text {
    font-size: 3rem;
  }
  .contact-main {
    gap: 20px;
  }
  .map-section iframe {
    width: 380px;
    height: 340px;
  }
  nav ul {
    width: 70%;
  }
  .news-about-section img {
    height: 28vh;
}
.news-about-section h3 {
  font-size: 0.8rem;
}
.news-about-section p {
  font-size: 0.8rem;
}
.news-about-section a {
  padding: 10px;
}
main {
  width: 80%;
}
}

@media screen and (max-width: 650px) {
  .carousel-item img,
  .team-carousel-item img {
    height: 20vh;
  }
  .carousel-item p,
  .team-carousel-item p {
    font-size: 0.7rem;
  }
  .about-main .our-mission-vision {
    gap: 20px;
  }
  .about-header p,
  .about-main .our-mission-vision p,
  .about-main .our-services p {
    font-size: 0.7rem;
  }
  .about-header > h1 {
    font-size: 1.6rem;
  }
  .about-main .our-mission-vision h2,
  .about-main .our-services h3 {
    font-size: 1.3rem;
  }
  .about-main .our-services > div {
    gap: 25px;
  }
  .experts-main .experts-about-section, .news-about-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .experts-main .experts-about-section h3 {
    font-size: 1.4rem;
  }
  .experts-main .experts-about-section p {
    font-size: 1rem;
  }
  .experts-main .about-expert-text {
    font-size: 2.5rem;
  }
  .experts-main .publications-section h5 {
    font-size: 1rem;
  }
  .experts-main .publications-section p {
    font-size: 0.9rem;
  }
  .experts-header img, .news-header img {
    height: 60vh;
  }
  .publication-header img {
    height: 60vh;
  }
  .result-data p {
    font-size: 1.1rem;
  }
  .filter-section > div:first-of-type button {
    padding: 7px 16px;
  }
  .contact-main {
    flex-direction: column;
  }
  .map-section iframe {
    width: 100%;
  }
  .contact-main .contactUs-section p {
    font-size: 0.9rem;
  }
  .contact-main .contactUs-section div {
    gap: 13px;
  }
  nav ul li {
    font-size: 1rem;
  }
  .news-container {
    grid-template-columns: repeat(1, 1fr);
  }
  .news-container img {
    width: 100%;
    height: 40vh;
  }
  .latest-news-section h1,
  .team-section h1,
  .latest-publicators-section h1,
  .news-section h1 {
    font-size: 1.8rem;
  }
  .all-team {
    width: 13vh;
    height: 5vh;
    font-size: 1rem;
  }
  .experts-details-main .expert-details-section div p {
    font-size: 1.2rem;
  }
  .experts-details-main .expert-details-section div h2 {
    font-size: 2.2rem;
  }
  .experts-details-main .expert-details-section h2 {
    font-size: 1.8rem;
    margin: 15px 0;
  }
  .experts-details-main .expert-details-section > div {
    margin-top: 20px;
  }
  .about-main .our-services img {
    height: 35vh;
  }
  .experts-details-main .about-expert-text p {
    font-size: 1rem;
  }
  .homemain > div {
    height: 64px;
  }
  .homemain > div h1 {
    font-size: 1.7rem;
  }
  .latest-news-section,
  .team-section,
  .latest-publicators-section,
  .news-section {
    margin: 21px auto;
  }
}

@media screen and (max-width: 576px) {
  .latest-publicators-carousel-item h6 {
    font-size: 0.6rem;
  }
  .latest-publicators-carousel-item p {
    font-size: 0.6rem;
  }
  footer > div {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
  }
  footer > div > div:not(:first-of-type){
    width: 100%;
  }
}

@media screen and (max-width: 550px) {
  .carousel-item,
  .team-carousel-item {
    flex: 0 0 50%;
  }
  .about-main .our-services img {
    width: 100%;
    height: 40vh;
  }
  .about-main .our-services > div,
  .about-main .our-mission-vision {
    flex-direction: column;
  }
  .about-main .our-mission-vision div {
    width: 100%;
  }
  .experts-filters input {
    width: 14px;
    height: 15px;
  }
  .experts-filters p {
    font-size: 0.9rem;
  }
  .experts-filters label {
    gap: 8px;
  }
  .experts-header img, .news-header img {
    height: 55vh;
  }
  .experts-main .filters-section {
    padding: 5px 15px;
  }
  .result-data p {
    font-size: 1rem;
  }
  .filter-section > div:first-of-type button {
    padding: 6px 14px;
    font-size: 1rem;
  }
  .contact-header {
    font-size: 1.5rem;
  }
  nav ul {
    width: 75%;
  }
  nav ul li {
    font-size: 0.9rem;
  }
  .carousel-item,
  .team-carousel-item {
    padding: 7px;
  }
  .carousel-item img,
  .team-carousel-item img {
    height: 19vh;
    width: 38vh;
  }
  .latest-news-section h1,
  .team-section h1,
  .latest-publicators-section h1,
  .news-section h1 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  .experts-details-main .expert-details-section div p {
    font-size: 1rem;
  }
  .experts-details-main .expert-details-section div h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .experts-details-main .expert-details-section h2 {
    font-size: 1.4rem;
    margin: 10px 0;
  }
  .about-main .our-services > div div {
    width: 100%;
  }
  .burger-menu {
    display: block;
    width: 14px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    /* margin-right: 20px; */
  }

  .burger-menu.menu-icon {
    position: relative; /* ensure the pseudo stays relative to this */
  }
  
  .burger-menu.menu-icon::before {
    content: "☰";
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 38px;
    height: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .burger-menu.close-icon::before {
    content: "✖";
    font-size: 24px;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 170px;
    height: 100%;
    /* background-color: #333f78; */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding: 60px 10px 60px 20px;
  }

  .nav-links.active {
    right: 0;
  }

  nav ul {
    display: none;
  }

  nav ul li {
    margin: 10px 0;
  }
  nav ul li a {
    color: white;
  }
  nav ul li a:hover {
    color: #c3c0c0 !important;
  }
  nav ul li {
    font-size: 1rem;
  }
  nav ul li a i {
    display: block !important;
  }

  nav ul li a {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }
  .homemain > div {
    height: 55px;
}
.homemain > div h1 {
  font-size: 1.5rem;
}
}

@media screen and (max-width: 500px) {
  footer h5 {
    color: white;
    font-size: 17px;
  }
  .experts-main .experts-about-section img {
    height: 30vh;
  }
  .experts-main .experts-about-section h3 {
    font-size: 1.2rem;
    margin-bottom: 7px;
  }
  .experts-main .filters-section button {
    font-size: 0.9rem;
    padding: 7px 12px;
  }
  .experts-main .about-expert-text {
    font-size: 2rem;
  }
  .experts-main .publications-section h2 {
    font-size: 1.5rem;
  }
  .carousel-item img,
  .team-carousel-item img {
    width: 90vh;
    height: 40vh;
  }
  .carousel-item p,
  .team-carousel-item p {
    font-size: 0.6rem;
  }
  .latest-publicators-carousel-item p {
    line-height: 1.5;
  }
  .latest-publicators-carousel-item {
    flex: 0 0 100%;
    gap: 10px;
    width: 100%;
  }
  .carousel-item,
  .team-carousel-item {
    flex: 0 0 100%;
    padding: 0;
  }
  .news-container p {
    font-size: 0.9rem;
  }
  .news-container h3 {
    font-size: 1.2rem;
  }
  nav ul {
    width: 85%;
  }
  nav ul li {
    font-size: 0.8rem;
  }
  nav {
    padding: 7px 18px;
  }
  .experts-details-main .about-expert-text p {
    font-size: 0.9rem;
  }
  .right-btn, .team-right-btn, .latest-publicators-right-btn {
    right: 0px;
}
.left-btn, .team-left-btn, .latest-publicators-left-btn {
  left: 0px;
}
}
