/* Main Content */
.main-content {
    padding: 0px 160px;
    display: flex;
    flex: 1;
    justify-content: center;
}

.content-container {
    display: flex;
    flex-direction: column;
    max-width: 960px;
    flex: 1;
}

/* Page Header */
.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0px;
    padding: 70px 0 10px 0px;
}

.left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-title {
    color: #1D4F25;
    font-size: 60px;
    font-weight: 500;
    line-height: 1;
    min-width: 280px;
    font-family: Host Grotesk, prompt, sans-serif;
}

.icon{
    width: 120px;
    height: auto;
}

/* Our Story Page Button */
.explore-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--A-yellow-pr);
    border: 1px solid black;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 300;
    font-family: Host Grotesk, prompt, sans-serif;
    overflow: hidden;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    /* backdrop-filter: blur(10px); */
    isolation: isolate;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
    margin: 25px
}

.explore-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -100%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    background-color: #DEE08C;
    border-radius: 9999px;
    z-index: -1;
    transition: all 0.7s ease;
}

.explore-button:hover::before {
    left: 0;
    transform: translateY(-50%);
}

.explore-icon {
    width: 20px;
    height: 20px;
    padding: 0.5rem;
    border-radius: 9999px;
    border: 1px solid #374151;
    background-color: transparent;
    transition: transform 0.3s ease, background-color 0.3s ease, border 0.3s ease;
    transform: rotate(45deg);
    fill: #1f2937;
}

.explore-button:hover .explore-icon {
    transform: rotate(90deg);
    background-color: #ffffff;
    border: 1px solid transparent;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 25px;
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden; /* hides scrollbar overflow */
    display: flex;
    flex-direction: column;
    position: relative;
    animation: slideIn 0.3s;

}

/* This part scrolls */
.modal-scroll {
    overflow-y: auto;
    padding: 30px;
    max-height: 80vh;
    box-sizing: border-box;
    border-radius: 20px; /* optional: keeps corners if bg is visible */
    scrollbar-gutter: stable;
}

.modal-content h2{
    font-size: 50px;
    font-weight: 500;
    margin: 0;
    padding-bottom: 20px;
}

.modal-content h3{
    font-size: 25px;
    font-weight: 500;
    padding-top: 30px;
    padding-bottom: 10px;
    margin: 0;
}

.founder-img-container {
    display: flex; 
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto; /* Let it grow with content if needed */
    max-height: 300px; /* Limit max height */
    overflow: hidden;
    margin-bottom: 20px;
}
.founder-img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 20px;
}
.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    padding-right: 8px;
}
.close:hover {
    color: black;
}

body.no-scroll {
    overflow: hidden;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* Main Content */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    text-align: left;
    padding-bottom: 50px;
    padding-right:20px
}

.text {
    font-size: 17px;
    font-weight: 300;
    color: #1D4F25;
    font-family: host grotesk, prompt, sans-serif;
}

.Sub-Titles {
    font-family: Host Grotesk, prompt, sans-serif;
    font-size: 40px;
    font-weight: 300;
    color: #1D4F25;
    margin-bottom: 10px;
    text-align: left;
}

.list {
    padding-left: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 17px;
    font-weight: 300;
    color: #1D4F25;
    font-family: host grotesk, prompt, sans-serif;
}

.core-vals {
    display: flex;
    flex-direction: column;

}

.core-vals h2 {
    font-size: 40px;
    font-weight: 300;
    color: #1D4F25;
    margin-bottom: 10px;
    text-align: left;
    font-family: Host Grotesk, prompt, sans-serif;
    margin: 0;
}

/* Benefits Grid */
.core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 12px;
    padding: 5px;
}

.core-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 12px;
    padding-top: 5px;
    padding-bottom: 50px;
}

.core-card {
    display: flex;
    flex: 1;
    gap: 12px;
    border-radius: 20px;
    background-color: #ffdcd1;
    padding: 16px;
    flex-direction: column;
}

.core-icon {
    color: black;
    width: 24px;
    height: 24px;
}

.core-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.core-title {
    color: black;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.2;
    font-family: Host Grotesk, prompt, sans-serif;
    margin: 0;
}

.core-description {
    color: black;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.4;
    font-family: creato display, prompt, sans-serif;
}



/* ========== RESPONSIVE DESIGN ========== */

