:root {
    --primary-green: #0a9646;
    --primary-green-dark: #066b32;
    --primary-red: #f4342d;
    --primary-yellow: #f3ba1a;
    --light-green: #e7f4eb;
    --light-yellow: #fbf2dd;
    --archive-gold-border: #f4e6ba;
    --text-dark: #141414;
    --text-soft: #555555;
    --text-muted: #000;
    --border-soft: #dfdfdf;
    --surface-soft: #f7f7f7;
    --white: #ffffff;
    --page-max: 1160px;
    --header-height: 78px;
    --mobile-bottom-stack: 96px;
    --container-gutter: 32px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.page-body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

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

ul {
    margin: 0;
    padding: 0;
}

.container {
    width: min(100%, var(--page-max));
    margin: 0 auto;
    padding: 0 var(--container-gutter);
}

.page-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid {
    display: grid;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font: inherit;
}

.section-padding {
    padding-top: 24px;
    padding-bottom: 24px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #ececec;
    backdrop-filter: blur(10px);
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    flex: 0 0 auto;
}

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

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: 1.5px solid #202020;
    border-radius: 4px;
}

.menu-toggle-bar {
    width: 16px;
    height: 1.8px;
    background: #202020;
    border-radius: 999px;
}

.menu-toggle-bar + .menu-toggle-bar {
    margin-top: 3px;
}

.btn-donate,
.mobile-donate-link {
    min-height: 32px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--primary-yellow);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
}

.mobile-donate-item {
    display: none;
    list-style: none;
}

.social-sidebar {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 5px;
    background: #111111;
    border-radius: 8px;
    z-index: 999;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
}

footer {
    margin-top: auto;
    background: linear-gradient(90deg, #050505 0%, #0b1812 30%, #0b4d2d 100%);
    color: #ffffff;
    text-align: center;
    font-size: 10.5px;
    font-weight: 600;
    padding: 11px 0 15px;
    letter-spacing: 0.01em;
}

footer a {
    color: inherit;
}

.home-page,
.subscribe-page,
.donate-page,
.contact-page,
.success-page,
.payment-page,
.payment-sent-page {
    width: 100%;
}

.home-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 54px;
}

.home-intro {
    max-width: 710px;
    margin: 0 auto;
    text-align: center;
}

.home-intro p {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 600;
}

.highlight-green {
    color: var(--primary-green);
}

.highlight-red {
    color: var(--primary-red);
}

.editions-section {
    width: min(100%, 820px);
    margin: 0 auto;
}

.editions-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 auto 14px;
    border-bottom: 1px solid #eadfae;
}

.tab-btn {
    padding: 0 0 10px;
    border: none;
    background: transparent;
    color: #888888;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    text-align: center;
}

.tab-btn:first-child {
    margin-left: 40px;
}

.tab-btn:last-child {
    margin-right: 40px;
}

.tab-btn.active[data-tab-target="latest"] {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.tab-btn.active[data-tab-target="featured"] {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.edition-card {
    width: min(100%, 280px);
    margin: 0 auto;
    padding: 13px;
    border-radius: 16px;
}

.edition-card-latest {
    background: var(--primary-green);
    margin-left: 80px;
}

.edition-card-featured {
    background: var(--primary-yellow);
    margin-right: 80px;
}

.edition-card .magazine-cover {
    border: none;
    margin: 0;
    aspect-ratio: 0.715;
}

.edition-card .magazine-cover img {
    border-radius: 10px;
}

.is-hidden {
    display: none !important;
}

.about-page {
    flex: 1;
    padding-top: 0;
    padding-bottom: 6px;
}

.about-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 46%);
    gap: 0;
    align-items: center;
}

.about-text {
    padding-top: 26px;
}

.about-intro {
    margin-bottom: 22px;
}

.about-intro p,
.editorial-principle {
    margin: 0;
    font-size: clamp(16px, 1.75vw, 20px);
    line-height: 1.55;
    font-weight: 600;
}

.editorial-principle .green {
    color: var(--primary-green);
}

.about-image {
    position: relative;
    height: min(428px, 42dvh);
    overflow: hidden;
}

