
/* =========================================================
   LILLIEUM — RISK ANALYSIS
   Entrepreneurship Page Styling
========================================================= */

:root {
    --teal: #2F6975;
    --dark-teal: #205361;
    --green: #496E2B;
    --sage: #88934E;
    --light-green: #A6B88E;

    --pink: #AA2B62;
    --light-pink: #DDAFCC;

    --cream: #F1E6D0;
    --light-cream: #F8F2E7;
    --dark: #1F2421;
    --body-text: #536467;
}

/* =========================
   PAGE BASE
========================= */

.risk-analysis-page {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--light-cream);
    color: var(--dark);
    font-family: var(--font-body);
}

/* =========================
   FULL-WIDTH SECTIONS
========================= */

.risk-analysis-page .entrepreneurship-section {
    position: relative;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 2rem;

    width: 100%;
    box-sizing: border-box;
    padding: var(--section-space) 9%;

    background: var(--light-cream);
    border-bottom: 1px solid rgba(47, 105, 117, 0.15);
}

.risk-analysis-page .risk-section {
    padding: var(--section-space) 9%;
}

@media (max-width: 768px) {
    .risk-analysis-page .risk-section {
        padding-inline: 7%;
    }
}

/* Keep every Risk Analysis section light */

.risk-analysis-page .risk-analysis {
    background-color: var(--light-cream);
}

/* =========================
   SECTION NUMBERS
========================= */

.risk-analysis-page .entrepreneurship-number {
    color: var(--sage);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    padding-top: 5px;
}

/* =========================
   SECTION CONTENT
========================= */

.risk-analysis-page .entrepreneurship-content {
    width: 100%;
    max-width: 1000px;
    min-width: 0;
}

.risk-analysis-page .entrepreneurship-label {
    margin: 0 0 16px;

    color: var(--pink);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.6;
    text-transform: uppercase;
}

.risk-analysis-page .entrepreneurship-content h2 {
    margin: 0 0 25px;

    color: var(--teal);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
}

.risk-analysis-page .entrepreneurship-content p:not(.entrepreneurship-label) {
    max-width: 850px;
    margin: 0 0 20px;

    color: var(--body-text);
    font-size: 1rem;
    line-height: 1.9;
}

/* =========================
   HOVER DETAIL
========================= */

.risk-analysis-page .entrepreneurship-section {
    transition: background-color 0.3s ease;
}

.risk-analysis-page .entrepreneurship-section:hover {
    background-color: #FBF7EF;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {
    .risk-analysis-page .entrepreneurship-section {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: var(--section-space) 7%;
    }

    .risk-analysis-page .entrepreneurship-number {
        font-size: 2.2rem;
    }

    .risk-analysis-page .entrepreneurship-content h2 {
        font-size: 2.2rem;
    }

    .risk-analysis-page .entrepreneurship-label {
        font-size: 0.7rem;
    }

    .risk-analysis-page .entrepreneurship-content p:not(.entrepreneurship-label) {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .risk-analysis-page .entrepreneurship-section {
        transition: none;
    }
}
/* Background colors for selected Risk Analysis sections */

#scientific-risk {
    background-color: var(--cream);
}

#market-risk {
    background-color: var(--cream);
}

/* =========================================
   SWOT ANALYSIS
========================================= */

#swot-analysis {
    background-color: var(--cream);
}

#swot-analysis .risk-section-heading {
    max-width: 780px;
    margin: 0 auto 2.5rem;
}

.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.swot-card {
    padding: 2rem;
    border: 1px solid rgba(31, 36, 33, 0.08);
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.swot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(31, 36, 33, 0.10);
}

.swot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    color: white;
    font-size: 1.35rem;
}

.swot-label {
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.swot-card h3 {
    margin: 0 0 0.8rem;
    font-size: 1.6rem;
}

.swot-description {
    margin: 0;
    line-height: 1.75;
}

/* Strengths */
.swot-strengths {
    background: #E4EAD8;
    color: #31521F;
}

.swot-strengths .swot-icon {
    background: #496E2B;
}

/* Weaknesses */
.swot-weaknesses {
    background: #F2DFE6;
    color: #8B214F;
}

.swot-weaknesses .swot-icon {
    background: #AA2B62;
}

/* Opportunities */
.swot-opportunities {
    background: #DCE9EB;
    color: #205361;
}

.swot-opportunities .swot-icon {
    background: #2F6975;
}

/* Threats */
.swot-threats {
    background: #F0E6D0;
    color: #735522;
}

.swot-threats .swot-icon {
    background: #8A6B35;
}

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

    .swot-card {
        padding: 1.5rem;
    }
}
#swot-analysis {
    padding-bottom: 5rem;
}
/* =========================================================
   MODEL-STYLE TITLE HERO
========================================================= */

body > .container:has(> .risk-analysis-page) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* =========================================================
   HEADING FONT + COLOR ONLY (sizes and layout unchanged)
