/* Wrapper for the entire carousel */
.carousel-wrapper {
    position: relative;
    width: 91%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 2vh;
}

/* Carousel inner container (holds all slides) */
.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Individual slide */
.carousel-slide {
    min-width: 100%;
    height: 500px;
    flex-shrink: 0;

    position: relative;
    /* Ensures stacking context for z-index */
    z-index: 1;

    background-position: center !important; 
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.carousel-slide h1 {
    color: white;
    margin-top: 150px;
    margin-left: 100px;
    position: relative;
    font-size: 36px;
    z-index: 999;
}

.carousel-slide p {
    color: white;
    margin-top: 100px;
    margin-left: 100px;
    margin-top: 10px;
    width: 30%;
    margin-bottom: 30px;
    font-size: 18px;
    z-index: 999;
}

.carousel-slide a {
    background-color: white;
    color: black;
    text-decoration: none;
    margin-left: 100px;
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 18px;
    z-index: 999;
}

.img-banner {
    height: 380px;
    width: 380px;
    float: right;
    top: 0 !important;
    right: 0;
    position: absolute;
    z-index: 9;
    margin-top: 4%;
    margin-right: 6%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Background colors for demo */
.slide1 {
    background-color: black;
}

.slide2 {
    background-color: lightblue;
    background: #ee0979;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #ff6a00, #ee0979);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #ff6a00, #ee0979);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

.slide3 {
    background-color: lightgreen;
    background: #654ea3;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to left, #eaafc8, #654ea3);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to left, #eaafc8, #654ea3);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

/* Map (bottom left corner) */
.map-indicator {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    z-index: 99;
}

.map-indicator div {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}

.map-indicator .active {
    background-color: #d5f5e3;
}

/* Arrow navigation (bottom right corner) */
.carousel-arrows {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 99;
}

.arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: white;
}



/* ------------------- hidden newsletter ------------------- */
.hidden-newsletter {
    padding-top: 4vh;
    padding-bottom: 4vh;
    text-align: center;
    display: none;
}

.hidden-newsletter h3 {
    font-weight: 300;
    font-size: 20px;
    letter-spacing: 4px;
}

.hidden-newsletter h1 {
    font-size: 35px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.hidden-newsletter p {
    font-size: 18px;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.hidden-news {
    font-size: 19px !important;
    width: 58%;
}

.hidden-news-btn {
    font-size: 19px !important;
}


/* -----------------------------PRODUCTS ---------------------------------*/
.products-wrapper {
    padding-top: 0vh;
    padding-left: 50px;
    padding-bottom: 4vh;
}

.products-wrapper h2 {
    margin-bottom: 10px;
    font-size: 30px;
    margin-top: 20px;
}

.head-desc {
    margin-bottom: 30px;
    font-size: 20px;
    color: #5E5E5E;
}

.free-tools-card-link {
    text-decoration: none;
    color: black;
}

.wrapper-pg {
    margin-top: -1.5vh;
}

.free-tool-card {
    border: 1px solid #E4E4E7;
    border-radius: 6px;
    width: 30%;
    display: inline-block;
    vertical-align: top;
    background-color: #FCFCFC;
    padding-top: 25px;
    padding-bottom: 20px;
    height: 100px;
    margin-bottom: 15px;
    margin-right: 1%;
}


.free-tool-card h3 {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.free-tool-card h3 span {
    border: 1px solid #E4E4E7;
    padding: 3px 5px;
    border-radius: 4px;
    margin-right: 5px;
    color: #5D5D5D;
}

.free-tool-card h3 span i {
    padding: 0px;
    margin: 0px;
    display: inline-block;
    vertical-align: middle;
    margin-top: -3px;
    font-size: 18px;
    font-weight: 400;
}

.free-tool-card p {
    margin-left: 20px;
    margin-right: 20px;
    color: #5D5D5D;
}

.free-tool-card:hover {
    background-color: black;
    border-color: black;
    color: white;
    transition: 0.2s;
}

.free-tool-card:hover span {
    color: white;
}

.free-tool-card:hover p {
    color: white;
}



.product-card {
    background-color: #EEEEEE;
    padding: 10px 15px;

    border-radius: 8px;
    width: 28%;
    display: flex;
    flex-direction: column;
    /* Align content in a column */
    justify-content: space-between;
    /* Ensures consistent spacing */

    /* Set a fixed height for all cards */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: inline-block;
    margin-bottom: 20px;
    margin-right: 1%;

    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
}

.product-card-link {
    text-decoration: none;
    color: black
}

.product-card img {
    height: 80px;
    display: inline-block;
    vertical-align: middle;
}

.product-card h3 {
    display: inline-block;
    vertical-align: middle;
    font-size: 25px;
    margin-left: 15px;
}

.product-card p {
    margin-top: 10px;
    margin-bottom: 5px;
}

.all-products-link {
    background-color: white;
    text-decoration: none;
    color: #28282A;
    text-align: center;
    padding: 10px 10px;
    width: 15%;
    display: block;
    font-size: 14px;
    border: 1px solid black;

    margin: 0 auto;
    margin-top: 15px !important;
}

#load-more-btn {
    width: 18%;
    margin-top: 25px !important;
}

.all-products-link:hover {
    background-color: black;
    color: white;
    transition: 0.2s;
    cursor: pointer;
}

/* --------------------------------- POST ---------------------------------*/

.posts-wrapper {
    padding-top: 7vh;
    padding-left: 50px;
    padding-bottom: 2vh;
}

.posts-wrapper h2 {
    margin-bottom: 20px;
    font-size: 30px;
    letter-spacing: 4px;
}


.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    width: 30%;
    display: flex;
    flex-direction: column;
    /* Align content in a column */
    justify-content: space-between;
    /* Ensures consistent spacing */
    height: 430px;
    /* Set a fixed height for all cards */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: inline-block;
    margin-bottom: 20px;
    margin-right: 2%;

    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.15);
}

.post-card-image img {
    width: 100%;
    height: 180px;
    /* Set a fixed height for the image */
    object-fit: cover;
    /* Ensures the image scales proportionally */
}

.post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Ensures content takes the remaining space */
}

.post-card-content h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.3;
    /* Prevents excessive height due to text wrapping */
}

.post-meta {
    font-size: 0.8rem;
    color: #999;


    border-top: 1px solid #EEEEEE;
    width: 85%;
    position: absolute;
    bottom: 0;
    margin-bottom: 10px;
    padding-top: 10px;
}

.post-meta .author {
    font-weight: bold;
}

.post-card-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: auto;
    /* Pushes other content to the bottom */
    line-height: 1.5;
    overflow: hidden;
    /* Hides excess text */
    text-overflow: ellipsis;
    /* Adds "..." if text overflows */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limits text to 3 lines */
    -webkit-box-orient: vertical;
}

