/* Home page styles */
@font-face {
    font-family: 'cakefont';
    src: url('../font/cakedingbats-webfont.eot');
    src: url('../font/cakedingbats-webfont.eot?#iefix') format('embedded-opentype'),
    url('../font/cakedingbats-webfont.woff2') format('woff2'),
    url('../font/cakedingbats-webfont.woff') format('woff'),
    url('../font/cakedingbats-webfont.ttf') format('truetype'),
    url('../font/cakedingbats-webfont.svg#cake_dingbatsregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
body {

}
header {
    margin-bottom: 60px;
}
header h2{
    margin-left: 60px;
}
.about_us{
    margin-left: 60px;
    margin-right: 60px;
}
img {
    margin-bottom: 30px;
    max-width: 100%;
    height: auto;
}
h1 {
    font-weight: bold;
}
ul {
    list-style-type: none;
    margin: 0 0 30px 0;
    padding-left: 25px;
}
a {
    color: #0071BC;
    text-decoration: underline;
}
hr {
    border-bottom: 1px solid #e7e7e7;
    border-top: 0;
    margin-bottom: 35px;
}

.text-center {
    text-align: center;
}
.links a {
    margin-right: 10px;
}
.release-name {
    color: #D33C43;
    font-weight: 400;
    font-style: italic;
}
.bullet:before {
    font-family: 'cakefont', sans-serif;
    font-size: 18px;
    display: inline-block;
    margin-left: -1.3em;
    width: 1.2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: -1px;
}
.success:before {
    color: #88c671;
    content: "\0056";
}
.problem:before {
    color: #d33d44;
    content: "\0057";
}
.cake-error {
    padding: 10px;
    margin: 10px 0;
}
#url-rewriting-warning {
    display: none;
}

/* Hero banner styling */
.hero {
    position: relative;
    background-image: url('../img/preserve-the-earth.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    margin-bottom: 40px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
    color: white;
}
.hero p {
    font-size: 1.5rem;
    line-height: 1.4;
    max-width: 44rem;
    margin: 0.5rem auto 0;
}

/* Why choose us styling */
.why-choose-us {
    text-align: center;
    padding: 50px 20px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    height: auto;
    flex-wrap: wrap;
}

.card {
    background-color: #f0f8f5;
    border-radius: 10px;
    padding: 28px 32px;
    /* Wider than the 250px starting width so the short one-sentence copy
       in the first two cards doesn't leave empty space beside it. */
    width: 320px;
    max-width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.card-icon {
    width: 300px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: #555;
}

.landing-page-divider {
    height: 1px;
    background-color: #dddddd;
}

.about-sustain {
    height: 500px;
    width: 100%;
    display: flex;
    flex-direction: row;
}

.about-main, .about-description {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-main a {
    text-decoration: none;
    color: #000000;
    font-size: 18px;
}

.about-main h2 {
    font-size: 40px;
}

.description-text {
    margin-left: auto;
}

.about-description p {
    margin-left: 50px;
    color: #000000;
    font-size: 18px;
}

@media (max-width: 800px) {

    .about-sustain {
        flex-direction: column;
        height: auto;
    }

    .about-main,
    .about-description {
        width: 100%;
        padding: 30px 20px;
        box-sizing: border-box;
    }

    .about-main h2 {
        font-size: 30px;
    }

    .about-description p {
        margin-left: 0;
    }

    .description-text {
        margin-left: 0;
    }
}

.services {
    display: flex;
    height: 600px;
}

.service-title {
    width: 30%;
}

.service-title h2 {
    font-size: 40px;
}

.service-elements {
    width: 35%;
    display: flex;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
}

.service-elements p {
    color: #000000;
    font-size: 18px;
}

@media (max-width: 800px) {

    .services {
        flex-direction: column;
        height: auto;
        padding: 30px 20px;
        box-sizing: border-box;
    }

    .service-title,
    .service-elements {
        width: 100%;
    }

    .service-title {
        margin-bottom: 20px;
    }

    .service-title h2 {
        font-size: 30px;
    }

    .service-elements {
        flex-direction: column;
        align-items: flex-start;
        margin: 20px 0;
    }

    .service-elements p {
        font-size: 16px;
        margin-top: 15px;
    }
}

.stories {
    height: 700px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stories h2 {
    font-size: 40px;
}

.stories a {
    text-decoration: none;
    color: #000000;
    font-size: 25px;
}

.stories p {
    font-size: 18px;
    margin-top: 20px;
}

.storyline-1, .storyline-2 {
    display: flex;
    margin-top: 60px;
}

.story-1, .story-2, .story-3, .story-4 {
    width: 50%;
    margin-left: 10%;
    margin-right: 10%;
}

@media (max-width: 800px) {

    .stories {
        height: auto;
        padding: 40px 20px;
        box-sizing: border-box;
        align-items: flex-start;
    }

    .stories h2 {
        font-size: 30px;
    }

    .stories a {
        font-size: 22px;
    }

    .stories p {
        font-size: 16px;
    }

    .storyline-1,
    .storyline-2 {
        flex-direction: column;
        margin-top: 20px;
    }

    .story-1,
    .story-2,
    .story-3,
    .story-4 {
        width: 100%;
        margin: 20px 0;
    }
}

.discover {
    height: 600px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.subscribe {
    width: 50%;
}

.subscribe h2 {
    font-size: 40px;
}

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

@media (max-width: 800px) {

    .discover {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
        box-sizing: border-box;
        align-items: flex-start;
    }

    .subscribe {
        width: 100%;
        margin-bottom: 30px;
    }

    .subscribe h2 {
        font-size: 30px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icons img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }
}
