@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  font-family: "Roboto", serif;
}

body {
  margin: 0 auto;
}

/* navbar */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height:100px;
  z-index: 100000;
  padding: 7px 110px;
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.151);
  background-color: #333f78;
}

nav a {
  color: white;
  font-weight: 500;
  transition-property: color;
  transition-duration: 1s;
}

nav a:hover {
  color: rgb(241 240 240 / 71%);
}

nav img {
  display: inline-block;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

nav ul {
  display: flex;
  justify-content: space-between;
  gap: 20px;

}

nav a i {
  display: none !important;
}

.burger-menu {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

#overlay.active {
  display: block;
}

nav ul li a.active {
  color: gray;
}

header {
  padding-top: 55px;
}

.contact-header {
  padding-top: 20px;
}

main {
  width: 70%;
  margin: 0 auto;
}

.container {
  width: 70%;
  margin: 30px auto;
}

/* Home page */

/* Header  */

.publication-header, .experts-header, .news-header {
  position: relative;
  width: 100%;
  max-height: 500px; 
  overflow: hidden;
}

.publication-header::after, .experts-header::after, .news-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.publication-header h1, .experts-header h1, .news-header h1 {
  position: absolute;
  top: 50%;
  left: 32%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  z-index: 2;
}

.experts-header h1, .news-header h1{
left: 25% !important;
}


.home-header img,
.publication-header img, .news-header img {
  width: 100%;
  height: 75vh;
  object-fit: cover;
  display: block;

}

/* Main page */

.latest-news-section,
.team-section,
.latest-publicators-section,
.news-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 40px 40px;
  background-color: #fbfbfb;
}

.team-section{
  background-color: white;
}

.news-section {
  width: 80%;

}

.latest-news-section h1,
.team-section h1,
.latest-publicators-section h1,
.news-section h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #336178;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  width: 75%;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
}

.carousel-container::-webkit-scrollbar {
  display: none; 
}
.carousel-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel,
.team-carousel,
.latest-publicators-carousel {
  display: flex;
  transition: transform 0.4s ease-in-out;
  flex-wrap: nowrap;
  width: 100%;
}

