/* 
Theme Name: St Bees School
Theme URI: https://www.stbeesschool.co.uk/
Description: History and heritage provide firm foundations – leading the way for the innovative future ahead at St Bees School.
Author: MRT
Author URI: https://gz-mrt.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* 在此添加您的自定义样式 */
body{
font-family: "Times New Roman", Times, "Songti SC", "SimSun", "STSong", "Georgia", serif;
}
body a{
	color:#00bfff;
}
/* banner 鼠标 icon 指示器上下回弹动画：1.2秒无限循环，平滑缓动 */
.scroll-bounce {
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(16px); } /* 向下移动8px，可改大小 */
  100% { transform: translateY(0); }
}


.cpel-switcher__nav .cpel-switcher__lang{
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 导航栏初始样式 */
#main-nav {
  transition: all 0.6s ease; /* 平滑过渡效果 */
  background-color: transparent; /* 初始透明 */
}

/* Logo背景颜色初始化 */
#main-nav .logo-bg{
  transition: all 0.6s ease;
  background-color: transparent; /* 初始透明 */
}

/* Logo 初始大小 */
#main-nav .site-logo img {
  transition: all 0.6s ease;
  height: 94px;
	width: auto;
}
/* 滚动吸顶后的样式 */
#main-nav.sticky-active {
  background-color: #2C4255; /* 滚动后的背景色 */
	  padding: 12px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 可选：添加阴影增强层次感 */
}

/* 滚动后 Logo 缩小 */
#main-nav.sticky-active .site-logo img {
  height: 40px; /* 滚动后高度，根据实际调整 */
	width: auto;
}

/* 滚动后 Logo 背景色改变 */
#main-nav.sticky-active .logo-bg{
	padding:0;
	height: 60px;
    display: flex;
    justify-content: center;
}

/* 更改导航栏主菜单鼠标经过颜色 */
.button-hover a{
	display: inline-block;
}
.button-hover a:hover{
	background-color: #1E3547 !important;
}
/* 返回顶部按钮初始隐藏 + 平滑过渡 */
#back-to-top-btn {
  opacity: 0; /* 初始完全透明（隐藏） */
  transition: all 0.6s ease; /* 显示/隐藏的平滑过渡 */
}

/* 按钮显示时的样式 */
#back-to-top-btn.show {
  opacity: 1; /* 完全不透明 */
}
.eael-advanced-menu-container .eael-advanced-menu .eael-advanced-menu-indicator {
	top:28px !important;
}

/* ======================================
   文章全局排版规范
====================================== */

/* H1 标题 */
.single-post .elementor-widget-theme-post-content h1 {
  font-size: 48px;
  color:#C8A875;
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0.8em 0 0.8em;
}

/* H2 标题 */
.single-post .elementor-widget-theme-post-content h2 {
  font-size: 32px;
/*   font-family: initial; */
  color:#C8A875;
  line-height: 1.4;
  text-transform: uppercase;
  margin: 0.8em 0 0.8em;
}

/* H3 标题 */
.single-post .elementor-widget-theme-post-content h3 {
  font-size: 24px;
  line-height: 1.4;
/*   margin: 1.1em 0 0.7em; */
}

/* H4 标题 */
.single-post .elementor-widget-theme-post-content h4 {
  font-size: 20px;
  line-height: 1.4;
  font-family: initial !important;
  margin: 1em 0 0.6em;
}

/* H5 标题 */
.single-post .elementor-widget-theme-post-content h5 {
  font-size: 18px;
  line-height: 24px;
  margin: 1em 0 0.6em;
	padding:0.4em 0.8em;
}

/* H6 标题 */
.single-post .elementor-widget-theme-post-content h6 {
  font-size: 16px;
  line-height: 24px;
  padding:0.4em 0.8em;
}

/* 正文 p、span */
.single-post .elementor-widget-theme-post-content p,
.single-post .elementor-widget-theme-post-content span {
  font-size: 16px;
  line-height: 24px;
  white-space: pre-wrap;
  margin: 0 0 1em;
}

.single-post .elementor-widget-theme-post-content .wp-block-preformatted{
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 1em;
  font-family: "Lato", Sans-serif;
}

/* 列表 ul ol */
.single-post .elementor-widget-theme-post-content ul,
.single-post .elementor-widget-theme-post-content ol {
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 1em;
  padding:0 1.4em;
}

.single-post .elementor-widget-theme-post-content li {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 0.5em;
}

/* 强调文本 strong b */
.single-post .elementor-widget-theme-post-content strong,
.single-post .elementor-widget-theme-post-content b {
  font-size: inherit;
  font-weight: 700;
}

/* 链接样式 */
.single-post .elementor-widget-theme-post-content a {
  font-size: inherit;
  text-decoration: none;
}

.single-post .elementor-widget-theme-post-content a:hover {
  text-decoration: underline;
}

/*面包屑导航鼠标经过效果*/
.eael-breadcrumbs a:hover{
	color:#C8A875 !important;
}


