body {
    background-image: url('../images/index/bg1.jpg');
    background-size: 100%;
    height: 100vh;
    overflow: hidden;
}

.layout {
    overflow-y: scroll;
    height: 100vh;
}
.swiper-slide video{
    width: 100vw !important;
}
.my-video-dimensions{
    width: 100vw !important;
    height: auto !important;
}
.video-js .vjs-tech{
    height: auto;
}

/* swiper-slide 遮罩层链接 */
.index-banner .swiper-slide {
    position: relative;
}
.index-banner .swiper-slide video{
    width: 100vw !important;
}
.index-banner .swiper-slide img{
    width: 100vw !important;
}
.index-banner .note-video-clip {
  height: auto !important; 
  width: auto !important; /* 宽度自动缩放，保持视频比例 */
  max-width: 100%; /* 防止视频宽度超出容器 */
  object-fit: cover; /* 可选：视频填充容器（裁剪超出部分），也可改为contain（完整显示，可能留边） */
    /* 隐藏浏览器默认控制柄 */
  pointer-events: none; /* 可选：禁止点击视频触发控制柄显示 */
  outline: none;
}

.index-banner .swiper-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 10;
    display: block;
}

@media screen and (min-width: 768px) {
  .index-banner .note-video-clip {
      /*height: 600px !important;*/
    }
}


.special-section-title {
    display: inline-block;
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    position: relative;
    padding: 0 30px;
    margin-bottom: 0;
}

.special-section-title::before,
.special-section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #1D2088, #5b8aff);
}

