/* ═══════════════════════════════════════════════════════════════
   SUSTAINABLE DEVELOPMENT — Modern Portal 2026
   Clean · Minimal · Hierarchy · Whitespace · Content-first
   Font: Inter via Google Fonts
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Montserrat:wght@500;600;700;800;900&display=swap');

.sdg-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    background: #f5f7f6;
    -webkit-font-smoothing: antialiased;
}

:root {
    --sdg-primary: #0B6E2F;
    --sdg-primary-light: #e8f5ec;
    --sdg-primary-hover: #0a5c28;
    --sdg-accent: #C8962E;
    --sdg-accent-light: #fdf6e3;
    --sdg-blue: #1a73a7;
    --sdg-blue-light: #e8f4fb;
    --sdg-text: #1a1a1a;
    --sdg-text-secondary: #6b7280;
    --sdg-bg: #ffffff;
    --sdg-bg-subtle: #f8faf9;
    --sdg-bg-warm: #fefcf7;
    --sdg-bg-cool: #f4f9fb;
    --sdg-border: #e5e7eb;
    --sdg-radius: 16px;
    --sdg-radius-sm: 10px;
    --sdg-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --sdg-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --sdg-shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
    --sdg-shadow-hover: 0 16px 40px rgba(0,0,0,0.12);
    --sdg-max-w: 1200px;
    --sdg-transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ═══════════════════════════════════════════════════════════════
   2026 GLASSMORPHISM HEADER — Full-width, fixed, frosted glass
   Font: Inter · Uppercase · No icons · Lime-green CTA
   ═══════════════════════════════════════════════════════════════ */
body.sdg-active #header-container,
body.sdg-active .navbar-toggle-btn,
body.sdg-active .m-bottom-nav {
    display: none !important;
}

body.sdg-active {
    padding-top: 0 !important;
}

/* ── Wrapper: no height restriction, page scrolls normally ── */
.sdg-first-screen {
    display: block;
    width: 100%;
}

/* ── Header wrapper — fixed at top, full width ── */
.sdg-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9991;
    transition: box-shadow 0.4s ease, background 0.4s ease;
}

.sdg-header--glass {
    background: rgba(10, 46, 22, 0.82);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ══════════════════════════════════════════════════════════════
   UPPER TIER — Title (left) + Lang/Back (right)
   ══════════════════════════════════════════════════════════════ */
.sdg-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 12px 28px 2px;
}

/* ── Logo ── */
.sdg-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.sdg-header__logo-text {
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Actions: lang switcher + CTA (top-right) ── */
.sdg-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Language Switcher ── */
.sdg-header__lang {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sdg-header__lang-btn {
    font-family: 'Inter', 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 24px;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(.25, .8, .25, 1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sdg-header__lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.sdg-header__lang-btn.active {
    color: #0a2e16;
    background: #CCFF00;
    box-shadow: 0 1px 8px rgba(204, 255, 0, 0.25);
    font-weight: 800;
}

/* ── CTA / Back button — small lime-green pill ── */
.sdg-header__cta {
    font-family: 'Inter', 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: #CCFF00;
    color: #0a2e16;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    white-space: nowrap;
}

.sdg-header__cta:hover {
    background: #e0ff4d;
    color: #0a2e16;
    transform: translateY(-1px);
    box-shadow: 0 3px 14px rgba(204, 255, 0, 0.3);
}

/* ══════════════════════════════════════════════════════════════
   LOWER TIER — Navigation links, flex-wrap, centered
   NO horizontal scroll. NO dropdowns. NO icons.
   ══════════════════════════════════════════════════════════════ */
.sdg-header__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
    padding: 6px 20px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Individual nav link ── */
.sdg-header__nav-link {
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    border-radius: 0;
}

/* ── Lime-green separator dot between items ── */
.sdg-header__nav-link + .sdg-header__nav-link::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #CCFF00;
    opacity: 0.5;
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ── Hover: lime-green 2px underline ── */
.sdg-header__nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sdg-header__nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #CCFF00;
    border-radius: 1px;
    opacity: 0.6;
}

/* ── Active state: lime-green accent ── */
.sdg-header__nav-link.active {
    color: #CCFF00;
    font-weight: 700;
}

.sdg-header__nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #CCFF00;
    border-radius: 1px;
}

/* ── Space for fixed header ── */
.sdg-page {
    padding-top: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HERO CAROUSEL — fixed height, pushed below fixed header
   ═══════════════════════════════════════════════════════════════ */
.sdg-hero {
    position: relative;
    width: 100%;
    max-width: var(--sdg-max-w);
    margin: 100px auto 0;
    padding: 0 1rem;
}

.sdg-hero__carousel {
    position: relative;
    border-radius: var(--sdg-radius);
    overflow: hidden;
    box-shadow: var(--sdg-shadow-lg);
    height: 500px;
    background: #fff;
}

.sdg-hero__slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.sdg-hero__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.sdg-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sdg-hero__slide-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem 2.5rem;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.55) 100%);
    color: #fff;
}

