.aw-blog {
    --blog-purple: #872e83;
    --blog-purple-dark: #6f256b;
    --blog-ink: #271c27;
    --blog-muted: #5f5660;
    --blog-line: #ece7ec;
    --blog-soft: #faf7fa;
    --blog-page: #f6f6f6;
    color: var(--blog-muted);
}

.aw-blog svg {
    fill: currentColor;
}

.blog-icon {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}

.blog-index-wrap {
    min-height: 60vh;
    padding: 34px 0 64px;
    background: var(--blog-page);
}

.blog-hero {
    position: relative;
    overflow: hidden;
    padding: 42px;
    border-radius: 24px;
    background: linear-gradient(135deg, #271c27 0%, #872e83 58%, #b76ab2 100%);
    box-shadow: 0 18px 44px rgba(135, 46, 131, 0.22);
    color: #fff;
}

.blog-hero::before,
.blog-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
}

.blog-hero::before {
    top: -60px;
    right: -80px;
    width: 280px;
    height: 280px;
}

.blog-hero::after {
    bottom: -120px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.08);
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.blog-kicker,
.blog-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-kicker {
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
}

.blog-hero h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.02;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.blog-hero p {
    max-width: 720px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
    opacity: 0.92;
}

.blog-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.blog-search {
    position: relative;
    flex: 1;
    width: 100%;
    min-width: min(100%, 420px);
    max-width: 520px;
}

.blog-search input {
    width: 100%;
    padding: 14px 48px 14px 18px;
    border: 1px solid var(--blog-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    color: var(--blog-ink);
    outline: none;
}

.blog-search input:focus-visible {
    border-color: var(--blog-purple);
    box-shadow: 0 0 0 3px rgba(135, 46, 131, 0.24), 0 10px 24px rgba(0, 0, 0, 0.08);
}

.blog-search-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 20px;
    height: 20px;
    color: var(--blog-purple);
    pointer-events: none;
    transform: translateY(-50%);
}

.blog-count {
    padding: 12px 16px;
    border: 1px solid var(--blog-line);
    border-radius: 999px;
    background: #fff;
    color: #6a5568;
    font-weight: 800;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 12px;
}

.blog-filter-tags {
    margin-top: 16px;
}

.blog-tag {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f5eef5;
    color: var(--blog-purple);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog-tag:hover {
    background: #eee0ee;
    color: var(--blog-purple-dark);
    transform: translateY(-1px);
}

.blog-tag.is-active {
    background: var(--blog-purple);
    color: #fff;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: start;
    gap: 22px;
    margin-top: 24px;
}

.blog-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--blog-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-card:hover {
    border-color: rgba(135, 46, 131, 0.24);
    box-shadow: 0 16px 34px rgba(135, 46, 131, 0.14);
    transform: translateY(-4px);
}

.blog-image-link,
.blog-title-link {
    color: inherit;
    text-decoration: none;
}

.blog-image-link {
    display: block;
}

.blog-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #eee;
}

.blog-featured .blog-image {
    height: 390px;
}

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

.blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #7a6878;
    font-size: 13px;
    font-weight: 800;
    flex-wrap: wrap;
}

.blog-pill,
.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--blog-soft);
    color: var(--blog-purple);
}

.blog-card h2,
.blog-card h3 {
    margin: 0 0 12px;
    color: #222;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.18;
}

