/* Ethos Page - Minimalist Design */

.ethos-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
.ethos-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.ethos-header h1 {
    font-size: 2.8rem;
    color: var(--light-gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.ethos-header .subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    opacity: 0.8;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Intro Section */
.ethos-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.ethos-intro p {
    font-size: 1.1rem;
    color: var(--light-gray);
    line-height: 1.7;
    opacity: 0.9;
}

/* Card Section - Fixed 3 columns with flexible height */
.card-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: stretch; /* Make all cards stretch to same height */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .card-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .card-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto 3rem;
    }
    
    .ethos-header h1 {
        font-size: 2.2rem;
    }
}

/* Ethos Card - Clean Minimalist Design with flexible height */
.ethos-card {
    border: 0.1rem solid var(--dark-gray);
    border-radius: 12px;
    padding: 0rem 2rem;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 8rem; /* Minimum height */
    height: 100%; /* Take full height of grid row */
}

.ethos-card:hover {
    transform: translateY(-4px);
    border-color: var(--light-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card Content - Allow content to determine height */
.ethos-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    flex: 1; /* Take available space */
}

.ethos-title {
    font-size: 1.5rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.ethos-description {
    font-size: 1rem;
    color: var(--light-gray);
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* Loading States */
.ethos-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.loading-dots .dot {
    width: 8px;
    height: 8px;
    background-color: var(--dark-gray);
    border-radius: 50%;
    animation: pulse 1.4s infinite ease-in-out;
}
.ethos-content-container{
    max-width:1300px;
    margin: auto;
}

.ethos-content-section h2{
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.ethos-content-section{
    margin-bottom: 2rem;
}
.ethos-content-section p {
    margin:1rem 2rem;
    font-size:1.2rem;
    line-height: 1.7rem;

}
.ethos-content-section h3{
    margin: 1rem;
}
.ethos-content-section li{
    margin: 1rem 3.5rem;
}
.ethos-content-section{
    font-size:1.2rem;
    line-height: 1.7rem;
}

.loading-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dots .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.loading-text {
    font-size: 1rem;
    color: var(--light-gray);
    opacity: 0.8;
}

/* Empty State */
.ethos-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--dark-gray);
    border-radius: 12px;
}

.ethos-empty p {
    font-size: 1.1rem;
    color: var(--light-gray);
    opacity: 0.8;
    margin: 0;
}

/* Error State */
.ethos-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--dark-gray);
    border-radius: 12px;
}

.ethos-error p {
    font-size: 1.1rem;
    color: var(--light-gray);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.retry-button {
    background: transparent;
    color: var(--light-gray);
    border: 1px solid var(--dark-gray);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    border-color: var(--light-gray);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer Section */
.ethos-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
    border-top: 1px solid var(--dark-gray);
}

.ethos-footer p {
    font-size: 1.1rem;
    color: var(--light-gray);
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}


/* Animation for card entrance - Dynamic for any number of cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ethos-card {
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
}

/* Stagger animation for cards - this will work for any number of cards */
.ethos-card {
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
    animation-delay: calc(var(--animation-order, 0) * 0.05s);
}

/* For when there are only a few cards, ensure they're evenly spaced */
.card-section:has(.ethos-card:nth-child(1):nth-last-child(1)) {
    max-width: 500px;
    margin: 0 auto 4rem;
}

.card-section:has(.ethos-card:nth-child(1):nth-last-child(2)) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* For single card, center it */
@media (max-width: 768px) {
    .card-section:has(.ethos-card:nth-child(1):nth-last-child(1)),
    .card-section:has(.ethos-card:nth-child(1):nth-last-child(2)) {
        grid-template-columns: 1fr;
    }

    .ethos-content-section h2{
    font-size: 1.5rem;
    margin-bottom: 2rem;
    }
    .ethos-content-section{
        margin-bottom: 2rem;
    }
    .ethos-content-section p {
        margin:1rem ;
    }
    .ethos-content-section h3{
        margin: 1rem;
    }
    .ethos-content-section li{
        margin: 1rem 3.5rem;
    }
    .ethos-content-section{
        font-size:1.2rem;
        text-align: center;
    }
    .ethos-content-section ul,
    .ethos-content-section ol {
        list-style: none;
        margin-left: 0;
        padding-left: 0;
    }
}