 :root {
    --green: #0f6b3a;
    --green-dark: #083b25;
    --green-soft: #eaf7ef;
    --orange: #ff7a00;
    --orange-dark: #d86200;
    --ink: #102018;
    --muted: #65756c;
    --cream: #fffaf3;
    --white: #ffffff;
    --line: rgba(16, 32, 24, .10);
    --shadow: 0 18px 45px rgba(8, 59, 37, .15);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 34px));
    margin: 0 auto;
}

.topbar {
    background: var(--green-dark);
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 250, 243, .92);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--line);
}

.navbar {
    padding: 14px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--green), var(--orange));
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 900;
    letter-spacing: -1px;
    box-shadow: 0 14px 25px rgba(255, 122, 0, .28);
}

.brand strong,
.footer-brand strong {
    display: block;
    font-size: 17px;
    line-height: 1.1;
}

.brand small,
.footer-brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 10px 12px;
    color: #183227;
    font-weight: 700;
    font-size: 14px;
    border-radius: 14px;
    transition: .25s ease;
}

.nav-links a:hover {
    background: var(--green-soft);
    color: var(--green-dark);
    transform: translateY(-1px);
}

.nav-cta {
    background: var(--green) !important;
    color: var(--white) !important;
    margin-left: 6px;
    box-shadow: 0 12px 24px rgba(15, 107, 58, .22);
}

.menu-btn {
    display: none;
    border: 0;
    background: var(--green-soft);
    border-radius: 14px;
    width: 45px;
    height: 45px;
    padding: 10px;
}

.menu-btn span {
    display: block;
    height: 2px;
    background: var(--green-dark);
    margin: 5px 0;
}

.flash {
    width: min(900px, calc(100% - 34px));
    margin: 18px auto 0;
    padding: 13px 16px;
    border-radius: 18px;
    font-weight: 700;
}

.flash-success {
    background: #e9f9ef;
    color: #0b6b36;
    border: 1px solid rgba(11, 107, 54, .18);
}

.flash-error {
    background: #fff0eb;
    color: #a64113;
    border: 1px solid rgba(166, 65, 19, .18);
}

.hero {
    min-height: 720px;
    position: relative;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(8, 59, 37, .95), rgba(8, 59, 37, .75), rgba(255, 122, 0, .25)),
        url('https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1800&q=80') center/cover;
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -15% -35% -15%;
    height: 360px;
    background: radial-gradient(circle, rgba(255,122,0,.34), transparent 65%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 52px;
    align-items: center;
    padding: 80px 0;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .13em;
}

.hero h1,
.page-hero h1,
.post-hero h1,
.admin-hero h1 {
    font-size: clamp(40px, 6vw, 78px);
    line-height: .98;
    margin: 14px 0 20px;
    letter-spacing: -3px;
}

.hero p,
.page-hero p,
.admin-hero p {
    max-width: 650px;
    font-size: 18px;
    color: rgba(255,255,255,.86);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 900;
    border: 0;
    cursor: pointer;
    transition: .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 16px 28px rgba(255, 122, 0, .28);
}

.btn-primary:hover {
    background: var(--orange-dark);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.35);
    color: var(--white);
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
}

.btn-light {
    background: var(--green-soft);
    color: var(--green-dark);
}

.btn-small {
    min-height: 40px;
    padding: 10px 16px;
    background: var(--green);
    color: var(--white);
}

.full-btn {
    width: 100%;
}

.hero-card {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(18px);
    padding: 28px;
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(0,0,0,.22);
}

.portrait {
    height: 330px;
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(15,107,58,.88), rgba(255,122,0,.8)),
        url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=900&q=80') center/cover;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.portrait span {
    width: 118px;
    height: 118px;
    border-radius: 38px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.4);
    display: grid;
    place-items: center;
    font-size: 42px;
    font-weight: 1000;
    color: var(--white);
}

.hero-card h2 {
    margin: 20px 0 4px;
    font-size: 28px;
}

.hero-card p {
    color: rgba(255,255,255,.78);
    margin: 0 0 16px;
}

.mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-list span {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}

.stats-section {
    margin-top: -55px;
    position: relative;
    z-index: 3;
}

.stats-grid,
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    font-size: 34px;
    color: var(--green);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.section {
    padding: 88px 0;
}

.section.alt {
    background: #f2fbf5;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
    align-items: center;
}

.image-frame {
    padding: 12px;
    background: var(--white);
    border-radius: 34px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transform: rotate(-1.2deg);
}

.image-frame img {
    height: 460px;
    width: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.section-copy h2,
.section-heading h2 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -2px;
    margin: 10px 0 18px;
}

.section-copy p {
    color: var(--muted);
    font-size: 17px;
}

.text-link {
    color: var(--green);
    font-weight: 900;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 38px;
}

.split-heading {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    text-align: left;
    gap: 20px;
}

