/* SDG Section Styles */
.sdg-section {
    background: linear-gradient(135deg, #faf8f3 0%, #f0ede5 100%);
    padding: 4rem 2rem;
    font-family: Arial, sans-serif;
}

.sdg-container {
    max-width: 1400px;
    margin: 0 auto;
}

.sdg-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sdg-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.un-logo {
    width: 80px;
    height: 80px;
}

.sdg-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a685b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.goals-text {
    background: linear-gradient(90deg, #E5243B, #DDA63A, #4C9F38, #C5192D, #FF3A21, #26BDE2, #FCC30B, #A21942, #FD6925, #DD1367, #FD9D24, #BF8B2E, #3F7E44, #0A97D9, #56C02B, #00689D, #19486A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
    font-weight: 900;
    margin: 0;
}

.sdg-wheel {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #E5243B 0deg 21.18deg,
        #DDA63A 21.18deg 42.35deg,
        #4C9F38 42.35deg 63.53deg,
        #C5192D 63.53deg 84.71deg,
        #FF3A21 84.71deg 105.88deg,
        #26BDE2 105.88deg 127.06deg,
        #FCC30B 127.06deg 148.24deg,
        #A21942 148.24deg 169.41deg,
        #FD6925 169.41deg 190.59deg,
        #DD1367 190.59deg 211.76deg,
        #FD9D24 211.76deg 232.94deg,
        #BF8B2E 232.94deg 254.12deg,
        #3F7E44 254.12deg 275.29deg,
        #0A97D9 275.29deg 296.47deg,
        #56C02B 296.47deg 317.65deg,
        #00689D 317.65deg 338.82deg,
        #19486A 338.82deg 360deg
    );
    position: relative;
}

.sdg-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    background: white;
    border-radius: 50%;
}

.sdg-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Grid Layout */
.sdg-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

/* SDG Cards */
.sdg-card {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    display: block;
    text-decoration: none;
}

.sdg-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

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

/* Tooltip */
.sdg-card::after {
    content: attr(data-title);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    z-index: 20;
}

.sdg-card:hover::after {
    opacity: 1;
    bottom: -50px;
}

/* SDG Wheel Logo at bottom */
.sdg-logo-bottom {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sdg-wheel-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #E5243B 0deg 21.18deg,
        #DDA63A 21.18deg 42.35deg,
        #4C9F38 42.35deg 63.53deg,
        #C5192D 63.53deg 84.71deg,
        #FF3A21 84.71deg 105.88deg,
        #26BDE2 105.88deg 127.06deg,
        #FCC30B 127.06deg 148.24deg,
        #A21942 148.24deg 169.41deg,
        #FD6925 169.41deg 190.59deg,
        #DD1367 190.59deg 211.76deg,
        #FD9D24 211.76deg 232.94deg,
        #BF8B2E 232.94deg 254.12deg,
        #3F7E44 254.12deg 275.29deg,
        #0A97D9 275.29deg 296.47deg,
        #56C02B 296.47deg 317.65deg,
        #00689D 317.65deg 338.82deg,
        #19486A 338.82deg 360deg
    );
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.sdg-wheel-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    height: 35%;
    background: white;
    border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sdg-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .sdg-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .sdg-main-title {
        font-size: 2.5rem;
    }
    
    .goals-text {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .sdg-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .sdg-section {
        padding: 3rem 1rem;
    }
    
    .sdg-main-title {
        font-size: 1.8rem;
    }
    
    .goals-text {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .sdg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sdg-main-title {
        font-size: 1.5rem;
    }
    
    .goals-text {
        font-size: 1.8rem;
    }
}

/* Animation on scroll */
.sdg-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sdg-card:nth-child(1) { animation-delay: 0.05s; }
.sdg-card:nth-child(2) { animation-delay: 0.1s; }
.sdg-card:nth-child(3) { animation-delay: 0.15s; }
.sdg-card:nth-child(4) { animation-delay: 0.2s; }
.sdg-card:nth-child(5) { animation-delay: 0.25s; }
.sdg-card:nth-child(6) { animation-delay: 0.3s; }
.sdg-card:nth-child(7) { animation-delay: 0.35s; }
.sdg-card:nth-child(8) { animation-delay: 0.4s; }
.sdg-card:nth-child(9) { animation-delay: 0.45s; }
.sdg-card:nth-child(10) { animation-delay: 0.5s; }
.sdg-card:nth-child(11) { animation-delay: 0.55s; }
.sdg-card:nth-child(12) { animation-delay: 0.6s; }
.sdg-card:nth-child(13) { animation-delay: 0.65s; }
.sdg-card:nth-child(14) { animation-delay: 0.7s; }
.sdg-card:nth-child(15) { animation-delay: 0.75s; }
.sdg-card:nth-child(16) { animation-delay: 0.8s; }
.sdg-card:nth-child(17) { animation-delay: 0.85s; }