.about-image::before {
    content: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    margin-top: 48px;
    margin-bottom: 0;
    align-items: start;
}

.about-column h3 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
    color: var(--primary-green);
}

.about-column ul {
    list-style: disc;
    padding-left: 18px;
}

.about-column li,
.about-note p {
    font-size: 15px;
    line-height: 1.55;
}

.about-note {
    padding: 16px 18px;
	margin-left: 22px;
    background: linear-gradient(90deg, #ededed 0%, #f5f5f5 60%, #ffffff 100%);
}

.about-note p {
    margin: 0 0 10px;
}

.about-note p:last-child {
    margin-bottom: 0;
}

.subscribe-section {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-top: 28px;
    padding-bottom: 18px;
}

.subscribe-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 42px;
    width: min(100%, 980px);
    margin: 0 auto;
    align-items: start;
}

.subscribe-text-top {
    grid-column: 1;
}

.subscribe-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-top: 8px;
}

.subscribe-icon-img {
    width: 148px;
}

.subscribe-divider {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    border: none;
    border-top: 1px solid #e1e1e1;
}

.subscribe-text-bottom {
    grid-column: 1 / -1;
    width: 100%;
}

.subscribe-text h2 {
    margin: 0 0 12px;
    max-width: 620px;
    font-size: clamp(34px, 4.6vw, 55px);
    line-height: 1.02;
    font-weight: 700;
}

.subscribe-text .free {
    color: var(--primary-red);
    font-weight: 400;
}

.sub-description {
    margin: 0;
    max-width: 460px;
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-soft);
}

.subscribe-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 20px 0 40px;
}

.subscribe-cta-text {
    margin: 0;
    max-width: 520px;
    font-size: 19px;
    line-height: 1.45;
    color: var(--text-soft);
}

.subscribe-cta-text .green {
    color: var(--primary-green);
    font-weight: 700;
}

.phone-number {
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-shrink: 0;
    margin: 0;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.phone-number .prefix {
    font-size: clamp(34px, 4.6vw, 55px);
}

.phone-number .highlight-red {
    font-size: clamp(34px, 4.6vw, 55px);
    color: var(--primary-red);
}

.phone-number .rest {
    font-size: clamp(34px, 4.6vw, 55px);
    color: var(--primary-green);
}

.wa-input-wrapper {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 980px);
}

.wa-input-box {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #bfbfbf;
    border-radius: 4px;
}

.wa-input-box span {
    font-size: 14px;
    color: var(--primary-green);
}

.wa-send-btn {
    min-width: 150px;
    height: 48px;
    border-radius: 4px;
    background: #a8d5b8;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.subscribe-consent {
    margin: 14px auto 0;
    max-width: 980px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--text-soft);
    text-align: center;
}

.mission-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    text-align: center;
    padding-top: 24px;
}

.mission-icon-img {
    width: 78px;
    margin: 0 auto 2px;
}

.mission-title {
    max-width: 700px;
    margin: 0 auto;
    font-size: 21px;
    line-height: 1.45;
    font-weight: 700;
}

.mission-subtitle {
    max-width: 680px;
    margin: 16px auto 16px;
    font-size: 19px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--primary-green);
}

.info-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
    margin: 16px auto 16px;
    text-align: left;
}

.card {
    padding: 18px 20px;
    border-radius: 6px;
}

.card-yellow {
    background: var(--light-yellow);
}

.card-green {
    background: var(--light-green);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
}

.card ul {
    list-style: disc;
    padding-left: 18px;
}

.card li {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 3px;
}

.large-donate-btn {
    width: min(100%, 760px);
    min-height: 40px;
    margin: 0 auto;
    border-radius: 4px;
    background: linear-gradient(90deg, #f1be21 0%, var(--primary-green) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.archive-page {
    padding-top: 16px;
    padding-bottom: 24px;
}

.search-bar-wrapper {
    position: relative;
    width: min(100%, 900px);
    margin: 0 auto 18px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #8f8f8f;
}

.search-bar {
    width: 100%;
    height: 40px;
    padding: 0 18px 0 42px;
    border: none;
    border-radius: 999px;
    background: #f3f3f3;
    font: inherit;
    font-size: 12px;
}

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

.magazine-label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
    text-align: center;
    letter-spacing: 0.03em;
}