.carousel-item,
.team-carousel-item {
  flex: 0 0 calc(100% / 3); 
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.carousel-item div,
.team-carousel-item div {
  overflow: hidden;
}

.carousel-item img,
.team-carousel-item img {
  max-width: 100%;
  height:200px;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
}

.carousel-item div:hover img,
.team-carousel-item div:hover img {
  transform: scale(1.08);
  border-radius: 10px;
}

.carousel-btn {
  position: absolute;
  /* top: 32%; */
  transform: translateY(-50%);
  color: black;
  border: none;
  cursor: pointer;
  z-index: 10;
  background-color: inherit;
  font-size: 30px;
}

.left-btn,
.team-left-btn,
.latest-publicators-left-btn {
  left: 80px;
}

.right-btn,
.team-right-btn,
.latest-publicators-right-btn {
  right: 80px;
}

.team-carousel-item p {
  font-size: 1rem;
  line-height: 150%;
}

.carousel-item h2, .team-carousel-item h2{
  margin-top: 10px;
  font-size: 1.2rem;
  line-height: 150%;
  text-align: start;
  font-weight: bold;
}

.all-team {
  background-color: inherit;
  width: 16vh;
  height: 5vh;
  font-size: 1.4rem;
  cursor: pointer;
  margin-top: 10px;
  border: none;
  position: relative; 
  transition: transform 0.3s ease;
}

.all-team::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.all-team a {
  color: black;
  font-weight:light;
}

.latest-publicators-carousel-item {
  flex: 0 0 50%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.latest-publicators-carousel-item h6 {
  font-size: 1.5rem;
  text-align: left;
  margin-bottom: 10px;
}

.latest-publicators-carousel-item p {
  font-size: 1rem;
}

.news-section {
  padding: 20px;
  border-radius: 10px;
}

.news-section h1 {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: center;
}

.news-container img {
  width: 95%;
  height: 50vh;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.news-container h3 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 12px;
}

.news-container p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

/* About page */

.about-main {
  margin-bottom: 30px;
}

.about-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 10px 0;
}

.about-header > div {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-top: 40px;
}

.about-header h1 {
  font-size: 50px;
  margin-bottom: 30px;
}

.about-header img {
  width: 40%;
  border-radius: 10px;
  object-fit: cover;
}

.about-header p {
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: "Source Sans 3", serif;
}

.about-main .our-mission-vision div {
  width: 50%;
  height: 100%;
  padding: 20px;
  background-color: #fbfbfb;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.about-main .our-mission-vision h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-align: center;
}

.our-mission-vision {
  display: flex;
  margin: 40px 0;
  gap: 30px;
}


.our-mission-vision p {
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: justify;
  font-family: "Source Sans 3", serif;
  position: relative;
  z-index: 2;
  text-overflow: ellipsis;
}
.our-services {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-main .our-services > div {
  display: flex;
  gap: 40px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.about-main .our-services > div div {
  padding: 10px;
}

.about-main .our-services h2 {
  font-size: 2rem;
  margin: 10px 0;
  text-align: center;
  color: #333;
  position: relative;
}

.about-main .our-services h2 span {
  background-color: white;
  padding: 0 20px;
}

.about-main .our-services h2::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 12px;
  left: 0;
  z-index: -1;
  background-color: unset;
  background-image: linear-gradient(90deg, transparent, #3674b5, transparent);
}

.service{
  display:flex;
  flex-direction:row;
}

.service img{
  max-height:200px;
}

.service h3{
  font-size:1.5rem;
}

/* Experts Page */

.experts-header img {
  width: 100%;
  height: 75vh;
  object-fit: cover;
}

.experts-main .filters-section {
  /* display: flex; */
  /* justify-content: space-between; */
  /* align-items: center; */
  width: 100%;
  /* padding: 20px 0; */
  padding-bottom:20px;
  border-radius: 15px;
  gap: 15px;
}

.experts-main .experts-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* gap: 15px; */
  width: 100%;
  margin-bottom: 20px;
  align-items: center;
}

.experts-filters label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.experts-filters label:hover {
  background: #f1f1f1;
}

.experts-filters input {
  width: 18px;
  height: 18px;
  accent-color: black;
  cursor: pointer;
}

.experts-filters p {
  font-size: 1.2rem;
  color: #333;
}

.experts-main .filters-section button {
  background-color: black;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
  padding: 7px 20px;
  height: auto;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

.experts-main .filters-section button:hover {
  background-color: rgba(44, 44, 44, 0.87);
  box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.15);
}

.experts-main .experts-about-section, .news-about-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
  width: 100%;
  gap: 30px;
}

.experts-about-section a, .news-about-section a {
  list-style: none;
  color: black;
  overflow: hidden;
  box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
}

.experts-main .experts-about-section > div, .news-about-section > div {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  padding-bottom: 15px;
}

.experts-main .experts-about-section img, .news-about-section img{
  width: 100%;
  /* height: 220px; */
  object-fit: cover;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.experts-about-section a div, .news-about-section a div {
  overflow: hidden;
}

.experts-about-section a > div, .news-about-section a > div {
  display: flex;
  flex-direction: column;
}

.experts-about-section a:hover div img, .news-about-section a:hover div img {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
  border-radius: 10px;
}

.experts-main .experts-about-section h3 {
  font-size: 1.7rem;
  margin: 20px 0 7px 0;
}

.news-about-section h3 {
  font-size: 1.2rem;
  margin: 20px 0 15px 0;
}

.experts-main .experts-about-section p {
  font-size: 1.2rem;
}

.news-about-section p {
  font-size: 1rem;
}

.experts-details-main .expert-details-section > div, .news-details-main .news-details-section > div {
  display: flex;
  gap: 10px;
  margin: 30px 0 20px 0;
  border-radius: 12px;
  align-items: center;
  color: #333;
  font-weight: 500;
  font-family: "Raleway", serif;
}

.experts-details-main .expert-details-section > div > div, .news-details-main .news-details-section > div > div {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.experts-details-main .expert-details-section > div > div:last-of-type, .news-details-main .news-details-section > div > div:last-of-type {
  padding-top: 20px;
}

.experts-details-main .expert-details-section img {
  width: 90%;
  height: 50vh;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.news-details-main .news-details-section img {
  /* width: 100%; */
  height: 70vh;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.experts-details-main .expert-details-section h2, .news-details-main .news-details-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin: 30px 0 25px 0;
  color: black;
  font-weight: 500;
}

.experts-details-main .expert-details-section div p, .news-details-main .news-details-section div p {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
  font-family: "Raleway", serif;
}

.about-expert-text p, .news-details-main .about-news-text p{
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: justify;
  margin-bottom: 40px;
}

.publications-section > div {
  display: flex;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0);
  padding: 10px;
  align-items: center;
  gap: 10px;
}

.publications-section > div > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.publications-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.publications-section h2 {
  font-size: 2rem;
}

.publications-section h5 {
  font-size: 1.2rem;
}

.publications-section p {
  font-size: 1rem;
}

/* Publication page  */

.filter-section {
  margin-bottom: 30px;
  /* padding-top: 20px; */
  border-radius: 12px;
}

.filter-section > div:first-of-type {
  display: flex;
  margin: 20px 0;
  gap: 20px;
}

.filter-section > div:first-of-type button {
  font-size: 1.1rem;
  padding: 8px 18px;
  background-color: #444;
  color: white;
  display: flex;
  gap: 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.filter-section > div:first-of-type button:hover {
  background-color: #666;
}

.result-data {
  display: flex;
  flex-direction: column;
}

.result-data > div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  transition: all 0.3s ease-in-out;
}

.result-data i {
  font-size: 10px;
  color: #666;
}

.result-data p {
  font-size: 1.3rem;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #ccc;
  color: #333;
  font-weight: 500;
}

/* Contact page  */

.contact-main {
  display: flex;
  gap: 50px;
  margin: 20px auto;
}

.contact-header h2{
  font-family: "Montserrat", serif;
}

.contact-main .contactUs-section h1 {
  font-size: 2.3rem;
  margin-bottom: 10px;
  font-family: "Montserrat", serif;
}

.contact-main .contactUs-section p {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  font-family: "Montserrat", serif;
  gap: 12px;
}

.contact-main .contactUs-section div {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.contact-header {
  text-align: center;
  font-size: 2rem;
}

.contactUs-section {
  border-left: 1px solid rgba(43, 40, 40, 0.377);
  padding-left: 30px;
}

.homemain {
  width: 100%;
}

.homemain > div {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.colorbgteam {
  background-color: #336178;
}

.homemain > div h1 {
  color: white;
  font-size: 2.5rem;
}

.colorbgpublicators {
  background-color: #333f78 !important;
  color: white;
}

.colorbgnews,
.vision {
  background-color: #336178 !important;
  color: white;
}

.mission {
  background-color: #42529C !important;
  color: white;
}

footer {
  background-color: #333f78;
}

footer > div {
  width: 80%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 35px 0;
}

.footer_img img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

footer div ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer div li a {
  color: white;
  font-size: 16px;
}

footer h5 {
  color: white;
  font-size: 19px;
  margin-bottom: 15px;
}

footer > div > div:not(:first-of-type) {
  display: flex;
  justify-content: space-between;
  width: 60%;
}


.copyright {
  color: white;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(128, 128, 128, 0.568);
}

.copyright a{
  color: #b6bcd7;
}

.slideshow-container {
  position: relative;
  margin: auto;
  object-fit: cover;
}

.mySlides {
  display: none;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.scroll_active {
  opacity: 1;
  transform: translateY(0);
}

/* Remove padding/margin between navbar and carousel */
header {
  padding: 0;
  margin: 0;
}

/* Full-width & reduced height carousel */
.slideshow-container {
  width: 100vw;
  height: 100vh; /* Adjust height */
  overflow: hidden;
  position: relative;
}

.slideshow-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Footer */
footer {
  background-color: #333f78;
  color: white;
  padding: 40px 0;
}

.footer-container {
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Footer Logo */
.footer_img img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* Footer Sections */
.footer-sections {
  display: flex;
  justify-content: space-between;
  width: 70%;
}

.footer-sections div {
  margin-right: 20px;
}

.footer-sections h5 {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-sections ul {
  list-style: none;
  padding: 0;
}

.footer-sections ul li {
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.footer-sections ul li i {
  margin-right: 8px;
  font-size: 16px;
}

.footer-sections ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-sections ul li a:hover {
  color: #b6bcd7;
}

/* Footer Copyright */
.copyright {
  text-align: center;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 0;
  margin-top: 20px;
}

.news-grid{
  margin-top:30px;
}

a{
  color:black;
  text-decoration: none;
}

a:hover{
  color:black;
  text-decoration: none;
}


/* Styled select dropdown */
.styled-select {
  margin-top:10px;
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  width: 200px;
}

.styled-select:hover {
  border-color: #333f78;
}

.styled-select:focus {
  outline: none;
  border-color: #333f78;
}

/* Filter Dropdowns */
.filter-dropdowns {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

/* Clickable Publication Items */
/* .publication-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.2s ease-in-out;
  text-decoration: none;
  color: inherit;
} */

/* .publication-item:hover {
  background-color: #f8f9fa;
} */

/* .publication-item h5 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #333;
} */

/* .publication-item p {
  font-size: 1rem;
  color: #666;
  margin: 5px 0;
} */

/* Styled select dropdown */
.styled-select {
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  width: 200px;
}

.styled-select:hover {
  border-color: #333f78;
}

.styled-select:focus {
  outline: none;
  border-color: #333f78;
}

/* Filter Form */
.filter-form {
  display: inline-block;
  gap: 15px;
  align-items: center;
}

/* Filter Button */
.filter-btn {
  margin-top:10px;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  background-color: #333f78;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.filter-btn:hover {
  background-color: #2a2f5a;
}

/* Clickable Publication Items */
/* .publication-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.2s ease-in-out;
  text-decoration: none;
  color: inherit;
} */

/* .publication-item:hover {
  background-color: #f8f9fa;
} */

/* .publication-item h5 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #333;
} */

/* .publication-item p {
  font-size: 1rem;
  color: #666;
  margin: 5px 0;
} */

.latest-publicators-carousel {
  display: flex;
  transition: transform 0.4s ease-in-out;
  flex-wrap: nowrap;
  width: 100%;
  gap: 20px;
}

.latest-publicators-carousel-item {
  flex: 0 0 calc(100% / 3); /* Adjusts items to fit 3 per view */
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

/* Apply Publication Item Styling */
.publication-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.2s ease-in-out;
}

.publication-item:hover {
  background-color: #f8f9fa;
}

.publication-item h6 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #333;
}

.publication-item p {
  font-size: 1rem;
  color: #666;
  margin: 5px 0;
}


/* Swiper.js Carousel Styles */
.swiper-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* Ensures full width coverage */
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  padding: 20px;
  border-radius: 50%;
  font-size: 22px;
  transition: background 0.3s ease-in-out;
}

/* Swiper Pagination Dots */
.swiper-pagination {
  bottom: 15px !important;
}

.swiper-pagination-bullet {
  background: white !important;
  width: 12px;
  height: 12px;
  opacity: 0.8;
  transition: opacity 0.3s ease-in-out;
}

.swiper-pagination-bullet-active {
  background: #ffffff !important;
  opacity: 1;
}


.page-header {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url("https://www.agentismanagement.com/_resources/images/core/publications.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Black Overlay */
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Adjust opacity (0.5 = 50% black) */
  z-index: 1; /* Ensures it sits behind text */
}

.page-header .container {
  position: relative;
  width: 85%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2; /* Ensures text stays above overlay */
}

.page-header h1 {
  font-size: 3rem;
  color: white;
  text-align: center;
}


/* Default Grid Layout for Larger Screens */
.experts-main .experts-about-section,
.news-about-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
  width: 100%;
  gap: 30px;
}

/* Responsive: Change to Block Layout on Small Screens */
@media (max-width: 768px) {
  .experts-main .experts-about-section,
  .news-about-section {
    display: block;
    width: 100%;
  }

  .experts-about-section a,
  .news-about-section a {
    display: block;
    width: 100%;
    margin-bottom: 20px; /* Add space between items */
  }
}

.see-all {
  display: inline-block;
  padding: 12px 24px;                     /* Increased padding for a comfortable click area */
  font-size: 1.1rem;
  font-weight: 300;
  color: #fff;
  border: none;                           /* No visible border for a clean look */
  border-radius: 50px;                    /* Rounded (pill-shaped) corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow to lift the button off the page */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-image 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.see-all:hover,
.see-all:focus {
  transform: translateY(-3px);            /* Small lift effect on hover */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow for a dynamic feel */
}

.page-publications-list{
  padding-left:15px;
}

.page-publication-item{
  list-style-type: disc;
  text-decoration: underline;
}


.page-news-details-main h1{
  margin-bottom:20px;
}

.page-news-details-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

/* Float the image so that text (including the title) flows beside it */
.page-news-image {
  float: left;
  width: 400px;          /* Fixed width for the image box */
  height: auto;          /* Maintain aspect ratio (non-deformed) */
  margin-right: 20px;    /* Gap between the image and the text */
  margin-bottom: 10px;   /* Space below the image to avoid text clashing */
  border: 1px solid #ccc; /* Optional border to mimic a clean box style */
}

/* Title styling: bold and larger, which will appear to the right of the floated image */
.page-news-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Styling for paragraph content */
.page-news-layout p {
  line-height: 1.6;
  margin-bottom: 1em;
}

/* Clear float after the content so that the container wraps the floated image */
.page-news-layout::after {
  content: "";
  display: block;
  clear: both;
}