:root {
    --header-height: 3.5rem;
    --first-color: hsl(220, 68%, 54%);
    --first-color-lighten: hsl(220, 68%, 97%);
    --title-color: hsl(220, 48%, 28%);
    --text-color: hsl(220, 12%, 45%);
    --body-color: hsl(220, 100%, 99%);
    --body-font: "Poppins", sans-serif;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;
    --font-medium: 500;
    --font-semi-bold: 600;
    --z-tooltip: 10;
    --z-fixed: 100;

    --nubmerOfItems: 6;
    --timeduration: 15s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--body-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

.SDGs-hero {
    background-image: url("https://www.imf.org/-/media/Images/IMF/About/Factsheets/2022/sdgs-header-01.ashx?h=1379&w=5534&la=en");
    background-repeat: no-repeat;
    height: auto;
    aspect-ratio: 20 / 6;
    width: 100%;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.SDGs-hero h1 {
    color: #ffffff;
    font-size: 34px;
    text-align: center;
    padding: 10px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 0;
}

.sdg-section {
    background-color: #ffffff;
    padding: 50px 0;
    margin-top: 2rem;
}

.container-SDGs {
    max-width: 1140px;
    margin: 0 auto; 
    padding: 0 20px; 
}

.sdg-content-wrapper {
    display: flex;
    gap: 40px; 
    align-items: center; 
}

.sdg-text-content {
    flex: 1;
    color: #222; 

}

.sdg-text-content p {
    margin-bottom: 1em; 
    font-size: 0.95rem; 
}

.sdg-button {
    display: inline-block;
    background-color: #004080;
    color: #ffffff; 
    padding: 10px 25px; 
    text-decoration: none; 
    font-weight: bold;
    border-radius: 4px; 
    margin-top: 15px;
    transition: background-color 0.3s ease; 
    border: none; 
    cursor: pointer;
    font-size: 0.9rem;
}

.sdg-button:hover {
    background-color: #0059b3;
}

.sdg-video{
    width: 45%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.sdg-goals-section {
    padding: 40px 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.sdg-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.sdg-card {
    color: white;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
}

.card-content {
    padding: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.sdg-card h3 {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.4em;
    color: #ffffff;
}

.sdg-card p {
    font-size: 0.85em;
    margin-bottom: 1em;
    flex-grow: 1;
    min-height: 50px;
}

.sdg-card hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin: 0 0 10px 0;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
}

.stats-column {
    width: 48%;
}

.stat-item {
    margin-bottom: 5px;
}

.SDGs-stat-number {
    display: block;
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1.1;
    color: #ffffff;
}

.SDGs-stat-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
}

.sdg-card.goal-1 { background-color: #E5243B; }
.sdg-card.goal-2 { background-color: #DDA63A; }
.sdg-card.goal-3 { background-color: #4C9F38; }
.sdg-card.goal-4 { background-color: #C5192D; }
.sdg-card.goal-5 { background-color: #FF3A21; }
.sdg-card.goal-6 { background-color: #26BDE2; }
.sdg-card.goal-7 { background-color: #FCC30B; }
.sdg-card.goal-8 { background-color: #A21942; }
.sdg-card.goal-9 { background-color: #FD6925; }
.sdg-card.goal-10 { background-color: #DD1367; }
.sdg-card.goal-11 { background-color: #FD9D24; }
.sdg-card.goal-12 { background-color: #BF8B2E; }
.sdg-card.goal-13 { background-color: #3F7E44; }
.sdg-card.goal-14 { background-color: #0A97D9; }
.sdg-card.goal-15 { background-color: #56C02B; }
.sdg-card.goal-16 { background-color: #00689D; }
.sdg-card.goal-17 { background-color: #19486A; }

.bimo-sdg-section {
    padding: 60px 0;
}

.bimo-sdg-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.bimo-sdg-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #212529;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #495057;
}

.sdg-columns-wrapper {
    display: flex;
    gap: 50px;
}

.sdg-column {
    flex: 1;
}

.sdg-item {
    display: flex;
    align-items: flex-start; /* This aligns icon top with text block top */
    margin-bottom: 35px;
}

.sdg-icon-wrapper {
    width: 60px;
    height: 60px;
    border: 2px solid #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 20px;
    color: #007bff; /* Set icon color */
}


.sdg-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
}

.sdg-text p strong {
    color: #333;
}


@media (max-width: 768px) {
    .sdg-columns-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .sdg-item {
        margin-bottom: 30px;
    }

     .bimo-sdg-section h2 {
        font-size: 1.8rem;
    }
    .intro-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

}

@media (max-width: 576px) {
     .sdg-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }

     .sdg-text p {
        font-size: 0.9rem;
    }
     .bimo-sdg-section {
        padding: 40px 0;
    }
    .bimo-sdg-container {
        padding: 0 15px;
    }
}

@media (max-width: 1200px) {
    .sdg-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 992px) {
    .sdg-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
     .sdg-card p {
        min-height: 60px;
    }
}

@media (max-width: 768px) {
    .sdg-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
     .sdg-card p {
        min-height: 70px;
    }
}

@media (max-width: 576px) {
    .sdg-grid-container {
        grid-template-columns: 1fr;
    }
     .sdg-card p {
        min-height: auto;
    }
    .sdg-goals-section {
        padding: 20px 10px;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sdg-content-wrapper {
        flex-direction: column; 
    }
    .sdg-video{
        width: 90%;
        height: auto;
        aspect-ratio: 16 / 9;
    }    
}

@media screen and (max-width: 1118px) {
    .SDGs-hero {
        height: auto;
        aspect-ratio: 20 / 6;
        width: 100%;

    }
}