/* =====================================================
   living-in-italy.css
   Standalone stylesheet for the "Living in Italy" page.
   Scoped entirely to .liv-page — does NOT reuse or clash
   with study-in-italy.css (.sit-page). Colors below were
   sampled directly from the reference design you shared
   (warm terracotta + dark olive green + cream, serif
   headings) so the look matches exactly.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&display=swap');

.liv-page {
    /* ===== BRAND PALETTE — matches your logo blue / study-in-italy.css
       so every page on the site shares one identity. Layout/typography
       (serif headings etc.) still follows the reference mockup; only the
       colors changed. Variable names kept from the old rust/olive version
       so nothing below needs renaming. ===== */
    --liv-rust: #1B4B91;
    /* brand blue accent — eyebrow text, "Italy" word, icons, underline */
    --liv-rust-dark: #123763;
    /* darker blue for hover states */
    --liv-olive: #1B4B91;
    /* solid buttons — same brand blue */
    --liv-olive-dark: #123763;
    /* darker blue for hover */
    --liv-cream: #f5f8ff;
    /* cool blue-tinted section background */
    --liv-cream-card: #f8faff;
    /* slightly lighter blue tint — card backgrounds */
    --liv-border: #EAF0FE;
    /* soft blue border color */
    --liv-text: #12193a;
    /* near-navy heading/body text */
    --liv-grey: #667085;
    /* neutral grey for supporting text */
    --liv-blue-light: #eaf0ff;
    /* soft blue tint — used for fallback image backgrounds etc. */
    --liv-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-family: inherit;
    background: #ffffff;
    color: var(--liv-text);
}

.liv-page a {
    text-decoration: none;
}

.liv-page .liv-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.liv-page .liv-eyebrow {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--liv-rust) !important;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 10px !important;
    display: block;
}

.liv-page .liv-section {
    padding: 60px 0;
}

.liv-page .liv-section.liv-cream-bg {
    background: var(--liv-cream);
}

.liv-page .liv-center {
    text-align: center;
}

.liv-page .liv-heading {
    font-family: var(--liv-serif);
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--liv-text) !important;
    margin-bottom: 0 !important;
}

.liv-page .liv-heading-underline {
    width: 50px;
    height: 2px;
    background: var(--liv-rust) !important;
    margin: 14px auto 0;
    border-radius: 2px;
    opacity: .6;
}

.liv-page .liv-heading-underline.left {
    margin: 14px 0 0;
}

/* ================= BUTTONS ================= */
.liv-page .liv-btn-olive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--liv-olive) !important;
    color: #fff !important;
    padding: 14px 24px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    transition: background .2s ease, transform .2s ease;
}

.liv-page .liv-btn-olive:hover {
    background: var(--liv-olive-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.liv-page .liv-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff !important;
    color: var(--liv-text) !important;
    padding: 14px 24px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: 1px solid #ddd4c6 !important;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.liv-page .liv-btn-outline:hover {
    background: var(--liv-cream) !important;
    border-color: var(--liv-olive) !important;
    transform: translateY(-2px);
}

/* ================= HERO ================= */
.liv-page .liv-hero {
    padding: 40px 0 90px !important;
    /* extra bottom padding = guaranteed room for the stats card to
       overlap into, without ever cutting into the buttons above it */
    position: relative;
}

.liv-page .liv-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) !important;
    gap: 36px !important;
    align-items: center !important;
    position: relative;
}