.sdg-hero__slide-title {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.sdg-hero__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--sdg-text);
    box-shadow: var(--sdg-shadow-md);
    transition: all var(--sdg-transition);
    z-index: 10;
}

.sdg-hero__btn:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: var(--sdg-shadow-lg);
    background: #fff;
}

.sdg-hero__btn--prev { left: 16px; }
.sdg-hero__btn--next { right: 16px; }

.sdg-hero__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
}

.sdg-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all var(--sdg-transition);
}

.sdg-hero__dot.active {
    background: var(--sdg-primary);
    width: 24px;
    border-radius: 4px;
}

/* Placeholder when no slides */
.sdg-hero__placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--sdg-primary) 0%, #0a8f3e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sdg-hero__placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    animation: sdgShimmer 10s ease-in-out infinite;
}

@keyframes sdgShimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.sdg-hero__placeholder-content { position: relative; z-index: 1; }
.sdg-hero__placeholder-content i { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.8; }
.sdg-hero__placeholder-content h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }

/* ═══════════════════════════════════════════════════════════════
   GENERIC SECTION
   ═══════════════════════════════════════════════════════════════ */
.sdg-section {
    max-width: var(--sdg-max-w);
    margin: 0 auto;
    padding: 4rem 1rem;
}

.sdg-section__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sdg-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    border: none;
    display: block;
    padding: 0;
    position: relative;
}

.sdg-section__subtitle {
    font-size: 1rem;
    color: var(--sdg-text-secondary);
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.sdg-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.sdg-section__header-text {
    flex: 1;
}

.sdg-section__header-text .sdg-section__title {
    margin-bottom: 0.3rem;
}

.sdg-section__header-text .sdg-section__subtitle {
    margin-bottom: 0;
}

/* ─── Divider line (thin, used above each section) ─── */
.sdg-section__divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--sdg-primary), var(--sdg-accent));
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS (intro cards + text)
   ═══════════════════════════════════════════════════════════════ */
.sdg-intro {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    background: var(--sdg-bg-subtle);
    border-radius: var(--sdg-radius);
    padding: 2.5rem;
    border: 1px solid var(--sdg-border);
}

.sdg-intro__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    flex: 0 0 55%;
    max-width: 55%;
}

.sdg-intro__card {
    display: block;
    border-radius: var(--sdg-radius-sm);
    overflow: hidden;
    transition: all var(--sdg-transition);
    text-decoration: none;
}

.sdg-intro__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sdg-shadow-md);
}

.sdg-intro__card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.sdg-intro__card-icon {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sdg-primary-light);
    border-radius: var(--sdg-radius-sm);
}

.sdg-intro__card-icon i {
    font-size: 2rem;
    color: var(--sdg-primary);
}

.sdg-intro__text {
    flex: 1;
    padding: 0.25rem 0;
}

.sdg-intro__text p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--sdg-text-secondary);
    margin-bottom: 1.5rem;
}

.sdg-intro__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.4rem;
    background: var(--sdg-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all var(--sdg-transition);
}

