/* ----------------------------------------------------
   GLOBAL VARIABLES
----------------------------------------------------- */
:root {
    --primary: #c62828;
    --primary-hover: #a71f1f;
    --dark: #222;
    --text: #444;
    --light: #fafafa;
    --white: #fff;
    --radius: 14px;
    --small-radius: 10px;
    --shadow: 0 4px 14px rgba(0,0,0,0.12);
    --shadow-light: 0 2px 6px rgba(0,0,0,0.08);
    --max-width: 1200px;
}

/* ----------------------------------------------------
   GLOBAL RESET
----------------------------------------------------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    border-radius: var(--small-radius);
}

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

    a:hover {
        opacity: 0.8;
    }

/* ----------------------------------------------------
   MAIN LAYOUT
----------------------------------------------------- */
main {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 20px;
}

/* ----------------------------------------------------
   HEADER
----------------------------------------------------- */
header {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

/* Logo Badge */
.logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 14px;
}

.logo-badge {
    background: white;
    padding: 6px;
    border-radius: 50%;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 42px;
    width: auto;
}

.site-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
}

/* Navigation */
header nav a {
    color: white;
    margin: 0 14px;
    font-weight: 600;
    font-size: 1rem;
}

    header nav a:hover {
        opacity: 0.85;
    }

@media (max-width: 800px) {
    header .inner {
        flex-direction: column;
        gap: 12px;
    }

    .logo-img {
        height: 38px;
    }
}

/* ----------------------------------------------------
   FOOTER
----------------------------------------------------- */
footer {
    background: #111;
    color: #ccc;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

    footer nav a {
        color: #ccc;
        margin: 0 10px;
    }

/* ----------------------------------------------------
   GRID & CARDS
----------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

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

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    }

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

    .card-body h3 {
        margin-top: 0;
        font-size: 1.2rem;
        color: var(--dark);
    }

/* ----------------------------------------------------
   SINGLE PAGES (recipes / restaurants / articles)
----------------------------------------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin: 20px 0 30px 0;
}

    .gallery img {
        border-radius: var(--radius);
        box-shadow: var(--shadow-light);
    }

h1 {
    color: var(--dark);
    margin-bottom: 10px;
}

h2 {
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 12px;
}

/* ----------------------------------------------------
   FORMS (contact, search, etc.)
----------------------------------------------------- */
form input,
form textarea,
form select {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

    form input:focus,
    form textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 4px rgba(198,40,40,0.4);
    }

button {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
}

    button:hover {
        background: var(--primary-hover);
    }

/* alerts */
.alert {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius);
    display: none;
}

.alert-success {
    background: #e0f7e9;
    color: #0b6f34;
    border-left: 5px solid #0b6f34;
}

.alert-error {
    background: #ffe4e4;
    color: #b10000;
    border-left: 5px solid #b10000;
}

/* Spinner */
.spinner {
    margin-top: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #ddd;
    border-top: 3px solid var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ----------------------------------------------------
   UTILITY SPACING
----------------------------------------------------- */
.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.p-20 {
    padding: 20px;
}

/* ----------------------------------------------------
   HOME SECTIONS & FEATURED CARDS
----------------------------------------------------- */
.home-section {
    margin: 3rem 0;
}

.home-section-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

    .home-section-header h2 {
        font-size: 1.8rem;
    }

    .home-section-header p {
        color: #666;
        font-size: 0.98rem;
    }

/* Big cards row */
.featured-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.card--featured {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

    .card-image-wrapper img {
        width: 100%;
        height: 230px;
        object-fit: cover;
        display: block;
    }

.card-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: #e53935;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card--featured .card-body {
    padding: 1.1rem 1.25rem 1.3rem;
}

.card--featured h3 {
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #666;
}

.card--featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.09);
}

/* ----------------------------------------------------
   BROWSE PAGE: SEARCH, HERO, PAGINATION
----------------------------------------------------- */
.browse-search {
    margin: 1rem 0 2rem;
    display: flex;
    gap: 0.75rem;
}

    .browse-search input[type="text"] {
        flex: 1;
        padding: 0.55rem 0.8rem;
        border-radius: 999px;
        border: 1px solid #ddd;
    }

    .browse-search button {
        padding: 0.55rem 1.2rem;
        border-radius: 999px;
        border: none;
        background: #e53935;
        color: #fff;
        cursor: pointer;
    }

/* Hero card */
.browse-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1.75rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

