.nav-item a::before {
  content: "";
  height: 0.375rem;
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 100%;
}

/* Red and bold text styling */
.text-red-strong {
  font-weight: bold;
  color: #D70014;
  cursor: pointer;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.text-red-strong:hover {
  color: #A8000F;
  text-decoration: none;
}

/* Alberta Curriculum Grid Layout */
.alberta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 30px 0;
}

.alberta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.alberta-item img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .alberta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Top Majors Grid Layout */
.top-majors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 30px 0;
}

/* Add margin bottom to images */
.teambox .cont img {
  margin-bottom: 20px;
}

/* 2-column image grid */
.images-grid-2col {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.images-grid-2col img {
  width: 50%;
  margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .images-grid-2col {
    flex-direction: column;
  }
  
  .images-grid-2col img {
    width: 100%;
    margin-bottom: 20px;
  }
}

.top-major-item {
  display: flex;
  flex-direction: column;
}

.top-major-item h2,
.top-major-item p {
  margin: 0;
}

/* Mobile Responsive for Top Majors */
@media (max-width: 768px) {
  .top-majors-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.nav-item-active a.text-primary::before {
  --tw-bg-opacity: 1;
  background-color: rgba(215, 0, 20, var(--tw-bg-opacity));
}

.swiper-1-pagination .swiper-pagination-bullet {
  --tw-bg-opacity: 1 !important;
  height: 0.75rem !important;
  opacity: 1 !important;
  width: 0.75rem !important;
}

.swiper-1-pagination .swiper-pagination-bullet-active {
  --tw-bg-opacity: 1 !important;
  background-color: rgba(215, 0, 20, var(--tw-bg-opacity)) !important;
}

.pg-prev-next::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    position: absolute;
    top: 0;
    left: 0;
}
   /* Tab Content Styling */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}
/* Subnav Styling */
.menuLists .subnav a {
  padding-left: 4em; /* 向右位移4个字母的宽度 */
}
@media (max-width: 768px) {
  .cont > div[style*="flex-wrap: wrap"] {
    flex-direction: column;
  }
  .cont > div[style*="flex-wrap: wrap"] img {
    width: 100% !important;
  }
}

/* Image and List Container Styles */
.image-list-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.image-list-container img {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.image-list-container ul {
  width: 50%;
  list-style-position: inside;
  padding: 0;
  margin: 0;
  text-align: left;
}

.image-list-container ul li {
  font-size: 20px;
  color: #D70014;
  background-color: #FFDEE1;
  margin: 16px 28px;
  padding: 10px 15px;
  border-radius: 8px;
  line-height: 1.5;
}
h1{
  color: #000;
}
/* Mobile Responsive Styles for Image and List Container */
@media (max-width: 768px) {
  .image-list-container {
    flex-direction: column;
  }
  
  .image-list-container img {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .image-list-container ul {
    width: 100%;
    text-align: center;
  }
}

/* Learning Support Page ELL Container */
.ell-container li {
  background-color: #F7F7F7;
  padding: 30px;
  font-size: 20px;
  margin-top: 20px;
  border-left: 5px solid #D70014;
}
/* Side Navigation Hover Effect */
.menuLists a:hover {
  color: #D70014;
}
.pg-prev-next {
    position: relative;
    padding-top: 20px;
}
.pg-prev-next {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.pg-prev-next .prevnext {
    display: flex !important;
    align-items: center !important;
}

.pg-prev-next .menu {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.pg-prev-next a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: inherit !important;
}

.pg-prev-next a:hover {
    color: red !important;
}

/* Music Page - Four Core Musical Pillars */
.music-pillars-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.music-pillars-container > div {
    flex: 0 0 calc(50% - 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.music-pillars-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 10px;
}

.music-pillars-container p {
    margin: 0;
    font-weight: bold;
    text-align: center;
}

@media (max-width: 767px) {
    .music-pillars-container > div {
        flex: 0 0 100%;
    }
}

/* Model United Nations Page - Achievements Grid */
.mun-achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.mun-achievements-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mun-achievements-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
}

.mun-achievements-grid h3 {
    margin: 0;
    font-size: 18px;
    text-align: center;
}

@media (max-width: 767px) {
    .mun-achievements-grid {
        grid-template-columns: 1fr;
    }
}



.pg-prev-next a:hover p {
    color: red !important;
}

/* ASA Page - Programs Grid (No style change, just layout) */
.asa-layout-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 20px 0;
}

.asa-layout-grid > div {
    flex: 0 0 25%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .asa-layout-grid > div {
        flex: 0 0 50%;
    }
}

.pg-prev-next img {
    margin: 0 5px !important;
}

/* Athletics Page - Left Image Right Text Layout */
.athletics-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.athletics-profile img {
    width: auto;
    height: auto;
    max-width: 300px;
    object-fit: cover;
}

.athletics-profile-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.athletics-profile h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.athletics-profile p {
    margin: 0;
}

/* Athletics Page - Profiles Grid Layout */
.athletics-profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 767px) {
    .athletics-profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .athletics-profile-content {
        text-align: center;
    }
}

/* Athletics Page - h2 Margin Top */
.teambox h2.fnt24 {
    margin-top: 20px;
}

.pg-prev-next p {
    margin: 0 !important;
    display: inline !important;
}

/* Houses Page - Features Grid */
.houses-features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    list-style: none;
    margin: 0;
}