/* Large Tablets and Small Desktop */
@media (max-width: 1024px) {
    .main-content {
        padding: 0 80px;
    }
    
    .page-title {
        font-size: 55px;
        min-width: auto;
    }
    
    .Sub-Titles {
        font-size: 35px;
        margin-bottom: 7px;
    }
    
    .core-vals h2 {
        font-size: 35px;
        margin-bottom: 8px;
    }
    
    .Our-Story h2 {
        font-size: 35px;
        margin-bottom: 8px;
    }
    
    .grid-container {
        margin: 10px 0;
    }
    
    .core-vals {
        margin: 12px 0;
    }
    
    .Our-Story {
        margin: 12px 0 20px 0;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    /* Main content padding and margin adjustment */
    .main-content {
        padding: 0px 40px;
        margin: 20px 0;
    }
    
    /* Page header adjustments */
    .page-header {
        padding: 70px 0 10px 0;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .page-title {
        font-size: 45px;
        min-width: auto;
        width: 100%;
        margin: 0 auto;
    }
    
    /* Grid layout changes */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 10px 0;
    }
    
    .grid-item {
        padding: 5px 0;
        padding-bottom: 10px;
        margin-bottom: 5px;
    }
    
    /* Typography adjustments */
    .Sub-Titles {
        font-size: 30px;
        margin-bottom: 5px;
        margin-top: 0px;
    }
    
    .text {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 5px;
    }
    
    .list {
        padding-left: 20px;
        font-size: 16px;
        line-height: 1.5;
        margin: 2px 0;
    }
    
    /* Core values section */

    .core-vals {
        padding-left: 0;
        margin: 15px 0;
    }
    
    .core-vals h2 {
        font-size: 30px;
        margin-bottom: 8px;
        margin-top: 5px;
    }
    
    .core-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
        margin: 10px 0;
    }
    .core-grid-2{
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
        margin: 0px 0;
    }
    
    .core-card {
        padding: 15px;
        gap: 10px;
        margin-bottom: 2px;
    }
    
    .core-title {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .core-description {
        font-size: 16px;
        line-height: 1.5;
        margin: 0;
    }
    
    /* Our Story section */
    .Our-Story {
        padding-left: 0;
        margin: 15px 0 20px 0;
    }
    
    .Our-Story h2 {
        font-size: 30px;
        margin-bottom: 8px;
        margin-top: 5px;
    }
    
    .Our-Story p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 8px;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .main-content {
        padding: 0px 30px;
        margin: 15px 0;
    }
    
    .page-header {
        padding: 50px 0 8px 0;
        margin-bottom: 50px;
    }
    
    .page-title {
        font-size: 36px;
        margin: 0 auto;
    }
    
    .Sub-Titles {
        font-size: 26px;
        margin-bottom: 3px;
        margin-top: 0px;
    }
    
    .core-vals h2 {
        font-size: 26px;
        margin-bottom: 5px;
        margin-top: 3px;
    }
    
    .Our-Story h2 {
        font-size: 26px;
        margin-bottom: 5px;
        margin-top: 3px;
    }
    
    .text {
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .list {
        font-size: 15px;
        padding-left: 18px;
        margin: 2px 0;
    }
    
    .core-title {
        font-size: 17px;
        margin-bottom: 2px;
    }
    
    .core-description {
        font-size: 15px;
        margin: 0;
    }
    
    .Our-Story p {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .grid-item {
        padding: 3px 0;
        padding-bottom: 8px;
        margin-bottom: 3px;
    }
    
    .core-card {
        padding: 12px;
        margin-bottom: 2px;
    }
    
    .core-vals {
        margin: 10px 0;
    }
    
    .Our-Story {
        margin: 10px 0 15px 0;
    }
    
    .grid-container {
        margin: 8px 0;
    }
    
    .core-grid {
        margin: 5px 0;
    }
    .core-grid-2 {
        margin: 5px 0;
    }
}

@media (max-width: 435px) {
    .page-header {
        padding: 70px 0 5px 0;
    }
    .page-title {
        font-size: 32px;
    }
    .modal-buttons {
        margin-top: 0px;
    }
    .explore-button {
        font-size: 16px;
        padding: 6px 12px;
    }
}

@media (max-width: 402px) {
    .page-header {
        padding: 70px 0 5px 0;
    }
    .page-title {
        font-size: 30px;
    }
    .modal-buttons {
        margin-top: 0px;
    }
    .explore-button {
        font-size: 16px;
        padding: 6px 12px;
    }
}