.browse-hero__link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.browse-hero__image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.browse-hero__content {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem 1.8rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .browse-hero__content h2 {
        font-size: 1.5rem;
    }

.browse-hero__meta {
    margin-top: auto;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e53935;
}

/* Pagination */
.pagination {
    margin: 2rem 0 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    font-size: 0.95rem;
}

.page-link {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

    .page-link:hover {
        border-color: #e53935;
    }

.page-status {
    color: #666;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .browse-hero {
        grid-template-columns: 1fr;
    }
}

/* Two-column hero for jobs */
.browse-hero--job {
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.browse-hero__content--job {
    background: #fff;
    border-radius: 18px;
    padding: 1.6rem 1.9rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Slight variation for the second job card */
.browse-hero__content--job-secondary {
    background: #fff7f7;
}

@media (max-width: 768px) {
    .browse-hero--job {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ----------------------------------------------------
   GENERIC BUTTON-LIKE LINKS
----------------------------------------------------- */
a.btn-primary,
a.btn-ghost {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
}

/* Solid primary button */
a.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

/* Outline-style button base */
a.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid currentColor;
}

/* Light variants used on hero over image */
.btn-primary--light {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

    .btn-primary--light:hover {
        background: #ffe4e4;
        color: var(--primary);
    }

.btn-ghost--light {
    border-color: rgba(255,255,255,0.85);
    color: #fff;
    background: transparent;
}

    .btn-ghost--light:hover {
        background: rgba(255,255,255,0.14);
    }

/* ----------------------------------------------------
   HOME HERO (IMAGE BACKGROUND WITH OVERLAY TEXT)
----------------------------------------------------- */
.home-hero {
    position: relative;
    margin-bottom: 2.5rem;
    border-radius: 22px;
    overflow: hidden;
}

/* background image + dark overlay */
.home-hero__bg {
    position: relative;
    height: 320px;
    width: 100%;
    overflow: hidden;
}

    .home-hero__bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.06);
        filter: blur(1.3px) brightness(0.84);
    }

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6) );
}

/* text layer */
.home-hero__inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    pointer-events: none; /* only content should receive clicks */
}

.home-hero__content {
    max-width: 760px;
    text-align: center;
    color: #fff;
    pointer-events: auto;
}

    .home-hero__content h1 {
        font-size: 2.4rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .home-hero__content p {
        font-size: 1rem;
        opacity: 0.92;
        margin-bottom: 1.4rem;
    }

/* hero buttons */
.home-hero__actions {
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Slightly taller hero on large screens */
@media (min-width: 992px) {
    .home-hero__bg {
        height: 360px;
    }

    .home-hero__content h1 {
        font-size: 2.7rem;
    }
}

/* Smaller hero on mobile */
@media (max-width: 600px) {
    .home-hero__bg {
        height: 260px;
    }

    .home-hero__content h1 {
        font-size: 1.9rem;
    }
}
.home-hero__content h1 {
    color: #fff;
}


/* ==============================
   RECIPE SINGLE PAGE
   ============================== */

.recipe-header {
    margin-bottom: 1.6rem;
}

    .recipe-header h1 {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }

.recipe-tagline {
    max-width: 640px;
    color: #666;
}

/* Gallery with unified height */
.recipe-gallery {
    margin: 1.5rem 0 2.2rem;
}

.recipe-gallery-main img {
    width: 100%;
    max-height: 360px;
    object-fit: cover; /* keeps aspect, crops if needed */
    border-radius: 24px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.recipe-gallery-thumbs {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.3rem;
    overflow-x: auto;
}

.recipe-thumb {
    border: none;
    padding: 0;
    background: none;
    flex: 0 0 90px;
    cursor: pointer;
    opacity: 0.6;
    border-radius: 14px;
    transition: 0.15s;
}

    .recipe-thumb img {
        width: 100%;
        height: 80px;
        object-fit: cover;
        border-radius: 14px;
        box-shadow: var(--shadow-light);
    }

    .recipe-thumb.is-active {
        opacity: 1;
        box-shadow: 0 0 0 2px var(--primary);
    }

/* Main layout */
.recipe-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.recipe-section h2 {
    margin-top: 0;
}

.recipe-ingredients,
.recipe-steps {
    padding-left: 1.1rem;
}

    .recipe-ingredients li {
        margin-bottom: 0.35rem;
    }

    .recipe-steps li {
        margin-bottom: 0.5rem;
    }

.recipe-about p {
    max-width: 700px;
}

/* Sidebar cards */
.recipe-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.recipe-meta-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-light);
    font-size: 0.92rem;
}

    .recipe-meta-card h3 {
        margin-top: 0;
        font-size: 1rem;
    }

    .recipe-meta-card dl {
        margin: 0;
        display: grid;
        grid-template-columns: auto 1fr;
        row-gap: 0.35rem;
        column-gap: 0.75rem;
    }

    .recipe-meta-card dt {
        font-weight: 600;
        color: #555;
    }

    .recipe-meta-card dd {
        margin: 0;
        color: #444;
    }

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.recipe-tag-pill {
    font-size: 0.78rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #ffe4e4;
    color: #b71c1c;
}

/* Tips block */
.recipe-tips ul {
    padding-left: 1.1rem;
}

.recipe-tips li::marker {
    color: var(--primary);
}

.recipe-suggested {
    margin-top: 3rem;
}

/* Lightbox */
#recipe-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 200;
}

    #recipe-lightbox.is-open {
        display: block;
    }

