/* 
Theme Name: Events QazTourism
Description: Событийный календарь — якорные мероприятия Казахстана
Author: Bekuzakov Dauren
Version: ZIZ Inc
*/

:root {
    --accent: #F48523;
    --primary: #68A1D6;
    --white: #fff;
    --ink: #0f172a;
    --muted: #64748b;
    --bg: #f7f7f8;
    --card: #fff;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(15, 23, 42, .08);
    --container: 1200px;
}

html,
body {
    margin: 0
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px
}

a {
    color: var(--primary);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

/* HERO */
.hero {
    padding: 0 !important;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #e5e7eb;
    margin: 22px 0
}

.hero-media {
    aspect-ratio: 16/7;
    width: 100%;
    object-fit: cover
}

.hero-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .0) 0%, rgba(0, 0, 0, .55) 70%);
    padding: 24px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 900px
}

.badge-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px
}


.event-title {
    font-size: 34px;
    font-weight: 900;
    margin: 0
}

.event-title-single {
    font-size: 34px !important;
}

.event-meta-single {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 19px !important;
    color: #e5e7eb !important;
}

.hero-cta {
    display: flex;
    gap: 10px;
    align-items: flex-end
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-block
}

.btn-primary {
    background: var(--accent);
    color: #fff
}

/* .btn-outline {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4)
} */
.btn-secondary {
    background: var(--primary);
    color: #fff
}

.is-hidden {
    display: none !important
}

/* MAIN LAYOUT */
.main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin: 26px 0 60px
}

@media (max-width: 900px) {
    .event-title {
        font-size: 28px
    }

    .main {
        grid-template-columns: 1fr
    }

    .hero-overlay {
        padding: 18px
    }
}

@media (max-width: 640px) {
    .hero-media {
        aspect-ratio: 16/10
    }
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.card-body {
    padding: 20px
}

/* Content */
.prose {
    color: #1f2937;
    font-size: 16px
}

.prose h2 {
    font-size: 20px;
    margin: 12px 0 8px
}

.prose p {
    margin: 0 0 12px
}

.list {
    margin: 0;
    padding-left: 18px
}

.list li {
    margin: 6px 0
}

/* Sidebar info */
.info {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.info-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #eef2f7
}

.info-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex: 0 0 18px
}

.info-title {
    font-weight: 700
}

.info-val {
    color: #334155
}

.chip {
    display: inline-block;
    background: #eef6fd;
    color: #0b5da8;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700
}

/* Back link / breadcrumb */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 4px
}

@media(max-width:500px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.crumbs {
    font-size: 14px;
    color: var(--muted)
}

.crumbs a {
    color: var(--muted)
}


:root {
    --accent: #F48523;
    /* оранжевый */
    --primary: #68A1D6;
    /* голубой */
    --white: #FFFFFF;
    --ink: #0f172a;
    --muted: #6b7280;
    --bg: #f7f7f8;
    --card: #fff;
    --radius: 16px;
    --shadow: 0 6px 20px rgba(15, 23, 42, .08);
    --container: 1200px;
}

/* Базовая типографика */
html,
body {
    margin: 0
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

/* Контейнер */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

/* NAVBAR */
.navbar {
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .85);
    border-bottom: 1px solid #eee;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.brand img {
    height: 40px;
    width: auto
}

.brand .t1 {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1
}

.brand .t2 {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px
}

.lang {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600
}

.lang a {
    color: var(--ink);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px
}

.lang a:hover {
    background: #eceff3
}

.lang .active {
    background: var(--accent);
    color: var(--white)
}

/* ФИЛЬТРЫ */
.filters {
    background: var(--card);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 18px;
    margin: 18px 0 10px;
}

.filters form {
    display: grid;
    gap: 14px
}

.filters .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 12px;
    color: var(--muted)
}

.control {
    display: block;
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--white)
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid #e5e7eb
}

/* СЕТКА КАРТОЧЕК */
.events {
    margin: 30px 0 60px
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 640px) {
    .navbar-inner {
        padding-block: 12px
    }

    .brand img {
        height: 34px
    }

    .brand .t1 {
        font-size: 14px
    }

    .brand .t2 {
        font-size: 11px
    }

    .filters {
        padding: 14px
    }

    .events-grid {
        grid-template-columns: 1fr
    }
}

/* Карточка события */
.event-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}

.event-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .12)
}

.event-media {
    font-size: 0;
    position: relative;
    aspect-ratio: 16/9;
    background: #e5e7eb
}

.event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.badge-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-anchor {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.event-body {
    padding: 16px
}

.event-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px
}

.event-desc {
    margin: 10px 0 0;
    color: #475569;
    font-size: 14px
}

/* Сетка для форм */
/* 12-колоночная: задаем ширины */
.col-3 {
    grid-column: span 3
}

.col-4 {
    grid-column: span 4
}

.col-6 {
    grid-column: span 6
}

.col-12 {
    grid-column: 1 / -1
}

@media (max-width: 1024px) {
    .col-md-6 {
        grid-column: span 6
    }
}

@media (max-width: 640px) {
    .col-sm-12 {
        grid-column: 1 / -1
    }
}

/* Вспомогательные */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

input[type="date"] {
    width: auto;
}


.footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
    color: #475569;
    font-size: 14px;
}

.footer-inner {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer a {
    color: #68A1D6;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}






/* section inside */
.single-inside {
    padding: 30px 0;
}

.single-inside__image_main {
    font-size: 0;
}

.single-inside-bg {
    font-size: 0;
    width: 100%;
    height: 500px;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.single-inside_info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    background: #f48524;
    width: fit-content;
    margin-left: auto;
    padding: 0px 15px;
    font-size: 18px;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}



.single-inside__info_date {
    display: flex;
    color: #FFF;
    justify-content: start;
    gap: 5px;
    align-items: center;
}

.single-inside__info_place {
    display: flex;
    justify-content: start;
    gap: 5px;
    align-items: center;
    color: #FFF;
}

.single-inside__text h1 {
    font-size: 55px;
    color: #69a0d6;
    margin: 0;
}

.single-inside__text b {
    display: block;
    color: #69a0d6;
    font-size: 18px;
    font-weight: 400;
}

.single-inside__text b span {
    font-weight: 700;
}

.single-inside__text p {
    font-size: 18px;
}

.single-inside__img {
    margin-top: 10px;
    width: 45%;
    height: 300px;
    margin-right: 10px;
    object-fit: cover;
}

@media(max-width:500px) {
    .single-inside__text h1 {
        font-size: 32px;
        margin-top: 20px;
    }
}

/* Сетка для карточек */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}

/* Сеточная структура с выравниванием */
.event-card.tall {
    background: #f48524;
    grid-row: span 2;
    color: #FFF;
    /* Задаем, чтобы карточка была высокой */
}

.event-card.tall>.event-media {
    aspect-ratio: 3/4;
}

.event-card.tall>.event-body>.event-meta {
    color: #FFF;
}

.event-card.tall>.event-body>.event-desc {
    color: #FFF;
}

@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* Карточка мероприятия */
.event-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
    transition: transform 0.15s ease;
}

.event-card:hover {
    transform: translateY(-4px);
}

.event-media {
    position: relative;
    aspect-ratio: 16/9;
    background-color: #e5e7eb;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #68A1D6;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #fff;
}

.badge-anchor {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #F48523;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #fff;
}

.event-body {
    padding: 20px;
}

.event-title {
    font-size: 18px;
    font-weight: 700;
}

.event-meta {
    display: flex;
    gap: 8px;
    color: #6b7280;
}

.event-desc {
    margin-top: 10px;
    font-size: 14px;
    color: #334155;
}