/*
Theme Name: Нова Школа
Theme URI: https://example.com/
Author: School Theme
Description: Custom school theme based on the supplied visual reference.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: school-theme
*/
:root {
    --navy: #102d55;
    --navy-dark: #0b2345;
    --yellow: #ffb511;
    --bg: #f5f8fc;
    --text: #162a46;
    --muted: #64748b;
    --border: #e5eaf0;
    --white: #fff;
    --radius: 16px;
    --container: 1200px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Google Sans", sans-serif;
    font-variation-settings:
    "GRAD" 0;
    color: var(--text);
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
textarea {
    font: inherit
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto
}

.section {
    padding: 72px 0
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px
}

.section-title {
    font-family: "Google Sans", sans-serif;
    font-size: 38px;
    line-height: 1.15;
    margin: 0;
    color: var(--navy)
}

.section-title:after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background: var(--yellow);
    margin-top: 12px
}

.section-link {
    color: #2d5f9e;
    font-size: 14px;
    font-weight: 600
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 13px 22px;
    font-weight: 700;
    font-size: 14px;
    transition: .2s ease;
    cursor: pointer
}

.btn-primary {
    background: var(--yellow);
    color: #172c4c
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px #102d5520
}

.btn-secondary {
    background: #fff;
    border-color: var(--navy);
    color: var(--navy)
}

.btn-secondary:hover {
    background: var(--navy);
    color: #fff
}

.btn-dark {
    background: var(--navy);
    color: #fff
}

.btn-dark:hover {
    background: var(--navy-dark);
    transform: translateY(-2px)
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #eef2f7
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 28px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto
}

.brand-info{
    display: flex;
    flex-direction: column;
}

.brand-mark {
    width: 60px;
    height: 60px;
}

.brand-name {
    font-family: "Google Sans", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    line-height: 1.05
}

.brand-tag {
    font-size: 10px;
    color: #71809a;
    letter-spacing: .1px
}

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 27px;
    margin: 0;
    padding: 0
}

.primary-nav ul ul {
    display: none;
}

.primary-nav ul a:hover > ul{
    display: flex;
}

.primary-nav a {
    font-size: 14px;
    font-weight: 650;
    color: #172a45;
    padding: 27px 0;
    display: block;
    position: relative
}

.primary-nav .current-menu-item>a:after,
.primary-nav a:hover:after {
    content: "";
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    margin: auto;
    width: 28px;
    height: 2px;
    background: var(--navy)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px
}

.search-toggle {
    border: 0;
    background: none;
    color: var(--navy);
    font-size: 19px;
    cursor: pointer
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
    color: var(--navy)
}

.hero {
    background: linear-gradient(100deg, #f5f8fc 0%, #eef4fb 100%);
    overflow: hidden;
}

.hero-inner {
    padding: 20px;
    min-height: 360px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
}

.hero-copy {
    padding: 54px 0
}

.hero-title {
    font-family: "Google Sans", sans-serif;
    color: var(--navy);
    font-size: 52px;
    line-height: 1.05;
    max-width: 600px;
    margin: 0 0 18px
}

.hero-text {
    max-width: 560px;
    color: #243956;
    font-size: 16px;
    margin: 0 0 25px
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.hero-media {
    align-self: stretch;
    position: relative;
    min-height: 360px;
    display: flex;
    justify-content: center;
        align-items: center;
}

.hero-media img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border: 10px solid white;
}

.hero-decor {
    position: absolute;
    left: 5%;
    top: 28%;
    font-size: 32px;
    color: var(--yellow);
    transform: rotate(-18deg)
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 20px #102d5509;
    transition: .2s ease
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px #102d5514
}

.event-image {
    height: 155px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dce8f5, #f9e4ae)
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s ease
}

.card:hover .event-image img {
    transform: scale(1.035)
}

.event-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-date {
    background: #fff;
    border-radius: 9px;
    padding: 9px 12px;
    min-width: 52px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px #102d5509;
}

.event-day {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    display: block;
    line-height: 1
}

.event-month {
    font-size: 9px;
    font-weight: 800;
    color: #6a7890
}

.event-content {
    padding: 28px 14px 15px
}

.event-title {
    font-size: 15px;
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--navy)
}

.event-excerpt {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 13px
}

.event-time {
    font-size: 12px;
    color: #728099;
    display: flex;
    gap: 3px;
    align-items: center;
}

.event-time svg {
    width: 15px;
    height: 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 70px;
    align-items: center
}

.about-text {
    color: #33435a;
    font-size: 15px
}

.stats {
    display: flex;
    gap: 28px;
    margin: 25px 0
}

.stat {
    display: flex;
    align-items: center;
    gap: 9px
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff5dc;
    display: grid;
    place-items: center;
    color: var(--navy);

}

.stat-icon>img {
    filter: drop-shadow(0px 0px 3px #102d550c);
}

.stat strong {
    display: block;
    font-size: 17px;
    color: var(--navy)
}

.stat span {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: bold;
}

.about-media {
    position: relative;
    padding: 0 14px 14px 0
}

.about-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1.55;
    object-fit: cover;
    border-radius: 16px
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) .9fr;
    gap: 18px
}