.special-section-title::before {
    left: -20px;
    background: linear-gradient(90deg, transparent, #1D2088);
}

.special-section-title::after {
    right: -20px;
    background: linear-gradient(90deg, #1D2088, transparent);
}




.imgsSwiper{
    padding: 0 0 56px 0;
}
.imgsSwiper .swiper-horizontal>.swiper-scrollbar, 
.imgsSwiper .swiper-scrollbar.swiper-scrollbar-horizontal{
    width: 200px;
    left: calc(50% - 100px);
    right: auto;
    bottom: 20px;
}
.imgsSwiper .swiper-scrollbar-drag{
    background-color: #1D2088;
}
.imgsSwiper .next,
.imgsSwiper .prev{
 position: absolute;
    bottom: 10px;
    top: auto;
    cursor: pointer;
    background-color: #FAFAFA;
    border-radius: 2px;
    padding: 4px 8px;
}
.imgsSwiper .next:hover,
.imgsSwiper .prev:hover{
    background-color: #1D2088;
}
.imgsSwiper .next:hover .layui-icon,
.imgsSwiper .prev:hover .layui-icon{
    color: #FFFFFF !important;
}


.imgsSwiper .next{
    right: 0;
    transform: rotate(180deg);
}
.imgsSwiper .prev{
    left: 0;
}

/* 新闻 */
.news-style1-item:hover{
    background-color: rgba(0, 0, 0, 0.04);
}

/* 文章列表样式
样式2 图文横排列表 */
.news-style2-item {
    display: block;
    /*padding: 32px;*/
    border-bottom: 1px dashed #DDDDDD;
    transition: all 0.3s ease;
    padding: 0 0;
}
.news-style2-item:hover{
    background-color: rgba(0,0,0,0);
}

.news-style2-item:last-child {
    border-bottom: none;
}

.news-style2-item .news-img {
    position: relative;
    padding-top: 60%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.news-style2-item:hover .news-img{
    background-color: #EFF5FF;
    background-size: cover;
}

.news-style2-item .news-img .news-sign {
    padding: 4px 12px;
    background: #1D2088;
    border-radius: 0px 0px 16px 0px;
    font-weight: 400;
    font-size: 12px;
    color: #FFFFFF;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}

.news-style2-item h5 {
    color: rgba(0, 0, 0, 0.85);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    /* display: flex; */
    /* align-items: center; */
}

.news-style2-item h5 .news-sign {
    display: inline-block;
    padding: 4px 12px;
    background: #1D2088;
    border-radius: 0px 0px 12px 0px;
    font-weight: 400;
    font-size: 12px;
    color: #FFFFFF;
    text-align: center;
    margin-right: 8px;
}

.news-style2-item .intro {
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    line-height: 1.8;
    margin-top: 8px;
}

.news-style2-item .date {
    display: flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
}
.news-style2-item .date .layui-icon{
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    margin-right: 4px;
}


.news-style2-item .more {
    color: #1D2088;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px dashed #ddd;
    transition: all 0.3s ease;
}
.news-style2-item:hover .more{
    background-color: #1D2088;
    border: 1px solid #1D2088;
    color: #ffffff;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .news-style2-item .news-img {
        padding-top: 50%;
    }

    .news-style2-item h5 {
        font-size: 16px;
    }

    .news-style2-item .intro {
        font-size: 14px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-style2-item .date,
    .news-style2-item .more {
        font-size: 12px;
    }
}


.news-style3-item{
    display: flex;
    align-items: center;
    gap: 12px;
}
.news-style3-item:hover{
    background-color: rgba(0, 0, 0, 0.04);
}
.news-style3-item .news-date{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    box-sizing: border-box;
    background-color: #1D2088;
    color: #FFFFFF;
    flex-shrink: 0;
}
.news-style3-item .news-date span {
    line-height: 1.2;
}
.news-style3-item{
    flex: 1;
    min-width: 0;
}
.news-style3-item .news-content{
    width: calc(100% - 64px);
}
.news-style3-item:hover .news-title{
    color: #1D2088;
}
.news-style3-item .news-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0 !important;
    max-width: calc(100% - 16px);
}
/* 
.news-style4-item {
    border: none;
    padding-top: 0;
}
.news-style1-item h5{
    font-weight: 400;
}
.news-style1-item:hover {
    border: none;
    box-shadow: none;
    background-color: transparent;
    transition: 0.3s ease;
} */

.news-style4-item{
    border: none;
    padding-bottom: 12px;
}


.news-style4-item .date{
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
}

.card-item .card-img{
    padding-top: 66.5%;
}
.news-style1-item:hover{
    background-color: #FFFFFF;
}

.section1{
    padding: 32px 0;
}
.section1 .section-content{
    padding-top: 24px;
}
.section1 .card-img {
    margin-bottom: 8px;
}
.section1 .card-title {
    margin-bottom: 4px;
}
.section1 .card-intro {
    margin-bottom: 4px;
}
/* 自定义外层容器：核心 flex 布局，控制内部 Layui 行的子元素高度 */
.section1 {
  width: 100%;
  overflow: hidden; /* 防止间距导致的溢出 */
}

/* 仅作用于自定义容器内的 layui-row */
.section1 .layui-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* 关键：让所有列高度一致 */
}

/* 左侧新闻卡片：占满列高度 */
.section1 .news-list-item {
  flex: 1;
  height: 100%;
  display: block;
  transition: all 0.3s ease;
}

/* 右侧列表包裹容器：占满列高度，让列表整体撑满 */
.section1 .news-list-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 可选：列表项均匀分布，视觉更平衡 */
}

/* 右侧新闻项：适配高度 */
.section1 .news-list-container .news-list-item {
  flex: 1; /* 让每个列表项均分高度（可选，也可去掉用默认布局） */
  margin-bottom: 10px;
}
/*.section1 .news-list-container .news-list-item:hover{*/
/*    background-color: rgba(0, 0, 0, 0.04);*/
/*}*/
.section1 .news-list-container .news-list-item h5 {
    font-size: 18px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.85);
}
.section1 .news-list-container .news-list-item h5:hover {
    color: #1D2088;
}
.section1 .news-list-container .news-list-item .card-date {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
}
.section1 .news-list-container .news-list-item:last-child{
    margin-bottom: 0;
}

/* 小屏幕适配：不拉伸，顶部对齐 */
@media screen and (max-width: 768px) {
  .section1 .layui-row {
    align-items: flex-start !important;
  }
  .section1 .news-list {
    justify-content: flex-start; /* 小屏幕恢复默认排列 */
  }
  .section1 .news-list .news-item {
    flex: none; /* 小屏幕取消均分高度 */
  }
}

/* Section 2 styles */
.section2 {
    padding: 32px 0;
}
/*.section2 .section-content {*/
/*    padding-top: 16px;*/
/*}*/
.section2 .card-img {
    padding-top: 80%;
    margin-bottom: 8px;
}
.section2 .card-title {
    margin-bottom: 4px;
}
.section2 .card-date {
    margin-top: 8px;
}