.magazine-item {
    text-align: center;
}

.magazine-cover {
    display: block;
    aspect-ratio: 0.72;
    border: 10px solid var(--archive-gold-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-soft);
}

.magazine-cover-latest {
    border-color: var(--primary-green);
}

.magazine-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.magazine-date {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
}

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

.pagination a,
.pagination span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
}

.pagination .active {
    background: var(--primary-green);
    color: #ffffff;
}

.contact-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    padding-top: 85px;
    padding-bottom: 18px;
}

.contact-headline {
    margin: 0 0 8px;
    font-size: clamp(30px, 3.8vw, 42px);
    line-height: 1.08;
    font-weight: 800;
}

.contact-headline .red {
    color: var(--primary-red);
}

.contact-headline .green {
    color: var(--primary-green);
}

.contact-sub {
    margin: 35px auto 40px;
    max-width: 600px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 760px);
    margin: 0 auto;
    text-align: left;
}

.left-inputs {
    display: grid;
    gap: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px 14px;
    font: inherit;
    font-size: 12px;
    color: var(--text-dark);
}

.form-group textarea {
    height: calc(3 * (18px + 18px + 1em + 2px) + 2 * 10px + 10px);
    min-height: unset;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus,
.search-bar:focus {
    outline: 2px solid rgba(10, 150, 70, 0.12);
    outline-offset: 0;
}

.submit-btn {
    width: min(100%, 760px);
    min-height: 40px;
    margin: 60px auto 0;
    border-radius: 4px;
    background: #a6dbc0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.ads-email {
    margin: 35px auto 0;
    font-size: 14px;
    line-height: 1.45;
}

.ads-email .label {
    color: var(--primary-red);
    font-weight: 700;
}

.error-message {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--primary-red);
}

.success-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.success-icon {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-success-icon {
    border: 3px solid var(--primary-green);
    color: var(--primary-green);
    font-size: 28px;
}

.success-section h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
}

.success-sub {
    margin: 0;
    max-width: 520px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-muted);
}

.btn-back-home {
    min-height: 40px;
    padding: 0 26px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f1be21 0%, var(--primary-green) 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.payment-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 18px;
}

.payment-banner {
    padding: 36px 20px 34px;
    background: linear-gradient(90deg, rgba(0, 65, 30, 0.1) 0%, rgba(255, 182, 0, 0.1) 100%);
    text-align: center;
}

.payment-banner h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.1;
    color: #8c8b1b;
    font-weight: 900;
}

.payment-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #5f5f5f;
}

.payment-form {
    padding: 18px 24px 0;
}

.payment-card {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 24px 32px;
    border: 1px solid #dddddd;
    border-radius: 22px;
    text-align: center;
}

.payment-question {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 20px 0 16px;
    font-size: 26px;
    line-height: 1.2;
    color: var(--primary-green);
    font-weight: 700;
    text-align: center;
}

.amount-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    margin-bottom: 12px;
}

.amount-value {
    font-size: 68px;
    line-height: 1;
    font-weight: 700;
    color: var(--primary-green);
}

.amount-currency {
    font-size: 12px;
    font-weight: 700;
}

.amount-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-top: 14px;
    border-top: 1px solid #ebebeb;
}

.amount-option {
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0 18px;
    font-family: inherit;
    font-size: 19px;
    font-weight: 800;
    color: var(--primary-green);
    cursor: pointer;
    position: relative;
}

.amount-option:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #cccccc;
    font-weight: 300;
}

.monthly-donation {
    margin: 14px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.monthly-donation input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-green);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.payment-btn {
    min-height: 44px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-btn-mpesa {
    background: var(--primary-green);
    color: #ffffff;
}

.payment-btn-paypal {
    background: #ffffff;
    color: #0065d1;
    border: 1px solid #9dc2ff;
}

.payment-btn-card {
    background: #111111;
    color: #ffffff;
}

.payment-disclaimer {
    width: min(100%, 960px);
    margin: 10px auto 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    white-space: nowrap;
    color: var(--text-muted);
}

.payment-sent-logo {
    width: 120px;
    margin-bottom: 8px;
}