.sdg-intro__readmore:hover {
    background: var(--sdg-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(11,110,47,0.25);
}

/* ═══════════════════════════════════════════════════════════════
   CARD GRID (universal 4-col square cards for sections, news)
   ═══════════════════════════════════════════════════════════════ */
.sdg-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.sdg-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--sdg-radius);
    overflow: hidden;
    border: 1px solid var(--sdg-border);
    text-decoration: none;
    color: inherit;
    transition: all var(--sdg-transition);
    position: relative;
}
.sdg-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sdg-primary), var(--sdg-accent));
    opacity: 0;
    transition: opacity var(--sdg-transition);
}
.sdg-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sdg-shadow-hover);
    border-color: transparent;
}
.sdg-card:hover::after {
    opacity: 1;
}
.sdg-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.sdg-card__placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sdg-primary-light) 0%, var(--sdg-accent-light) 100%);
    font-size: 2.5rem;
}
.sdg-card__body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sdg-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sdg-text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sdg-card__date {
    font-size: 0.75rem;
    color: var(--sdg-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   HERO BLOCK (big photo + text, replaces old buttons/cards)
   ═══════════════════════════════════════════════════════════════ */
.sdg-section--hero {
    max-width: 100%;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #f0faf3 0%, var(--sdg-bg-warm) 100%);
}
.sdg-section--hero .sdg-section__inner {
    max-width: var(--sdg-max-w);
    margin: 0 auto;
}
.sdg-hero-block {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-top: 2rem;
}
.sdg-hero-block__img {
    width: 55%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--sdg-radius);
    box-shadow: var(--sdg-shadow-md);
}
.sdg-hero-block__text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--sdg-text-secondary);
    max-height: 220px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}
.sdg-hero-block__text.expanded {
    max-height: 5000px;
}
.sdg-hero-block__text:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #f0faf3);
    pointer-events: none;
}
.sdg-hero-block__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.8rem;
    background: linear-gradient(135deg, var(--sdg-primary), #0d8536);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all var(--sdg-transition);
    box-shadow: 0 4px 14px rgba(11,110,47,.2);
}
.sdg-hero-block__toggle:hover {
    background: linear-gradient(135deg, #0a5c28, var(--sdg-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11,110,47,.3);
}
.sdg-hero-block__toggle i {
    font-size: 0.75rem;
    transition: transform var(--sdg-transition);
}
.sdg-hero-block__toggle.expanded i {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════════
   CLUBS GRID (cards with photo + title)
   ═══════════════════════════════════════════════════════════════ */
.sdg-clubs__text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--sdg-text-secondary);
    margin-bottom: 2rem;
}
.sdg-clubs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.sdg-clubs__card {
    background: #fff;
    border-radius: var(--sdg-radius);
    overflow: hidden;
    border: 1px solid var(--sdg-border);
    transition: all var(--sdg-transition);
    text-align: center;
}
.sdg-clubs__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sdg-shadow-md);
}
.sdg-clubs__card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.sdg-clubs__card-title {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem;
    color: var(--sdg-text-primary);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   ITEM GALLERY (photos inside section items)
   ═══════════════════════════════════════════════════════════════ */
.sdg-item-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
    padding: 0.75rem 0;
}
.sdg-item-gallery__img {
    width: 120px;
    height: 85px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--sdg-border);
    transition: all var(--sdg-transition);
}
.sdg-item-gallery__img:hover {
    transform: scale(1.05);
    box-shadow: var(--sdg-shadow-md);
}

/* ═══════════════════════════════════════════════════════════════
   NEWS — Hero Layout: 1 featured + 2 secondary
   ═══════════════════════════════════════════════════════════════ */
.sdg-section--news {
    max-width: 100%;
    background: linear-gradient(180deg, var(--sdg-bg-cool) 0%, #fff 100%);
    padding: 5rem 1rem;
}

.sdg-section--news .sdg-section__inner {
    max-width: var(--sdg-max-w);
    margin: 0 auto;
}

/* "All news" button */
.sdg-btn--outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 1.2rem;
    background: transparent;
    color: var(--sdg-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1.5px solid var(--sdg-primary);
    border-radius: 10px;
    transition: all var(--sdg-transition);
    white-space: nowrap;
}

.sdg-btn--outline:hover {
    background: var(--sdg-primary);
    color: #fff;
}

/* News hero grid: featured left, 2 secondary right */
.sdg-news-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sdg-news-hero__featured {
    grid-row: 1 / 3;
    border-radius: var(--sdg-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sdg-border);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all var(--sdg-transition);
}

.sdg-news-hero__featured:hover {
    box-shadow: var(--sdg-shadow-hover);
    transform: translateY(-4px);
}

.sdg-news-hero__featured .sdg-news__img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.sdg-news-hero__featured .sdg-news__body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sdg-news-hero__featured .sdg-news__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    letter-spacing: -0.02em;
}

