*, *::before, *::after {
    box-sizing: border-box;
}
* {
    margin: 0;
}
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}
input, button, textarea, select {
    font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}
#root, #__next {
    isolation: isolate;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    font-family: Arial, sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #fff;
}

header {
    background-color: #f4f4f4;
    padding: 20px;
    text-align: center;
    display: flex;
}

#slogan {
    text-align: center;
}

#slogan p:first-of-type {
    font-size: 4em;
    margin: 10px 0 0 0;
}

#slogan p:nth-of-type(2) {
    font-size: 2.5em;
    margin: 20px 0 0 0;
    font-weight: bold;
}

header p:first-of-type {
    font-size: 2em;
    font-weight: bold;
    margin: 16px 0 8px 0;
}

header p:nth-of-type(2) {
    font-size: 1.8em;
    font-weight: bold;
}

header img {
    width: 100px;
}

header .navigation-bar {
    margin: 0 auto;
    display: flex;
}

header .logo-container {
    max-width: 100%;
}

.content-section {
    padding: 20px;
}

.content-section img {
    max-width: 100%;
}

.image-left, .image-right {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.text p:first-of-type {
    font-size: 1.5em;
    font-weight: bold;
    margin: 16px 0 8px 0;
}

.image-right .text {
    width: 40%;
    padding: 20px;
    font-size: 1.8em;
}

.image-left .text {
    width: 50%;
    padding: 0 0 0 5em;
    font-size: 1.8em;
}

.image-left .image-container {
    width: 600px;
}

.grid-session {
    background-size: cover;
    background-image: url('../images/background-box.jpg');
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;  
    overflow: hidden; 
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    padding: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch;
    padding-right: 20px; 
}

.feature-grid::-webkit-scrollbar {
    display: block; 
}

.feature-box {
    background-color: white;
    border-radius: 8px;
    padding: 35px 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    min-width: 80%;
    scroll-snap-align: start; 
    transition: background 0.3s ease, color 0.3s ease;
}

.feature-box .icon {
    font-size: 40px;
    color: #333; 
    margin-bottom: 15px;
}

.feature-box p:first-of-type {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.feature-box p {
    color: #666;
}

.feature-box:hover {
    background: linear-gradient(45deg, #ff7e5f, #57b4e4);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.feature-box:hover h3, .feature-box:hover p {
    color: white; 
}

.feature-box:hover .icon {
    color: white; 
}

.cta-btn {
    font-family: 'Arial', sans-serif;
    background-color: #ff6f61; 
    color: white;
    padding: 10px 60px;
    border-color: #ffffff;
    border-width: 1px;
    border-style: solid;
    border-radius: 75px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 5px 5px 0 0 #231815ff; 
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 1em 14px;
}

.cta-btn:hover {
    background: linear-gradient(45deg, #ff7e5f, #57b4e4);
    color: #fff; 
    box-shadow: 5px 5px 0 0 rgba(0, 0, 0, 0.2);
}

.main-heading-button {
    font-size: 33px;
    font-weight: bold;
    margin: 15px 0 15px 0;
}

.sub-heading {
    font-size: 20px;
    margin: 0 0 15px 0;
}

.cta-btn-2 {
    display: inline-block;
    width: 200px; 
    height: 100px; 
    border-radius: 50px 50px 50px 50px; 
    background-color: #ff6f61; 
    text-align: center; 
    font-size: 1em;
    color: white; 
    font-weight: bold; 
    transition: background-color 0.3s ease;
    margin: 15px 0 0 0;
}

.cta-btn-2:hover {
    background-color: #ff9288; 
}

.background-section {
    background-image: url('../images/background-footer.jpg');
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
    color: #f4f4f4;
    font-size: 2em;
    padding: 30px 10px; 
    text-align: center;
    width: 100%;
    min-height: 250px; 
}

.background-section p:first-of-type {
    font-size: 1.5em;
    font-weight: bold;
    margin: 15px 0;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 400px;
}

.slides {
    display: flex;
    transition: transform 1s ease-in-out;
    height: 100%;
}

.slide {
    width: 100%; 
    flex-shrink: 0;
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.361);
    padding: 20px;
    border-radius: 10px;
}

.caption > p:nth-of-type(-n+2) {
    font-size: 1.9em;
    margin: 10px 0 0 0;
}

.carousel-button {
    display: inline-flex;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    background-color: #007BFF;
    position: relative;
    align-items: center;
    margin-top: 10px;
    padding: 10px 22px;
    font-size: 1.3em;
}

.carousel-button:hover {
    background-color: #0056b3;
}

.btn-arrow-icon {
    background: #ff6f61;
    border-radius: 40px;
    height: 30px;
    width: 30px;
    position: absolute;
    right: -14px;
    bottom: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease;
    color: #ffffff;
}

.btn-arrow-icon svg {
    width: 1em;
    fill: none;
    stroke-width: 2px; 
}

@media only screen and (max-width: 540px) {
    .caption {
        font-size: 0.7em;
    }

    .btn-arrow-icon {
        bottom: 8%;
    }

    .carousel {
        height: 200px;
    }
}

@media only screen and (max-width: 1024px) {
    .image-left .text {
        padding: 0 0 0 2em;
    }
}

@media only screen and (max-width: 540px) {
    header .logo-container {
        padding: 30px 0;
    }

    #slogan {
        font-size: 0.7em;
        padding: 20px 0 5px 0;
    }

    .content-section {
        padding: 0; 
    }

    .image-left .image-container {
        width: 100% !important;
    }
    
    .image-left, .image-right {
        display: inline-block;
    }

    .image-left .text, .image-right .text {
        width: 100%;
        padding: 15px;   
    }

    .feature-grid {
        display: inline-flex;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
        overflow-x: auto; 
        gap: 76px; 
    }  

    .feature-box {
        max-width: 10px; 
    }

    .background-section {
        font-size: 1.5em;
    }

    .cta-btn-2 {
        width: 150px;
        height: 70px;
    }
}

@media only screen and (max-width: 430px) {
    .feature-grid {
        gap: 54px; 
    }

    .cta-btn-2 {
        width: 135px;
        height: 60px;
    }
}

@media only screen and (max-width: 380px) {
    .feature-grid {
        gap: 44px; 
    }
}