.recipe-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.recipe-lightbox__inner {
    position: absolute;
    inset: 5% 8%;
    border-radius: 16px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .recipe-lightbox__inner img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 8px;
    }

.recipe-lightbox__close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.recipe-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.2rem 0.7rem;
}

    .recipe-lightbox__nav.prev {
        left: 16px;
    }

    .recipe-lightbox__nav.next {
        right: 16px;
    }

/* Responsive layout */
@media (max-width: 900px) {
    .recipe-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .recipe-sidebar {
        order: -1; /* sidebar above content on mobile if you like */
    }
}

/* Fix recipe page title header inheriting global <header> styles */
.recipe-page .recipe-header {
    background: transparent;
    color: inherit;
    padding: 0;
    margin: 0 0 1.6rem;
    box-shadow: none;
    position: static;
}

    /* Nice dark title + softer tagline */
    .recipe-page .recipe-header h1 {
        color: var(--dark);
    }

    .recipe-page .recipe-header .recipe-tagline {
        color: #666;
    }



/* Single restaurant layout */
.single-layout--restaurant {
    margin-top: 30px;
}

.single-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .single-hero {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.restaurant-gallery-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.restaurant-main-img {
    width: 100%;
    height: 320px; /* uniform height, aspect kept via object-fit */
    object-fit: cover;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-nav--prev {
    left: 10px;
}

.gallery-nav--next {
    right: 10px;
}

.restaurant-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.restaurant-thumb {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0.7;
}

    .restaurant-thumb img {
        width: 90px;
        height: 70px;
        object-fit: cover;
        display: block;
    }

    .restaurant-thumb.is-active {
        opacity: 1;
        outline: 2px solid var(--primary);
    }

/* Right side meta */
.single-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.restaurant-title {
    margin: 0;
    font-size: 1.9rem;
    color: var(--dark);
}

.restaurant-meta-chips,
.restaurant-features,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: #f1f1f1;
    color: #555;
}

.chip--cuisine {
    background: #ffe4e4;
    color: #b71c1c;
}

.chip--price {
    background: #fff3cd;
    color: #856404;
}

.chip--neighbourhood {
    background: #e3f2fd;
    color: #1565c0;
}

.chip--feature {
    background: #f5f5f5;
}

.chip--tag {
    background: #f0f0f0;
    font-style: italic;
}

.restaurant-address {
    margin: 0.25rem 0;
    color: #555;
}

.restaurant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.restaurant-contact,
.restaurant-reservations {
    font-size: 0.9rem;
    color: #555;
}

.reservations-notes {
    margin-left: 0.25rem;
    color: #777;
}

/* Sections */
.single-section {
    margin: 2.2rem 0;
}

    .single-section h2 {
        margin-bottom: 0.6rem;
    }

.restaurant-signature-list,
.restaurant-hours,
.restaurant-tips {
    margin: 0.4rem 0 0;
    padding-left: 1.2rem;
}



/* ---------------------------------------------
   ARTICLE LAYOUT
---------------------------------------------- */
/* ---------------------------------------------
   ARTICLE LAYOUT
---------------------------------------------- */

.article-layout {
    margin-top: 30px;
}

/* HERO */
.article-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
}

.article-hero-image img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.article-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    margin: 0 0 0.6rem;
    font-size: 2rem;
    color: var(--dark);
}

.article-intro {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.9rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* reuse chip base; keep tag look */
.chip--tag {
    background: #f0f0f0;
    font-style: italic;
}

/* Pull quotes */
.article-pullquotes {
    margin: 1.5rem 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.article-quote {
    margin: 0;
    padding: 1.2rem 1.4rem;
    border-left: 4px solid var(--primary);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    font-style: italic;
}

    .article-quote blockquote {
        margin: 0 0 0.4rem;
    }

    .article-quote figcaption {
        font-size: 0.85rem;
        color: #777;
    }

/* Content sections */
.article-section {
    margin: 2.2rem 0;
}

.article-section-inner {
    display: grid;
    gap: 1.6rem;
    align-items: center;
}

.article-section-body h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.article-section-body p {
    margin: 0 0 0.75rem;
}

/* IMAGE + TEXT (side-by-side) */
.article-section--has-image.article-section--image-left .article-section-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
}

.article-section--has-image.article-section--image-right .article-section-inner {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
}

/* image block */
.article-section-image img {
    width: 100%;
    max-height: 260px; /* cap height to avoid huge columns */
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-light);
}