.cards-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.post-grid {
    grid-template-columns: repeat(3, 1fr);
}

.blog-grid {
    grid-template-columns: repeat(3, 1fr);
}

.focus-card,
.post-card,
.empty-card,
.contact-card,
.form-card,
.auth-card,
.admin-panel,
.sidebar-card,
.article-body {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 38px rgba(8,59,37,.08);
}

.focus-card {
    padding: 25px;
    transition: .25s ease;
}

.focus-card:hover,
.post-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.focus-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--green-soft), #fff0e4);
    font-size: 28px;
    margin-bottom: 16px;
}

.focus-card h3 {
    font-size: 22px;
    margin: 0 0 8px;
}

.focus-card p {
    color: var(--muted);
    margin: 0;
}

.card-photo {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 18px;
}

.big-card {
    grid-column: span 1;
    min-height: 260px;
}

.post-card {
    overflow: hidden;
    transition: .25s ease;
}

.post-image {
    display: block;
    height: 235px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .45s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.07);
}

.post-content {
    padding: 22px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.post-card h3 {
    font-size: 22px;
    line-height: 1.2;
    margin: 12px 0 10px;
}

.post-card h3 a:hover {
    color: var(--green);
}

.post-card p {
    color: var(--muted);
    margin-bottom: 14px;
}

.cta-section {
    padding: 0 0 90px;
}

.cta-box {
    background:
        linear-gradient(120deg, rgba(8,59,37,.95), rgba(15,107,58,.9)),
        url('https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=1600&q=80') center/cover;
    border-radius: 34px;
    padding: 42px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    max-width: 760px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    margin: 10px 0 0;
}

.page-hero,
.admin-hero {
    padding: 100px 0;
    color: var(--white);
    background:
        linear-gradient(115deg, rgba(8,59,37,.94), rgba(15,107,58,.8), rgba(255,122,0,.35)),
        url('https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.small-hero {
    padding: 82px 0;
}

.philosophy-hero {
    background:
        linear-gradient(115deg, rgba(8,59,37,.92), rgba(8,59,37,.72), rgba(255,122,0,.42)),
        url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.profile-panel {
    background: var(--green-dark);
    color: var(--white);
    padding: 34px;
    border-radius: 34px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.profile-panel::after {
    content: "";
    width: 190px;
    height: 190px;
    border-radius: 50%;
    position: absolute;
    right: -60px;
    top: -60px;
    background: rgba(255,122,0,.24);
}

.profile-ring {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green), var(--orange));
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.22);
}

.profile-ring span {
    font-size: 52px;
    font-weight: 1000;
}

.profile-panel h3 {
    font-size: 30px;
    margin: 0 0 6px;
}

.profile-panel p {
    color: rgba(255,255,255,.78);
}

.profile-panel ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.profile-panel li {
    padding: 11px 0;
    border-top: 1px solid rgba(255,255,255,.13);
}

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

.timeline-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 18px 38px rgba(8,59,37,.07);
}

.timeline-item span {
    color: var(--orange);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .10em;
}

.timeline-item h3 {
    margin: 8px 0;
}

.timeline-item p {
    color: var(--muted);
    margin: 0;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
    background: #fff;
    transition: .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(15,107,58,.55);
    box-shadow: 0 0 0 4px rgba(15,107,58,.08);
}

label {
    display: grid;
    gap: 8px;
    font-weight: 900;
    color: #183227;
    margin-bottom: 16px;
}

label small {
    color: var(--muted);
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.pagination a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    font-weight: 900;
}

.pagination a.active {
    background: var(--green);
    color: var(--white);
}

.post-hero {
    min-height: 560px;
    position: relative;
    display: grid;
    align-items: end;
    color: var(--white);
    overflow: hidden;
}

.post-hero-bg,
.post-hero-overlay {
    position: absolute;
    inset: 0;
}

.post-hero-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.post-hero-overlay {
    background: linear-gradient(0deg, rgba(8,59,37,.94), rgba(8,59,37,.25));
}

.post-hero-content {
    position: relative;
    max-width: 900px;
    padding: 120px 0 64px;
}

.hero-meta span {
    color: #ffd1a4;
}