.houses-feature-item {
    background-color: #9F000F;
    color: white;
    font-weight: bold;
    text-align: center;
    margin: 10px 30px;
    padding: 10px 20px;
    flex: 0 0 calc(25% - 60px);
    box-sizing: border-box;
}
.teambox img{
  margin: 20px auto;
}
@media (max-width: 767px) {
    .houses-feature-item {
        flex: 0 0 calc(100% - 60px);
    }
}

/* Student Organizations Page - Left-Right Layout */
.student-orgs-layout {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.student-orgs-layout img {
    width: 50%;
    height: auto;
    object-fit: cover;
}

.student-orgs-layout p {
    flex: 1;
}
h4{
  color: #000;
}
/* Student Organizations Page - Right to Left Layout */
.student-orgs-layout.reverse {
    flex-direction: row-reverse;
}
.swiper-wrapper{
  text-align: center;
}


    /* Tuition Fees Contact Form Styles */
    .contactUs-bd {
      background-color: #f9f9f9;
      padding: 40px;
      margin: 40px 0;
    }
    
    .contactUs-bd .tt {
      margin-bottom: 30px;
      text-align: center;
    }
    

    
    .contactUs-bd .tt p {
      color: #666;
      font-size: 14px;
      margin: 0;
    }
    
    .contactUs-bd .ct form {
      display: flex;
      flex-direction: column;
      gap: 20px;
      align-items: start;
    }
    
    .contactUs-bd .form-row {
      display: flex;
      gap: 15px;
      width: 100%;
      align-items: start;
    }
    
    .contactUs-bd .ippt2,
    .contactUs-bd .ippt3,
    .contactUs-bd .ippt4 {
      display: flex;
      flex-direction: column;
      width: 100%;
      gap: 5px;
    }
    
    .contactUs-bd .ippt3 {
      width: 100%;
    }
    
    .contactUs-bd .btn {
      width: 100%;
      text-align: center;
      margin-top: 10px;
    }
    
    .contactUs-bd input[type="text"],
    .contactUs-bd input[type="tel"],
    .contactUs-bd input[type="email"],
    .contactUs-bd textarea {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-size: 16px;
      transition: all 0.3s ease;
      background-color: white;
      box-sizing: border-box;
    }
    
    .contactUs-bd input[type="text"]:focus,
    .contactUs-bd input[type="tel"]:focus,
    .contactUs-bd input[type="email"]:focus,
    .contactUs-bd textarea:focus {
      outline: none;
      border-color: #9F000F;
      box-shadow: 0 0 0 3px rgba(159, 0, 15, 0.1);
      transform: translateY(-1px);
    }
    
    .contactUs-bd textarea {
      resize: vertical;
      min-height: 150px;
      font-family: inherit;
    }
    
    .contactUs-bd .btn button {
      background-color: #D32027;
      color: white;
      border: none;
      padding: 15px 40px;
      border-radius: 8px;
      font-size: 18px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 100%;
    }
    
    .contactUs-bd .btn button:hover {
      background-color: #D32027;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(159, 0, 15, 0.4);
    }
    
    .contactUs-bd .btn button:active {
      transform: translateY(0);
      box-shadow: 0 3px 10px rgba(159, 0, 15, 0.3);
    }
    
    @media (max-width: 767px) {
      .contactUs-bd {
        padding: 25px;
        margin: 25px 0;
      }
      
    
      
      .contactUs-bd .form-row {
        flex-direction: column;
        gap: 15px;
      }
      
      .contactUs-bd input[type="text"],
      .contactUs-bd input[type="tel"],
      .contactUs-bd input[type="email"],
      .contactUs-bd textarea {
        padding: 12px 14px;
        font-size: 15px;
      }
      
      .contactUs-bd .btn button {
        padding: 14px 30px;
        font-size: 17px;
        min-width: 180px;
      }
    }
    
    @media (max-width: 480px) {
      .contactUs-bd {
        padding: 20px;
        margin: 20px 0;
      }
      
      .contactUs-bd .tt h3 {
        font-size: 22px;
      }
      
      .contactUs-bd .btn button {
        width: 100%;
        min-width: auto;
      }
    }


@media (max-width: 767px) {
    .student-orgs-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .student-orgs-layout.reverse {
        flex-direction: column;
    }
    
    .student-orgs-layout img {
        width: 100%;
        margin: 0 auto;
    }
    
    .student-orgs-layout div {
        text-align: center;
    }
}

.videolist {
  position: relative;
  float: left;
  width: 100%;
  margin-right: 50px;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.videolist:hover {
  cursor: pointer;
}

.videoed {
  width: 50px;
  height: 50px;
  position: absolute;
  left: 48%;
  top: 40%;
  z-index: 99;
  border-radius: 100%;
}

.videos {
  display: none;
  border: 1px solid #080808;
  position: fixed;
  left: 50%;
  top: 50%;
  margin-left: -320px;
  margin-top: -210px;
  z-index: 100;
  width: 640px;
  height: 360px;
}

.vclose {
  position: absolute;
  right: 1%;
  top: 1%;
  border-radius: 100%;
  cursor: pointer;
}

.section-5 .wow:nth-child(even) {
  animation-name: fadeInLeft;
}

.section-5 .wow:nth-child(odd) {
  animation-name: fadeInRight;
}

.swiper-pagination-bullet {
  --tw-bg-opacity: 1;
  background-color: rgba(219, 219, 219, var(--tw-bg-opacity));
  height: 0.75rem;
  width: 0.75rem;
}

.swiper-pagination-bullet-active {
  --tw-bg-opacity: 1 !important;
  background-color: rgba(215, 0, 20, var(--tw-bg-opacity)) !important;
}

@media (min-width: 640px) {
  .footer-menu-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media (min-width: 1024px) {
  .footer-menu-item:nth-child(1),
  .footer-menu-item:nth-child(2),
  .footer-menu-item:nth-child(3),
  .footer-menu-item:nth-child(5),
  .footer-menu-item:nth-child(6),
  .footer-menu-item:nth-child(7),
  .footer-menu-item:nth-child(9),
  .footer-menu-item:nth-child(10) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media (min-width: 1280px) {
  .footer-menu-item:nth-child(1),
  .footer-menu-item:nth-child(2),
  .footer-menu-item:nth-child(3),
  .footer-menu-item:nth-child(4),
  .footer-menu-item:nth-child(6),
  .footer-menu-item:nth-child(7),
  .footer-menu-item:nth-child(8),
  .footer-menu-item:nth-child(9) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
}

.swiper-slide-1 {
  background-image: url('../image/index/2.jpg');
}

.swiper-slide-2 {
  background-image: url('../image/2.jpg');
}

.swiper-slide-3 {
  background-image: url('../image/3.jpg');
}

.swiper-slide-4 {
  background-image: url('../image/4.jpg');
}

.swiper-slide-5 {
  background-image: url('../image/5.jpg');
}

.edu-card-1 {
  background-image: url('../image/index/5.png');
}

.edu-card-2 {
  background-image: url('../image/index/6.png');
}

.edu-card-3 {
  background-image: url('../image/index/7.png');
}

.edu-card-4 {
  background-image: url('../image/index/8.png');
}

.quote-content {
  padding-left: 6rem;
}

.wrap {
  display: flex;
  justify-content: space-between;
}

.crumb-bar {
  position: relative;
  padding-top: 30px;
  overflow: hidden;
  background-color: #f7f7f7;
}

.crumb-bar .bg-red {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #D32027;
  top: 0;
  z-index: 0;
}

.crumb-bar .inner {
  position: relative;
  z-index: 2;
  background-color: #fff;
  padding: 30px 0 35px;
}

.crumb-bar .inner::before {
  content: '';
  display: block;
  width: 50vw;
  height: 100%;
  background-color: #fff;
  position: absolute;
  right: 100%;
  top: 0;
}

.crumb-bar .inner .hd {
  margin-bottom: 18px;
  color: #3F4240;
}

.crumb-bar .inner .hd a {
  color: #3F4240;
}

.crumb-bar .inner .hd a:hover {
  color: #D32027;
}

.crumb-bar .inner .hd span {
  color: #D32027;
}

.crumb-bar .inner .bd-title h2 {
  line-height: 1.2;
  color: #3F4240;
}

.inPages {
  background-color: #f7f7f7;
  padding-top: 30px;
}

.inPages .wrap {
  display: flex;
  justify-content: space-between;
}

.inPages .sideMn {
  width: 20%;
}

.inPages .mainCnt {
  width: 78.5%;
}

.menuLists {
  background-color: #fff;
  margin-bottom: 20px;
  padding: 20px;
}

.menuLists li {
  border-bottom: 1px solid #e9e9e9;
  height: 54px;
  display: flex;
  align-items: center;
}

.menuLists li:last-child {
  border-bottom: none;
}

.menuLists li a {
  display: block;
  padding-left: 40px;
  position: relative;
  width: 100%;
}

.menuLists li a::before {
  content: '';
  display: block;
  width: 21px;
  height: 18px;
  background: url(../image/tableft.png) 0 0 no-repeat;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}

.menuLists li a::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid #D32027;
  opacity: 0;
}

.menuLists li.active a {
  color: #D32027;
  font-weight: bold;
}

.menuLists li.active a::before {
  opacity: 1;
}

.menuLists li.active a::after {
  opacity: 1;
}

.newsLists li {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
}

.newsLists li a {
  display: flex;
  justify-content: space-between;
}

.newsLists li .datetime {
  width: 100px;
  height: 100px;
  background-color: #D32027;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  flex-shrink: 0;
  margin-right: 20px;
}

.newsLists li .datetime b {
  line-height: 1;
  display: block;
}

.newsLists li .info {
  width: 88.03922%;
}

.newsLists li .info h2 {
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.newsLists li .info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
  opacity: 0.7;
  color: #2C2C2C;
  line-height: 24px;
  margin-bottom: 20px;
}

.pages {
  text-align: center;
  padding-top: 37px;
  padding-bottom: 40px;
  justify-content: center;
  align-items: center;
}

.pages a {
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: #fff;
  position: relative;
  margin: 0 3px;
  color: #333;
}

.pages a.prevnext {
  width: 80px;
}

.pages a.active {
  background-color: #da0a28;
  color: #fff;
  border-color: #da0a28;
}

.pages a:hover {
  background-color: #da0a28;
  color: #fff;
  border-color: #da0a28;
}

.focusNews {
  padding: 20px;
  background-color: #fff;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
}

.focusNews .img {
  width: 49.5098%;
  height: 284px;
  overflow: hidden;
}

.focusNews .img img {
  width: 100%;
  height: 100%;
  transition: all .4s;
  object-fit: cover;
}

.focusNews:hover .img img {
  transform: scale(1.05);
}
.btApply{
  background-color: #D70014;
  font-size: 16px;
  color: #fff;
  padding: 0 22px;
  line-height: 60px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

/* Mobile responsive styles for btApply */
@media (max-width: 1023px) {
  .btApply {
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .btApply {
    margin-bottom: 40px;
  }
}
.focusNews .info {
  width: 48.77358%;
  background-color: #fbfbfb;
  padding: 30px;
}
.fnt20{
  font-size: 20px;
  font-weight: bold;
}
.fnt24{
  font-size: 24px;
  font-weight: bold;
}
.fnt36{
  font-size: 36px;
  font-weight: bold;
}
.fnt40{
  font-size: 40px;
  font-weight: bold;
}
.focusNews .info h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 12px;
}

.focusNews .info .datetime {
  color: #D32027;
  margin-bottom: 12px;
}

.focusNews .info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 46px;
  opacity: .7;
}

.focusNews:hover .info h2 {
  color: #D32027;
}

.focusNews .info .btn-more {
  margin-top: 35px;
}

.btn-more a {
  display: inline-block;
  color: #fff;
  padding: 0 22px;
  line-height: 40px;
  border-radius: 20px 0 20px 0;
  background-color: #D32027;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn-more a::after {
  content: '';
  display: block;
  width: 0;
  height: 100%;
  background-color: #af1c22;
  position: absolute;
  left: 0;
  top: 0;
  transition: all .5s;
  z-index: -1;
}

.btn-more a:hover {
  opacity: .9;
}

.btn-more a:hover::after {
  width: 100%;
}

.wow {
  visibility: hidden;
}

.wow.animated {
  visibility: visible;
}

.fadeInLeft {
  animation-name: fadeInLeft;
}

.fadeInRight {
  animation-name: fadeInRight;
}

.fadeInUp50 {
  animation-name: fadeInUp50;
}

@media (max-width: 768px) {
#honors-container {
  flex-direction: column !important;
}

#honors-container > div {
  width: 100% !important;
}
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp50 {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination a {
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: #fff;
  position: relative;
  margin: 0 3px;
  color: #333;
  text-align: center;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
}

.pagination a:hover {
  background-color: #da0a28;
  color: #fff;
  border-color: #da0a28;
}

.pagination a.active {
  background-color: #da0a28;
  color: #fff;
  border-color: #da0a28;
}

.tools {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fixed {
  position: fixed;
}

@media screen and (max-width: 1440px) {
  .focusNews .info p {
    height: 42px;
  }

  .focusNews .img {
    height: 257px;
  }

  .newsLists li .info {
    width: 85%;
  }

  .newsLists li .info h2 {
    padding-top: 10px;
  }
}

@media screen and (max-width: 1024px) {
  .focusNews .img {
    height: 254px;
  }

  .newsLists li .info {
    width: 82%;
  }

  .newsLists li .info p {
    height: 42px;
  }
}

@media (max-width: 1023px) {
  .mb {
    display: block;
  }

  .pc {
    display: none;
  }

  .focusNews {
    flex-direction: column;
  }

  .focusNews .img {
    width: 100%;
    height: 254px;
  }

  .focusNews .info {
    width: 100%;
    padding: 20px;
  }

  .focusNews .info p {
    height: 42px;
  }

  .newsLists li .info {
    width: 82%;
  }

  .newsLists li .info p {
    height: 42px;
  }

  .crumb-bar .inner {
    padding: 20px 0 25px;
  }

  .inPages .wrap {
    flex-direction: column-reverse;
  }

  .inPages .sideMn {
    width: 100%;
  }

  .inPages .mainCnt {
    width: 100%;
  }

  .pages {
    padding: 20px 0 40px;
  }

  .pages a {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  .newsLists li .datetime {
    width: 80px;
    height: 80px;
  }

  .newsLists li .info {
    width: calc(100% - 100px);
  }

  .newsLists li .info h2 {
    padding-top: 10px;
  }

  .mb .menuLists {
    display: flex;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 20px 20px 0;
  }

  .mb .menuLists li {
    border-bottom: none;
    height: 30px;
  }

  .menuLists li a {
    padding: 0 20px 0 25px;
  }

  .menuLists li a::before {
    left: 0;
  }

  .menuLists li a::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .fnt36 {
    font-size: 28px;
  }

  .fnt24 {
    font-size: 20px;
  }

  .fnt20 {
    font-size: 18px;
  }

  .newsLists li {
    padding: 15px;
  }

  .newsLists li .datetime {
    width: 70px;
    height: 70px;
    margin-right: 15px;
  }

  .newsLists li .info {
    width: calc(100% - 85px);
  }

  .pages a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 14px;
  }
}

@media screen and (max-width: 500px) {
  .focusNews .img {
    height: 43vw;
  }
}

/* Banner Styles */
.banner {
  width: 100%;
  overflow: hidden;
  background-color: #f7f7f7;
}

.banner-inner {
  width: 100%;
  position: relative;
  display: block;
}

.banner-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.banner-title {
  position: absolute;
  top: 70%;
  left: 5%;
  width: 90%;
  max-width: 1200px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  text-align: left;
  z-index: 10;
}
.aboutbox .cont h2::before ,.aboutbox h2::before  {
  content: '';
  display: inline-block;
  width: 7px;
  height: 16px;
  background-color: #D32027;
  margin-right: 9px;
}

.teambox p{
  margin-top: 20px;
}
/* Mobile Responsive */
@media (max-width: 767px) {
  .banner-inner {
    height: 500px;
    position: relative;
    display: block;
  }

  .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  .banner-title {
    top: 70%;
    left: 5%;
    width: 90%;
    max-width: 1200px;
    font-size: 32px;
    text-align: left;
  }
}

/* About Box Styles */
.aboutbox {
  background-color: #fff;
  padding: 30px;
  margin-bottom: 30px;
}

/* Team Box Styles */

.teambox .title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #D32027;
}

.teambox .title h3 {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: bold;
}

.teambox .cont {
  line-height: 1.8;
  color: #666;
  font-size: 16px;
}

.teambox .cont h2 {
  color: #333;
  font-weight: bold;
}


.teambox .cont h3 {
  margin: 20px 0 10px 0;
  color: #333;
  font-size: 18px;
  font-weight: bold;
}

.teambox .cont p {
  margin: 0 0 15px 0;
}

.teambox .cont ul {
  margin: 0 0 15px 0;
}

.teambox .cont ul li {
  margin-bottom: 10px;
}

.teambox .cont .img {
  margin: 30px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.teambox .cont .img img {
  max-width: 80%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* School Values Grid Styles */
.school-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}



.school-value-item h2 {
  margin: 0 0 15px 0;
  color: #D32027;
  font-size: 22px;
  font-weight: bold;
}

.school-value-item p {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive Styles for School Values Grid */
@media (max-width: 768px) {
  .school-values-grid {
    grid-template-columns: 1fr;
   
  }
  
 
}

/* WeCare Grid Styles */
.wecare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 30px 0;
}

.wecare-item {
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}



.wecare-icon {
  margin-right: 20px;
  flex-shrink: 0;
}

.wecare-icon .fnt40 {
  width: 80px;
  height: 80px;
  background-color: #D32027;
  color: white;
  font-size: 40px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: 0;
}

.wecare-content {
  flex: 1;
}

.wecare-content h2 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 22px;
  font-weight: bold;
}

.wecare-content h2::before {
  content: none !important;
  margin: 25px 0 0 0;
}

.wecare-content p {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive Styles for WeCare Grid */
@media (max-width: 768px) {
  .wecare-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .wecare-item {
    padding: 20px;
  }
  
  .wecare-icon .fnt40 {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }
}

/* About IB Box Styles */
.about-ibox {
  margin: 30px 0;
  background: none;
  padding: 0;
}

.about-ibox ul {
  list-style: none;
  padding: 0;
  margin: 0 -10px;
  display: flex;
  flex-wrap: wrap;
}

.about-ibox ul li {
  width: 49.5%;
  padding: 10px;
  margin-bottom: 10px;
  margin-right: 1%;
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 195px;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}

.about-ibox ul li:nth-child(2n) {
  margin-right: 0;
}

.about-ibox ul li .icon {
  width: 60px;
  margin-bottom: 10px;
}

.about-ibox ul li .icon img {
  width: 100%;
}

.about-ibox ul li .icon .normal {
  display: block;
}

.about-ibox ul li .icon .hover {
  display: none;
}

.about-ibox ul li h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 18px;
  font-weight: bold;
}

.about-ibox ul li p {
  opacity: .5;
  text-transform: uppercase;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.about-ibox ul li:hover {
  background-color: #D32027;
  color: #fff;
}

.about-ibox ul li:hover .icon .normal {
  display: none;
}

.about-ibox ul li:hover .icon .hover {
  display: block;
}

.about-ibox ul li:hover h4 {
  color: #fff;
}

.about-ibox ul li:hover p {
  opacity: 1;
  color: #fff;
}

/* Responsive Styles for About IB Box */
@media screen and (max-width: 768px) {
  .aboutbox {
    padding: 10px 10px 20px 10px;
  }
  
  .about-ibox ul li {
    width: 48%;
    margin-right: 4%;
    height: 150px;
    padding: 0 5px;
  }
  
  .about-ibox ul li:nth-child(2n) {
    margin-right: 0;
  }
  
  .about-ibox ul li:nth-child(3n) {
    margin-right: 4%;
  }
  
  .about-ibox ul li:nth-child(4n) {
    margin-right: 0;
  }
  
  .about-ibox ul li .icon {
    width: 40px;
  }
  
  .about-ibox ul li h4 {
    font-size: 14px;
  }
  
  .about-ibox ul li p {
    font-size: 12px;
    word-break: break-all;
  }
}

@media (max-width: 576px) {
  .about-ibox ul li {
    width: 100%;
    margin-right: 0;
  }
  
  .about-ibox ul li:nth-child(2n),
  .about-ibox ul li:nth-child(3n),
  .about-ibox ul li:nth-child(4n) {
    margin-right: 0;
  }
}
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Tab Navigation Styles */
.tabnav {
  display: flex;
  margin-bottom: 30px;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabnav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .tabnav {
    padding-bottom: 10px;
  }
  
  .tabnav a {
    flex-shrink: 0;
  }
  
  /* Team members layout for mobile */
  .tab-content > div[style*="display: flex; flex-wrap: wrap"] > div {
    width: calc(50% - 10px) !important;
  }
}

.tabnav a {
  padding: 10px 20px;
  color: #C1C1C1;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  font-weight: normal;
}

.tabnav a.active {
  color: #D32027;
  border-bottom-color: #D32027;
  font-weight: bold;
}

/* Swiper Container Styles */
.swiper-container {
  width: 100%;
  padding-bottom: 40px;
  overflow: hidden;
}

.carousel.swiper {
  width: 100%;
}


.swiper-slide img {
  /*width: 100%;*/
  height: auto;
  border-radius: 8px;
  
}

/* Timeline CSS */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* 中间的灰色直线 */
.timeline::after {
  content: '';
  position: absolute;
  width: 1px;
  background-color: #e0e0e0;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: 1;
}

/* 容器 - 左右交替 */
.timeline-item {
  position: relative;
  background-color: inherit;
  width: 100%;
  box-sizing: border-box;
}

/* 左侧容器 */
.timeline-item.left {
  left: 0;
}

/* 右侧容器 */
.timeline-item.right {
  left: 50%;
}

/* 中间的红色圆点 */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  right: 49.8%;
  background-color: #D70014;
  top: 85px;
  border-radius: 50%;
  z-index: 2;
}

/* 右侧容器的圆点位置调整 */
.timeline-item.right::after {
  left: -10px;
}

/* 内容区域 */
.timeline-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10%;
}

/* 奇数行：左图右字 */
.timeline-item:nth-child(odd) .timeline-content {
  flex-direction: row;
}

/* 偶数行：右图左字 */
.timeline-item:nth-child(even) .timeline-content {
  flex-direction: row-reverse;
}

/* 图片样式 */
.timeline-image {
  width: 45%;
  height: 290px;
  object-fit: cover;
  border-radius: 8px;
}

/* 文字内容样式 */
.timeline-text {
  width: 45%;
  text-align: left;
}

/* 年份样式 */
.timeline-year {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

/* 描述样式 */
.timeline-description {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}
/* 响应式设计 */
@media screen and (max-width: 1200px) {
  .timeline-image {
    width: 40%;
    height: 230px;
  }
}

@media screen and (max-width: 992px) {
  .timeline-image {
    width: 40%;
    height: 180px;
  }
}

@media screen and (max-width: 768px) {
  /* Flex容器响应式样式 */
  .flex-container {
    flex-direction: column !important;
  }
  
  .flex-container .image-wrapper {
    width: 100% !important;
    margin-bottom: 20px;
  }
  
  .flex-container .text-wrapper {
    width: 100% !important;
  }
  
  /* 移动端将中间线移到左侧 */
  .timeline::after {
    left: 31px;
  }
  
  /* 所有容器宽度100%，左侧和右侧容器都左对齐 */
  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    position: relative;
    background-color: inherit;
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    left: 0%;
    margin-bottom: 50px;
    box-sizing: border-box;
  }
  
  /* 所有圆点都在左侧 */
  .timeline-item::after,
  .timeline-item.right::after {
    left: 21px;
  }
  
  /* 时间轴内容垂直排列 */
  .timeline-item.left .timeline-content {
    flex-direction: column;
  }
  
  .timeline-item.right .timeline-content {
    flex-direction: column-reverse;
  }
}

/* STEAM page image layout */
.steam-image-container {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  justify-content: center;
}

.steam-image-container img {
  width: 50%;
  margin-bottom: 0;
}

/* STEAM page content layout */
.steam-content-container {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
}

.steam-content-item {
  text-align: center;
}

.steam-content-item:first-child {
  width: 66.666%;
}

.steam-content-item:last-child {
  width: 33.333%;
}

.steam-content-item img {
  width: 100%;
  margin-bottom: 15px;
  height: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .steam-image-container {
    flex-direction: column;
    align-items: center;
  }
  
  .steam-image-container img {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
  }
  
  .steam-content-container {
    flex-direction: column;
    align-items: center;
  }
  
  .steam-content-item,
  .steam-content-item:first-child,
  .steam-content-item:last-child {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
  }
  
  .steam-content-item:last-child {
    margin-bottom: 0;
  }
  
  .steam-content-item img {
    max-width: 400px;
    height: auto;
    margin: 0 auto 15px;
  }
  
  /* 移动端图片自适应，左对齐 */
  .timeline-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    align-self: flex-start;
  }
  
  /* 移动端所有文字左对齐 */
  .timeline-text {
    text-align: left;
    width: 100%;
  }
}

/* Ensure proper swiper navigation */
.tab-swiper {
  position: relative;
  overflow: hidden;
}

/* School Policies Page - Link Style */
.policies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.policy-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f0f0;
  border-left: 5px solid #D70014;
  padding: 10px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  height: 100%;
  margin-top: 20;
}

