/* =========================================
   LEARN PAGE SPECIFIC STYLES
   ========================================= */

/* --- 1. Full Width Video Hero --- */
.video-hero {
    width: 100%;
    max-height: 800px;
    overflow: hidden;
    background-color: var(--black);
}

.video-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Typography Defaults --- */
main h1 {
    font-family: 'Times New Roman', Times, serif;
    color: black;
    font-weight: 500;
    font-size: 42px;
}

main p {
    font-family: 'Times New Roman', Times, serif;
    color: #5b5a5a;
    font-weight: 400;
    font-size: 22px;
}

.line-1, .line-4 {
    height: 1px;
    background: rgb(0, 0, 0);
    max-width: 1100px;
    margin: 60px auto;
    opacity: 0.2;
}

/* --- 2. Mission Section --- */
.mission-section, .vegan-section, .about-text {
    text-align: center;
    padding: 80px 5% 0;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-icons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.mission-icons img {
    max-width: 100%; /* Makes your icon image shrink on small phones */
    height: auto;
}

/* --- 3. Four Steps Grid --- */
.four-steps-section {
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.step-col {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.step-item .roman-numeral {
    font-family: 'Times New Roman', Times, serif;
    font-size: 40px;
    color: black;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.step-item h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.step-item p {
    font-size: 17px;
    line-height: 1.4;
}

/* Desktop Grid layout */
@media (min-width: 900px) {
    .steps-grid {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .text-left { text-align: left; }
    .text-right { text-align: left; }
}

/* --- 4. DIME Promise Split Section --- */
.promise-section {
    padding: 80px 5%;
}

.promise-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

@media (min-width: 900px) {
    .promise-container {
        flex-direction: row;
        text-align: left;
    }
}

.promise-img {
    flex: 1;
}

.promise-img img {
    width: 100%;
    max-width: 570px;
    height: auto;
    object-fit: cover;
}

.promise-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers button and text on mobile */
    text-align: center;
}

@media (min-width: 900px) {
    .promise-text {
        align-items: flex-start; /* Aligns left on desktop */
        text-align: left;
    }
}

.promise-text h1 {
    margin-bottom: 30px;
    letter-spacing: -0.05em;
}

.promise-text p {
    margin-bottom: 30px;
    line-height: 1.4;
}

/* YOUR CUSTOM CURTAIN HOVER BUTTON */
.learn-btn {
    margin-top: 20px;
    padding: 16px 60px;
    font-size: 16px;
    background-color: black;
    color: white;
    border: 1px solid black;
    width: 300px;
    cursor: pointer;
    transition: all 0.45s ease;
}

.learn-btn:hover {
    box-shadow: inset -10.5em 0 0 0 white, inset 10.5em 0 0 0 white;
    color: black;
}

/* --- 5. About Founders --- */
.founders-img {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
    margin-top: 50px;
}

/* --- 6. The Black Quote Section --- */
.black-learn {
    background-color: #1e1e1e;
    padding: 80px 5% 40px;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quote-text {
    color: white;
    font-size: clamp(24px, 3vw, 34px);
    font-style: italic;
    max-width: 900px;
    margin-bottom: 20px;
}

.signature-img {
    max-width: 300px;
}

/* --- 7. Your Infinite Carousel --- */
.carousel-section {
    padding: 60px 0;
    background-color: white;
}

.carousel {
    overflow: hidden;
    width: 100%; /* Makes it span the whole screen */
    margin: 0 auto;
}

.wrap {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 250px;
    gap: 20px; /* Added a gap so images don't touch */
    justify-content: start; /* Keeps them lined up */
    animation: slide 15s linear infinite;
}

.wrap img {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
}

/* Your slide animation */
@media (prefers-reduced-motion: no-preference) {
    @keyframes slide {
        to {
            transform: translateX(calc(-4 * 270px)); /* Adjusted slightly for the 20px gap */
        }
    }
}