.btn {
    align-self: flex-start;
    color: #4CAF50;
    text-decoration: underline;
    font-weight: 900;
    padding: 10px 00px;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}


/* --------------------------------- Archive ---------------------------------*/
.archive-header {
    text-align: center;
    padding-bottom: 30px;
}

.archive-link {
    text-decoration: none;
    color: black;
}

.archive-card {
    width: 55%;
    margin: 0 auto;
    margin-bottom: 55px;
}

.archive-card h2 {
    font-size: 24px;
    letter-spacing: normal !important;
    margin-bottom: 10px;
}

.archive-read-more {
    display: block;
    margin-bottom: 10px;
    color: #229954;
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
}

.archive-card p {
    border-top: 1px solid lightgrey;
    padding-top: 10px;
    margin-top: 15px;
}

/* Message wrapper section about me */

.message-wrapper {
    background-color: transparent;
    padding-top: 20vh;
    padding-bottom: 10vh;
    text-align: center;

}

.message {
    width: 50%;
    color: black;
    margin: 0 auto;
    text-align: left;
}

.message-img {
    background-color: lightgrey;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    margin-top: -4px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.message h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 20px;
}

.message p {
    font-size: 18px !important;
    margin-bottom: 20px;
}

.message ul,
ol {
    margin-left: 20px;
    font-size: 18px;
}

.message li {
    margin-bottom: 20px;
    
}

.CTA-link {
    background-color: black;
    border-radius: 25px;
    width: 50%;
    display: block;
    margin: 0 auto;
    margin-top: 40px;
    color: white;
    text-decoration: none;
    padding: 15px 0px;
    font-weight: 500;
}

