:root {
    --bg: #FAFAF8;
    --bg-warm: #F5F0EB;
    --gold: #C9A96E;
    --gold-dark: #A8853E;
    --text: #2D2D2D;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --border: #E8E4DF;
    --success: #4A7C59;
    --error: #C44536;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

.logo span {
    color: var(--gold);
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 16px;
    color: var(--text);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 32px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--gold-dark);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-danger:hover {
    opacity: 0.9;
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 12px auto 0;
}

.paintings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.painting-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.painting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.painting-card .image-wrapper {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--bg-warm);
    position: relative;
}

.painting-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    filter: brightness(1.08);
}

.painting-card:hover img {
    transform: scale(1.05);
}

.painting-sold .image-wrapper img {
    filter: brightness(0.9) saturate(0.7);
}

.painting-sold:hover .image-wrapper img {
    filter: brightness(0.95) saturate(0.8);
}

.sold-banner {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(180, 40, 30, 0.9);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
}

.sold-banner-large {
    font-size: 0.9rem;
    padding: 7px 16px;
    top: 14px;
    left: 14px;
}

.product-image-sold {
    position: relative;
}

.product-image-sold img {
    filter: brightness(0.9) saturate(0.75);
}

.painting-card .card-body {
    padding: 16px;
}

.painting-card .card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.painting-card .card-body .price {
    font-size: 1.1rem;
    color: var(--gold-dark);
    font-weight: 600;
}

.painting-card .card-body .technique {
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px 0;
}

.product-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-image img {
    width: 100%;
    filter: brightness(1.08);
}

.product-info h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.product-info .price {
    font-size: 1.8rem;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 20px;
}

.product-info .description {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.product-info .details {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-bottom: 24px;
}

.product-info .details p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.product-info .details strong {
    color: var(--text);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-available {
    background: #E8F5E9;
    color: var(--success);
}

.badge-sold {
    background: #FBE9E7;
    color: var(--error);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-table .cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-total {
    text-align: right;
    padding: 24px 0;
    font-size: 1.3rem;
}

.cart-total strong {
    color: var(--gold-dark);
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s;
}

.payment-option:hover,
.payment-option.active {
    border-color: var(--gold);
}

.payment-option input[type="radio"] {
    accent-color: var(--gold);
}

.shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s;
}

.shipping-option:hover,
.shipping-option.active {
    border-color: var(--gold);
}

.shipping-option input[type="radio"] {
    accent-color: var(--gold);
}

.shipping-label {
    flex: 1;
}

.shipping-price {
    font-weight: 600;
    color: var(--gold-dark);
}

.shipping-free {
    color: var(--success);
}

.shipping-section-locked .shipping-methods {
    display: none;
}

.shipping-section-locked .shipping-locked-msg {
    display: block;
}

.shipping-section-unlocked .shipping-methods {
    display: flex;
}

.shipping-section-unlocked .shipping-locked-msg {
    display: none;
}

.shipping-locked-msg {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    padding: 16px;
    background: var(--bg-warm);
    border-radius: var(--radius);
    text-align: center;
}

.shipping-block {
    margin-bottom: 0;
}

.relay-panel {
    display: none;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 16px;
    margin-top: -1px;
}

.shipping-block.relay-open .shipping-option {
    border-radius: var(--radius) var(--radius) 0 0;
}

.shipping-block.relay-open .relay-panel {
    display: block;
}

.relay-loading {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 12px;
}

.relay-results {
    max-height: 260px;
    overflow-y: auto;
}

.relay-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 6px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.relay-item:hover {
    border-color: var(--gold);
}

.relay-item.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}

.relay-item input[type="radio"] {
    accent-color: var(--gold);
    margin-top: 2px;
    flex-shrink: 0;
}

.relay-info {
    flex: 1;
    min-width: 0;
}

.relay-info strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.relay-info .relay-address {
    color: var(--text-light);
    font-size: 0.82rem;
    display: block;
}

.relay-info .relay-hours {
    color: var(--gold-dark);
    font-size: 0.78rem;
    display: block;
    margin-top: 2px;
}

.relay-item.relay-locker {
    border-left: 3px solid var(--gold);
}

.relay-type-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.relay-type-locker {
    background: var(--gold);
    color: var(--white);
}

.relay-type-relay {
    background: var(--border);
    color: var(--text-light);
}

.relay-distance {
    float: right;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
}

.relay-msg {
    padding: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: var(--shadow);
}

.autocomplete-list.active {
    display: block;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--bg-warm);
}

.autocomplete-item small {
    color: var(--text-light);
}

.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.flash-success {
    background: #E8F5E9;
    color: var(--success);
    border: 1px solid #C8E6C9;
}

.flash-error {
    background: #FBE9E7;
    color: var(--error);
    border: 1px solid #FFCCBC;
}

.flash-info {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #BBDEFB;
}

.confirmation-page {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}

.confirmation-page .checkmark {
    font-size: 3rem;
    margin-bottom: 16px;
}

.confirmation-page h1 {
    margin-bottom: 12px;
}