/* 右侧列表包裹容器：占满列高度，让列表整体撑满 */
.section2 .news-list-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 可选：列表项均匀分布，视觉更平衡 */
}

/* 右侧新闻项：适配高度 */
.section2 .news-list-container .news-list-item {
  flex: 1; /* 让每个列表项均分高度（可选，也可去掉用默认布局） */
  margin-bottom: 10px;
}
.section2 .news-list-container .news-list-item h5 {
    font-size: 18px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.85);
}
.section2 .news-list-container .news-list-item h5:hover{
    color: #1D2088;
}
.section2 .news-list-container .news-list-item .card-date {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
}
.section2 .news-list-container .news-list-item:last-child{
    margin-bottom: 0;
}

/* Section 3 styles */
.section3 {
    padding: 32px 0;
}
/*.section3 .section-content {*/
/*    padding-top: 16px;*/
/*}*/
.section3 .news-date-box span:first-child {
    margin-bottom: 4px;
}
.section3 .card-title {
    margin-bottom: 4px;
}
.section3 .card-intro {
    margin-bottom: 0;
    margin-top: 0;
}
.section3 .news-card-item:hover .card-title,
.section3 .news-card-item:hover .card-intro{
    color: #1D2088;
}

/* Section 4 styles */
.section4 {
    padding: 24px 0;
}
.section4 .section-title-container {
    padding: 24px;
}
.section4 .special-section-title {
    margin-bottom: 8px;
}

/* Section 5 styles */
.section5 {
    padding: 32px 0;
}
.section5 .section-title-container {
    padding: 24px;
}
.section5 .special-section-title {
    margin-bottom: 8px;
}

/* News card item padding */
.news-card-item {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-card-item:hover{
    background-color: rgba(0, 0, 0, 0.04);
}

.news-card-item .news-date-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*width: 56px;*/
    /*height: 56px;*/
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    /*background-color: rgba(0, 0, 0, 0.04);*/
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
    font-size: 18px;
    flex-shrink: 0;
    transition: .3s;
}
.news-card-item:hover .news-date-box{
    background-color: rgba(0, 0, 0, 0.04);
    color: #FFFFFF;
}

.news-card-item .news-date-box span {
    line-height: 1.2;
}

.news-card-item .news-date-box span:first-child {
    font-size: 16px;
}

.news-card-item .news-date-box span:last-child {
    font-size: 14px;
}

.news-card-item .news-card-content{
    width: calc(100% - 24px);
}

.news-card-item:hover .card-title{
    color: #1D2088;
}

.news-card-item .card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0 !important;
    /*max-width: calc(100% - 16px);*/
    font-size: 18px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.85);
}

.news-card-item .card-intro {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.8;
    margin-top: 4px;
}

/* Card item padding */
.card-item {
    display: block;
    border-bottom: 1px dashed #DDDDDD;
    transition: all 0.3s ease;
}

.card-item:hover{
    background-color: rgba(0,0,0,0);
}

.card-item:last-child {
    border-bottom: none;
}