/* “full-width” image variant */
.article-section-image--full img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-light);
}

/* Related entities */
.article-related {
    margin: 3rem 0 2rem;
}

    .article-related h2 {
        margin-bottom: 1.3rem;
    }

.article-entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Wide entity block */
.article-entity--wide {
    grid-column: 1 / -1;
}

.article-entity-link {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
    gap: 1.2rem;
    text-decoration: none;
    color: inherit;
    padding: 1.1rem 1.3rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-light);
}

.article-entity-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
}

.article-entity-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.article-entity-label {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary);
}

.article-entity-excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Card-style wrappers can just inherit existing card styles */
.article-entity--card {
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .article-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-section--has-image.article-section--image-left .article-section-inner,
    .article-section--has-image.article-section--image-right .article-section-inner {
        grid-template-columns: 1fr;
    }

    .article-section-image {
        order: -1; /* image above text on smaller screens */
    }

    .article-entity-link {
        grid-template-columns: 1fr;
    }
}


/* -----------------------------------------
   JOB SINGLE PAGE LAYOUT & STYLES
------------------------------------------ */

.job-page {
    margin-top: 20px;
}

/* Hero / title area */
/* Job hero / header card */
.job-hero {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.6rem 1.8rem 1.3rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    overflow: hidden;
}

    /* Red accent bar on the left */
    .job-hero::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background: var(--primary);
        border-radius: var(--radius) 0 0 var(--radius);
    }

/* Title + meta inside hero */
.job-title {
    font-size: 2rem;
    margin: 0 0 0.7rem;
    color: var(--dark);
}

.job-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.job-meta-pill {
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: #ffe4e4;
    color: #a71f1f;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Line with type / level / salary */
.job-summary-line {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.7rem;
}

    .job-summary-line span {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

/* Tag row under summary */
.job-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.job-tag {
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #f3f3f3;
    font-size: 0.8rem;
    color: #555;
}


/* Main layout: content + sidebar */
.job-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.job-main {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Content sections */
.job-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-light);
}

    .job-section h2 {
        margin-top: 0;
        margin-bottom: 0.6rem;
        font-size: 1.4rem;
        color: var(--dark);
    }

    .job-section h3 {
        margin-top: 1.1rem;
        margin-bottom: 0.45rem;
        font-size: 1.05rem;
        color: var(--dark);
    }

    .job-section p {
        margin: 0.35rem 0;
    }

    .job-section ul,
    .job-section ol {
        margin: 0.4rem 0 0.4rem 1.1rem;
        padding-left: 0;
    }

/* Two-column sections (requirements / nice-to-have, benefits / schedule) */
.job-section--two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* Sidebar cards */
.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.job-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow-light);
    font-size: 0.9rem;
}

    .job-card h2,
    .job-card h3 {
        margin-top: 0;
        margin-bottom: 0.6rem;
        font-size: 1.05rem;
        color: var(--dark);
    }

.job-facts {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .job-facts li {
        margin-bottom: 0.35rem;
    }

/* Apply button */
.job-apply-button {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

    .job-apply-button:hover {
        background: var(--primary-hover);
        color: #fff;
    }

/* Suggested jobs section */
.job-section--suggested {
    margin-top: 2.5rem;
}

.job-suggested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.job-suggested-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-light);
}

    .job-suggested-card h3 {
        margin: 0 0 0.3rem;
        font-size: 1rem;
    }

        .job-suggested-card h3 a {
            color: var(--dark);
            text-decoration: none;
        }

            .job-suggested-card h3 a:hover {
                color: var(--primary);
            }

.job-suggested-meta {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    color: #666;
}

.job-suggested-salary {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.job-role-note {
    font-size: 0.85rem;
    color: #666;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .job-layout {
        grid-template-columns: 1fr;
    }
}

/* ARTICLE DETAIL LAYOUT
   ---------------------- */

/* Wrapper for each section with side image */
.article-section--split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    margin: 3rem 0;
}

/* Left/right image column */
.article-section__image img {
    width: 100%;
    max-height: 320px; /* limit height so it doesn’t get crazy tall */
    object-fit: cover; /* keep aspect ratio and crop nicely */
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* Text side */
.article-section__content {
    background: #fff;
    border-radius: 18px;
    padding: 1.6rem 1.9rem;
    box-shadow: 0 10px 26px rgba(0,0,0,0.04);
}

    .article-section__content h2 {
        margin-top: 0;
        margin-bottom: 0.75rem;
        font-size: 1.4rem;
    }

/* Full-width image sections (if you use them) */
.article-section--full img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* Stack nicely on tablet / mobile */
@media (max-width: 1024px) {
    .article-section--split {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-section__image {
        order: -1; /* image above text on smaller screens */
    }
}