.post-hero p {
    max-width: 760px;
    font-size: 18px;
    color: rgba(255,255,255,.86);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.article-body {
    padding: 38px;
}

.article-body p {
    font-size: 18px;
    color: #30443a;
    margin: 0 0 22px;
}

.share-box {
    margin-top: 34px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.share-box a {
    background: var(--green-soft);
    color: var(--green-dark);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
}

.sidebar {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 18px;
}

.sidebar-card {
    padding: 22px;
}

.sidebar-card h3 {
    margin-top: 0;
}

.side-post {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-weight: 900;
    line-height: 1.3;
}

.side-post img {
    width: 72px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.contact-card,
.form-card,
.auth-card,
.admin-panel,
.empty-card {
    padding: 28px;
}

.contact-card h2,
.auth-card h1 {
    font-size: 36px;
    line-height: 1.05;
    margin: 10px 0 12px;
}

.contact-card p,
.auth-card p {
    color: var(--muted);
}

.contact-lines {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.contact-lines a {
    background: var(--green-soft);
    border-radius: 16px;
    padding: 13px 14px;
    color: var(--green-dark);
    font-weight: 900;
}

.auth-section {
    min-height: 720px;
    display: grid;
    place-items: center;
    padding: 80px 0;
    background:
        radial-gradient(circle at top left, rgba(255,122,0,.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(15,107,58,.16), transparent 30%);
}

.auth-card {
    width: min(510px, calc(100% - 34px));
}

.auth-switch {
    text-align: center;
    margin-bottom: 0;
}

.auth-switch a {
    color: var(--green);
    font-weight: 900;
}

.admin-hero {
    background:
        linear-gradient(115deg, rgba(8,59,37,.96), rgba(15,107,58,.85), rgba(255,122,0,.3)),
        url('https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.admin-hero.compact {
    padding: 70px 0;
}

.admin-section {
    background: #f7fbf8;
}

.admin-stats {
    margin-bottom: 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 24px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.panel-head h2 {
    margin: 0;
}

.panel-head a {
    color: var(--green);
    font-weight: 900;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th {
    color: var(--green-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

td {
    color: #293b32;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.badge.published {
    background: var(--green-soft);
    color: var(--green);
}

.badge.draft {
    background: #fff0e2;
    color: var(--orange-dark);
}

.table-img {
    width: 78px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.actions a,
.actions button {
    border: 0;
    background: var(--green-soft);
    color: var(--green-dark);
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 900;
    cursor: pointer;
    font: inherit;
}

.actions button {
    background: #fff0e2;
    color: #a34800;
}

.message-list {
    display: grid;
    gap: 14px;
}

.message-mini,
.message-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: #fbfffc;
}

.message-mini strong {
    display: block;
}

.message-mini span {
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
}

.message-mini p {
    margin: 8px 0 0;
    color: var(--muted);
}

.message-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.message-card h3 {
    margin: 0;
}

.message-card span {
    color: var(--muted);
}

.message-card a {
    color: var(--green);
    font-weight: 900;
}

.wide-form {
    max-width: 980px;
    margin: 0 auto;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.preview-img {
    width: 230px;
    height: 145px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.empty-card {
    text-align: center;
}

.site-footer {
    background: var(--green-dark);
    color: rgba(255,255,255,.82);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr .8fr;
    gap: 34px;
}

.footer-brand strong {
    color: var(--white);
}

.footer-brand small {
    color: rgba(255,255,255,.65);
}

.site-footer p {
    max-width: 520px;
    color: rgba(255,255,255,.70);
}

.site-footer h3 {
    color: var(--white);
    margin-top: 0;
}

.site-footer a {
    display: block;
    color: rgba(255,255,255,.75);
    margin: 8px 0;
}

.site-footer a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 40px;
}

.footer-bottom .container {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    color: rgba(255,255,255,.55);
    font-size: 13px;
}

.reveal {
    animation: fadeUp .75s ease both;
}

.delay-1 {
    animation-delay: .13s;
}

.delay-2 {
    animation-delay: .26s;
}

.delay-3 {
    animation-delay: .39s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .two-col,
    .contact-grid,
    .admin-grid,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .admin-stats,
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid,
    .post-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .topbar-inner {
        flex-direction: column;
        gap: 2px;
        text-align: center;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 103px;
        left: 17px;
        right: 17px;
        display: grid;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 24px;
        padding: 14px;
        box-shadow: var(--shadow);
        transform: translateY(-15px);
        opacity: 0;
        pointer-events: none;
        transition: .25s ease;
    }

    body.menu-open .nav-links {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 13px 14px;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        padding: 64px 0;
    }

    .hero h1,
    .page-hero h1,
    .post-hero h1,
    .admin-hero h1 {
        letter-spacing: -1.5px;
    }

    .hero-card {
        padding: 18px;
    }

    .portrait {
        height: 250px;
    }

    .stats-section {
        margin-top: 0;
        padding-top: 20px;
    }

    .split-heading,
    .cta-box {
        align-items: start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand small {
        display: none;
    }

    .hero-actions,
    .search-box,
    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stats-grid,
    .admin-stats,
    .timeline,
    .cards-grid,
    .post-grid,
    .blog-grid,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .image-frame img {
        height: 310px;
    }

    .post-image {
        height: 220px;
    }

    .article-body {
        padding: 24px;
    }

    .article-body p {
        font-size: 16px;
    }

    .message-card-head {
        display: grid;
    }

    .footer-bottom .container {
        display: grid;
    }
}
