/* Portal-specific styles */
/* Global body styles now in global.css */
#portal-section{padding-top: 100px;
padding-bottom: 50px;}

/* Card entrance animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Cards ready for animation */
.portal-grid.ready-to-animate .portal-card,
.portal-grid.ready-to-animate .what-is-solarpunk-card,
.portal-grid.ready-to-animate .our-purpose-card,
.portal-grid.ready-to-animate .what-we-do-card,
.portal-grid.ready-to-animate .lets-meet-card,
.portal-grid.ready-to-animate .learn-card,
.portal-grid.ready-to-animate .our-offer-card,
.portal-grid.ready-to-animate .newsletter-card,
.portal-grid.ready-to-animate .build-card,
.portal-grid.ready-to-animate .contact-section {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

/* Animated state - maintain hidden state until animation starts */
.portal-grid.animating .portal-card.animate-in,
.portal-grid.animating .what-is-solarpunk-card.animate-in,
.portal-grid.animating .our-purpose-card.animate-in,
.portal-grid.animating .what-we-do-card.animate-in,
.portal-grid.animating .lets-meet-card.animate-in,
.portal-grid.animating .learn-card.animate-in,
.portal-grid.animating .our-offer-card.animate-in,
.portal-grid.animating .newsletter-card.animate-in,
.portal-grid.animating .build-card.animate-in,
.portal-grid.animating .contact-section.animate-in {
    animation-name: fadeSlideIn;
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

/* Staggered delays for each card - MORE SPECIFIC to override */
.portal-grid.animating .what-is-solarpunk-card.animate-in {
    animation-delay: 0.1s !important;
}

.portal-grid.animating .our-purpose-card.animate-in {
    animation-delay: 0.25s !important;
}

.portal-grid.animating .what-we-do-card.animate-in {
    animation-delay: 0.4s !important;
}

.portal-grid.animating .lets-meet-card.animate-in {
    animation-delay: 0.55s !important;
}

.portal-grid.animating .newsletter-card.animate-in {
    animation-delay: 0.7s !important;
}

.portal-grid.animating .learn-card.animate-in {
    animation-delay: 0.85s !important;
}

.portal-grid.animating .our-offer-card.animate-in {
    animation-delay: 1s !important;
}

.portal-grid.animating .build-card.animate-in {
    animation-delay: 1.15s !important;
}

.portal-grid.animating .contact-section.animate-in {
    animation-delay: 1.3s !important;
}

/* Portal card button styles */
.portal-card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.portal-card-button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid currentColor;
    background: transparent;
    color: inherit;
}



.portal-card-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    margin-top: 15px;
    font-weight: 600;
}

.portal-card-button-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.portal-card-button-outline {
    border: 2px solid currentColor;
    background: transparent;
    color: inherit;
    padding: 12px 24px;
    margin-top: 15px;
}

.portal-card-button-outline:hover {
    background: currentColor;
    color: white;
}
.contact-section .contact-card{     background-color: #FFF!important;}
/* Social icons styles - scoped to portal contact card */
.contact-section .contact-card .social-icons {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 15px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: center;
    width: auto;
    max-width: 100%;
    
}

.contact-section .contact-card .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    flex-shrink: 0;
    border-radius: 0;
    background: none;
    color: #8b9dc3;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.75rem;
    padding: 0;
}

.contact-section .contact-card .social-icon:hover {
    color: #7788b3;
    transform: scale(1.1);
}

.contact-section .contact-card .social-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Remove hover effects - tooltips will be used instead */

.contact-section .contact-card .social-spacer {
    display: none;
}

/* Offer slider styles */
.offer-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

.offer-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.offer-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px 5px;
    animation: slideIn 0.5s ease-in-out;
}

.offer-slide.active {
    display: flex;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.offer-slide-text {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgb(137, 137, 137);
    line-height: 1.6;
    margin-bottom: 15px;
}

.offer-slide-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-slide-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.offer-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.offer-dot {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
}

.offer-dot.active {
    color: rgba(0, 0, 0, 0.8);
    transform: scale(1.2);
}

.offer-dot:hover {
    color: rgba(0, 0, 0, 0.6);
}



.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 / 4;
    grid-row: 2;
}

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

.newsletter-card {
    grid-column: 1;
    grid-row: 2 / 4;
}

.build-card {
    grid-column: 2 / 4;
    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: 300;
    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;
    padding: 0;
}

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

.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: 300;
    color: rgb(250, 250, 250);
    letter-spacing: 1px;
    line-height: 19.6px;
    margin: 0 0 10px 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 10;
}

.what-is-solarpunk-readmore:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 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: cover;
    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: 300;
    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);
}

.newsletter-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.newsletter-message {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    animation: slideInDown 0.3s ease-out;
}

.newsletter-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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: 300;
    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);
    height: 300px;
    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: left;
    width: 90%;
}

/* Old initiative styles removed - now using offer-slider */

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

.contact-section .contact-card-content {
    padding: 24.25px 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-section .contact-card-content .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    width: auto;
}