.order-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--shadow);
    text-align: left;
}

footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 60px;
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

footer .footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

footer .footer-brand span {
    color: var(--gold);
}

footer p {
    font-size: 0.9rem;
    color: var(--text-light);
}

footer h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul a {
    font-size: 0.9rem;
    color: var(--text-light);
}

footer ul a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}

.about-page,
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}

.contact-detail {
    margin-bottom: 24px;
}

.contact-detail strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-detail p {
    margin: 2px 0;
    color: var(--text);
}

.contact-detail a {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 500;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-photo img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-page h1 {
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.about-page p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.artist-section {
    background: var(--bg-warm);
}

.artist-block {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    padding: 40px 48px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.artist-accent {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 24px;
    border-radius: 2px;
}

.artist-accent-bottom {
    margin: 24px auto 0;
}

.artist-block .section-title {
    margin-bottom: 24px;
}

.artist-block .section-title::after {
    display: none;
}

.artist-bio {
    max-width: 700px;
    margin: 0 auto;
    text-align: justify;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .artist-block {
        padding: 24px 20px;
    }
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    display: flex;
}

.timeline-item.left {
    justify-content: flex-start;
    padding-right: calc(50% + 32px);
}

.timeline-item.right {
    justify-content: flex-end;
    padding-left: calc(50% + 32px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 16px;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--gold);
}

.timeline-content {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-year {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 16px;
    }
    .timeline-item.left,
    .timeline-item.right {
        padding-left: 48px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .timeline-dot {
        left: 16px;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 0;
    color: var(--text-light);
}

.empty-state h2 {
    margin-bottom: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .product-page {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .checkout-form {
        grid-template-columns: 1fr;
    }

    footer .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    nav.active {
        display: flex;
    }

    .paintings-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--white);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--gold-dark);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--gold);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    overflow: hidden;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.faq-admin-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: box-shadow 0.2s;
}

.faq-admin-item:hover {
    box-shadow: var(--shadow);
}

.faq-admin-handle {
    cursor: grab;
    font-size: 1.2rem;
    color: var(--text-light);
    user-select: none;
}

.faq-admin-content {
    flex: 1;
    min-width: 0;
}

.faq-admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.faq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.faq-modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.faq-modal h3 {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .faq-answer-inner {
        padding: 0 16px 16px;
    }

    .faq-admin-item {
        flex-wrap: wrap;
    }

    .faq-admin-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

.blog-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--white) 50%, var(--bg-warm) 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(201,169,110,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(201,169,110,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 12px;
    position: relative;
}

.blog-hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    position: relative;
}

.blog-categories-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 48px;
}

.blog-tab {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
}

.blog-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.blog-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.blog-tab.active:hover {
    color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.blog-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-warm);
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--border) 100%);
}

.blog-category-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 20px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.blog-category-badge:hover {
    color: var(--white);
    background: var(--gold-dark);
}

.blog-card-body {
    padding: 20px;
}

.blog-card-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text);
}

.blog-card-title a:hover {
    color: var(--gold-dark);
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    position: relative;
}

.blog-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

.blog-read-more:hover {
    color: var(--gold-dark);
}

.blog-read-more:hover::after {
    width: 100%;
}

.blog-post-hero {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45,45,45,0.85) 0%, rgba(45,45,45,0.3) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
}

.blog-post-hero-overlay .container {
    padding-bottom: 48px;
}

.blog-post-hero-overlay h1 {
    color: var(--white);
    font-size: 2.6rem;
    margin: 12px 0 8px;
    max-width: 800px;
}

.blog-post-hero-overlay time {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.blog-post-hero-overlay .blog-category-badge {
    position: static;
}

.blog-post-hero-simple {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
    text-align: center;
}

.blog-post-hero-simple h1 {
    font-size: 2.6rem;
    margin: 12px 0 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-hero-simple time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-post-hero-simple .blog-category-badge {
    position: static;
}

.blog-post-body {
    max-width: 780px;
    margin: 0 auto;
}

.blog-article-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
}

.blog-article-text h2 {
    font-size: 1.6rem;
    margin: 40px 0 16px;
    color: var(--text);
}

.blog-article-text h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    color: var(--text);
}

.blog-article-text p {
    margin-bottom: 20px;
    color: var(--text);
}

.blog-article-text a {
    color: var(--gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-article-text a:hover {
    color: var(--gold);
}

.blog-post-cta {
    margin-top: 48px;
}

.blog-cta-box {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--white) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.blog-cta-box h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.blog-cta-box p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.blog-related {
    background: var(--bg-warm);
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-post-hero {
        height: 35vh;
        min-height: 280px;
    }

    .blog-post-hero-overlay h1,
    .blog-post-hero-simple h1 {
        font-size: 1.8rem;
    }

    .blog-categories-tabs {
        gap: 6px;
    }

    .blog-tab {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    .blog-article-text {
        font-size: 1rem;
    }

    .blog-article-text h2 {
        font-size: 1.35rem;
    }

    .blog-article-text h3 {
        font-size: 1.1rem;
    }
}
