* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Teachers', sans-serif;
    color: #333;
    line-height: 1.6;
    background: linear-gradient(to bottom, #E8F4F8, #F5F5F5);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 5%;

}

.hero-section h1 {
    font-family: "HandyCasual", "Happy monkey", sans-serif;
    letter-spacing: 3px;
    font-size: 4rem;
    color: #5DADE2;
    margin-bottom: 0.5rem;
    animation: fadeIn 1s ease-in;
}

/* Decorative Cloud */
.cloud-decoration {
    width: 150px;
    margin: 2rem auto;
    animation: float 3s ease-in-out infinite;
}

/* Why Content Section */
.why-content-section {
    max-width: 1200px;
    width: 100%;
    margin: 3rem auto;
    padding: 0 5%; /* edit this - padding: 3 5% */
    animation: slideUp 0.8s ease-out;
}

.why-text-box {
    background: #faf5f2;
    color: #5d4b4b;
    padding: 2.5rem;
    border-radius: 100px;
    border: 3px solid #8B5CF6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif;
    letter-spacing: 1px;
    font-size: 1.5rem;
    line-height: 1.8;
}

.why-text-box strong {
    font-size: 1.1rem;
}

.why-text-box p {
    margin-bottom: 1rem;
}

/* Pillars Section */
.pillars-section {
    padding: 3rem 5%;
    background: #faf5f2;
    text-align: center;
    border-radius: 20px;
    border: 3px solid #8B5CF6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    /* <-- centers the whole section */
    border-radius: 100px;
}

.pillars-section h2 {
    font-family: "HandyCasual", "Happy Monkey", sans-serif;
    letter-spacing: 3px;
    font-size: 2.5rem;
    color: #5d4b4b;
    margin-bottom: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pillars-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.pillar-card {
    background: #ebe5e5;
    padding: 1.5rem;
    border-radius: 30px;
    width: calc(50% - 2rem);
    /* two per row */
    max-width: 500px;
    /* keeps them from getting too wide */
    text-align: center;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
    overflow: visible;
    margin-bottom: 100px
}

.pillar-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pillar-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pillar-card:nth-child(3) {
    animation-delay: 0.3s;
}

.pillar-card:nth-child(4) {
    animation-delay: 0.4s;
}

.pillar-card:hover {
    transform: translateY(-5px);
}

.pillar-card img {
    width: auto;
    height: auto;
    max-width: 250px;
    transition: transform 0.3s ease;
    transform: translateY(-40px);
    transform-origin: center;
}

.pillar-card:hover img {
    transform: translateY(-20px) scale(1.1);
}

/* Wrapper around image + title */
.pillar-card-titles {
    position: relative;
    display: inline-block;
    width: 250px;
    /* Keeps all images same width */
    overflow: visible;
    /* <-- IMPORTANT: allow image to expand */
    margin-top: -100px;
}

/* Shift image upward */
.pillar-card-titles img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(0px);
    /* adjust this value as needed */
}

/* Center the title in the middle of the image */
.pillar-card-titles h3 {
    position: absolute;
    top: 50%;
    /* vertical center */
    left: 50%;
    /* horizontal center */
    transform: translate(-50%, -50%);
    margin: 0;
    color: white;
    font-family: "HandyCasual", "Happy monkey", sans-serif;
    letter-spacing: 3px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    width: 80%;
    text-shadow: 0px 2px 12px rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.pillar-card p {
    font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif;
    letter-spacing: 1px;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #5d4b4b;

}

/*********************************** Values Section */
/* Values Section */
.values-section {
    padding: 3rem 5%;
}

/* Container: two columns flex layout */
.values-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.values-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Left side: image + overlay text */
.values-left {
    flex: 2;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem;
    min-height: 400px;
}

/* Image */
.values-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    border-radius: 30px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

/* Overlay text on left image */
.values-left-text {
    background: #ebe5e5;
    padding: 1.5rem 2rem;
    border-radius: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
    min-width: 350px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values-left-text p {
    font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif;
    letter-spacing: 1px;
    font-size: 1.5rem;
    line-height: 1.6rem;
    margin-bottom: 1rem;
    /* optional spacing between paragraphs */
    color: #5d4b4b;
    /* ensures consistent text color */
}

.values-left-text:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Right side: text block */
.values-right {
    flex: 1;
    /*background: #eee9f7;*/
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    /*border-radius: 30px;*/
    min-height: 400px;
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
}

.values-right:hover {
    transform: scale(1.05);
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);*/
}

/* Right side overlay text */
.values-right-text {
    background: #ebe5e5;
    color: #5d4b4b;
    padding:
        /*1.5rem*/
        2rem;
    border-radius: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    z-index: 1;
    /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);*/
    min-width: 800px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values-right-text p {
    font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif;
    letter-spacing: 1px;
    font-size: 1.5rem;
    line-height: 1.5rem;
    /*margin-bottom: 1rem;
    /* optional spacing between paragraphs */
    color: #5d4b4b;
    /* ensures consistent text color */
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .values-container {
        flex-direction: column;
        align-items: center;
    }

    .values-left {
        min-height: 300px;
        padding: 1rem;
    }

    .values-left-text {
        width: 80%;
        bottom: 10px;
        right: 10%;
    }

    .values-right {
        min-height: 300px;
        margin-top: 2rem;
    }

    .values-right-text {
        position: relative;
        transform: none;
        min-width: auto;
        text-align: center;
        max-width: 100%;
    }
}

/*************** Animations ************************/
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive page layout for user */
@media (max-width: 968px) {
    .pillars-container {
        flex-direction: column;
        align-items: center;
    }

    .values-container {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Additional breakpoints: 1200 / 900 / 480 for consistent section widths and spacing */
@media (max-width: 1200px) {
    /* Slightly reduce large paddings and container sizes */
    .hero-section, .why-content-section, .pillars-section, .values-section {
        padding-left: 4%;
        padding-right: 4%;
    }
    .pillars-container { gap: 1.5rem; }
    .pillar-card { width: calc(50% - 1.5rem); }
    .values-left-text { min-width: 320px; }
    .values-right-text { min-width: 420px; }
}

@media (max-width: 900px) {
    /* Single column layout for pillars and tighter cards */
    .pillars-section { padding: 2.5rem 4%; }
    .pillars-container { gap: 1rem; }
    .pillar-card { width: 100%; max-width: 100%; margin-bottom: 40px; }
    .pillars-section h2 { margin-bottom: 40px; }
    .values-left { min-height: 260px; }
    .values-left-text { min-width: 260px; width: 100%; }
    .values-right-text { min-width: auto; width: 100%; }
}

@media (max-width: 480px) {
    .pillars-section { padding: 2rem 3%; }
    .pillars-section h2 { font-size: 1.6rem; margin-bottom: 24px; }
    .why-text-box { padding: 1.25rem; }
    .values-left { padding: 1rem; min-height: 200px; }
    .values-right { padding: 1rem; min-height: 200px; }
    .values-left-text, .values-right-text { min-width: auto; width: 100%; }
}