@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://corbettmathsprimary.com/wp-content/uploads/fonts/opensans-300.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://corbettmathsprimary.com/wp-content/uploads/fonts/opensans-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://corbettmathsprimary.com/wp-content/uploads/fonts/opensans-600.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://corbettmathsprimary.com/wp-content/uploads/fonts/opensans-700.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://corbettmathsprimary.com/wp-content/uploads/fonts/serif-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://corbettmathsprimary.com/wp-content/uploads/fonts/serif-700.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    box-sizing:border-box;
}

html {
    font-size: 10px;
}

body.wp-custom-logo {
    background-color:#cb2eef;
    font-family: "PT Serif", Georgia, "Times New Roman", serif;
    color:#404040;
    font-size: 1.9rem;
    line-height: 1.75;
}

a,
.wp-block-post-content a:where(:not(.wp-element-button)) {
    transition: 100ms all ease-in;
    color:#1073ac;
}

a:hover,
a:focus,
.wp-block-post-content a:where(:not(.wp-element-button)):hover {
    color:#362e77;
    outline:0;
}

.wp-site-blocks {
    background-color:#ffffff;
    padding:3.0303%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1140px;
}

/* Nuke */
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    margin-left:initial !important;
    margin-right:initial !important;
}

.has-global-padding {
    padding:0 !important;
}

:where(body .is-layout-constrained) > *,
:where(body .is-layout-flow) > * {
    margin-block-start: auto;
    margin-block-end: auto;
}

/* Heading */
h1, h2, .widgettitle, .widget-title, .comments-title, #reply-title, h3, h4, h5, h6 {
    font-family: "Open Sans", Arial, sans-serif;
    margin:1.13636% 0 0.50505%;
    word-wrap: break-word;
}

h1,
h1.wp-block-post-title {
    color: silver;    
    font-size: 4.2rem;
    font-weight: 300;
    line-height: 1.25;
}

h2, .widgettitle, .widget-title, .widget-title label, .comments-title, #reply-title {
    color: #999;    
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.25;
}

h3 {
    color: gray;  
    font-size: 2.8rem;
    font-weight: 300;
}

h4 {
    color: gray;  
    font-size: 2.1rem;
    font-weight: 600;
    text-transform: uppercase;
}

h5 {
    color: #5a5a5a;
    font-size: 1.9rem;
    font-weight: 400;
}

h6 {
    color: #5a5a5a;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

p {
    margin-bottom: 1.5em;
}

ul, ol {
    margin:0 0 1.5em 0;
}

li {
    margin:0.5em 0;
}

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea {
    border: 2px solid #ccc;
    box-sizing: border-box;
    color: #666;
    display: block;    
    font-size: 1.8rem;
    font-weight: normal;
    line-height: 1;
    padding: 12px 10px;
    width: 100%;
}

input[type="search"] {
    -webkit-appearance: textfield;
}

/* Blocks */
.wp-block-post-title {
    font-weight: initial;
    margin-top:0;
}

.page-title, .entry-title {
    margin-top: 0;
    position: relative;
}

.page-content, .entry-content, .entry-summary {
    margin: 1.5em 0 0 !important;
}

.entry-content img {    
    margin-bottom: 36px;
}

.wp-block-image a {
    display: block;
}

.wp-block-separator {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
    max-width: 100%;
}

/* Header */
.header-wrapper {
    padding:0 0.75758% !important;
}

.header-wrapper .wp-block-group {
    padding:0 !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    row-gap:9px;
}

.header-wrapper .wp-block-site-logo img {
    margin-bottom: 1.51515%;
    margin-right: 2.27273%;  
    max-height: 125px;
    width: auto;
}

/* Menu */
nav.wp-block-navigation {
    font-family: "Open Sans", Arial, sans-serif;
    margin: 0 0 3.0303%;
    position: relative;
    z-index: 100;
    border-top:solid #d9d9d9 1px;
    width:100%;
    justify-content: flex-start !important;
}

.wp-block-navigation ul.wp-block-navigation__container {
    gap:0;
    justify-content: flex-start;
}

.wp-block-navigation ul.wp-block-navigation__container li {
    margin:0;
}

.wp-block-navigation ul.wp-block-navigation__container li a {
    margin:-2px 3rem 0 0;
    padding:0.75rem 0 1.5rem;
    border-top:4px solid transparent;
    display: block;
    font-size: 1.7rem;
    font-weight: 600;
    line-height:1.5;
    position: relative;
    text-decoration: none;
}

.wp-block-navigation ul.wp-block-navigation__container li a:hover,
.wp-block-navigation ul.wp-block-navigation__container li a:focus {
    color:#1073ac;    
}

.wp-block-navigation ul.wp-block-navigation__container li.current-menu-item a {
    border-top-color:#117bb8;
}

@media( max-width:767px ) {
    .wp-block-navigation {
        border:none;
    }

    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
        height:52px;       
        justify-content: center;
        align-items: center; 
    }

    .wp-block-navigation__responsive-container-open:after {
        content:'Menu';                
        font-size: 1.7rem;
        font-weight: 600;
        line-height: 52px;
        margin-left:10px;
        margin-bottom: 1px;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open)  {
        display: none;
    }

    .wp-block-navigation {
        border-bottom:1px solid #404040;
    }

    .wp-block-navigation ul.wp-block-navigation__container li a {
        border:none;
        margin:0;
    }
}

