/* Portal-specific styles */
body {
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    min-height: 100vh;
}

.portal-container {
    
padding: 20px;
    z-index: 50;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
  
}

/* Grid positioning for each card */
.what-is-solarpunk-card {
    grid-column: 1;
    grid-row: 1;
}

.our-purpose-card {
    grid-column: 2;
    grid-row: 1;
}

.what-we-do-card {
    grid-column: 3;
    grid-row: 1;
}

.lets-meet-card {
    grid-column: 4;
    grid-row: 1;
}

.learn-card {
    grid-column: 2;
    grid-row: 2;
}

.group-photo-card {
    grid-column: 3;
    grid-row: 2;
}

.our-offer-card {
    grid-column: 4;
    grid-row: 2;
}

.newsletter-card {
    grid-column: 1;
    grid-row: 3;
}

.build-card {
    grid-column: 2;
    grid-row: 3;
}

.man-in-field-card {
    grid-column: 3;
    grid-row: 3;
}

.contact-section {
    grid-column: 4;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Card styles */
.portal-card {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 0 0 25px;
    border: 1px solid rgb(255, 255, 255);
    overflow: visible;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portal-card-header {
    min-height: 300px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 20px 20px 0 0;
}

.portal-card-content {
    padding: 25px 25px 0;
}

.portal-card-title {
    font-family: "Open Sans", sans-serif;
    font-size: 30px;
    font-weight: 500;
    color: rgb(137, 137, 137);
    line-height: 1.4;
    margin: 0 0 10px 0;
    min-height: 45px;
}

.portal-card-text {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(137, 137, 137);
    letter-spacing: 1px;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.portal-card-button {
    background-color: rgb(236, 237, 240);
    border: none;
    border-radius: 5px;
    padding: 15px 20px;
    font-family: "Overpass", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgb(137, 137, 137);
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.portal-card-button:hover {
    background-color: rgb(220, 221, 225);
}

.portal-card-button.primary {
    background: none;
    font-weight: 900;
    color: rgb(0, 0, 0);
    border-radius: 10px;
}

.portal-card-button.primary:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* What is Solarpunk card */
.what-is-solarpunk-card {
    background-image: url('https://3d5d3679658450774348ec3d4153f217.cdn.bubble.io/f1697063279903x945201070694509700/Artboard.png?ignore_imgix');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 20px;
    min-height: 300px;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.what-is-solarpunk-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    text-align: center;
    height: 194.97px;
}

.what-is-solarpunk-title {
    font-family: "Open Sans", sans-serif;
    font-size: 29.414px;
    font-weight: 600;
    color: rgb(255, 255, 255);
    line-height: 42px;
    margin: 0 0 5px 0;
    text-align: left;
}

.what-is-solarpunk-text {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(250, 250, 250);
    letter-spacing: 1px;
    line-height: 19.6px;
    margin: 0 0 10px 0;
    text-align: left;
}

.what-is-solarpunk-text p {
    margin: 0;
}

.what-is-solarpunk-readmore {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    letter-spacing: 1px;
    line-height: 19.6px;
    margin: 0;
    text-align: left;
}

/* Newsletter card */
.newsletter-card {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgb(255, 255, 255);
 
}

.newsletter-header {
    background-image: url('https://3d5d3679658450774348ec3d4153f217.cdn.bubble.io/f1697063395783x455310106500512700/Artboard%20Copy.png?ignore_imgix');
    background-size: 100.47% 100%;
    background-position: top center;
    background-repeat: no-repeat;
    min-height: 300px;
    border-radius: 20px 20px 0 0;
}

.newsletter-content {
    padding: 25px 20.32px 0 20.32px;
}

.newsletter-title {
    font-family: "Open Sans", sans-serif;
    font-size: 31.125px;
    font-weight: 600;
    color: rgb(137, 137, 137);
    line-height: 44.8px;
    margin: 0 0 15px 0;
}

.newsletter-text {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(137, 137, 137);
    letter-spacing: 1px;
    line-height: 19.6px;
    margin: 0 0 15px 0;
}

.newsletter-text p {
    margin: 0;
}

.newsletter-input {
    width: 100%;
    min-height: 40px;
    max-height: 40px;
    border: 1px solid rgba(171, 171, 171, 0.41);
    border-radius: 5px;
    font-family: "Overpass", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgb(181, 181, 181);
    padding: 0 11px;
    margin: 0 0 5px 0;
    box-sizing: border-box;
}

.newsletter-button {
    background-color: rgb(236, 237, 240);
    border: none;
    border-radius: 5px;
    padding: 13px 20px;
    font-family: "Overpass", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgb(137, 137, 137);
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin: 15px 0 0 0;
}

.newsletter-button:hover {
    background-color: rgb(220, 221, 225);
}

/* Two column cards */
.two-column-cards {
    display: flex;
    justify-content: space-between;
    gap: 0;
}

.two-column-card {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 0 0 42.55px 0;
    border: 1px solid rgb(255, 255, 255);
    width: 48%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.two-column-card-content {
    padding: 25px 30.13px 0 30.14px;
}

.two-column-card-title {
    font-family: "Open Sans", sans-serif;
    font-size: 29.531px;
    font-weight: 600;
    color: rgb(137, 137, 137);
    line-height: 42px;
    margin: 0 0 10px 0;
    min-height: 45px;
}

.two-column-card-text {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(137, 137, 137);
    letter-spacing: 1px;
    line-height: 19.6px;
    margin: 0 0 15px 0;
}

.two-column-card-text p {
    margin: 0;
}

.two-column-buttons {
    display: flex;
    justify-content: space-between;
    gap: 3.31px;
    margin: 15px 0 0 0;
}

.two-column-button {
    background-color: rgb(236, 237, 240);
    border: none;
    border-radius: 5px;
    padding: 17px 47.28px;
    font-family: "Overpass", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgb(137, 137, 137);
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 1;
}

.two-column-button:hover {
    background-color: rgb(220, 221, 225);
}

/* Full width cards */
.full-width-card {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgb(255, 255, 255);
    min-height: 300px;
    cursor: pointer;
}

.full-width-card-content {
    display: flex;
    justify-content: flex-start;
    padding: 25px 25px 0;
    gap: 0;
}

.full-width-card-text {
    flex: 0 0 430.71px;
    max-width: 430.71px;
    padding-right: 0;
    z-index: 2;
}

.full-width-card-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25.33px 0;
    z-index: 1;
}

.full-width-card-image-bg {
    width: 323.6px;
    height: 247.34px;
    background-size: 100% 130.83%;
    background-position: left center;
    background-repeat: no-repeat;
    border-radius: 20px;
}

.full-width-card-image-bg.build-image {
    background-image: url('https://3d5d3679658450774348ec3d4153f217.cdn.bubble.io/f1697055548878x194835255124508930/DALL%C2%B7E%202023-10-11%2013.53.39%20-%20Realistic%20portrayal%20in%20a%20sunny%20setting_%20A%20Latin%20American%20man%20stands%20confidently%20in%20a%20field%20teeming%20with%20diverse%20plants.%20A%20pathway%20near%20him%20leads%20to%20a_.png?ignore_imgix');
}

.full-width-card-image-bg:not(.build-image) {
    background-image: url('https://3d5d3679658450774348ec3d4153f217.cdn.bubble.io/f1697052778844x573473120247602700/DALL%C2%B7E%202023-10-11%2013.24.44%20-%20Photo%20of%20an%20animated%20group%20of%20individuals%20of%20diverse%20descents%2C%20including%20white%20South%20American%2C%20Black%2C%20and%20age%20ranges%20around%20a%20table%20with%20a%20laptop%20in%20a.png?ignore_imgix');
}

.full-width-card-title {
    font-family: "Open Sans", sans-serif;
    font-size: 31.375px;
    font-weight: 600;
    color: rgb(137, 137, 137);
    line-height: 44.8px;
    margin: 0 0 15px 0;
    min-height: 45px;
}

.full-width-card-description {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(137, 137, 137);
    letter-spacing: 1px;
    line-height: 19.6px;
    margin: 0 0 15px 0;
}

.full-width-card-description p {
    margin: 0;
}

/* Bottom row cards */
.bottom-card {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 0 0 25px;
    border: 1px solid rgb(255, 255, 255);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bottom-card-content {
    padding: 25px 25px 0;
}

.bottom-card-title {
    font-family: "Open Sans", sans-serif;
    font-size: 31.375px;
    font-weight: 600;
    color: rgb(137, 137, 137);
    line-height: 44.8px;
    margin: 0 0 10px 0;
    min-height: 45px;
}

.bottom-card-text {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(137, 137, 137);
    letter-spacing: 1px;
    line-height: 19.6px;
    margin: 0 0 15px 0;
}

.bottom-card-text p {
    margin: 0;
}

.bottom-card-button {
    background: none;
    background-color: rgb(236, 237, 240);
    border: none;
    border-radius: 5px;
    padding: 17px 20px;
    font-family: "Overpass", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgb(137, 137, 137);
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin: 15px 0 0 0;
}

.bottom-card-button:hover {
    background-color: rgb(220, 221, 225);
}

/* Our Offer card */
.our-offer-card {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    border: 1px solid rgb(255, 255, 255);
    min-height: 300px;
    overflow: visible;
}

.our-offer-content {
    padding: 25px 25px 0;
}

.our-offer-title {
    font-family: "Open Sans", sans-serif;
    font-size: 31.375px;
    font-weight: 600;
    color: rgb(137, 137, 137);
    line-height: 44.8px;
    margin: 0 0 10px 0;
    min-height: 45px;
    text-align: center;
    width: 90%;
}

.initiatives-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.initiative-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 190px;
    max-height: 190px;
    height: 190px;
    width: 100%;
    margin: 0;
}

.initiative-text {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(137, 137, 137);
    letter-spacing: 1px;
    line-height: 19.6px;
    margin: 10px 0 0 0;
    width: 90%;
    text-align: center;
}

.initiative-text p {
    margin: 0;
}

.initiative-image {
    width: 200px;
    height: 44.44px;
    margin: 35px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-software-icon {
    width: 200px;
    height: 44.44px;
}

.initiative-dots {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    width: 100%;
}

.initiative-dot {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    color: rgb(0, 0, 0);
    border-radius: 4px;
    opacity: 1;
    font-size: 16px;
}

.initiative-dot.active {
    color: rgb(0, 0, 0);
}

.initiative-dot:not(.active) {
    color: rgb(0, 0, 0);
    opacity: 0.5;
}

/* Contact cards */
.contact-card {
    background: rgb(230, 231, 235);
    border-radius: 20px;
    border: 1px solid rgb(255, 255, 255);
    min-height: 140px;
    cursor: pointer;
}

.contact-card-content {
    padding: 24.25px 25px 0;
}

.contact-title {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    line-height: 22.4px;
    margin: 0 0 5px 0;
    text-align: center;
    width: 100%;
}

.contact-location {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(0, 0, 0);
    letter-spacing: 1px;
    line-height: 19.6px;
    margin: 0 0 10px 0;
    text-align: center;
    width: 100%;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    margin: 10px 0 0 0;
    width: 100%;
    flex-wrap: wrap;
}

.social-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 1;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-spacer {
    width: 20px;
    height: 20px;
}

/* Carbon removal card */
.carbon-card {
    background: rgb(230, 231, 235);
    border-radius: 20px;
    border: 1px solid rgb(255, 255, 255);
    min-height: 130px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 45.4px 0 45.41px 0;
}

.carbon-text {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(0, 0, 0);
    text-align: center;
    letter-spacing: 1px;
    line-height: 19.6px;
    margin: 0;
    width: 90%;
}

.carbon-text p {
    margin: 0;
}

/* New card types for the correct layout */
.our-purpose-card {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgb(255, 255, 255);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.what-we-do-card {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgb(255, 255, 255);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lets-meet-card {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgb(255, 255, 255);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.learn-card {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgb(255, 255, 255);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.group-photo-card {
    background-image: url('https://3d5d3679658450774348ec3d4153f217.cdn.bubble.io/f1697052778844x573473120247602700/DALL%C2%B7E%202023-10-11%2013.24.44%20-%20Photo%20of%20an%20animated%20group%20of%20individuals%20of%20diverse%20descents%2C%20including%20white%20South%20American%2C%20Black%2C%20and%20age%20ranges%20around%20a%20table%20with%20a%20laptop%20in%20a.png?ignore_imgix');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 20px;
    min-height: 300px;
    cursor: pointer;
}

.build-card {
    background-color: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgb(255, 255, 255);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.man-in-field-card {
    background-image: url('https://3d5d3679658450774348ec3d4153f217.cdn.bubble.io/f1697055548878x194835255124508930/DALL%C2%B7E%202023-10-11%2013.53.39%20-%20Realistic%20portrayal%20in%20a%20sunny%20setting_%20A%20Latin%20American%20man%20stands%20confidently%20in%20a%20field%20teeming%20with%20diverse%20plants.%20A%20pathway%20near%20him%20leads%20to%20a_.png?ignore_imgix');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 20px;
    min-height: 300px;
    cursor: pointer;
}

/* Responsive design */
@media (min-width: 1400px) {
    .portal-container {
   
        
    }
    
    .portal-grid {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, auto);
    }
    
    .what-is-solarpunk-card {
        grid-column: 1;
        grid-row: 1;
    }
    
    .our-purpose-card {
        grid-column: 2;
        grid-row: 1;
    }
    
    .what-we-do-card {
        grid-column: 1;
        grid-row: 2;
    }
    
    .lets-meet-card {
        grid-column: 2;
        grid-row: 2;
    }
    
    .learn-card {
        grid-column: 2;
        grid-row: 3;
    }
    
    .group-photo-card {
        grid-column: 1;
        grid-row: 4;
    }
    
    .our-offer-card {
        grid-column: 2;
        grid-row: 4;
    }
    
    .newsletter-card {
        grid-column: 1;
        grid-row: 5;
    }
    
    .build-card {
        grid-column: 2;
        grid-row: 5;
    }
    
    .man-in-field-card {
        grid-column: 1;
        grid-row: 6;
    }
    
    .contact-section {
        grid-column: 2;
        grid-row: 6;
    }
}

@media (max-width: 768px) {
    .portal-container {
  
        
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(11, auto);
        gap: 20px;
    }
    
    .what-is-solarpunk-card,
    .our-purpose-card,
    .what-we-do-card,
    .lets-meet-card,
    .learn-card,
    .group-photo-card,
    .our-offer-card,
    .newsletter-card,
    .build-card,
    .man-in-field-card,
    .contact-section {
        grid-column: 1;
    }
    
    .what-is-solarpunk-card { grid-row: 1; }
    .our-purpose-card { grid-row: 2; }
    .what-we-do-card { grid-row: 3; }
    .lets-meet-card { grid-row: 4; }
    .learn-card { grid-row: 5; }
    .group-photo-card { grid-row: 6; }
    .our-offer-card { grid-row: 7; }
    .newsletter-card { grid-row: 8; }
    .build-card { grid-row: 9; }
    .man-in-field-card { grid-row: 10; }
    .contact-section { grid-row: 11; }
    
    .portal-card-title,
    .newsletter-title,
    .two-column-card-title,
    .full-width-card-title,
    .bottom-card-title,
    .our-offer-title {
        font-size: 24px;
    }
    
    .portal-card-text,
    .newsletter-text,
    .two-column-card-text,
    .full-width-card-description,
    .bottom-card-text {
        font-size: 13px;
    }
    
    .what-is-solarpunk-title {
        font-size: 24px;
    }
    
    .what-is-solarpunk-text {
        font-size: 13px;
    }
    
    .two-column-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .two-column-button {
        width: 100%;
    }
}

/* Top bar styles */
#top-center-ai {
    -webkit-backdrop-filter: blur(5px) !important;
    backdrop-filter: blur(5px) !important;
    background-color: rgba(255, 255, 255, 0.2);
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#top-center-ai img {
    width: 150px;
    height: auto;
    cursor: pointer;
}