.liv-page .liv-hero-text {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.liv-page .liv-hero-text h1 {
    font-family: var(--liv-serif);
    font-size: 40px !important;
    font-weight: 800 !important;
    line-height: 1.22 !important;
    color: var(--liv-text) !important;
    margin-bottom: 18px !important;
}

.liv-page .liv-hero-text h1 span {
    color: var(--liv-rust) !important;
}

.liv-page .liv-hero-text > p {
    font-size: 14.5px !important;
    color: var(--liv-grey) !important;
    line-height: 1.75 !important;
    margin-bottom: 28px !important;
    max-width: 400px;
}

.liv-page .liv-hero-actions {
    display: flex !important;
    gap: 14px !important;
    flex-wrap: wrap;
}

/* Hero image column. Fixed, guaranteed height + a soft blue gradient
   background means this box always looks intentional even before the
   image loads, or if the image file is missing — no more collapsed
   box / broken-icon-and-alt-text look. */
.liv-page .liv-hero-img-wrap {
    position: relative !important;
    display: block !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    height: 400px !important;
    min-height: 400px !important;
    width: 100% !important;
    min-width: 0;
    background: linear-gradient(135deg, var(--liv-blue-light) 0%, #EAF0FE 100%) !important;
}

.liv-page .liv-hero-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    /* if the src 404s, hide the broken-icon/alt-text entirely and let
       the gradient background above show through instead */
    color: transparent;
}

@media (max-width: 991px) {
    .liv-page .liv-hero {
        padding-bottom: 70px !important;
    }

    .liv-page .liv-hero-grid {
        grid-template-columns: 1fr !important;
    }

    .liv-page .liv-hero-text {
        margin-bottom: 30px;
    }

    .liv-page .liv-hero-img-wrap {
        height: 300px !important;
        min-height: 300px !important;
    }
}

/* ================= STATS STRIP ================= */
.liv-page .liv-stats {
    background: var(--liv-cream-card) !important;
    border: 1px solid var(--liv-border);
    border-radius: 16px !important;
    padding: 26px 10px !important;
    box-shadow: 0 14px 36px rgba(18, 25, 58, .08) !important;
    margin-top: -46px !important;
    position: relative !important;
    z-index: 5;
    width: 100%;
}

.liv-page .liv-stats .liv-stats-row {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 10px !important;
    margin: 0 !important;
}

.liv-page .liv-stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px;
    padding: 10px 6px !important;
    width: 100% !important;
}

.liv-page .liv-stat-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--liv-olive) !important;
    flex-shrink: 0;
}

.liv-page .liv-stat-item strong {
    display: block;
    font-family: var(--liv-serif);
    font-size: 19px !important;
    font-weight: 700 !important;
    color: var(--liv-text) !important;
    line-height: 1.2;
}

.liv-page .liv-stat-item span {
    font-size: 10.5px !important;
    color: var(--liv-grey) !important;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .liv-page .liv-stats .liv-stats-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px 6px !important;
    }
}

@media (max-width: 480px) {
    .liv-page .liv-stats .liv-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ================= "LIFE IN ITALY IS MORE THAN..." GRID ================= */
.liv-page .liv-more-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.liv-page .liv-more-card {
    text-align: center;
}

.liv-page .liv-more-card svg {
    width: 26px;
    height: 26px;
    stroke: var(--liv-olive) !important;
    margin-bottom: 14px;
}

.liv-page .liv-more-card h6 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--liv-text) !important;
    margin-bottom: 8px !important;
}

.liv-page .liv-more-card p {
    font-size: 11.5px !important;
    color: var(--liv-grey) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .liv-page .liv-more-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .liv-page .liv-more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= "WHAT STUDENT LIFE LOOKS LIKE" CARDS ================= */
.liv-page .liv-life-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.liv-page .liv-life-card {
    background: var(--liv-cream-card) !important;
    border: 1px solid var(--liv-border);
    border-radius: 12px !important;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.liv-page .liv-life-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(23, 29, 36, .12);
}

.liv-page .liv-life-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.liv-page .liv-life-card-body {
    padding: 14px !important;
}

.liv-page .liv-life-card-body h6 {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--liv-text) !important;
    margin-bottom: 5px !important;
}