/* 系统文章编辑器-插入图片区块居中 */
.wp-block-image{
  text-align:center;
}

/* 系统文章编辑器-表格文字大小 */
.wp-block-table table{
	font-size:16px;
	border: 1px solid #ccc;
	border-collapse: collapse;
}
/* 系统文章编辑器-按钮样式 */
.wp-block-buttons{
	margin: 0 0 2em !important;
}
.wp-block-button a{
	background-color:#2C4255;
	border-radius:0;
	text-decoration:none !important;
}
.wp-block-button a:hover{
	background-color: #C8A875 !important;

}

.eb-accordion-title-wrapper span{
	margin-bottom:0 !important;
}

/* 系统文章编辑器-手风琴样式 */
.wp-block-accordion-heading button{
	padding-top: 12px;
    padding-right: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
    width: 100%;
    display: flex;
    text-align: left;
}
.wp-block-accordion-heading button:hover{
	background-color:#AA8A58;
}

.wp-block-accordion-heading button:hover span{
	text-decoration:none !important;
}
.wp-block-accordion-heading span{
	font-size:20px !important;
	font-family: inherit !important;
	margin:0 !important;
}

.wp-block-accordion-panel{
	margin-block-end: 32px !important;
}
.wp-block-accordion-item{
	margin-block-start: 6px;
}

/*子菜单间距清楚*/
.sub-menu li{
	padding-left:0 !important;
}

/*Blog页面设置*/
.eael-grid-post-link {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.6; /* 可根据你的字体大小调整 */
  max-height: 3.2em !important; /* 1.6*2=3.2 */
}
.eael-grid-post-holder{
	height:480px;
}
.eael-entry-wrapper{display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 260px;
}
.eb-gallery-img-wrapper~.eb-img-gallery-loadmore-container .eb-img-gallery-loadmore{
	margin: 20px auto 20px;
}
.wp-block-essential-blocks-image-gallery{
	margin-bottom: 20px;
}
/* 系统文章编辑器-引用样式 */
.single-post .elementor-widget-theme-post-content blockquote {
	position: relative;
    color: rgb(44, 66, 85);
    margin: 24px 0px;
    padding: 16px 50px 4px 50px;
	text-align:center;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(200, 168, 117);
	box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 8px;
}
.single-post .elementor-widget-theme-post-content blockquote p{
	font-size:1.4em;
	line-height: 1.5;
	font-weight:600;
}
.single-post .elementor-widget-theme-post-content blockquote::before {
    content: "“";
    position: absolute;
	top: 10px;
    left: 10px;
    font-size: 60px;
    line-height: 1;
    color: rgb(200, 168, 117);
    font-style: normal;
}
.single-post .elementor-widget-theme-post-content blockquote::after {
    content: "”";
    position: absolute;
	content: "”";
    right: 10px;
    bottom: -20px;
    font-size: 60px;
    line-height: 1;
    color: rgb(200, 168, 117);
    font-style: normal;
}

.wp-block-navigation{
	gap: 4px;
}
.wp-block-navigation ul.wp-block-navigation__container li a.wp-block-navigation-item__content{
	background: url(/wp-content/uploads/ic-related-pages.svg) left center no-repeat;
    padding-left: 20px !important;
}


.wp-block-essential-blocks-button .eb-button-wrapper{
    margin:16px !important;
}
.elementor-element .elementor-icon-box-wrapper .elementor-icon-box-content {
    display: flex;
    align-items: center;
}
/* 导航栏下拉箭头 */
/* 隐藏一级菜单的箭头 */
.elementor-nav-menu > li > a > span.sub-arrow { display: none; }
/* 保留子菜单的箭头 */
.elementor-nav-menu > li > ul.sub-menu > li > a > span.sub-arrow { display: inline; }

/* 隐藏FooGallery插件的Single Thumbnail布局变成单个封面展示、调整样式展示 */
.foogallery.fg-thumbnail.fg-stacked .fg-item:nth-child(n+2) {
	display:none;
}
.fg-item-inner .fg-image-wrap{
	margin-bottom:0 !important;
}
.fg-item-inner .fg-image-overlay{
	margin-bottom:0 !important;
}

.foogallery .fg-caption  .fg-caption-inner{
	flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 100%;
    overflow: hidden;
	font-style:normal;
}
.foogallery .fg-caption .fg-caption-title {
	font-size:20px !important;
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}
.foogallery .fg-caption .fg-caption-desc {
	font-size:14px !important;
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
}
.elementor-swiper-button:hover{
	opacity:0.5;
}

.eb-feature-list-icon-inner .eb-feature-list-icon{
	margin-bottom:0 !important;
}
.eb-feature-list-content-box .eb-feature-list-title{
	margin-bottom:0 !important;
}
/* Essential Blocks插件按钮去掉下划线 */
.eb-button .eb-button-inner-wrapper a:hover{
	text-decoration:none;
}

/* 搜索 */
.eael-advanced-search-content-item .item-content h4{
	font-family: inherit !important;
}