.card-item .card-img {
    display: block;
    position: relative;
    padding-top: 70%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-item .card-img:hover{
    transform: scale(1.04);
}

.card-item h5 {
    color: rgba(0, 0, 0, 0.85);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.card-item .card-intro {
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    line-height: 1.8;
    margin-top: 8px;
}

.card-item .card-date {
    display: flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
}

.card-item .card-date .layui-icon{
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    margin-right: 4px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .card-item .card-img {
        padding-top: 50%;
    }

    .card-item h5 {
        font-size: 16px;
    }

    .card-item .card-intro {
        font-size: 14px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-item .card-date {
        font-size: 12px;
    }
    
    .news-card-item .card-title {
        font-size: 16px;
    }
    
    .news-card-item .card-intro {
        font-size: 14px;
    }
    
    .news-card-item .news-date-box {
        width: 48px;
        height: 48px;
    }
    
    .news-card-item .news-date-box span:first-child {
        font-size: 14px;
    }
    
    .news-card-item .news-date-box span:last-child {
        font-size: 12px;
    }
    
    .special-section-title {
        font-size: 20px;
        padding: 0 20px;
    }
    
    /* 小屏幕适配：不拉伸，顶部对齐 */
    .section2 .news-list-container {
        justify-content: flex-start; /* 小屏幕恢复默认排列 */
    }
    
    .section2 .news-list-container .news-list-item {
        flex: none; /* 小屏幕取消均分高度 */
    }
}

/* 文本截断类 */
.text-ellipsis-1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.text-ellipsis-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* 统一的内外边距工具类 */
/* 内边距 - Padding */
.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.p-5 { padding: 20px !important; }
.p-6 { padding: 24px !important; }
.p-8 { padding: 32px !important; }
.p-10 { padding: 40px !important; }

/* 内边距 - 上下 */
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-5 { padding-top: 20px !important; padding-bottom: 20px !important; }
.py-6 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-8 { padding-top: 32px !important; padding-bottom: 32px !important; }
.py-10 { padding-top: 40px !important; padding-bottom: 40px !important; }

/* 内边距 - 左右 */
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 4px !important; padding-right: 4px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.px-5 { padding-left: 20px !important; padding-right: 20px !important; }
.px-6 { padding-left: 24px !important; padding-right: 24px !important; }
.px-8 { padding-left: 32px !important; padding-right: 32px !important; }
.px-10 { padding-left: 40px !important; padding-right: 40px !important; }

/* 内边距 - 单独方向 */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 4px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 12px !important; }
.pt-4 { padding-top: 16px !important; }
.pt-5 { padding-top: 20px !important; }
.pt-6 { padding-top: 24px !important; }
.pt-8 { padding-top: 32px !important; }
.pt-10 { padding-top: 40px !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 4px !important; }
.pb-2 { padding-bottom: 8px !important; }
.pb-3 { padding-bottom: 12px !important; }
.pb-4 { padding-bottom: 16px !important; }
.pb-5 { padding-bottom: 20px !important; }
.pb-6 { padding-bottom: 24px !important; }
.pb-8 { padding-bottom: 32px !important; }
.pb-10 { padding-bottom: 40px !important; }

/* 外边距 - Margin */
.m-0 { margin: 0 !important; }
.m-1 { margin: 4px !important; }
.m-2 { margin: 8px !important; }
.m-3 { margin: 12px !important; }
.m-4 { margin: 16px !important; }
.m-5 { margin: 20px !important; }
.m-6 { margin: 24px !important; }
.m-8 { margin: 32px !important; }
.m-10 { margin: 40px !important; }

/* 外边距 - 单独方向 */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-5 { margin-top: 20px !important; }
.mt-6 { margin-top: 24px !important; }
.mt-8 { margin-top: 32px !important; }
.mt-10 { margin-top: 40px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-5 { margin-bottom: 20px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-8 { margin-bottom: 32px !important; }
.mb-10 { margin-bottom: 40px !important; }

/* 背景类 */
.bg-white {
    background-color: #FFFFFF;
}

/* 文本类 */
.text-center {
    text-align: center;
}

/* 链接样式 */
a h5:hover,
a .intro:hover,
a.more:hover,
a.section-more:hover {
    text-decoration: underline !important;
    color: #1D2088;
}

/* 图片样式 */
img {
    max-width: 100%;
}

/* 新闻标题样式 */
.news-title {
    color: inherit;
    text-decoration: none;
}

.news-title:hover {
    color: #0058FF;
    text-decoration: none;
}

.news-title h5 {
    margin: 0;
    color: inherit;
}

/* 板块头部样式 */
.section-header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 4px;
    background-color: #1D2088;
}

.section-header .section-title {
    position: relative;
    margin-right: 15px;
    margin-left: 15px;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 400;
    font-size: 20px;
}

.section-header .section-title:first-child {
    margin-left: 0;
}

.section-header .section-title.layui-this {
    font-weight: bold;
    font-size: 20px;
    color: #333333;
}
.section-header .section-title .section-title-en{
    margin-left: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
}

.section-header .section-more {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    margin-left: auto;
}





.alumni-section {
    margin-bottom: 60px;
    display: flex;
}

.alumni-item {
    flex-shrink: 1;
}

.section-header {
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    color: #333;
    font-weight: normal;
}

/*.alumni-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(2, 1fr);*/
/*    gap: 16px;*/
/*}*/

.alumni-card {
    display: flex;
    padding: 10px;
    border-radius: 5px;
    transition: .3s;
}
.alumni-card:hover{
    background-color: rgba(0, 0, 0, 0.04);
}

.alumni-image {
    flex: 0 0 160px;
    margin-right: 15px;
    height: 120px;
    /*padding-top: 60%;*/
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*.alumni-image img {*/
/*    width: 100%;*/
/*    height: auto;*/
/*    border-radius: 5px;*/
/*}*/

.alumni-info {
    flex: 1;
}

.alumni-name {
    font-size: 18px;
    margin-bottom: 5px;
}
.alumni-name:hover{
    text-decoration: underline;
}
.alumni-date {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.alumni-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.alumni-major {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}
.alumni-card:hover .alumni-name,
.alumni-card:hover .alumni-desc
{
    color: #1D2088;
}

.right-column {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.date-item {
    display: flex;

}

.date-item:hover {
    background-color: #f9f9f9;
}

.date {
    font-size: 16px;
    font-weight: bold;
    color: #1D2088;
    background-color: rgba(0,0,0,0);
    border: 1px solid #1D2088;
    margin-bottom: 5px;
}

.date-item:hover .date {
    color: #FFFFFF;
    background-color: #1D2088;
}

.date-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.teachers-section {
    padding: 32px 0;
}

/*.teachers-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(4, 1fr);*/
/*    gap: 20px;*/
/*}*/

.teacher-card {
    display: flex;
    flex-direction: column;
    /*padding: 15px;*/
    text-align: center;
    transition: .3s;
}
@media (min-width: 768px) {
    .teacher-card {
        flex-direction: row;
    }
}

.teacher-info-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    align-self: stretch;
    flex: 1;
}

.teacher-card:hover .teacher-name {
    color: #fff;
}

.teacher-card:hover .teacher-info {
    background-color: #1D2088;
}


.teacher-card:hover .teacher-btn {
    background-color: #1D2088;
    color: #fff;
    border-bottom: 2px solid #fff;
}

.teacher-image {
    display: block;
    flex: 1;
    align-self: stretch;
    padding-top: 140%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /*border-left: 2px solid #1D2088;*/
    /*border-top: 2px solid #1D2088;*/
    /*border-bottom: 2px solid #1D2088;*/
}
@media (min-width: 768px) {
    .teacher-image {
        flex: 1;
        padding-top: 70%;
    }
}

.teacher-image img {
    width: 100%;
    height: auto;
}
.teacher-logo{
    width: 36px;
    height: 36px;
    border-radius: 36px;
    background-color: #eee;
    margin-bottom: 8px;
}

.teacher-info {
    border-left: 2px solid #1D2088;
    border-right: 2px solid #1D2088;
    border-top: 2px solid #1D2088;
    border-bottom: 2px solid #1D2088;
    flex: 1;
    box-sizing: border-box;
    width: 100%;
    padding: 16px 8px 16px 8px;
    transition: .3s;
}
@media (min-width: 768px) {
    .teacher-info {
        border-left: none;
        border-right: 2px solid #1D2088;
        border-top: 2px solid #1D2088;
        border-bottom: 2px solid #1D2088;
        flex: 1;
        padding: 16px 8px 8px 8px;
        transition: .3s;
    }
}

.teacher-name {
    font-size: 18px;
    /*font-weight: bold;*/
    padding-bottom: 4px;
    margin-bottom: 14px;
    color: #1D2088;
    position: relative;
    transition: .3s;
}
.teacher-name::after{
    position: absolute;
    bottom: 0;
    left: 40%;
    width: 20%;
    height: 2px;
    background-color: #1D2088;
    display: block;
    content: '';
    transition: .3s;
}
.teacher-card:hover .teacher-name::after{
    background-color: #ffffff;
}

.teacher-desc {
    height: 3em;
    font-size: 14px;
    color: #1D2088;
    text-align: left;
    transition: .3s;
}
.teacher-card:hover .teacher-desc{
    color: #ffffff;
}

.teacher-btn {
    border-right: 2px solid #1D2088;
    border-top: 2px solid #1D2088;
    border-bottom: 2px solid #1D2088;
    color: #1D2088;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 8px;
    font-size: 14px;
    transition: .3s;
    text-align: right;
    display: none;
}   
@media (min-width: 768px) {
    .teacher-btn {
        display: block;
    }
}