.sdg-news-hero__featured .sdg-news__read {
    margin-top: auto;
}

.sdg-news-hero__secondary {
    border-radius: var(--sdg-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sdg-border);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    transition: all var(--sdg-transition);
}

.sdg-news-hero__secondary:hover {
    box-shadow: var(--sdg-shadow-hover);
    transform: translateY(-3px);
}

.sdg-news-hero__secondary .sdg-news__img {
    width: 200px;
    min-height: 100%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.sdg-news-hero__secondary .sdg-news__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sdg-news-hero__secondary .sdg-news__title {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Remaining news cards (3-column grid) */
.sdg-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sdg-news__item {
    background: #fff;
    border: 1px solid var(--sdg-border);
    border-radius: var(--sdg-radius);
    overflow: hidden;
    transition: all var(--sdg-transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.sdg-news__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--sdg-shadow-hover);
    border-color: transparent;
}

.sdg-news__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.sdg-news__body {
    padding: 1.25rem;
}

.sdg-news__date {
    font-size: 0.78rem;
    color: var(--sdg-text-secondary);
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.sdg-news__date i {
    color: var(--sdg-primary);
    margin-right: 4px;
}

.sdg-news__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--sdg-text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.sdg-news__read {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--sdg-primary);
    text-decoration: none;
    transition: gap var(--sdg-transition);
}

.sdg-news__item:hover .sdg-news__read,
.sdg-news-hero__featured:hover .sdg-news__read,
.sdg-news-hero__secondary:hover .sdg-news__read {
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   PHOTO GALLERY — 3-column grid, hover darkening
   ═══════════════════════════════════════════════════════════════ */
.sdg-section--gallery {
    max-width: 100%;
    background: linear-gradient(180deg, #fff 0%, var(--sdg-bg-warm) 100%);
    padding: 5rem 1rem;
}

.sdg-section--gallery .sdg-section__inner {
    max-width: var(--sdg-max-w);
    margin: 0 auto;
}

.sdg-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sdg-gallery__item {
    border-radius: var(--sdg-radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #f3f4f6;
}

.sdg-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.sdg-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--sdg-transition);
}

.sdg-gallery__overlay i {
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--sdg-transition);
}

.sdg-gallery__item:hover .sdg-gallery__img {
    transform: scale(1.06);
}

.sdg-gallery__item:hover .sdg-gallery__overlay {
    background: rgba(0,0,0,0.35);
}

.sdg-gallery__item:hover .sdg-gallery__overlay i {
    opacity: 1;
    transform: scale(1);
}

.sdg-gallery__caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0.8rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    transform: translateY(100%);
    transition: transform var(--sdg-transition);
}

.sdg-gallery__item:hover .sdg-gallery__caption {
    transform: translateY(0);
}

.sdg-gallery__caption span {
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   RANKINGS — Clean white cards on subtle bg
   ═══════════════════════════════════════════════════════════════ */
.sdg-section--rankings {
    max-width: 100%;
    background: linear-gradient(180deg, var(--sdg-primary-light) 0%, #f0faf3 50%, #fff 100%);
    padding: 5rem 1rem;
}

.sdg-section--rankings .sdg-section__inner {
    max-width: var(--sdg-max-w);
    margin: 0 auto;
}

.sdg-rankings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.sdg-ranking-card {
    background: #fff;
    border: 1px solid var(--sdg-border);
    border-radius: var(--sdg-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--sdg-transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sdg-ranking-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--sdg-primary);
    border-radius: var(--sdg-radius) var(--sdg-radius) 0 0;
    opacity: 0;
    transition: opacity var(--sdg-transition);
}

.sdg-ranking-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sdg-shadow-hover);
    border-color: transparent;
}

.sdg-ranking-card:hover::before {
    opacity: 1;
}

.sdg-ranking-card img {
    max-height: 60px;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 1.25rem;
    transition: transform var(--sdg-transition);
}

.sdg-ranking-card:hover img {
    transform: scale(1.08);
}

.sdg-ranking-card__subtitle {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--sdg-primary);
    margin: 0.4rem 0;
    letter-spacing: -0.03em;
}