.liv-page .liv-life-card-body p {
    font-size: 11px !important;
    color: var(--liv-grey) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .liv-page .liv-life-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .liv-page .liv-life-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= CTA STRIP ================= */
.liv-page .liv-cta-strip {
    background: var(--liv-cream) !important;
    border: 1px solid var(--liv-border);
    border-radius: 14px !important;
    padding: 22px 28px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.liv-page .liv-cta-strip-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.liv-page .liv-cta-strip-left svg {
    width: 30px;
    height: 30px;
    stroke: var(--liv-rust) !important;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    box-sizing: content-box;
    border: 1px solid var(--liv-border);
}

.liv-page .liv-cta-strip-left h6 {
    font-family: var(--liv-serif);
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    color: var(--liv-text) !important;
}

.liv-page .liv-cta-strip-left p {
    font-size: 12.5px !important;
    color: var(--liv-grey) !important;
    margin: 0 !important;
}

.liv-page .liv-cta-strip-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .liv-page .liv-cta-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================= SEASONS + COST OF LIVING (two-column boxes) ================= */
.liv-page .liv-info-boxes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.liv-page .liv-info-box {
    background: var(--liv-cream-card) !important;
    border: 1px solid var(--liv-border);
    border-radius: 14px !important;
    padding: 22px !important;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.liv-page .liv-info-box-head {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--liv-text) !important;
    margin-bottom: 4px !important;
    grid-column: 1 / -1;
}

.liv-page .liv-info-box-sub {
    font-size: 11.5px !important;
    color: var(--liv-grey) !important;
    margin-bottom: 14px !important;
    grid-column: 1 / -1;
}

.liv-page .liv-info-box-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.liv-page .liv-season-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.liv-page .liv-season-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--liv-border);
}

.liv-page .liv-season-row h6 {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--liv-text) !important;
    margin-bottom: 2px !important;
}

.liv-page .liv-season-row p {
    font-size: 11px !important;
    color: var(--liv-grey) !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.liv-page .liv-cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--liv-border);
    font-size: 12.5px !important;
}

.liv-page .liv-cost-row-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--liv-text) !important;
    font-weight: 600 !important;
}

.liv-page .liv-cost-row-label svg {
    width: 15px;
    height: 15px;
    stroke: var(--liv-rust) !important;
}

.liv-page .liv-cost-row-value {
    color: var(--liv-grey) !important;
    font-weight: 600 !important;
}

.liv-page .liv-cost-row.liv-cost-total {
    border-bottom: none;
    border-top: 2px solid var(--liv-text);
    margin-top: 4px;
    padding-top: 12px;
}

.liv-page .liv-cost-row.liv-cost-total .liv-cost-row-label,
.liv-page .liv-cost-row.liv-cost-total .liv-cost-row-value {
    font-weight: 800 !important;
    color: var(--liv-text) !important;
}

.liv-page .liv-info-box-img {
    border-radius: 10px !important;
    overflow: hidden;
    height: 100%;
    min-height: 220px;
}

.liv-page .liv-info-box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .liv-page .liv-info-boxes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .liv-page .liv-info-box {
        grid-template-columns: 1fr;
    }

    .liv-page .liv-info-box-img {
        min-height: 180px;
    }
}

/* ================= TIPS FROM STUDENTS ================= */
.liv-page .liv-tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.liv-page .liv-tip-card {
    background: var(--liv-cream-card) !important;
    border: 1px solid var(--liv-border);
    border-radius: 12px !important;
    padding: 20px !important;
}

.liv-page .liv-tip-card svg {
    width: 22px;
    height: 22px;
    stroke: var(--liv-rust) !important;
    margin-bottom: 12px;
}

.liv-page .liv-tip-card h6 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--liv-text) !important;
    margin-bottom: 6px !important;
}

.liv-page .liv-tip-card p {
    font-size: 11.5px !important;
    color: var(--liv-grey) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    .liv-page .liv-tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= FOOTER BANNER ================= */
.liv-page .liv-footer-banner {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    margin-top: 20px;
    background-size: cover;
    background-position: center;
    background-color: #2c2a22;
}

.liv-page .liv-footer-banner-inner {
    width: 100%;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.liv-page .liv-footer-banner h5 {
    font-family: var(--liv-serif);
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 6px !important;
}

.liv-page .liv-footer-banner p {
    font-size: 14px !important;
    color: #eee !important;
    margin: 0 !important;
}

.liv-page .liv-footer-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.liv-page .liv-footer-banner .liv-btn-outline {
    background: rgba(255, 255, 255, .12) !important;
    border-color: rgba(255, 255, 255, .4) !important;
    color: #fff !important;
}

.liv-page .liv-footer-banner .liv-btn-outline:hover {
    background: rgba(255, 255, 255, .22) !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .liv-page .liv-footer-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}
