:root {
    --background-color: #f0e4ff;
    --color-header: #5743c8;
    --text-color: #000;
}

.dark-theme {
    --background-color: #313131;
    --color-header: #f7f7f7;
    --text-color: #fff;
}



.container {
    font-size: 16px;
    margin: 0;
    padding-left: 5%;
    padding-right: 5%;
}

h1 {
    font-weight: 900;
    color: #604eb1;
    font-size: 3rem;
}

h2 {
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
}

.goal-objective {
    padding-top: 2%;

}

.goal-objective h1 {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 800;
}

.goal-objective p {
    padding: 1.5%;
    text-align: justify;
}

strong {
    color: #604eb1;
    font-weight: 900;
}

@media (max-width: 768px) {
    h1 {
        text-align: center;
        font-size: 2rem;
    }
}


/* Base layout */
.goal-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    background-color: transparent;
}

.goal-card {
    background: var(--background-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--text-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.card-header img {
    width: 50px;
    height: 50px;
}

.goal-card h2 {
    font-size: 18px;
    margin: 0;
    color: #5743c8;
}

.goal-card p {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Staggered animation delay */
.goal-card:nth-child(2) {
    animation-delay: 0.2s;
}

.goal-card:nth-child(3) {
    animation-delay: 0.4s;
}

.goal-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* Responsive layout for tablets and desktops */
@media (min-width: 600px) {
    .goal-cards {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px;
    }
}

@media (min-width: 1024px) {
    .goal-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .goal-card h2 {
        font-size: 16px;
    }

    .goal-card p {
        font-size: 14px;
    }
}




.section {
    margin-bottom: 20px;
}

.section-title {
    background-color: #ddd;
    color: black;
    padding: 10px;
    border-radius: 5px;
    font-weight: 900;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.section-title img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: var(--background-color);
    color: var(--color-header);
}

.measures-table {
    margin-bottom: 20px;
}

.table-map-div {
    position: relative;
}

.regions-table {
    position: relative;
    z-index: 1;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.map-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    /* Adjust transparency as needed */
    z-index: 0;
}

@media (max-width: 768px) {
    .map-img {
        max-width: 100%;
    }
}


.level-header {
    background-color: var(--background-color);
    color: var(--color-header);
    text-align: center;
    font-weight: bold;
}

.pillar {
    font-weight: bold;
    background-color: var(--background-color);
}


.workflow {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 2px;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    /* Adjusted for better flow */
    padding: 20px 0;
}

.arrow-bg {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to right, #6a0dad, #8a4af3);
    /* Gradient for modern look */
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    z-index: -1;
    opacity: 0.6;
}

.step {
    background-color: var(--background-color);
    border: 2px solid #5743c8;
    border-radius: 15px;
    padding: 10px;
    width: 12%;
    /* Adjusted for better spacing on desktop */
    min-width: 190px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--text-color);
}

.step h2 {
    color: #5743c8;
    font-size: clamp(1em, 1.5vw, 1.3em);
    margin-bottom: 15px;
    font-weight: bold;
}

.step ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    font-size: clamp(0.8em, 1vw, 1em);
}

.step ul li {
    margin-bottom: 10px;
}

.step ul ul {
    margin-top: 5px;
    padding-left: 20px;
}

/* Connector Lines for Desktop/Laptop */
.workflow::before,
.workflow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #6a0dad, #8a4af3);
    z-index: 0;
}

.workflow::before {
    left: 0;
    transform: translateY(-50%);
}

.workflow::after {
    display: none;
    /* Optional: for symmetry */
}

.step:not(:first-child) {
    margin-left: 40px;
    /* Space between steps */
}

.step:first-child {
    margin-left: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .step {
        width: 22%;
    }

    .workflow {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .workflow {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding: 0;
    }

    .arrow-bg {
        display: none;
    }

    .workflow::before {
        display: none;
    }

    .step {
        width: 80%;
        margin-bottom: 60px;
    }

    .step::after {
        content: '';
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 30px;
        background: linear-gradient(to bottom, #6a0dad, #8a4af3);
    }

    .step:last-child::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .step {
        width: 90%;
        padding: 15px;
    }

    .step h2 {
        font-size: clamp(0.9em, 4vw, 1.2em);
    }

    .step ul {
        font-size: clamp(0.7em, 3vw, 0.9em);
    }
}