/**
 * Sunmoon Theme - Main Stylesheet
 * A modern, elegant WordPress theme for restaurants
 * Version: 1.0.0
 */

/* ===== MODERN CSS RESET/NORMALIZE ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ===== BASE ELEMENT STYLES ===== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sm-text-color, #333333);
    background-color: var(--sm-background-color, #ffffff);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sm-heading-font, inherit);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--sm-heading-color, #1a1a1a);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

blockquote {
    border-left: 4px solid var(--sm-accent-color, #bd9445);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--sm-text-light-color, #707070);
}

code {
    font-family: 'Monaco', 'Courier New', monospace;
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Links */
a {
    color: var(--sm-link-color, #bd9445);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--sm-link-hover-color, #8a6d30);
}

/* Buttons */
button,
.button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sm-btn-color, #ffffff);
    background-color: var(--sm-btn-bg, #1a1a1a);
    border: 2px solid var(--sm-btn-bg, #1a1a1a);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--sm-btn-hover-bg, #bd9445);
    border-color: var(--sm-btn-hover-bg, #bd9445);
    color: var(--sm-btn-hover-color, #ffffff);
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    color: #333333;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--sm-accent-color, #bd9445);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 14px;
}

/* Tables */
table {
    width: 100%;
    margin: 1.5rem 0;
    border: 1px solid #e5e5e5;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

th {
    background-color: #f8f8f8;
    font-weight: 600;
}

/* HR */
hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2rem 0;
}

/* Images */
img {
    height: auto;
    max-width: 100%;
}

figure {
    margin: 1.5rem 0;
}

figcaption {
    font-size: 0.875rem;
    color: #707070;
    margin-top: 0.5rem;
    text-align: center;
}

/* Utility Classes */
.page-container {
    max-width: 1326px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-content {
    padding: 80px 0;
}

.clear::after {
    content: "";
    display: table;
    clear: both;
}

/* Site Content */
.site-content {
    min-height: 50vh;
}

/* Sidebar Layout */
.has-sidebar {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.content-area {
    flex: 1 1 calc(66.666% - 40px);
    min-width: 300px;
}

.widget-area {
    flex: 0 0 calc(33.333% - 40px);
    min-width: 280px;
}

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

    .content-area,
    .widget-area {
        flex: 1 1 100%;
    }
}

/* Widget Styles */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--sm-accent-color, #bd9445);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* ===== HEADER STYLES ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: var(--sm-header-bg, rgba(26, 26, 26, 0.95));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1326px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sm-logo-color, #fff);
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation .menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation .menu-item {
    position: relative;
}

.main-navigation .menu-item > a {
    display: block;
    padding: 10px 5px;
    color: var(--sm-nav-color, #fff);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.main-navigation .menu-item > a:hover,
.main-navigation .menu-item.current-menu-item > a {
    color: var(--sm-accent-color, #bd9445);
}

/* Dropdown Menu */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--sm-dropdown-bg, #1a1a1a);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    list-style: none;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu .menu-item {
    padding: 0;
}

.main-navigation .sub-menu .menu-item > a {
    padding: 10px 20px;
    display: block;
    color: var(--sm-dropdown-color, #fff);
    text-transform: none;
}

.main-navigation .sub-menu .menu-item > a:hover {
    background: rgba(189, 148, 69, 0.1);
    color: var(--sm-accent-color, #bd9445);
}

/* Header Social */
.header-social {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--sm-nav-color, #fff);
    transition: color 0.2s ease;
}

.header-social a:hover {
    color: var(--sm-accent-color, #bd9445);
}

.header-social svg {
    width: 18px;
    height: 18px;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background: var(--sm-nav-color, #fff);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--sm-mobile-nav-bg, #1a1a1a);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 80px 30px 30px;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav .menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.mobile-nav .menu-item > a {
    display: block;
    padding: 15px 0;
    color: var(--sm-mobile-nav-color, #fff);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-nav .menu-item > a:hover {
    color: var(--sm-accent-color, #bd9445);
}

.mobile-nav .sub-menu {
    list-style: none;
    padding: 10px 0 10px 20px;
    display: none;
}

.mobile-nav .sub-menu.open {
    display: block;
}

.mobile-nav .sub-menu .menu-item {
    border-bottom: none;
}

.mobile-nav .sub-menu .menu-item > a {
    padding: 8px 0;
    font-size: 14px;
    text-transform: none;
}

.dropdown-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-accent-color, #bd9445);
    font-size: 20px;
    cursor: pointer;
}

body.menu-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-navigation {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 15px 20px;
    }

    .site-logo img {
        max-height: 40px;
    }

    .mobile-nav {
        width: 280px;
    }
}

/* ===== FOOTER STYLES ===== */

.site-footer {
    background-color: var(--sm-footer-bg, #1a1a1a);
    color: var(--sm-footer-color, #fff);
    padding: 40px 0 20px;
}

.footer-inner {
    max-width: 1326px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Site Info */
.site-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.site-info .left {
    flex: 1;
}

.site-info .right {
    flex: 1;
    text-align: right;
}

.site-info.center {
    justify-content: center;
    text-align: center;
}

.site-info.center .left,
.site-info.center .right {
    flex: none;
}

.site-info a {
    color: var(--sm-footer-link-color, #bd9445);
    transition: color 0.2s ease;
}

.site-info a:hover {
    color: var(--sm-footer-link-hover-color, #d4a94f);
}

/* Footer Widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget h3 {
    color: var(--sm-footer-heading-color, #fff);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.footer-widget a:hover {
    color: var(--sm-accent-color, #bd9445);
}

/* Responsive */
@media (max-width: 768px) {
    .site-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .site-info .left,
    .site-info .right {
        text-align: center;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== SHORTCODE STYLES ===== */

/* Gallery */
.sm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.sm-gallery__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.sm-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sm-gallery__item:hover img {
    transform: scale(1.1);
}

.sm-gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sm-gallery__item:hover .sm-gallery__overlay {
    opacity: 1;
}

.sm-gallery__overlay-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

/* Accordion */
.sm-accordion {
    margin: 40px 0;
}

.sm-accordion__item {
    border-bottom: 1px solid var(--sm-border-color, #e5e5e5);
}

.sm-accordion__item:last-child {
    border-bottom: none;
}

.sm-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--sm-heading-color, #1a1a1a);
    transition: color 0.2s ease;
    user-select: none;
}

.sm-accordion__header:hover {
    color: var(--sm-accent-color, #bd9445);
}

.sm-accordion__header.active {
    color: var(--sm-accent-color, #bd9445);
}

.sm-accordion__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.sm-accordion__header.active .sm-accordion__icon {
    transform: rotate(45deg);
}

.sm-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sm-accordion__body.open {
    max-height: 1000px;
}

.sm-accordion__content {
    padding: 0 0 20px 0;
    color: #333333;
    line-height: 1.8;
}

/* Counter */
.sm-counter {
    text-align: center;
    padding: 40px 20px;
}

.sm-counter__number {
    font-size: 48px;
    font-weight: 700;
    color: var(--sm-accent-color, #bd9445);
    line-height: 1;
    margin-bottom: 10px;
}

.sm-counter__suffix {
    font-size: 48px;
    font-weight: 700;
    color: var(--sm-accent-color, #bd9445);
}

.sm-counter__label {
    font-size: 16px;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* News Grid (adapted from platinum-news-grid) */
.sm-news-grid {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 20px 0;
}

.sm-news-grid__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 20px;
}

/* Card Base */
.sm-news-card {
    display: flex;
    background: var(--sm-card-bg, #1a1a1a);
    overflow: hidden;
}

/* Featured Card */
.sm-news-card--featured {
    grid-row: span 2;
    flex-direction: column;
}

.sm-news-card--featured .sm-news-card__image {
    flex: 1;
    max-width: 100%;
    min-height: 300px;
}

.sm-news-card--featured .sm-news-card__image::before {
    display: none;
}

.sm-news-card--featured .sm-news-card__content {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 25px;
}

.sm-news-card--featured .sm-news-card__title {
    font-size: 20px;
}

.sm-news-card--featured .sm-news-card__excerpt {
    font-size: 14px;
}

/* Side Cards */
.sm-news-card--side {
    flex-direction: row;
}

.sm-news-card--side .sm-news-card__image {
    flex: 0 0 50%;
    max-width: 50%;
}

.sm-news-card--side .sm-news-card__content {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 20px;
}

.sm-news-card--side .sm-news-card__title {
    font-size: 15px;
}

.sm-news-card--side .sm-news-card__excerpt {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small Cards */
.sm-news-card--small {
    flex-direction: row;
}

.sm-news-card--small .sm-news-card__image {
    flex: 0 0 50%;
    max-width: 50%;
}

.sm-news-card--small .sm-news-card__content {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 20px;
}

.sm-news-card--small .sm-news-card__title {
    font-size: 15px;
}

.sm-news-card--small .sm-news-card__excerpt {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Image */
.sm-news-card__image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.sm-news-card__image::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.sm-news-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sm-news-card:hover .sm-news-card__img {
    transform: scale(1.05);
}

.sm-news-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

/* Image overlay */
.sm-news-card__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sm-news-card__image:hover .sm-news-card__image-overlay {
    opacity: 1;
}

.sm-news-card__image-overlay span {
    color: var(--sm-accent-color, #bd9445);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--sm-accent-color, #bd9445);
    padding: 10px 20px;
}

/* Content */
.sm-news-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sm-news-card__title {
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: var(--sm-card-text-color, #ffffff);
}

.sm-news-card__date {
    font-size: 11px;
    color: var(--sm-accent-color, #bd9445);
    margin-bottom: 10px;
    display: block;
}

.sm-news-card__excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--sm-card-text-muted, #707070);
    margin-bottom: 12px;
}

/* "Читать далее" */
.sm-news-card__more {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--sm-accent-color, #bd9445);
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 12px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    text-align: left;
}

.sm-news-card__more:hover {
    color: #d4a94f;
}

/* "Забронировать" */
.sm-news-card__btn {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--sm-accent-color, #bd9445);
    border: 1px solid var(--sm-accent-color, #bd9445);
    padding: 8px 12px;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
}

.sm-news-card__btn:hover {
    background: var(--sm-accent-color, #bd9445);
    color: #0a0a0a;
}

/* Popup */
.sm-news-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sm-news-popup--active {
    opacity: 1;
    visibility: visible;
}

.sm-news-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.sm-news-popup__container {
    position: relative;
    z-index: 1;
    background: var(--sm-popup-bg, #1a1a1a);
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.sm-news-popup--active .sm-news-popup__container {
    transform: translateY(0);
}

.sm-news-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.sm-news-popup__close:hover {
    background: var(--sm-accent-color, #bd9445);
    color: #0a0a0a;
}

.sm-news-popup__image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.sm-news-popup__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-news-popup__content {
    padding: 30px;
}

.sm-news-popup__title {
    font-family: inherit;
    font-size: 24px;
    font-weight: 500;
    color: var(--sm-card-text-color, #ffffff);
    margin: 0 0 10px 0;
}

.sm-news-popup__date {
    display: block;
    font-size: 13px;
    color: var(--sm-accent-color, #bd9445);
    margin-bottom: 20px;
}

.sm-news-popup__text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--sm-card-text-muted, #707070);
    margin-bottom: 25px;
}

.sm-news-popup__text p {
    margin-bottom: 1em;
}

.sm-news-popup__text p:last-child {
    margin-bottom: 0;
}

/* Body scroll lock */
body.sm-popup-open {
    overflow: hidden;
}

/* Empty state */
.sm-news-grid__empty {
    text-align: center;
    color: var(--sm-card-text-muted, #707070);
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    grid-column: span 2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sm-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .sm-news-grid__container {
        grid-template-columns: 1fr;
    }

    .sm-news-card--featured {
        grid-row: span 1;
    }

    .sm-news-card--featured .sm-news-card__image {
        min-height: 200px;
    }

    .sm-news-card--side,
    .sm-news-card--small {
        flex-direction: row;
    }

    .sm-news-card--side .sm-news-card__image,
    .sm-news-card--small .sm-news-card__image,
    .sm-news-card--side .sm-news-card__content,
    .sm-news-card--small .sm-news-card__content {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .sm-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .sm-news-card--featured,
    .sm-news-card--side,
    .sm-news-card--small {
        flex-direction: column;
    }

    .sm-news-card--featured .sm-news-card__image,
    .sm-news-card--side .sm-news-card__image,
    .sm-news-card--small .sm-news-card__image {
        flex: 0 0 auto;
        max-width: 100%;
        min-height: 180px;
    }

    .sm-news-card--featured .sm-news-card__image::before,
    .sm-news-card--side .sm-news-card__image::before,
    .sm-news-card--small .sm-news-card__image::before {
        display: none;
    }

    .sm-news-card--featured .sm-news-card__content,
    .sm-news-card--side .sm-news-card__content,
    .sm-news-card--small .sm-news-card__content {
        flex: 0 0 auto;
        max-width: 100%;
        padding: 15px;
    }

    .sm-news-popup__container {
        max-height: 95vh;
        width: 95%;
    }

    .sm-news-popup__content {
        padding: 20px;
    }

    .sm-news-popup__title {
        font-size: 20px;
    }

    .sm-news-popup__image {
        max-height: 220px;
    }
}
