/* ===== UN SDG SECTION STYLES ===== */
/* Following the same styling rules as existing sections */

/* Main SDG Section */
.sdg-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* ===== Inline SDG Goals (no cards) ===== */
/* Marquee container for continuously scrolling goals */
.sdg-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.sdg-marquee-track {
    display: flex; /* ensure a single row */
    flex-wrap: nowrap !important; /* never wrap to a second line */
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    width: max-content; /* shrink to content so translateX works predictably */
    will-change: transform;
    animation: sdg-marquee-scroll 120s linear infinite;
}
/* Pause on hover for accessibility */
.sdg-marquee:hover .sdg-marquee-track {
    animation-play-state: paused;
}
/* Inside marquee, ensure inline goals are in a row and visible */
.sdg-marquee .sdg-goals-inline {
    display: inline-flex;
    flex-wrap: nowrap !important; /* never wrap within a group */
    align-items: center;
    justify-content: flex-start; /* do not stretch across width */
    gap: 24px;
    padding: 8px 16px;
    overflow: visible !important; /* override generic scrollbars for inline goals */
    flex: 0 0 auto !important; /* prevent stretching */
    width: auto !important;
}

@keyframes sdg-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); } /* relies on duplicated content */
}

/* Respect reduced motion: disable animation and allow manual scroll */
@media (prefers-reduced-motion: reduce) {
    .sdg-marquee-track { animation: none !important; }
    .sdg-marquee { overflow-x: auto; }
    /* Allow forcing animation when explicitly requested */
    .sdg-marquee[data-force-animate="1"] .sdg-marquee-track {
        animation: sdg-marquee-scroll 120s linear infinite !important;
    }
    .sdg-marquee[data-force-animate="1"] { overflow: hidden; }
}
/* Generic inline goals (outside marquee contexts) */
.sdg-goals-inline {
    display: flex;
    flex-wrap: nowrap; /* no wrapping */
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    overflow-x: auto; /* allow scroll if too many on small screens */
    scrollbar-width: thin;
    flex: 0 0 auto;
    width: auto;
}
.sdg-goals-inline::-webkit-scrollbar {
    height: 6px;
}
.sdg-goals-inline::-webkit-scrollbar-thumb {
    background: rgba(26, 104, 91, 0.25);
    border-radius: 4px;
}
.sdg-goal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* keep each goal on one line */
    background: transparent; /* no card */
    border: 0;
    padding: 4px 6px;
    color: #1A685B;
    font-weight: 600;
    flex: 0 0 auto !important; /* don't shrink */
}
.sdg-goal-icon {
    font-size: 20px;
    line-height: 1;
}
.sdg-goal-title {
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .sdg-goal-icon { font-size: 18px; }
    .sdg-goal-title { font-size: 0.9rem; }
}

.sdg-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sdg-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(26, 104, 91, 0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23sdg-dots)"/></svg>');
    z-index: 1;
}

.sdg-section .container {
    position: relative;
    z-index: 2;
}

/* SDG Slider Wrapper */
.sdg-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 16px 0; /* tighter vertical padding */
    position: relative;
    z-index: 2;
}

.sdg-slider {
    width: 100%;
    height: auto;
}

.sdg-slider .swiper-wrapper {
    align-items: stretch;
}

.sdg-slider .swiper-slide {
    width: 150px !important; /* force even more compact slide width */
    height: auto;
    display: flex;
    align-items: stretch;
    margin-right: 4px !important; /* tighter spacing between slides */
}

