/* Home Page Specific Styles */

/* Remove default padding from main for full-width sections */
main.home-page {
    padding: 0 !important;
    margin: 0 !important;
}

.home-page h1 {
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #FFFFFF;
}

/* All h2 headings styling */
.home-page h2 {
    font-size: 1rem;
    font-weight: normal;
    color: #0A2185;
    margin-bottom: 1.5rem;
    background-color: #EAEDFB;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-block;
    text-align: center;
}

.home-page h3 {
    font-size: 3rem;
    font-weight: 500;
    color: #091B13;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    text-align: center;
}

.home-page h4 {
    font-size: 1.5rem;
    font-weight: 550;
    color: #091B13;
    margin-bottom: 1rem;
}

.home-page p {
    font-size: 1.25rem;
    color: #4B4B4B;
    margin-bottom: 2rem;
    text-align: center;
}

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

.home-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

.home-page section {
    padding: 5rem 5rem;
}

.home-page section:last-child {
    margin-bottom: 0;
}

.home-page section:nth-child(odd) {
    background-color: #f5f5f5;
}
.home-page section:nth-child(even) {
    background-color: #ffffff;
}

/* Whenever we need 3 cards in a row */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    padding: 1.5rem;
    border-radius: 1.25rem;
}

.card:hover {
    transform: translateY(-5px);
}

.card p {
    color: #4B4B4B;
    line-height: 1.6;
    text-align: left;
}
/* For setting up icons for the cards */
.card img {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 0;
    overflow: hidden;
}

.grid-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-item h4 {
    padding: 3rem;
    padding-bottom: 0;
    text-align: left;
}

.grid-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding: 3rem;
    padding-top: 0;
    text-align: left;
}

/* ==================== */
/* 1. Cover Section */
/* ==================== */
#cover {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    background-size: cover;
    background-position: center;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.cover-content {
    position: relative;
    z-index: 2;
    min-width: 600px;
    width: 40%;
    padding: 2rem;
    /* margin-left: 5%; */
}

.cover-content p{
    text-align: left;
    color: #ffffff;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #FE632F;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.2s;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-1px);
}

/* ==================== */
/* 2. Critical Challenge Section */
/* ==================== */
#challenge .container {
    display: flex;
    gap: 4rem;
}

.challenge-dropdowns {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.challenge-images {
    flex: 1;
}

.dropdown-item {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.dropdown-item summary {
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 0.2s;
}

.dropdown-item summary::-webkit-details-marker {
    display: none;
}

.dropdown-item summary::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    width: 12px;
    height: 12px;
    border-left: 2px solid #2563eb;
    border-bottom: 2px solid #2563eb;
    transform: rotate(-45deg);
    top: 50%;
    margin-top: -8px;
    transition: transform 0.3s;
}

.dropdown-item[open] summary::after {
    transform: rotate(135deg);
    margin-top: -4px;
}

.dropdown-item summary:hover {
    color: #2563eb;
}

.dropdown-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.dropdown-content p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.challenge-images {
    position: relative;
    width: 100%;
    height: 350px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.challenge-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.challenge-image.active {
    opacity: 1;
    pointer-events: auto;
}

.challenge-image img {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
}

/* ==================== */
/* 2.5 Challenge Section Adjustments */

#region .card {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}


/* ==================== */
/* Partners */
#partner .grid-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
}

/* ==================== */
/* 3. Our Solution Section */
/* ==================== */
#solution .card {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

/* ==================== */
/* 4. Platform in Action Section */
/* ==================== */
#platform .card {
    background-color: #ffffff;
    border: 0.1px solid #d1d1d1;
    border-top: 20px solid #0A2185;
    margin-top: 50px;
}

/* ==================== */
/* 5. Unique Advantage Section */
/* ==================== */

#advantage .grid {
    border-radius: 2rem;
}

#advantage .grid-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #e5e7eb;
    display: block;
}

#advantage .grid-item h4, #advantage .grid-item p{
    color: #FFFFFF;
}

/* Row 1 (items 1-2) - first color */
#advantage .grid-item:nth-child(4n+1),
#advantage .grid-item:nth-child(4n+2) {
    background-color: #0A2185;
}
/* Row 2 (items 3-4) - second color */
#advantage .grid-item:nth-child(4n+3),
#advantage .grid-item:nth-child(4n+4) {
    background-color: #091B13;
}

/* ==================== */
/* 6. Regional Insights Section */
/* ==================== */
#dashboards .card {
    background-color: #fdfdfd;
    border: 0.1px solid #d1d1d1;
    text-align: left;
}

#dashboards .card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    line-height: 1;
}

#dashboards .card .flag-icon {
    height: 1em;
    width: auto;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}

#dashboards a {
    color: #FE632F;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.25rem;
}

#dashboards a:hover {
    color:#ffe053;
}

.card-icons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icons .icon {
    width: auto;
    height: auto;
    padding: 0.25rem 0.8rem 0.45rem 0.8rem;
    background: #e5e7eb;
    border-radius: 2rem;
    align-items: center;
    font-size: 0.75rem;
}

/* Color modifiers - only change background and text color depending on status*/
.card-icons .icon.blue {
    background-color: #EAEDFB;
    color: #0A2185;
}

.card-icons .icon.green {
    background-color: #FFF9EE;
    color: #FE9B0E;
}

.card-icons .icon.red {
    background-color: #FEE2E2;
    color: #991B1B;
}

.card-icons .icon.yellow {
    background-color: #FEF3C7;
    color: #92400E;
}

/* ==================== */
/* Responsive Design */
/* ==================== */
/* Mobile screens */
@media (max-width: 820px) {
    /* Ensure sections have no side margins on mobile */
    .home-page section {
        padding: 3rem 3rem;
    }

    /* Reduce heading sizes for better fit on narrow screens */
    .home-page h3 {
        font-size: 2.5rem;
        padding: 0.5rem 0;
        line-height: 1.3;
    }

    .home-page p {
        font-size: 1rem;
    }

    .cards{
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .grid-item {
        padding: 0;
    }

    .grid-item img {
        padding: 0;
    }

    /* specific styling for the cover page */
    .cover-content {
        min-width: unset;
        width: 90%;
        max-width: 90%;
        margin-left: 5%;
        margin-right: 5%;
        padding: 1rem;
    }

    .cover-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .cover-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Challenge section - stack dropdowns and images vertically */
    #challenge .container {
        flex-direction: column;
        gap: 2rem;
    }

    .challenge-images {
        order: 2;
    }

    .challenge-dropdowns {
        order: 1;
    }

    #platform .card {
        margin-top: 10px;
        gap: 0.5rem;
    }

    /* Ensure advantage grid images fill their cells on mobile */
    #advantage .grid-item img {
        /* height: 250px; */
        height: 100%;
        object-fit: cover;
    }

    Reduce spacing in partner section on mobile
    #partner .grid-item h4,
    #partner .grid-item p {
        padding: 1rem;
        margin-bottom: 2rem;
    }