.policy-link div {
  flex: 1;
}

.policy-link img {
  margin-left: 10px;
  align-self: flex-start;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .policies-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Map container responsive */
  .baidu-map {
    height: 300px !important;
  }
  
  .map-container {
    padding: 0 10px;
  }
}

/* Pagination Styles */
.swiper-pagination, .swiper-1-pagination, .swiper-2-pagination, .swiper-3-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 20px;
  text-align: center;
}

/* Style pagination bullets with specified color */
.swiper-pagination-bullet {
  background-color: #DBDBDB !important;
  height: 0.75rem;
  width: 0.75rem;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: #D70014 !important;
  opacity: 1;
}
/* Tooltip Styles */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Mobile Navigation Styles */
.mobile-nav-item .mobile-submenu {
  transition: all 0.3s ease;
  padding-left: 2ch; /* 2个字符的缩进 */
}

.mobile-nav-item .mobile-submenu .mobile-submenu {
  padding-left: 4ch; /* 4个字符的缩进 */
}

.mobile-nav-item > a {
  transition: all 0.3s ease;
}

.mobile-nav-item > a:hover {
  color: #D32027;
}

.mobile-nav-item .mobile-submenu a {
  transition: all 0.3s ease;
}

.mobile-nav-item .mobile-submenu a:hover {
  color: #D32027;
  padding-left: 12px;
}