/* SDG Slide Cards */
.sdg-slide-card {
    background: white;
    border-radius: 14px;
    padding: 0 !important;
    box-shadow: 0 6px 20px rgba(26, 104, 91, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(26, 104, 91, 0.08);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 150px;
    min-width: 120px;
    height: auto !important;
    min-height: 0 !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sdg-slide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--sdg-color, linear-gradient(90deg, #1A685B 0%, #FFAC00 100%));
    transform: scaleX(0);
    transition: transform 0.5s ease;
    z-index: 2;
    border-radius: 20px 20px 0 0;
}

.sdg-slide-card:hover::before {
    transform: scaleX(1);
}

.sdg-slide-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(26, 104, 91, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(26, 104, 91, 0.2);
}

/* SDG Slide Number */
.sdg-slide-number {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sdg-color, #1A685B);
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    z-index: 3;
}

.sdg-slide-card:hover .sdg-slide-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* SDG Slide Icon */
.sdg-slide-icon {
    font-size: 0.7rem;
    line-height: 1;
    margin-bottom: 2px;
    display: block;
    text-align: center;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.sdg-slide-card:hover .sdg-slide-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* SDG Slide Content */
.sdg-slide-title {
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 4px 2px 4px !important;
    line-height: 1.1 !important;
    transition: color 0.4s ease;
    padding: 0 !important;
    word-break: break-word !important;
    text-align: center !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sdg-slide-card:hover .sdg-slide-title {
    color: var(--sdg-color, #1A685B);
}

.sdg-slide-text {
    font-size: 0.58rem !important;
    line-height: 1.2 !important;
    color: #666 !important;
    margin: 0 6px 6px 6px !important;
    flex-grow: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    word-break: break-word !important;
}
/* Utility: Compact SDG Card (for emergency override) */
.sdg-slide-card.sdg-compact {
    padding: 0 !important;
    min-height: auto !important;
}
.sdg-slide-card .sdg-slide-title,
.sdg-slide-card .sdg-slide-text {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* SDG Cards - Main Featured Cards */
.sdg-card {
    background: white;
    border-radius: 25px;
    padding: 35px;
    box-shadow: 
        0 15px 50px rgba(26, 104, 91, 0.12),
        0 5px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(26, 104, 91, 0.08);
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.sdg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--sdg-color, linear-gradient(90deg, #1A685B 0%, #FFAC00 100%));
    transform: scaleX(0);
    transition: transform 0.5s ease;
    z-index: 2;
    border-radius: 25px 25px 0 0;
}

.sdg-card:hover::before {
    transform: scaleX(1);
}

.sdg-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 35px 80px rgba(26, 104, 91, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(26, 104, 91, 0.25);
}

/* Compact variant to reduce height and spacing for grid cards */
.sdg-card.sdg-compact {
    padding: 18px 16px;
    border-radius: 18px;
}

.sdg-card.sdg-compact .sdg-icon {
    width: 56px;
    height: 56px;
    margin-left: auto;
    margin-right: auto;
}

.sdg-card.sdg-compact .sdg-icon img {
    height: 44px;
    width: auto;
}

.sdg-card.sdg-compact .sdg-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.sdg-card.sdg-compact .sdg-description,
.sdg-card.sdg-compact .sdg-desc {
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 0;
}

/* tighter gutters already controlled via gx/gy in template; ensure equal height */
.sdg-card.sdg-compact {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* SDG Card Header */
.sdg-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.sdg-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sdg-color, linear-gradient(135deg, #1A685B 0%, #FFAC00 100%));
    box-shadow: 
        0 10px 30px rgba(26, 104, 91, 0.35),
        0 0 0 8px rgba(255, 255, 255, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.sdg-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.sdg-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.sdg-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--sdg-color, #1A685B);
    background: linear-gradient(135deg, var(--sdg-color, #1A685B) 0%, var(--sdg-color-dark, #0f4a42) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(26, 104, 91, 0.1);
    transition: all 0.4s ease;
    position: relative;
    min-width: 60px;
    text-align: right;
}

.sdg-card:hover .sdg-number {
    transform: scale(1.1);
}

/* SDG Card Content */
.sdg-card-content {
    position: relative;
    z-index: 1;
}

.sdg-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.4s ease;
}

.sdg-card:hover .sdg-title {
    color: var(--sdg-color, #1A685B);
}

.sdg-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.sdg-btn {
    background: linear-gradient(135deg, var(--sdg-color, #1A685B) 0%, var(--sdg-color-dark, #0f4a42) 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(26, 104, 91, 0.3);
}

.sdg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 104, 91, 0.4);
    background: linear-gradient(135deg, var(--sdg-color-dark, #0f4a42) 0%, var(--sdg-color, #1A685B) 100%);
    color: white;
    text-decoration: none;
}

.sdg-btn i {
    transition: transform 0.3s ease;
}

.sdg-btn:hover i {
    transform: translateX(3px);
}

/* SDG Background Effect */
.sdg-background {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 120px;
    height: 120px;
    background: var(--sdg-color, linear-gradient(135deg, rgba(26, 104, 91, 0.08) 0%, rgba(255, 172, 0, 0.08) 100%));
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
}

.sdg-card:hover .sdg-background {
    opacity: 1;
    transform: scale(4) rotate(45deg);
}

/* Featured SDG Card (Goal 17) */
.sdg-card-featured {
    background: linear-gradient(135deg, rgba(26, 104, 91, 0.03) 0%, rgba(255, 172, 0, 0.03) 100%);
}

.sdg-card-featured .sdg-card-header {
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.sdg-card-featured .sdg-icon {
    width: 100px;
    height: 100px;
}

.sdg-card-featured .sdg-emoji {
    font-size: 3rem;
}

.sdg-card-featured .sdg-number {
    font-size: 4rem;
    text-align: center;
}

.sdg-card-featured .sdg-card-content {
    text-align: center;
}

.sdg-card-featured .sdg-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.sdg-card-featured .sdg-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* SDG CTA Section */
.sdg-cta {
    background: linear-gradient(135deg, rgba(26, 104, 91, 0.05) 0%, rgba(255, 172, 0, 0.05) 100%);
    border-radius: 25px;
    padding: 50px 40px;
    border: 1px solid rgba(26, 104, 91, 0.1);
    position: relative;
    overflow: hidden;
}

.sdg-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1A685B 0%, #FFAC00 100%);
    border-radius: 25px 25px 0 0;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Decorative Shapes */
.sdg-shape-1,
.sdg-shape-2 {
    position: absolute;
    z-index: 1;
    opacity: 0.7;
}

.sdg-shape-1 {
    bottom: -20px;
    left: -20px;
    animation: float 6s ease-in-out infinite;
}

.sdg-shape-2 {
    top: 20%;
    right: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

/* SDG Details Section (All 17 SDGs) */
.sdg-details-section {
    background: white;
    position: relative;
}

.sdg-detail-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid rgba(26, 104, 91, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.sdg-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sdg-color, #1A685B);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 20px 20px 0 0;
}

.sdg-detail-card:hover::before {
    transform: scaleX(1);
}

.sdg-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(26, 104, 91, 0.15);
}

.sdg-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.sdg-detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--sdg-color, #1A685B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sdg-detail-card:hover .sdg-detail-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.sdg-detail-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.sdg-detail-card:hover .sdg-detail-title {
    color: var(--sdg-color, #1A685B);
}

.sdg-detail-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* SDG Footer */
.sdg-footer {
    background: linear-gradient(135deg, rgba(26, 104, 91, 0.03) 0%, rgba(255, 172, 0, 0.03) 100%);
    border-radius: 25px;
    padding: 60px 40px;
    border: 1px solid rgba(26, 104, 91, 0.1);
}

.sdg-logo {
    margin-bottom: 30px;
}

.sdg-wheel-image {
    width: 150px;
    height: auto;
    opacity: 0.8;
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Dynamic SDG Color System */
.sdg-card[data-sdg="1"] { --sdg-color: #E5243B; --sdg-color-dark: #c41e31; }
.sdg-card[data-sdg="2"] { --sdg-color: #DDA63A; --sdg-color-dark: #c49633; }
.sdg-card[data-sdg="3"] { --sdg-color: #4C9F38; --sdg-color-dark: #438c32; }
.sdg-card[data-sdg="4"] { --sdg-color: #C5192D; --sdg-color-dark: #a8162a; }
.sdg-card[data-sdg="5"] { --sdg-color: #FF3A21; --sdg-color-dark: #e6321e; }
.sdg-card[data-sdg="6"] { --sdg-color: #26BDE2; --sdg-color-dark: #22a5c7; }
.sdg-card[data-sdg="7"] { --sdg-color: #FCC30B; --sdg-color-dark: #e3af0a; }
.sdg-card[data-sdg="8"] { --sdg-color: #A21942; --sdg-color-dark: #8e163a; }
.sdg-card[data-sdg="9"] { --sdg-color: #FD6925; --sdg-color-dark: #e45e21; }
.sdg-card[data-sdg="10"] { --sdg-color: #DD1367; --sdg-color-dark: #c4115a; }
.sdg-card[data-sdg="11"] { --sdg-color: #FD9D24; --sdg-color-dark: #e48d20; }
.sdg-card[data-sdg="12"] { --sdg-color: #BF8B2E; --sdg-color-dark: #a87c29; }
.sdg-card[data-sdg="13"] { --sdg-color: #3F7E44; --sdg-color-dark: #38703c; }
.sdg-card[data-sdg="14"] { --sdg-color: #0A97D9; --sdg-color-dark: #0985c0; }
.sdg-card[data-sdg="15"] { --sdg-color: #56C02B; --sdg-color-dark: #4da826; }
.sdg-card[data-sdg="16"] { --sdg-color: #00689D; --sdg-color-dark: #005c8a; }
.sdg-card[data-sdg="17"] { --sdg-color: #19486A; --sdg-color-dark: #163f5e; }

/* Apply same colors to slide cards */
.sdg-slide-card[data-sdg="1"] { --sdg-color: #E5243B; --sdg-color-dark: #c41e31; }
.sdg-slide-card[data-sdg="2"] { --sdg-color: #DDA63A; --sdg-color-dark: #c49633; }
.sdg-slide-card[data-sdg="3"] { --sdg-color: #4C9F38; --sdg-color-dark: #438c32; }
.sdg-slide-card[data-sdg="4"] { --sdg-color: #C5192D; --sdg-color-dark: #a8162a; }
.sdg-slide-card[data-sdg="5"] { --sdg-color: #FF3A21; --sdg-color-dark: #e6321e; }
.sdg-slide-card[data-sdg="6"] { --sdg-color: #26BDE2; --sdg-color-dark: #22a5c7; }
.sdg-slide-card[data-sdg="7"] { --sdg-color: #FCC30B; --sdg-color-dark: #e3af0a; }
.sdg-slide-card[data-sdg="8"] { --sdg-color: #A21942; --sdg-color-dark: #8e163a; }
.sdg-slide-card[data-sdg="9"] { --sdg-color: #FD6925; --sdg-color-dark: #e45e21; }
.sdg-slide-card[data-sdg="10"] { --sdg-color: #DD1367; --sdg-color-dark: #c4115a; }
.sdg-slide-card[data-sdg="11"] { --sdg-color: #FD9D24; --sdg-color-dark: #e48d20; }
.sdg-slide-card[data-sdg="12"] { --sdg-color: #BF8B2E; --sdg-color-dark: #a87c29; }
.sdg-slide-card[data-sdg="13"] { --sdg-color: #3F7E44; --sdg-color-dark: #38703c; }
.sdg-slide-card[data-sdg="14"] { --sdg-color: #0A97D9; --sdg-color-dark: #0985c0; }
.sdg-slide-card[data-sdg="15"] { --sdg-color: #56C02B; --sdg-color-dark: #4da826; }
.sdg-slide-card[data-sdg="16"] { --sdg-color: #00689D; --sdg-color-dark: #005c8a; }
.sdg-slide-card[data-sdg="17"] { --sdg-color: #19486A; --sdg-color-dark: #163f5e; }

/* Apply same colors to detail cards */
.sdg-detail-card[data-sdg="1"] { --sdg-color: #E5243B; }
.sdg-detail-card[data-sdg="2"] { --sdg-color: #DDA63A; }
.sdg-detail-card[data-sdg="3"] { --sdg-color: #4C9F38; }
.sdg-detail-card[data-sdg="4"] { --sdg-color: #C5192D; }
.sdg-detail-card[data-sdg="5"] { --sdg-color: #FF3A21; }
.sdg-detail-card[data-sdg="6"] { --sdg-color: #26BDE2; }
.sdg-detail-card[data-sdg="7"] { --sdg-color: #FCC30B; }
.sdg-detail-card[data-sdg="8"] { --sdg-color: #A21942; }
.sdg-detail-card[data-sdg="9"] { --sdg-color: #FD6925; }
.sdg-detail-card[data-sdg="10"] { --sdg-color: #DD1367; }
.sdg-detail-card[data-sdg="11"] { --sdg-color: #FD9D24; }
.sdg-detail-card[data-sdg="12"] { --sdg-color: #BF8B2E; }
.sdg-detail-card[data-sdg="13"] { --sdg-color: #3F7E44; }
.sdg-detail-card[data-sdg="14"] { --sdg-color: #0A97D9; }
.sdg-detail-card[data-sdg="15"] { --sdg-color: #56C02B; }
.sdg-detail-card[data-sdg="16"] { --sdg-color: #00689D; }
.sdg-detail-card[data-sdg="17"] { --sdg-color: #19486A; }

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

/* Scroll Reveal Animations */
.sdg-card,
.sdg-detail-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.sdg-card.animate-on-scroll,
.sdg-detail-card.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.sdg-card:nth-child(1) { transition-delay: 0.1s; }
.sdg-card:nth-child(2) { transition-delay: 0.2s; }
.sdg-card:nth-child(3) { transition-delay: 0.3s; }
.sdg-card:nth-child(4) { transition-delay: 0.4s; }
.sdg-card:nth-child(5) { transition-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 1200px) {
    .sdg-card-featured .sdg-card-header {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
    }
    
    .sdg-card-featured .sdg-card-content {
        text-align: left;
    }
    
    .sdg-card-featured .sdg-icon {
        width: 80px;
        height: 80px;
    }
    
    .sdg-card-featured .sdg-emoji {
        font-size: 2.5rem;
    }
    
    .sdg-card-featured .sdg-number {
        font-size: 3rem;
        text-align: right;
    }
    
    .sdg-card-featured .sdg-title {
        font-size: 1.4rem;
    }
    
    .sdg-card-featured .sdg-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .sdg-section {
        padding: 40px 0;
    }
    
    .sdg-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    /* SDG Slider Mobile */
    .sdg-slider .swiper-slide {
        width: 300px;
    }
    
    .sdg-slide-card {
        padding: 25px 20px;
        min-height: 280px;
    }
    
    .sdg-slide-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 15px;
        right: 15px;
    }
    
    .sdg-slide-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .sdg-slide-title {
        font-size: 1.1rem;
        padding-right: 50px;
        margin-bottom: 12px;
    }
    
    .sdg-slide-text {
        font-size: 0.9rem;
    }
    
    .sdg-icon {
        width: 60px;
        height: 60px;
    }
    
    .sdg-emoji {
        font-size: 2rem;
    }
    
    .sdg-number {
        font-size: 2rem;
    }
    
    .sdg-title {
        font-size: 1.2rem;
    }
    
    .sdg-description {
        font-size: 0.95rem;
    }
    
    .sdg-cta {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 1.4rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .sdg-detail-card {
        padding: 20px;
    }
    
    .sdg-detail-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .sdg-detail-title {
        font-size: 1rem;
    }
    
    .sdg-detail-text {
        font-size: 0.9rem;
    }
    
    .sdg-footer {
        padding: 40px 20px;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .footer-text {
        font-size: 1rem;
    }
    
    .sdg-wheel-image {
        width: 120px;
    }
}

@media (max-width: 576px) {
    .sdg-card {
        padding: 20px 15px;
    }
    
    .sdg-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .sdg-number {
        font-size: 1.8rem;
        text-align: center;
        min-width: auto;
    }
    
    .sdg-title {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .sdg-description {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .sdg-btn {
        display: block;
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    
    .sdg-detail-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .sdg-detail-title {
        text-align: center;
    }
    
    .sdg-detail-text {
        text-align: center;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .sdg-card,
    .sdg-detail-card {
        border: 2px solid currentColor;
    }
    
    .sdg-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .sdg-card,
    .sdg-detail-card,
    .sdg-icon,
    .sdg-number,
    .sdg-btn,
    .sdg-shape-1,
    .sdg-shape-2 {
        animation: none;
        transition: none;
    }
}

/* Print Styles */
@media print {
    .sdg-section,
    .sdg-details-section {
        background: white;
    }
    
    .sdg-card,
    .sdg-detail-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .sdg-shape-1,
    .sdg-shape-2 {
        display: none;
    }
}