.sdg-ranking-card__title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--sdg-text-secondary);
    line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM SECTIONS (Политика, Климат, etc.) — individual blocks
   ═══════════════════════════════════════════════════════════════ */
.sdg-section--custom {
    max-width: 100%;
    background: #fff;
    padding: 4rem 1rem 3rem;
    border-top: none;
}

.sdg-section--custom .sdg-section__inner {
    max-width: var(--sdg-max-w);
    margin: 0 auto;
}

.sdg-section--custom .sdg-section__title {
    display: flex;
    align-items: center;
}

.sdg-custom-section__img-wrap {
    margin: 1.5rem 0;
    border-radius: var(--sdg-radius);
    overflow: hidden;
}

.sdg-custom-section__img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--sdg-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.sdg-custom-section__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    padding: 1rem 0;
}

.sdg-custom-section__content p { margin-bottom: 1rem; }
.sdg-custom-section__content img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }

.sdg-custom-section__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--sdg-primary);
    border: 1.5px solid var(--sdg-primary);
    border-radius: 10px;
    transition: all var(--sdg-transition);
    margin-top: 0.5rem;
}

.sdg-custom-section__more:hover {
    background: var(--sdg-primary);
    color: #fff;
}

.sdg-section--custom:nth-child(odd) {
    background: var(--sdg-bg-subtle);
}
.sdg-section--custom:nth-child(even) {
    background: var(--sdg-bg-warm);
}

.sdg-section-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.sdg-section-item {
    display: flex;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--sdg-border);
    border-radius: var(--sdg-radius);
    padding: 1.25rem;
    transition: all var(--sdg-transition);
}

.sdg-section-item:hover {
    box-shadow: var(--sdg-shadow-hover);
    border-color: transparent;
}

.sdg-section-item__img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.sdg-section-item__body {
    flex: 1;
    min-width: 0;
}

.sdg-section-item__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sdg-text);
    margin: 0 0 0.4rem 0;
    line-height: 1.4;
}

.sdg-section-item__date {
    font-size: 0.8rem;
    color: var(--sdg-text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.sdg-section-item__text {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
    max-height: 4.8em;
    overflow: hidden;
}

.sdg-section-item__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sdg-primary);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: all var(--sdg-transition);
}

.sdg-section-item__link:hover {
    gap: 10px;
}

@media (max-width: 768px) {
    .sdg-section-item { flex-direction: column; }
    .sdg-section-item__img { width: 100%; height: 180px; }
}

/* ═══════════════════════════════════════════════════════════════
   SDG GOALS GRID (ЦУР карточки как на ektu.kz)
   ═══════════════════════════════════════════════════════════════ */
.sdg-goals-section {
    padding: 2rem 0;
}

.sdg-goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
}

.sdg-goal-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sdg-goal-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    z-index: 2;
}

.sdg-goal-card__img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sdg-goal-card:hover .sdg-goal-card__img {
    transform: scale(1.08);
}

.sdg-goal-card__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    z-index: 1;
}

.sdg-goal-card__number {
    position: absolute;
    top: 12px; left: 14px;
    font-size: 2.5rem;
    font-weight: 900;
    opacity: 0.3;
    line-height: 1;
}