.CTA-link:hover {
    background-color: lightgrey;
    color: black;
    transition: 0.2s;
}


/* ##################################################################### */

/* Mobile */
@media (max-width: 767px) {
    .products-wrapper {
        padding-left: 0px;
        text-align: center;
    }

    .product-card {
        padding: 10px 15px;
        width: 75%;
        display: block;
        margin-right: 0%;
        margin: 0 auto;
        margin-bottom: 20px;
        text-align: left;
    }

    .all-products-link {
        width: 60%;
        font-size: 14px;
    }

    #load-more-btn {
        width: 40%;
        margin-top: 15px;
    }

    .posts-wrapper {
        padding-left: 0px;
        text-align: center;
    }


    .post-card {
        width: 80%;
        height: 430px;
        display: block;
        margin-right: 0%;
        margin: 0 auto;
        margin-bottom: 20px;
        text-align: left;
    }

    .hidden-newsletter {
        display: block;
    }

    .archive-card {
        width: 90%;
        text-align: left;
    }

    .message {
        width: 80%;
    }

    .CTA-link {
        width: 90%;
    }

    .head-desc {
        width: 80%;
        margin: 0 auto;
        margin-bottom: 30px;
        ;
    }

    .free-tool-card {
        text-align: left;
        width: 80%;
        display: block;
        margin-right: 0%;
        margin: 0 auto;
        margin-bottom: 20px;
        height: auto;
        padding-bottom: 30px;
    }

    .carousel-slide {
        min-width: 100%;
        width: 100%;
        height: 550px;
    }

    .carousel-slide h1 {
        margin-top: 30px;
        margin-left: 30px;
        font-size: 36px;
    }

    .carousel-slide p {
        margin-top: 15px;
        margin-left: 30px;
        width: 80%;
        margin-bottom: 30px;
        font-size: 16px;
    }

    .carousel-slide a {
        margin-left: 30px;
    }

    .img-banner {
        height: 220px;
        width: 220px;

        top: unset !important;
        bottom: 0 !important;
        right: 0 !important;

        margin-right: 20px;
        margin-bottom: 60px;

    }



}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .hidden-newsletter {
        width: 65%;
        margin: 0 auto;
        display: block;
    }

    .products-wrapper {
        padding-left: 0px;
        text-align: center;
    }

    .product-card {
        padding: 10px 15px;
        width: 45%;
        display: block;
        margin-right: 0%;
        margin: 0 auto;
        margin-bottom: 20px;
        text-align: left;
    }

    .all-products-link {
        width: 35%;
        font-size: 14px;
    }


    #load-more-btn {
        width: 55%;
        margin-top: 15px;
    }

    .posts-wrapper {
        padding-left: 0px;
        text-align: center;
    }


    .post-card {
        width: 30%;
        height: 350px;
        display: inline-block;
        margin-right: 0%;
        margin: 0 auto;
        margin-bottom: 20px;
        text-align: left;
        margin-right: 1%;
        margin-left: 1%;
    }

    .post-card-image img {
        height: 120px;
    }

    .post-meta {
        font-size: 0.7rem;
        width: 90%;
    }


    .archive-card {
        width: 80%;
        text-align: left;
    }

    .message {
        width: 60%;
    }

    .CTA-link {
        width: 60%;
    }


    .free-tool-card {
        width: 45%;
        text-align: left;
        margin-left: 1%;
        margin-right: 1%;
    }

    .carousel-slide h1 {
        margin-top: 150px;
        margin-left: 50px;
    }

    .carousel-slide p {
        margin-left: 50px;
        width: 32%;
    }

    .carousel-slide a {
        margin-left: 50px;
    }

    .img-banner {
        height: 320px;
        width: 320px;

        margin-top: 10%;
        margin-right: 8%;
    }


}

/* Laptop */
@media (min-width: 1025px) and (max-width: 1440px) {}

/* 4K and larger screens */
@media (min-width: 1441px) {
    .products-wrapper {
        width: 60%;
        margin: 0 auto;
    }

    .posts-wrapper {
        width: 60%;
        margin: 0 auto;
    }

    .message {
        width: 35%;
    }

    .CTA-link {
        width: 35%;
    }

    .carousel-wrapper {

        width: 58%;

    }

}