/* Main */
.content-wrapper {
    justify-content: space-between;
}

.content-wrapper > .wp-block-column:first-child {    
    flex-basis: 68.18182% !important;
	  max-width:100%;
}

.content-wrapper > .wp-block-column:last-child {
    padding-left: 0.75758%;
    padding-right: 0.75758%;
    flex-basis: 27.27273% !important;
	  max-width:100%;
}

.content-wrapper iframe {
		max-width:100%;	
}

@media( max-width:1023px ) {
    .content-wrapper {
        /*display: block;*/
        flex-wrap: nowrap !important;
    }

    .standard-pagination {
        /*justify-content: center;*/
        margin-bottom: 50px !important;        
        padding-top:25px;
        /*flex-direction: column;*/
    }

    /*.standard-pagination .post-navigation-link__label,
    .standard-pagination .post-navigation-link__title {
        text-align: center;
    }

    .standard-pagination .wp-block-post-navigation-link a {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }*/
}

main {
    margin:0 !important;
    
}

@media( max-width:1023px ) {
    .content-wrapper {
        flex-direction: column;
    }
}

/* Sidebar */
.sidebar-wrapper > * {
    background-color:#117bb8;    
    color:#fff;
    border-top:4px solid #362e77;
    margin-bottom: 7.57576%;
    padding:8.33333% 8.33333%;
    width:100%;
}

.sidebar-wrapper a {
    color:#fff;
}

.sidebar-wrapper ul {
    font-size: 16px;
    font-size: 1.6rem;
    line-height: 1.2;
    padding-left:20px;
}

.sidebar-wrapper img {
    width:100%;
}

.widget {
    gap:0;
}

.widget > * {
    width:100%;
}

.widget .wp-block-heading {
    font-size: 1.8rem;
    line-height: 24px;
    margin-bottom: 24px;
    margin-top: 0;
    padding-top: 0;    
    color:#fff;
}

.sidebar-wrapper *:last-child {
    margin-bottom: 0;
}

.sidebar-wrapper .wp-block-search label {
    display: none;
}

.sidebar-wrapper .wp-block-search .wp-block-search__button {
    display: none;
}

@media( max-width:1023px ) {
    .sidebar-wrapper {
        display: flex;
        column-gap:0.79623%;        
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .sidebar-wrapper .widget {
        width:49.23077%;
        margin-bottom: 7.57576%;
    }
}

@media( max-width:767px ) {
    .sidebar-wrapper {
        flex-direction: column;
    }

    .sidebar-wrapper .widget {
        width:100%;
    }

    .sidebar-wrapper .wp-block-search__inside-wrapper {
        width:100% !important;
    }
}

/* Footer */
footer {
    border-top: 2px solid #ccc;    
    font-size: 1.6rem;    
    text-align: center;
    margin:48px auto 0;
    width:calc( 100% - 1.51516% );
}

/* Single */
.wp-block-post-terms a {
    background-color: #362e77;        
    color: #fff;
    display: inline-block;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.25;
    margin: 0 0 1rem 0;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    text-transform: uppercase;    
}

.wp-block-post-terms a:hover,
.wp-block-post-terms a:focus {
    background-color: #5a5a5a;
}

.wp-block-post-navigation-link a {
    text-decoration: none;
}

.post-navigation-link-next {
    text-align: right;
}

.post-navigation-link__label {
    color: silver;
    display: block;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 28px;
    font-size: 2.8rem;
    font-weight: 100;
    overflow: hidden;
    padding-bottom: 6px;
    position: relative;
    line-height: 1.2;
}

.post-navigation-link__title {
    font-size: 1.7rem;
    line-height: 1.2;
}

/* Block Post */
.wp-block-post-featured-image,
.wp-block-post-featured-image a,
.wp-block-post-featured-image img {
	height:auto !important;
}

.wp-block-post:not(.has-post-thumbnail) .wp-block-post-title a {
	width:100%;	
}

.wp-block-post:not(.has-post-thumbnail) .wp-block-post-title a:before {
	content:'';
	width:100%;
	aspect-ratio:1/1;
	background-image:url(https://corbettmathsprimary.com/wp-content/uploads/2023/11/placeholder_s-1.png);
	background-repeat:no-repeat;
	background-size:64px auto;
	background-position:center;
	background-color:#cccccc;
	display:block;
	margin-bottom:1em;	
}

@media( max-width:767px ) {
		.wp-block-post:not(.has-post-thumbnail) .wp-block-post-title a:before {		
				width:calc( ( 100% - 25px ) / 3 );
			  margin-right:25px;
			  float:left;
		}
	
    .wp-block-post-template {
        display: flex !important;   
        flex-direction: column;
			  gap:50px;
    }

    .wp-block-post-template .wp-block-post {
        display: flex;
        gap:25px;
    }

    .wp-block-post-template .wp-block-post figure {
        flex:1;
    }

    .wp-block-post-template .wp-block-post .wp-block-post-title {
        flex:2;
    }

    .wp-block-post-template .wp-block-post .wp-block-spacer {
        display: none;
    }
}

/* Search Underline Effect */
.wp-block-post-template.search-result li:hover a {
	text-decoration: underline;
}

