/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  /* background-color: var(--body-color); */
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
/* .container {
  max-width: 1120px;
  margin-inline: 1.5rem;
} */

/*=============== HEADER ===============*/
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgb(24,24,120);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}
.ri-close-line:before {
  content: "\eb99";
}

.ri-menu-line:before {
  content: "\ef3e";
}
/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--white-color) !important;
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 30px; 
}

.nav__logo {
  color: #fff;
  font-family: Montserrat;
  font-size: 3.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none !important;
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  font-size: 30px;
  color: #fff;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: var(--black-color);
    padding-top: 1rem;
  }
}

.nav__link {
  text-decoration: none !important;
  color: #fff;
  font-family: 'Montserrat';
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  transition: background-color .3s;
}

.nav__link:hover {
  background-color: var(--black-color-light);
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
  color: rgb(24,24,120);
}
.ri-subtract-line{
  color: rgb(24,24,120);
}
.dropdown__link, 
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--white-color);
  background-color: rgb(24,24,120);
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
  white-space: nowrap;

}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
  color: #479E83;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: #479E83;
  
}

.ri-subtract-line{
  color: #479E83  ;
}

.fa-solid.fa-plus{
  color: rgb(24,24,120);
}


.dropdown__menu, 
.dropdown__submenu {
  max-height: 0 !important;
  overflow: hidden;
  /* transition: max-height .4s ease-out; */
}
.dropdown__menu.show-dropdown {
  max-height: 1000px !important;
  transition: height 2s ease !important;
}
.show-submenu{
  max-height: 1000px !important;
  transition: height 2s ease !important;

}
.dropActive{
  transform:inherit !important;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  /* transition: max-height .4s ease-in; */
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container1 {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container1 {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex !important;
    justify-content: space-between;
    padding: 0px 40px;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
    margin: 0px 40px;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0rem;
    pointer-events: initial;
    transition: top .3s;
  }
}

.icons {
  display: flex;
  align-items: center;
  gap: 30px;
}

.icons .divider {
  width: 2px;
  height: 20px;
  background-color: white;
}

.icons img {
  width: 24px;
  height: 24px;
}

div#nav-menu {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .icons {
    margin-left: 0;
    display: none;
  }
  div#nav-menu{
    display: inherit;
  }
}
.nav {
  display: block;
}



/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(38, 92%, 58%);
  --first-color-light: hsl(38, 100%, 78%);
  --first-color-alt: hsl(32, 75%, 50%);
  --second-color: hsl(195, 75%, 52%);
  --dark-color: hsl(212, 40%, 12%);
  --white-color: hsl(212, 4%, 95%);
  --body-color: hsl(212, 42%, 15%);
  --container-color: hsl(212, 42%, 20%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Bai Jamjuree", sans-serif;
  --h2-font-size: 1.25rem;
  --normal-font-size: 1rem;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  /* background-color: var(--body-color); */
  color: var(--white-color);
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== CARD ===============*/
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* height: 100vh; */
}

.card__container{
  padding-block: 5rem;
  background-image: url("../img/material.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.card__content{
  margin-inline: 1.75rem;
  border-radius: 1.25rem;
  overflow: hidden;
}

.card__article{
  /* width: 300px; */
  border-radius: 1.25rem;
  overflow: hidden;
  /* width: auto !important; */
}


.card__data{
  background-color:#fff;
  padding: 1.5rem 2rem;
  /* border-radius: 1rem; */
  text-align: center;
  position: relative;
  z-index: 10;
  height: 400px;
}

.card__data ul{
  color: rgb(102, 102, 102);
  font-family: 'Montserrat';
  font-size: 24px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0.5px;
  text-align: left;
}

.card__img{
   width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  height: 500px;
}

.card__shadow{
  width: 200px;
  height: 200px;
  background-color:var(--first-color-alt);
  border-radius: 50%;
  position: absolute;
  top: 3.75rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  filter: blur(45px);
}

 .card__name{
  margin-bottom: .75rem;
  color: rgb(51, 51, 51);
font-family: 'Montserrat';
font-size: 3rem;
font-weight: 700;

letter-spacing: 0.5px;
text-align: left;
}

.card__description{
  font-weight: 500;
  margin-bottom: 1.75rem;
}


/* Swiper class */
.swiper-button-prev::after,
.swiper-button-next::after {
content: "";
}

.swiper-button-next,
.swiper-button-prev {
  width: initial;
  height: initial;
  font-size: 3rem;
  color: var(--second-color);
  display: none;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev {
  left: 0;
}

.swiper-pagination-bullet {
  background-color: hsl(212,32%,40%);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: var(--second-color)
}
/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .card__data {
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: block;
  }

  .card__content{
    margin-inline: 3rem;
  }
}

/* For large devices */
@media screen and (min-width: 1120px) {
  /* .card__container{
  max-width: 1120px;
  } */

  .swiper-button-next{
    right: -1rem;
  }

  .swiper-button-prev {
    left: -1rem;
  }
}


.dropdown__item a{
  color: white;
}

/* 移动端分页优化 */
@media screen and (max-width: 768px) {
  .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 15px;
    margin: 20px 0;
  }
  
  .page-item {
    margin: 2px;
  }
  
  .page-link {
    min-width: 35px;
    height: 35px;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .page-item.active .page-link {
    background-color: #479E83;
    border-color: #479E83;
    color: white;
  }
  
  .page-link:hover {
    background-color: #f8f9fa;
    border-color: #479E83;
    color: #479E83;
  }
  
  /* 隐藏部分分页项（保留前3页、当前页、后3页） */
  .page-item:nth-child(n+6):nth-last-child(n+6) {
    display: none;
  }
  
  /* 显示省略号 */
  .page-item:nth-child(6):nth-last-child(n+6)::after {
    content: '...';
    display: inline-block;
    padding: 0.5rem;
    color: #6c757d;
  }
  .dropdown__link, 
  .dropdown__sublink {
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
    color: var(--white-color);
    background-color: black !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: .5rem;
    font-weight: var(--font-semi-bold);
    transition: background-color .3s;
    white-space: nowrap;

  }
  .dropdown__arrow{
    color: rgb(24 120 93) !important;
  }
}