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

@property --btn-mask-x {
    syntax: '<percentage>';
    initial-value: 110%;
    inherits: false;
}

/* Light: minimal & warm */
:root {
    --primary-color: #5a9a6e;
    --secondary-color: #4a8a5e;
    --dark-color: #3d4a42;
    --light-color: #f5f2ee;
    --white: #fdfcfa;
    --text-dark: #4a524c;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
    --bg: #fdfcfa;
    --card-bg: #fdfcfa;
    --nav-bg: rgba(45, 52, 48, 0.94);
    --nav-text: #e8ebe9;
}

/* Dark mode */
body.dark-mode {
    --primary-color: #7ab88a;
    --secondary-color: #6aa87a;
    --dark-color: #e8ebe9;
    --light-color: #2a302c;
    --white: #1e2320;
    --text-dark: #d4d9d6;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.35);
    --bg: #1a1f1c;
    --card-bg: #222824;
    --nav-bg: rgba(18, 22, 19, 0.98);
    --nav-text: #d4d9d6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar – floating, rounded, logo left / links center */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.6rem;
    max-width: 820px;
    width: 100%;
    padding: 0.55rem 1.1rem;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    border-radius: 9999px;
}

.navbar:not(.navbar-in-banner) .nav-inner .logo {
    color: var(--nav-text);
}

.navbar:not(.navbar-in-banner) .nav-inner .nav-links a {
    color: var(--nav-text);
}

.navbar:not(.navbar-in-banner) .nav-inner .nav-links a:hover {
    color: #fff;
}

.logo {
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Author attribution styling */
.footer .author-text {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Ensure author text is white in light mode, black in dark mode */
body:not(.dark-mode) .footer .author-text {
    color: white;
}

body.dark-mode .footer .author-text {
    color: black;
}

.logo:hover {
    color: var(--secondary-color);
    opacity: 0.9;
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Nav right: language carousel + theme toggle */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-end;
}

/* Language switcher – single label, carousel: click cycles EN → RU → AZ */
.lang-switcher {
    display: flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    min-width: 2.8rem;
    justify-content: center;
}

.navbar:not(.navbar-in-banner) .lang-switcher {
    background: rgba(255, 255, 255, 0.15);
}

.navbar:not(.navbar-in-banner) .lang-switcher-btn {
    color: var(--nav-text);
}

.lang-switcher-btn {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: 9999px;
    min-width: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-with-banner .navbar-in-banner .lang-switcher,
.hero-with-banner .navbar-in-banner .lang-switcher-btn #currentLang {
    color: #fdfcfa;
}

.lang-switcher-btn #currentLang {
    display: inline-block;
    transition: transform 0.25s ease;
}

.lang-switcher-btn #currentLang.slide-out-left {
    animation: langSlideOutLeft 0.3s ease forwards;
}

.lang-switcher-btn #currentLang.slide-in-right {
    animation: langSlideInRight 0.3s ease forwards;
}

