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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #eef0f5;
    color: #2a3141;
}

.wrapper {
    height: 100vh;
    width: 86vw;
    max-width: 980px;
    margin: 0 auto;
    padding: 1.2vh 0;
    display: flex;
    flex-direction: column;
    gap: 1.2vh;
}

/* 1) Navbar - 10vh */
.navbar {
    height: 10vh;
    padding: 0 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f6f7fb;
    border: 1px solid #d8dbe4;
    border-radius: 8px;
}

.logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4a5262;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.7rem;
}

.nav-links a {
    text-decoration: none;
    color: #4f5768;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.nav-links a:hover {
    background-color: #e8ebf4;
}

/* 2) Hero - 30vh */
.hero {
    height: 30vh;
    padding: 0.8rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.9rem;
    background-color: #f6f7fb;
    border: 1px solid #d8dbe4;
    border-radius: 8px;
}

.hero-content,
.hero-image {
    flex: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.hero-content h1 {
    font-size: 1.4rem;
    color: #394153;
}

.hero-content p {
    font-size: 0.9rem;
    line-height: 1.45;
    color: #505a6d;
}

.hero-content button,
.hero-link {
    width: 120px;
    border: none;
    border-radius: 6px;
    background-color: #7fa5e8;
    color: #fff;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    cursor: pointer;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f7;
    border: 1px solid #d4d8e1;
    border-radius: 8px;
    overflow: hidden;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Meta labels */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
}

.meta-row.compact {
    margin-top: 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #dde1ea;
    background-color: #eaedf4;
    color: #686f80;
    padding: 0.24rem 0.6rem;
    font-size: 0.7rem;
}

/* 3) Cards - 30vh */
.cards-panel {
    height: 30vh;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    background-color: #f6f7fb;
    border: 1px solid #d8dbe4;
    border-radius: 8px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.panel-head h2 {
    font-size: 1.2rem;
    color: #3a4254;
}

.cards-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    margin-bottom: 0.5rem;
}

.cards-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-content: flex-start;
}

.card {
    flex: 1 1 calc(33.333% - 0.55rem);
    min-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.55rem;
    border: 1px solid #dce0e8;
    border-radius: 8px;
    background-color: #fff;
}

.card h3 {
    font-size: 0.95rem;
    color: #41495a;
}

.card p {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #5e6678;
}

.card button {
    margin-top: auto;
    width: 84px;
    border: none;
    border-radius: 6px;
    background-color: #7fa5e8;
    color: #fff;
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
    cursor: pointer;
}

/* 4) Flex-grow recap - 20vh */
.grow-panel {
    height: 20vh;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    background-color: #f6f7fb;
    border: 1px solid #d8dbe4;
    border-radius: 8px;
}

.grow-recap {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 0.7rem;
    margin-bottom: 0.45rem;
}

.grow-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.55rem;
    border-radius: 8px;
}

.grow-box h3 {
    font-size: 0.98rem;
    color: #41506a;
}

.grow-box p {
    font-size: 0.8rem;
    color: #5d6880;
}

.box-1 {
    flex-grow: 1;
    background-color: #dce8f8;
}

.box-2 {
    flex-grow: 2;
    background-color: #dbe9d6;
}

.box-3 {
    flex-grow: 1;
    background-color: #f4e2cf;
}

/* 5) Footer - 10vh */
.footer {
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f6f7fb;
    border: 1px solid #d8dbe4;
    border-radius: 8px;
    color: #646d7e;
    font-size: 0.88rem;
}

@media (max-width: 820px) {
    .wrapper {
        width: 94vw;
        height: auto;
        min-height: 100vh;
    }

    .navbar,
    .hero,
    .cards-panel,
    .grow-panel,
    .footer {
        height: auto;
        min-height: 10vh;
    }

    .panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero {
        flex-direction: column;
    }

    .cards-section,
    .grow-recap {
        align-content: stretch;
    }
}

/* Shared content-page styles merged from styles/style.css */
body.content-page {
    background-color: #f3f5f9;
    color: #1d2433;
}

body.content-page .wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

body.content-page nav:not(.navbar) {
    height: 10vh;
    padding: 0 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #172033;
    color: #fff;
}

body.content-page .site-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

body.content-page nav:not(.navbar) ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

body.content-page nav:not(.navbar) a {
    color: #e6ebf7;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

body.content-page nav:not(.navbar) a:hover,
body.content-page nav:not(.navbar) a.active {
    background-color: #25314b;
}

body.content-page header:not(.page-title) {
    padding: 2vh 5vw;
    background-color: #ffffff;
    border-top: 1px solid #d9e0ef;
    border-bottom: 1px solid #d9e0ef;
}

body.content-page header:not(.page-title) h1 {
    margin-bottom: 0.75rem;
    font-size: 1.9rem;
}

body.content-page header:not(.page-title) p {
    max-width: 880px;
    font-size: 1rem;
    line-height: 1.6;
}

body.content-page main:not(.page) {
    flex: 1;
    padding: 2vh 5vw;
    display: flex;
    gap: 1rem;
}

body.content-page .content,
body.content-page .sidebar {
    background-color: #ffffff;
    border: 1px solid #d9e0ef;
    border-radius: 10px;
    padding: 1.2rem;
}

body.content-page .content {
    flex: 2;
}

body.content-page .sidebar {
    flex: 1;
}

body.content-page .content h2,
body.content-page .sidebar h2,
body.content-page .contact-redirect h2 {
    margin-bottom: 0.75rem;
    color: #20324e;
}

body.content-page .content p,
body.content-page .sidebar p,
body.content-page .contact-redirect p {
    line-height: 1.65;
    margin-bottom: 1rem;
}

body.content-page .content p:last-child,
body.content-page .sidebar p:last-child,
body.content-page .contact-redirect p:last-child {
    margin-bottom: 0;
}

body.content-page .contact-redirect {
    margin: 0 5vw 2vh;
    padding: 1.2rem;
    background-color: #ffffff;
    border: 1px solid #d9e0ef;
    border-radius: 10px;
}

body.content-page .form-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: none;
    background-color: #2463eb;
    color: #fff;
    padding: 0.55rem 0.95rem;
    border-radius: 6px;
    text-decoration: none;
}

body.content-page footer:not(.footer) {
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #172033;
    color: #dbe5ff;
    font-size: 0.92rem;
}

@media (max-width: 820px) {
    body.content-page .wrapper {
        height: auto;
        min-height: 100vh;
    }

    body.content-page nav:not(.navbar) {
        height: auto;
        min-height: 10vh;
        padding: 1rem 5vw;
        flex-direction: column;
        gap: 0.75rem;
    }

    body.content-page main:not(.page) {
        flex-direction: column;
    }
}