.sdg-goal-card__title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.sdg-goal-card__subtitle {
    font-size: 0.75rem;
    margin: 4px 0 0;
    opacity: 0.85;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .sdg-goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sdg-goal-card__title { font-size: 0.8rem; }
    .sdg-goal-card__number { font-size: 1.8rem; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .sdg-goals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .sdg-goals-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* ═══════════════════════════════════════════════════════════════
   SHOW MORE BUTTON & HIDDEN ITEMS
   ═══════════════════════════════════════════════════════════════ */
.sdg-hidden-item {
    display: none !important;
}

.sdg-show-more-wrap {
    text-align: center;
    margin-top: 2rem;
}

.sdg-btn--show-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 2rem;
    background: linear-gradient(135deg, var(--sdg-primary), #0d8536);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--sdg-transition);
    box-shadow: 0 4px 14px rgba(11,110,47,.2);
}

.sdg-btn--show-more:hover {
    background: linear-gradient(135deg, #0a5c28, var(--sdg-primary));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11,110,47,.3);
}

.sdg-btn--show-more i {
    font-size: 0.75rem;
    transition: transform var(--sdg-transition);
}

.sdg-btn--show-more.expanded i {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.sdg-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}
.sdg-lightbox.active { display: flex; }
.sdg-lightbox__close {
    position: absolute;
    top: 24px; right: 32px;
    font-size: 2rem;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--sdg-transition);
    z-index: 10;
}
.sdg-lightbox__close:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.sdg-lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--sdg-radius-sm);
    animation: sdgLbIn 0.3s ease;
}
@keyframes sdgLbIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.sdg-lightbox__caption {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
    max-width: 500px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1023px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .sdg-header__top {
        padding: 8px 16px;
    }
    .sdg-header__nav {
        padding: 0 12px 6px;
    }
    .sdg-header__nav-link {
        padding: 5px 12px;
        font-size: 0.66rem;
    }
    .sdg-header__logo-text {
        font-size: 0.85rem;
    }
    .sdg-news-hero {
        grid-template-columns: 1fr;
    }
    .sdg-news-hero__featured {
        grid-row: auto;
    }
    .sdg-news-hero__featured .sdg-news__img {
        height: 240px;
    }
    .sdg-news-hero__secondary {
        flex-direction: row;
    }
    .sdg-topics {
        grid-template-columns: repeat(2, 1fr);
    }
    .sdg-news, .sdg-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .sdg-rankings {
        grid-template-columns: repeat(2, 1fr);
    }
    .sdg-intro {
        flex-direction: column;
    }
    .sdg-intro__cards {
        flex: 1;
        max-width: 100%;
    }
    .sdg-hero-block {
        flex-direction: column;
    }
    .sdg-hero-block__img {
        width: 100%;
    }
    .sdg-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sdg-clubs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sdg-section--topics,
    .sdg-section--news,
    .sdg-section--gallery,
    .sdg-section--rankings,
    .sdg-section--hero {
        padding: 3.5rem 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤767px): compact but ALL links visible
   Nav links wrap to multiple rows — no burger, no drawer, no scroll
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .sdg-hero__carousel {
        height: 280px;
    }
    .sdg-hero__placeholder {
        height: 280px;
    }
    .sdg-header__top {
        padding: 6px 12px;
        gap: 10px;
    }
    .sdg-header__logo-text {
        font-size: 0.72rem;
        letter-spacing: 0.03em;
    }
    .sdg-header__lang-btn {
        width: 26px;
        height: 22px;
        font-size: 0.58rem;
    }
    .sdg-header__cta {
        padding: 4px 10px;
        font-size: 0.6rem;
    }
    .sdg-header__nav {
        padding: 0 8px 5px;
        gap: 0;
    }
    .sdg-header__nav-link {
        padding: 4px 10px;
        font-size: 0.58rem;
        letter-spacing: 0.03em;
    }
    .sdg-header__nav-link + .sdg-header__nav-link::before {
        width: 2px;
        height: 2px;
    }
    .sdg-topics,
    .sdg-news, .sdg-gallery, .sdg-rankings {
        grid-template-columns: 1fr;
    }
    .sdg-news-hero__secondary {
        flex-direction: column;
    }
    .sdg-news-hero__secondary .sdg-news__img {
        width: 100%;
        height: 180px;
        min-height: auto;
    }
    .sdg-intro__cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .sdg-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sdg-clubs__grid {
        grid-template-columns: 1fr;
    }
    .sdg-item-gallery__img {
        width: 90px;
        height: 65px;
    }
    .sdg-hero__slide img {
        height: 100%;
        object-fit: cover;
    }
    .sdg-section__title {
        font-size: 1.3rem;
    }
    .sdg-section--topics,
    .sdg-section--news,
    .sdg-section--gallery,
    .sdg-section--rankings {
        padding: 2.5rem 1rem;
    }
    .sdg-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