.contact-section .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-section .contact-location {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgb(137, 137, 137);
    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: 300;
    color: rgb(137, 137, 137);
    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: 0;
    border: 1px solid rgb(255, 255, 255);
    height: 300px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.learn-card-content {
    padding: 25px;
    flex: 1;
    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: 0 20px 20px 0;
    height: 300px;
    flex: 1;
}

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

.build-card-content {
    padding: 25px;
    flex: 1;
    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: 0 20px 20px 0;
    min-height: 300px;
    flex: 1;
}

/* 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(3, auto) repeat(2, 1fr);
    }
    
    /* Row 1: What is Solarpunk, Our Purpose */
    .what-is-solarpunk-card {
        grid-column: 1;
        grid-row: 1;
    }
    
    .our-purpose-card {
        grid-column: 2;
        grid-row: 1;
    }
    
    /* Row 2: What We Do, Let's Meet */
    .what-we-do-card {
        grid-column: 1;
        grid-row: 2;
    }
    
    .lets-meet-card {
        grid-column: 2;
        grid-row: 2;
    }
    
    /* Row 3: Learn and Build side by side */
    .learn-card {
        grid-column: 1;
        grid-row: 3;
        flex-direction: column;
        height: auto;
        min-height: 300px;
    }
    
    .learn-card-content {
        order: 2;
    }
    
    .learn-card .group-photo-card {
        order: 1;
        border-radius: 20px 20px 0 0;
        height: 300px;
    }
    
    .build-card {
        grid-column: 2;
        grid-row: 3;
        flex-direction: column;
        height: auto;
        min-height: 300px;
    }
    
    .build-card-content {
        order: 2;
    }
    
    .build-card .man-in-field-card {
        order: 1;
        border-radius: 20px 20px 0 0;
        height: 300px;
    }
    
    /* Row 4-5: Newsletter on left, Our Offer + Contact Section stacked on right */
    .newsletter-card {
        grid-column: 1;
        grid-row: 4 / 6;
    }
    
    .our-offer-card {
        grid-column: 2;
        grid-row: 4;
        height: 300px;
        min-height: 300px;
    }
    
    .our-offer-card .our-offer-content {
        padding: 15px 15px 0;
    }
    
    .our-offer-card .our-offer-title {
        font-size: 24px;
        margin: 0 0 5px 0;
        min-height: auto;
    }
    
    /* Offer slider adjustments for 1024px */
    .offer-slide-text {
        font-size: 12px;
    }
    
    .offer-slide-image {
        max-width: 150px;
    }
    
    /* Row 5: Contact Section on right */
    .contact-section {
        grid-column: 2;
        grid-row: 5;
        gap: 10px;
    }
    
    /* Adjust card heights in this breakpoint for better fit */
    .contact-section .contact-card {
        min-height: auto;
   
    }
    
    .carbon-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .portal-container {
  
        
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(9, auto);
        gap: 20px;
    }
    
    .what-is-solarpunk-card,
    .our-purpose-card,
    .what-we-do-card,
    .lets-meet-card,
    .learn-card,
    .our-offer-card,
    .newsletter-card,
    .build-card,
    .contact-section {
        grid-column: 1;
    }
    
    /* Single column layout for mobile */
    .what-is-solarpunk-card { grid-row: 1; }
    .newsletter-card { grid-row: 2; } /* Newsletter with header image below What is Solarpunk */
    .our-purpose-card { grid-row: 3; }
    .what-we-do-card { grid-row: 4; }
    .lets-meet-card { grid-row: 5; }
    .learn-card { 
        grid-row: 6;
        flex-direction: column;
        height: auto;
        min-height: 300px;
    }
    .build-card { 
        grid-row: 7;
        flex-direction: column;
        height: auto;
        min-height: 300px;
    }
    .our-offer-card { grid-row: 8; }
    .contact-section { grid-row: 9; } /* Location and Carbon cards last */
    
    .learn-card-content {
        order: 2;
    }
    
    .learn-card .group-photo-card {
        order: 1;
        border-radius: 20px 20px 0 0;
        min-height: 300px;
        height: 300px;
        flex: none;
    }
    
    .build-card-content {
        order: 2;
    }
    
    .build-card .man-in-field-card {
        order: 1;
        border-radius: 20px 20px 0 0;
        min-height: 300px;
        height: 300px;
        flex: none;
    }
    
    .our-offer-card {
        height: 260px;
        min-height: 220px;
    }
    
    .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;
    }

    .newsletter-button {
        margin-bottom: 20px;
    }
    
    .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;
}

/* ==========================================
   CONSULTATION MODAL
   ========================================== */

.consultation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consultation-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.consultation-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.consultation-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: rgb(100, 100, 100);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consultation-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgb(0, 0, 0);
    transform: rotate(90deg);
}

.consultation-modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid rgb(240, 240, 240);
}

.consultation-modal-header h2 {
    font-family: "Open Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    margin: 0 0 10px 0;
}

.consultation-modal-header p {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgb(137, 137, 137);
    margin: 0;
}

.consultation-modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

.consultation-modal-body > div {
    height: 100%;
}

/* Responsive modal */
@media (max-width: 768px) {
    .consultation-modal-content {
        width: 95%;
        height: 90vh;
    }
    
    .consultation-modal-header {
        padding: 20px 20px 15px 20px;
    }
    
    .consultation-modal-header h2 {
        font-size: 20px;
    }
    
    .consultation-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

