/* Mobile first */

/* Global */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff; /*#a49d8a;*/
}
a, a:visited{
    color: #007078;
    font-weight: bold;
    text-decoration: none;
}
a:hover, a:active {
    color: #f15a29;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/* Header */
.header {
    background-image: url('img/reefshield-header.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 20px;
    height: 360px;
    position: relative;
}
.header .logo {
    position: relative;
    top: 10px;
    left: 10px;
    width: 200px;
    height: auto;
}
.header h1 {
    width: 300px;
    padding: 100px 0 0 0;
    color: #fff;
    font-size: 1em;
    font-weight: normal;
}

/* Slideshow container */
.slideshow {
    position: relative;
}
.how-it-works {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    color: #fff;
    background-color: #f15a29;
    padding: 10px;
    margin: 0;
    font-size: 1em;
    font-weight: bold;
}
.pagination {
    position: absolute;
    top: 0;
    right: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
}
.pagination .dot {
    padding: 5px 10px;
    margin: 0 5px;
    background-color: transparent;
    cursor: pointer;
    color: #fff;
    font-size: 1.5em;
    font-weight: 800;
}
.pagination .dot.active {
    color: #f15a29;
}
.slides {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}
.slides .slide {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    transform: translateX(100%);
    transition: transform 0.5s ease;
}
.slides .slide.active {
    transform: translateX(0);
    z-index: 1;
}
.slides .slide.exit {
    transform: translateX(-100%);
    z-index: 0;
}
.slides .slide img {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
}
.slides .slide p {
    grid-area: 1 / 1;
    justify-self: center;
    width: 80%;
    margin: 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #aba8a1;
    font-size: .8em;
    text-align: center;
    border-radius: 6px;
}
/* For slides that should be aligned at the top, add margin-top */
.slides .slide:nth-child(2) p,
.slides .slide:nth-child(3) p {
    align-self: start;
    margin-top: 60px;
}
/* For slides that are meant to have other positions, explicitly set them */
.slides .slide:first-child p, .slides .slide:nth-child(4) p {
    align-self: end;
    margin: 0 0 5px 0;
}
.slides .slide:last-child p {
    align-self: center;
}

/* Alert */
.alert {
    background-color: #FFF;  /* #f15a29; */
    padding: 20px;
    color: #000;
    text-align: center;
}

/* Quote */
.quote {
    background-image: url('img/reefsheild-floor.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 20px 40px;
    height: 320px;
    position: relative;

    font-weight: bold;
    color: #fff;
}
.quote h1 {
    font-size: 1.5em;
    font-style: italic;
    padding-bottom: 20px;
    border-bottom: #f15a29 10px solid;
}

/* Design  */
.design  {
    background-color: #A8A498;
    margin: 0;
    padding: 0 1em;
}

.design img {
    display: block;
    margin: 0 auto;
    padding: 0;
}

/*Template */
.template {
    background-color: #fff;
    color: #007078;
    color: #353535;
    margin: 0;
    padding: 1em 10px 5em 10px;
}
.template .t-intro {
    margin: 0;
    padding: 2em;
}
.template .t-intro .icon-heading {
    font-weight: bold;
    text-transform: uppercase;
}
.template .t-intro .cc {
    font-size: .8em;
    font-style: italic;
}
.template .columns {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.template .columns p {
    margin: 0;
    font-size: .8em;
    box-sizing: border-box;
}
.template .columns p:nth-child(1) {
    text-align: right;
    flex: 0 0 calc(20% - 6.67px); /* Adjusted for gap */
}

.template .columns p:nth-child(2) {
    flex: 0 0 calc(10% - 6.67px); /* Adjusted for gap */
}

.template .columns p:nth-child(3) {
    flex: 0 0 calc(70% - 6.67px); /* Adjusted for gap */
    padding: 0 5em 1em 0;
}
.icon-container {
    display: flex;
    align-items: center;
    gap: 20px;
}
.icon-text {
    display: flex;
    flex-direction: column;
}
.icon-text p {
    margin: 0;
}
.icon-cal {
    transition: opacity 0.2s ease-in-out;
}
.icon-cal:hover {
    content: url("img/icon-cal_.png");

}

/* Footer */
footer {
    background-color:#353535;
    color: #666;
    text-align: center;
    padding: 10px 5px;
    font-size: .8em;
}

/* Tablet */
@media (min-width: 768px) {
    .header h1 {
        padding: 50px 0 0 27px;
        width: 420px;
    }
    .header .logo {
        width: 300px;
    }
    .how-it-works {
        font-size: 1.5em;
    }
    .pagination {
        right: 40px;
    }
    .slides .slide p {
        font-size: 1.5em;
        width: 50%;
    }
    .slides .slide:first-child p, .slides .slide:nth-child(4) p {
        align-self: end;
        margin: 0 0 50px 0;
    }
    .pagination .dot {
        font-size: 2em;
    }
    .quote {
        height: 250px;
        padding: 50px;
    }
    .quote h1 {
        font-size: 2em;
    }
    .quote p {
        font-size: 1.5em;
    }
    .design img {
        max-width: 600px;
    }
    .t-intro {
        max-width: 700px;
    }
    .template .columns {
        gap: 20px;
    }
    .template .columns p {
        font-size: 1em;
    }
    .template .columns p:nth-child(1) {
        flex: 0 0 calc(20% - 20px);
    }
    .template .columns p:nth-child(2) {
        flex: 0 0 calc(10% - 20px);
    }
    .template .columns p:nth-child(3) {
        flex: 0 0 calc(60% - 20px);
    }
}

/* Desktop */
@media (min-width: 1200px) {
    /* Increase header title width and set a font-size override */
    .header h1 {
        width: 700px;
        font-size: 1.5em;
    }
    /* Adjust Quote block for Desktop */
    .quote {
        height: 150px;
        padding: 200px;
    }
    .quote h1 {
        font-size: 3em;
    }
    .quote p {
        font-size: 2em;
    }
    /* Increase font-size in template columns */
    .template .columns p {
        font-size: 1em;
    }
}