@keyframes langSlideOutLeft {
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes langSlideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.navbar:not(.navbar-in-banner) .theme-toggle svg,
.navbar:not(.navbar-in-banner) .theme-toggle .theme-icon-moon {
    color: var(--nav-text);
}

.theme-toggle-wrap {
    display: flex;
    align-items: center;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
}

.theme-toggle:hover {
    background: var(--light-color);
}

.theme-toggle:focus {
    outline: none;
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

/* Show moon in light mode (click → dark), sun in dark mode (click → light) */
.theme-icon-moon {
    display: block;
    color: var(--dark-color);
}

.theme-icon-sun {
    display: none;
}

body.dark-mode .theme-icon-moon {
    display: none;
}

body.dark-mode .theme-icon-sun {
    display: block;
}

/* Swirl animation on click */
.theme-toggle.theme-swirl svg {
    animation: themeSwirl 0.5s ease forwards;
}

@keyframes themeSwirl {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(0.6);
        opacity: 0.3;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(160deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fdfcfa;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

/* Hero with banner: full viewport, nav integrated */
.hero-with-banner {
    position: relative;
    height: 100vh;
    min-height: 560px;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

/* Light mode → solartower.png, dark mode → lightndarkmode.png */
.hero-bg {
    position: absolute;
    inset: 0;
    background: url("solartower.png") center / cover no-repeat;
}

body.dark-mode .hero-bg {
    background: url("lightndarkmode.png") center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

body:not(.dark-mode) .hero-overlay {
    background: rgba(0, 0, 0, 0.42);
}

/* Nav integrated into banner – transparent, light text */
.hero-with-banner .navbar-in-banner {
    position: relative;
    z-index: 2;
    padding: 0.75rem 1.5rem;
    background: transparent;
    box-shadow: none;
}

.hero-with-banner .navbar-in-banner .nav-inner {
    max-width: 980px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.hero-with-banner .navbar-in-banner .logo,
.hero-with-banner .navbar-in-banner .nav-links a {
    color: #fdfcfa;
}

.hero-with-banner .navbar-in-banner .nav-links a:hover {
    color: #fff;
}

.hero-with-banner .navbar-in-banner .lang-btn {
    color: rgba(253, 252, 250, 0.9);
}

.hero-with-banner .navbar-in-banner .lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.hero-with-banner .navbar-in-banner .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero-content-wrap {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 4rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-with-banner .hero-content h1 {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    color: #fdfcfa;
}

/* Typewriter cursor */
.tw-cursor {
    display: inline-block;
    color: #fdfcfa;
    font-weight: 300;
    opacity: 1;
    margin-left: 1px;
    animation: twBlink 1s step-start infinite;
}

@keyframes twBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-with-banner .hero-subtitle {
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
    color: rgba(253, 252, 250, 0.95);
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

/* ── Hero CTA Buttons ── */
.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.25rem;
    flex-wrap: wrap;
}

.btn-shine {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.75rem;
    border-radius: 10px;
    font-size: 0.97rem;
    font-weight: 600;
    color: #fff;
    background: rgba(74, 222, 128, 0.12);
    border: 1.5px solid rgba(74, 222, 128, 0.9);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s;
    letter-spacing: 0.01em;
}

.btn-shine:hover {
    transform: scale(1.05);
    background: rgba(74, 222, 128, 0.2);
    box-shadow: 0 0 32px rgba(74, 222, 128, 0.5);
    color: #fff;
}

.btn-shine:active {
    transform: scale(0.95);
}

.btn-shine .btn-text {
    --btn-mask-x: 110%;
    -webkit-mask-image: linear-gradient(-75deg, white calc(var(--btn-mask-x) + 20%), transparent calc(var(--btn-mask-x) + 30%), white calc(var(--btn-mask-x) + 100%));
    mask-image: linear-gradient(-75deg, white calc(var(--btn-mask-x) + 20%), transparent calc(var(--btn-mask-x) + 30%), white calc(var(--btn-mask-x) + 100%));
    animation: btnTextReveal 3.5s linear infinite;
    position: relative;
    z-index: 1;
}

@keyframes btnTextReveal {
    0%           { --btn-mask-x:  110%; }
    50%          { --btn-mask-x: -110%; }
    50.01%, 100% { --btn-mask-x:  110%; }
}

.btn-shine::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 8px;
    padding: 1px;
    box-sizing: border-box;
    background: linear-gradient(-75deg, transparent 30%, rgba(74, 222, 128, 0.85) 50%, transparent 70%);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: btnBorderShine 3.5s linear infinite;
    pointer-events: none;
}

@keyframes btnBorderShine {
    0%, 50.01% { background-position: 100% 0; opacity: 0; }
    15%         { opacity: 1; }
    50%         { background-position: 0% 0; opacity: 0; }
    100%        { background-position: 100% 0; opacity: 0; }
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(253, 252, 250, 0.92);
    border: 1.5px solid rgba(253, 252, 250, 0.55);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(253, 252, 250, 0.85);
    transform: scale(1.03);
    color: #fff;
}

/* Stats Section */
.stats {
    padding: 3rem 0;
    background-color: var(--light-color);
}

.stats-heading {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    opacity: 0.75;
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 3.5rem 0;
}

.features h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem 1.75rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: var(--primary-color);
    color: #fdfcfa;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.02);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 1.75rem 0;
    margin-top: 3rem;
}

/* ── Burger button (hidden on desktop) ──────────────────────────── */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.nav-burger:hover { background: rgba(255,255,255,0.12); }
.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s, width 0.3s;
    transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-burger { display: flex; }

    .nav-inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
        border-radius: 20px;
        transition: border-radius 0.2s;
        padding: 0.55rem 1rem;
    }

    /* Logo stays top-left */
    .nav-inner .logo { grid-column: 1; grid-row: 1; justify-self: start; }

    /* Controls (lang + theme + burger) top-right */
    .nav-inner .nav-right { grid-column: 2; grid-row: 1; justify-content: flex-end; }

    /* Nav links: hidden, span full width below the top row */
    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0 0.25rem;
        border-top: 1px solid rgba(255,255,255,0.12);
        margin-top: 0.4rem;
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 0.65rem 0.5rem;
        text-align: center;
        border-radius: 10px;
        font-size: 0.95rem;
    }
    .nav-links a:hover { background: rgba(255,255,255,0.1); }

    /* Open state */
    .nav-inner.nav-open .nav-links { display: flex; }
    .nav-inner.nav-open { border-radius: 20px; }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2.15rem;
    }

    .features h2 {
        font-size: 1.5rem;
    }
}

/* ── Logo image ── */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* On banner nav give the logo a brightness boost so it reads on dark images */
.navbar-in-banner .logo-img {
    filter: brightness(0) invert(1);
}

.navbar-in-banner .nav-burger { color: #fff; }
.navbar:not(.navbar-in-banner) .nav-burger { color: var(--nav-text, #111); }

/* Ensure nav-inner clips don't cut the logo */
.nav-inner {
    overflow: visible;
}

/* ── RES Generation Distribution ── */
.res-distro-section {
    background: var(--light-color);
    padding: 3.5rem 0 3rem;
}

body.dark-mode .res-distro-section {
    background: var(--bg);
}

.res-distro-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.res-distro-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dark);
    opacity: 0.5;
    margin-bottom: 0.6rem;
}

.res-distro-badge a {
    color: var(--primary-color);
    text-decoration: none;
    opacity: 1;
}

.res-distro-badge a:hover {
    text-decoration: underline;
}

.res-distro-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.res-distro-sub {
    font-size: 0.88rem;
    color: var(--text-dark);
    opacity: 0.55;
    margin: 0;
}

/* Centered hero image */
.res-distro-figure {
    margin: 0 auto 2.25rem;
    max-width: 640px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.res-distro-img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Bar chart rows */
.res-distro-bars {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    max-width: 720px;
    margin: 0 auto;
}

.res-bar-row {
    display: grid;
    grid-template-columns: 185px 1fr 180px;
    align-items: center;
    gap: 1rem;
}

.res-bar-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.res-bar-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.res-bar-track {
    background: rgba(0, 0, 0, 0.07);
    border-radius: 9999px;
    height: 11px;
    overflow: hidden;
}

body.dark-mode .res-bar-track {
    background: rgba(255, 255, 255, 0.09);
}

.res-bar-fill {
    height: 100%;
    border-radius: 9999px;
    width: 0;
    transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Color palette keyed to source chart */
.res-bar-hydro { background: linear-gradient(90deg, #5b9bd5, #2e74b5); }
.res-bar-bio   { background: linear-gradient(90deg, #92c353, #5a9632); }
.res-bar-solar { background: linear-gradient(90deg, #f5a623, #d4880e); }
.res-bar-wind  { background: linear-gradient(90deg, #4ecb8d, #1fad6a); }

.res-bar-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.res-bar-pct {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-color);
    min-width: 44px;
    text-align: right;
}

.res-bar-val {
    font-size: 0.73rem;
    color: var(--text-dark);
    opacity: 0.48;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .res-bar-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0.4rem 0.75rem;
    }
    .res-bar-label { grid-column: 1; grid-row: 1; }
    .res-bar-info  { grid-column: 2; grid-row: 1; justify-content: flex-end; }
    .res-bar-track { grid-column: 1 / -1; grid-row: 2; }
    .res-bar-val   { display: none; }
}

/* ── CTA Section ── */
.cta-section {
    padding: 3.5rem 0;
    background-color: var(--bg);
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 340px;
}

body.dark-mode .cta-card {
    border-color: rgba(255, 255, 255, 0.07);
}

.cta-content {
    padding: 3rem 3rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.cta-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(90, 154, 110, 0.1);
    border: 1px solid rgba(90, 154, 110, 0.25);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    width: fit-content;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
}

.cta-desc {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.72;
    line-height: 1.75;
    max-width: 460px;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.cta-btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.65rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
}

.cta-btn-primary:hover {
    background: var(--secondary-color);
    transform: scale(1.03);
    color: #fff;
}

.cta-btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid rgba(90, 154, 110, 0.5);
    padding: 0.65rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.cta-btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(90, 154, 110, 0.07);
    transform: scale(1.03);
    color: var(--text-dark);
}

.cta-figure {
    margin: 0;
    overflow: hidden;
    position: relative;
    align-self: stretch;
}

.cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 18px 18px 0;
}

@media (max-width: 820px) {
    .cta-card {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: 2rem 1.5rem;
    }

    .cta-figure {
        height: 200px;
    }

    .cta-image {
        border-radius: 0 0 18px 18px;
    }

    .cta-title {
        font-size: 1.4rem;
    }
}