.blog-image {
    height: 145px;
    background: linear-gradient(135deg, #dbe8f4, #f8df9f);
    overflow: hidden
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.blog-content {
    padding: 14px
}

.blog-date {
    font-size: 10px;
    text-transform: uppercase;
    color: #738096
}

.blog-title {
    font-size: 15px;
    line-height: 1.3;
    color: var(--navy);
    margin: 6px 0
}

.blog-excerpt {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 12px
}

.read-more {
    font-size: 12px;
    color: #285a9b;
    font-weight: 700
}

.newsletter {
    border-radius: 14px;
    background: #fff3df;
    padding: 25px;
    position: relative;
    overflow: hidden
}

.newsletter h3 {
    font-family: "Google Sans", sans-serif;
    color: var(--navy);
    margin: 0 0 8px;
    font-size: 20px
}

.newsletter p {
    font-size: 12px;
    color: #4f5e72
}

.newsletter input {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    margin: 7px 0 10px;
    background: #fff;
    outline: none
}

.newsletter .btn {
    width: 100%
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: start;
}

.teacher-card {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px
}

.teacher-photo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8eef5;
    flex: 0 0 auto
}

.teacher-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--navy);
    margin: 0
}

.teacher-subject {
    font-size: 10px;
    color: var(--muted)
}

.teacher-short_description {
    font-size: 11px;
}

.socials {
    display: flex;
    gap: 7px;
    margin-top: 6px
}

.socials a {
    font-size: 11px;
    color: var(--navy)
}

.socials .social-icon {
    width: 20px;
    border: 3px solid var(--border);
    border-radius: 5px;
}

.site-footer {
    background: var(--navy-dark);
    color: #fff;
    padding: 48px 0 20px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr 1fr 1.5fr;
    gap: 32px
}

.footer-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 14px;
    color: #fff
}

.footer-text,
.footer-links a {
    font-size: 12px;
    color: #c8d3e1
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 3px
}

.footer-bottom {
    border-top: 1px solid #ffffff1f;
    margin-top: 30px;
    padding-top: 16px;
    font-size: 10px;
    color: #9fb0c6
}

.footer-art {
    align-self: end;
    opacity: .5;
    text-align: right;
    font-size: 50px
}

.search-panel {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 15px;
    box-shadow: 0 10px 25px #102d5512
}

.search-panel.open {
    display: block
}

.search-panel form {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: auto
}

.search-panel input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px
}

.site-main {
    min-height: calc(100vh - 357px)
}

.page-hero {
    background: var(--bg);
    padding: 55px 0
}

.page-hero h1 {
    font-family: "Google Sans", sans-serif;
    color: var(--navy);
    font-size: 42px;
    margin: 0
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.single-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 65px 0
}

.single-content h1 {
    font-family: "Google Sans", sans-serif;
    color: var(--navy);
    font-size: 44px;
    line-height: 1.15
}

.single-meta {
    color: var(--muted);
    font-size: 13px
}

.single-content img {
    border-radius: 16px
}

.single-content p {
    font-size: 16px
}

.modal {
    position: fixed;
    inset: 0;
    background: #071a31c9;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.modal.open {
    display: flex
}

.modal-box {
    width: min(900px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    position: relative
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 7px;
    border: 0;
    background: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    z-index: 2
}

.modal-content {
    aspect-ratio: 16/9
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px
}

.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 10px;
}


.navigation.pagination .nav-links .prev,
.navigation.pagination .nav-links .page-numbers {
        color: var(--navy);
    padding: 0 10px;
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.navigation.pagination .nav-links .prev:hover,
.navigation.pagination .nav-links .page-numbers:not(.current):not(.dots):hover {
    transform: translateY(-2px);
    border-bottom: 3px solid var(--yellow);
}

.navigation.pagination .nav-links .page-numbers.current{
    color: var(--navy);
    border-bottom: 3px solid var(--yellow);
}


@media (max-width: 1100px) {
    .primary-nav ul {
        gap: 15px
    }

    .hero-title {
        font-size: 45px
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .teachers-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .newsletter {
        grid-column: span 2
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .footer-art {
        display: none;
    }
}

@media (max-width: 800px) {
    .header-inner {
        min-height: 64px
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 25px #102d5510
    }

    .primary-nav.open {
        display: block
    }

    .primary-nav ul {
        display: grid;
        gap: 0
    }

    .primary-nav a {
        padding: 14px 20px
    }

    .primary-nav .current-menu-item>a:after {
        display: none
    }

    .menu-toggle {
        display: block
    }

    .hero-inner {
        grid-template-columns: 1fr
    }

    .hero-copy {
        padding: 45px 0 20px
    }

    .hero-media {
        min-height: 290px
    }

    .hero-media img {
        clip-path: none;
        border-radius: 20px
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .stats {
        flex-wrap: wrap
    }

    .section {
        padding: 55px 0
    }

    .section-title {
        font-size: 32px
    }

    .archive-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, var(--container))
    }

    .brand-name {
        font-size: 17px
    }

    .brand-tag {
        display: none
    }

    .header-actions {
        gap: 7px
    }

    .header-actions .btn {
        padding: 10px 12px;
        font-size: 12px
    }

    .hero-title {
        font-size: 36px
    }

    .hero-actions .btn {
        width: 100%
    }

    .events-grid,
    .blog-grid,
    .teachers-grid {
        grid-template-columns: 1fr
    }

    .newsletter {
        grid-column: auto
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-art {
        display: none
    }

    .section-head {
        align-items: start
    }

    .section-link {
        white-space: nowrap
    }

    .single-content h1 {
        font-size: 34px
    }
}