========================================================= */

.risk-analysis-page .entrepreneurship-content h2,
.risk-analysis-page .risk-section-heading h2 {
    color: var(--deep-teal);
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.risk-analysis-page .swot-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
}

/* =========================================================
   SWOT NUMBER + HEADING
========================================================= */

.risk-analysis-page .swot-number-heading {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
}

.risk-analysis-page .swot-number-heading .risk-section-heading {
    max-width: none;
    margin: 0;
}

@media (max-width: 768px) {
    .risk-analysis-page .swot-number-heading {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* =========================================================
   STICKY SECTION NAVIGATION
========================================================= */

html {
    scroll-behavior: smooth;
}

/* =========================================================
   REFERENCES (same as Model)
========================================================= */

.risk-references {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem);
    background: var(--cream);
}

.risk-references-inner {
    width: min(100%, 72rem);
    margin: 0 auto;
}

.risk-references h2 {
    max-width: 15ch;
    margin: 0 0 clamp(2rem, 5vw, 4rem);
    color: var(--deep-teal);
    font: 400 clamp(3.2rem, 7vw, 6.5rem)/0.92 var(--font-display);
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.risk-reference-list {
    margin: 0;
    padding-left: 1.5rem;
}

.risk-reference-list li {
    padding: 1rem 0 1rem 0.5rem;
    border-top: 1px solid rgba(47, 105, 117, 0.22);
    color: rgba(31, 36, 33, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.risk-reference-list li:last-child {
    border-bottom: 1px solid rgba(47, 105, 117, 0.22);
}

@media (max-width: 640px) {
    .risk-references h2 {
        font-size: clamp(2.9rem, 15vw, 4.5rem);
    }
}
/* =========================================================
   SECTION NUMBERS: match Market / Entrepreneurship pages
========================================================= */

.risk-analysis-page .entrepreneurship-number {
    color: var(--deep-teal);
    font: 400 1.3rem/1 var(--font-display);
    letter-spacing: 0.04em;
    padding-top: 1.2rem;
}

@media (max-width: 768px) {
    .risk-analysis-page .entrepreneurship-number {
        font-size: 1.3rem;
        padding-top: 0;
    }
}
.risk-analysis-page .entrepreneurship-section {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 35px;
}

.risk-analysis-page .swot-number-heading {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 35px;
}

@media (max-width: 768px) {
    .risk-analysis-page .entrepreneurship-section,
    .risk-analysis-page .swot-number-heading {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* =========================================================
   SWOT: larger tight 2x2 tiles, content aligned to top
========================================================= */

.swot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 920px;
    margin: 0 auto;
    align-items: stretch;
}

.swot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;   /* fixes the uneven heights */
    text-align: center;
    min-height: 440px;
    padding: 2.75rem 2.25rem;
    border: none;
    border-radius: 26px;
}

.swot-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    font-size: 1.6rem;
    border-radius: 18px;
}

.swot-label {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
}

.swot-card h3 {
    margin: 0 0 1.25rem;
    font-size: 2rem;
}

.swot-description {
    text-align: left;
    padding-left: 1.25rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.swot-description li {
    margin-bottom: 0.7rem;
}

/* Keep the "01 SWOT Analysis" heading lined up with the grid */
.risk-analysis-page .swot-number-heading {
    max-width: 920px;
}

/* Tablets: slightly smaller */
@media (max-width: 800px) {
    .swot-card {
        min-height: 380px;
        padding: 2rem 1.5rem;
    }

    .swot-card h3 {
        font-size: 1.6rem;
    }

    .swot-description {
        font-size: 0.95rem;
    }
}

/* Small phones: still 2x2, just tighter */
@media (max-width: 520px) {
    .swot-grid {
        max-width: 100%;
        gap: 0.5rem;
    }

    .swot-card {
        min-height: 300px;
        padding: 1.25rem 0.85rem;
        border-radius: 16px;
    }

    .swot-icon {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }

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

    .swot-description {
        font-size: 0.75rem;
        padding-left: 0.9rem;
    }
}


#swot-analysis {
    background-color: var(--light-cream);
    border-bottom: 1px solid rgba(47, 105, 117, 0.15);
}
/* =========================================================
   SWOT: title centered over the tiles
========================================================= */

#swot-analysis .swot-number-heading {
    display: block;
    max-width: 920px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

/* Hide the "01" so the title is truly centered */
#swot-analysis .swot-number-heading .entrepreneurship-number {
    display: none;
}

#swot-analysis .swot-number-heading .risk-section-heading {
    max-width: none;
    margin: 0 auto;
    text-align: center;
}

#swot-analysis .swot-number-heading .risk-section-heading h2 {
    margin: 0;
    text-align: center;
}

/* Side padding so the section never touches the screen edges */
#swot-analysis {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