.blog-card h2 {
    font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.blog-card h3 {
    font-size: 1.2rem;
}

.blog-title-link:hover {
    color: var(--blog-purple);
}

.blog-excerpt {
    margin: 0 0 18px;
    color: var(--blog-muted);
    line-height: 1.7;
}

.blog-read {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 999px;
    background: var(--blog-purple);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.blog-read:hover {
    background: var(--blog-purple-dark);
    color: #fff;
    transform: translateY(-2px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.blog-grid-spaced {
    margin-top: 24px;
}

.blog-side-panel {
    position: sticky;
    top: 18px;
    padding: 22px;
    border: 1px solid var(--blog-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.blog-side-panel h2 {
    margin: 0 0 12px;
    color: var(--blog-purple);
    font-size: 1.3rem;
    font-weight: 900;
}

.blog-side-panel p {
    margin: 0 0 16px;
    color: var(--blog-muted);
    line-height: 1.65;
}

.blog-links {
    display: grid;
    gap: 10px;
}

.blog-link-chip {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--blog-soft);
    color: #4f4350;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog-link-chip:hover {
    background: #f1e8f1;
    color: var(--blog-purple);
    transform: translateY(-2px);
}

.blog-empty {
    display: none;
    margin-top: 18px;
    padding: 26px;
    border: 1px dashed #cdbfcb;
    border-radius: 18px;
    background: #fff;
    color: #6a5568;
    font-weight: 800;
    text-align: center;
}

.blog-empty.is-visible,
.blog-empty-static {
    display: block;
}

.blog-item[hidden] {
    display: none;
}

/* Individual article */
.blog-article-page {
    background: var(--blog-page);
}

.blog-article-hero {
    position: relative;
    height: clamp(420px, 48vw, 560px);
    max-height: 560px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(39, 28, 39, 0.18), rgba(39, 28, 39, 0.58));
}

.blog-hero-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100% - 32px, 1280px);
    height: 100%;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
}

.blog-hero-card {
    width: min(100%, 880px);
    padding: 32px;
    border: 1px solid var(--blog-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.blog-hero-kicker {
    margin-bottom: 14px;
    border: 1px solid #eee3ee;
    background: var(--blog-soft);
    color: var(--blog-purple);
    font-weight: 900;
}

.blog-hero-tags {
    justify-content: center;
    margin-bottom: 14px;
}

.blog-hero-card h1 {
    margin: 0 0 12px;
    color: var(--blog-purple);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.blog-hero-subtitle {
    margin: 0;
    color: var(--blog-muted);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.55;
}

.blog-scroll-down {
    position: absolute;
    right: 50%;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(39, 28, 39, 0.62);
    color: #fff;
    cursor: pointer;
    transform: translateX(50%);
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.blog-scroll-down svg {
    width: 24px;
    height: 24px;
}

.blog-scroll-down:hover {
    background: var(--blog-purple);
    transform: translateX(50%) translateY(-2px);
}

.blog-scroll-down.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.blog-article-section {
    padding: 42px 0 68px;
    background: var(--blog-page);
}

.blog-content-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 38px;
    overflow-wrap: anywhere;
    border: 1px solid var(--blog-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.blog-content-card:focus-visible {
    outline: 3px solid #f2bf00;
    outline-offset: 5px;
}

.blog-content-card h1,
.blog-content-card h2,
.blog-content-card h3,
.blog-content-card h4 {
    margin: 1.7em 0 0.65em;
    color: var(--blog-purple);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.blog-content-card > :first-child {
    margin-top: 0;
}

.blog-content-card h2 {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.blog-content-card h3 {
    font-size: 1.35rem;
}

.blog-content-card p,
.blog-content-card li {
    color: #514951;
    font-size: 1.03rem;
    line-height: 1.82;
}

.blog-content-card p {
    margin: 0 0 1.15rem;
}

.blog-content-card ul,
.blog-content-card ol {
    margin: 0 0 1.4rem;
    padding-left: 1.35rem;
}

.blog-content-card li {
    margin-bottom: 0.55rem;
}

.blog-content-card a {
    color: var(--blog-purple);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-content-card a[href*="flatshare"],
.blog-content-card a[href*="entire-flats"],
.blog-content-card a[href*="whole-apartment"],
.blog-content-card a[href*="landlords"] {
    display: inline-flex;
    min-width: 116px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--blog-purple);
    border-radius: 999px;
    background: var(--blog-purple);
    box-shadow: 0 8px 18px rgba(135, 46, 131, 0.2);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.blog-content-card a[href*="flatshare"]:hover,
.blog-content-card a[href*="entire-flats"]:hover,
.blog-content-card a[href*="whole-apartment"]:hover,
.blog-content-card a[href*="landlords"]:hover {
    background: var(--blog-purple-dark);
    box-shadow: 0 12px 24px rgba(135, 46, 131, 0.26);
    transform: translateY(-2px);
}

.blog-content-card img,
.blog-content-card video,
.blog-content-card iframe {
    max-width: 100%;
}

.blog-content-card img {
    display: block;
    height: auto;
    margin: 22px auto;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.blog-content-card blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--blog-purple);
    border-radius: 16px;
    background: var(--blog-soft);
    color: #4f4350;
}

.blog-content-card table {
    display: block;
    width: 100%;
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid var(--blog-line);
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
}

.blog-content-card th,
.blog-content-card td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--blog-line);
    color: #514951;
    text-align: left;
}

.blog-content-card th {
    background: var(--blog-soft);
    color: var(--blog-purple);
    font-weight: 900;
}

.blog-similar-section {
    padding: 0 0 68px;
    background: var(--blog-page);
}

.blog-similar-shell {
    padding: 32px;
    border: 1px solid var(--blog-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.blog-section-title {
    margin: 0 0 22px;
    color: var(--blog-purple);
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 900;
    text-align: center;
}

.blog-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.blog-similar-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #eee3ee;
    border-radius: 18px;
    background: var(--blog-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.blog-similar-card:hover {
    border-color: rgba(135, 46, 131, 0.24);
    box-shadow: 0 14px 30px rgba(135, 46, 131, 0.13);
    transform: translateY(-4px);
}

.blog-similar-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.blog-similar-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.blog-similar-title {
    display: block;
    padding: 14px;
    color: #4f4350;
    font-weight: 900;
    line-height: 1.35;
}

.blog-tag:focus-visible,
.blog-image-link:focus-visible,
.blog-title-link:focus-visible,
.blog-read:focus-visible,
.blog-link-chip:focus-visible,
.blog-scroll-down:focus-visible,
.blog-content-card a:focus-visible,
.blog-similar-link:focus-visible {
    outline: 3px solid #f2bf00;
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-side-panel {
        position: static;
    }

    .blog-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-index-wrap {
        padding: 18px 0 46px;
    }

    .blog-hero {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .blog-grid,
    .blog-similar-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured .blog-image,
    .blog-image {
        height: 240px;
    }

    .blog-article-hero {
        height: 380px;
        min-height: 320px;
        max-height: 56vh;
    }

    .blog-hero-shell {
        align-items: flex-start;
        padding-top: 20px;
    }

    .blog-hero-card {
        padding: 20px;
        border-radius: 18px;
    }

    .blog-hero-card h1 {
        font-size: 1.55rem;
        line-height: 1.18;
    }

    .blog-hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.4;
    }

    .blog-article-section {
        padding: 24px 0 46px;
    }

    .blog-content-card {
        padding: 22px;
        border-radius: 20px;
    }

    .blog-similar-shell {
        padding: 22px 16px;
        border-radius: 20px;
    }
}

@media (max-width: 420px) {
    .blog-search {
        min-width: 100%;
    }

    .blog-count {
        width: 100%;
        text-align: center;
    }

    .blog-card-body,
    .blog-content-card {
        padding: 18px;
    }

    .blog-article-hero {
        height: 350px;
        min-height: 300px;
        max-height: none;
    }

    .blog-hero-card h1 {
        font-size: 1.38rem;
    }

    .blog-hero-subtitle {
        font-size: 0.95rem;
    }

    .blog-scroll-down {
        bottom: 10px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-tag,
    .blog-card,
    .blog-read,
    .blog-link-chip,
    .blog-scroll-down,
    .blog-similar-card {
        scroll-behavior: auto;
        transition: none;
    }
}
