/* Basic Reset */
body, h1, h3, p, ul, li, form, input, textarea, button {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.1em;
    vertical-align: baseline;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}
body {
    background-image: linear-gradient(to bottom, #ffffff, #024992); 
    color: #024992;
    min-width: 385px;
}
/* -------------------------------------------------------------- */
header h1 {
    font-size: 2.5em;
    margin-bottom: 0.2em;
}
header h1 a {
    text-decoration: none;
}
header h2 {
    color: #ff0000;
    font-size: 2em;
    margin-bottom: 0.625em;
}

#top {
    padding: 0.5em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #024992;
    flex-wrap: wrap;
}
#top .top-left-group {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
#top .top-left-group li {
    margin: 0;
    padding: 0;
}
#top img {
    max-width: 200px;
    display: block;
    margin: 0;
    padding: 0;
}
#top .company-reg-no {
    font-size: 0.9em;
    white-space: nowrap;
    color: #024992;
    margin: 0;
}
#top nav {
    margin-left: auto;
}
#top nav ul {
    color: #024992;
    list-style: none;
    display: flex;
    gap: 1em;
}
#top nav ul li {
    padding-left: 0;
    display: inline-block;
    margin: 0;
}
#top nav ul li a {
    text-decoration: none;
    font-size: 1em;
    color: #024992;
    padding: 0.5em 0;
}
#top nav ul li a:hover {
    color: #ff0000;
}
@media (max-width: 768px) {
    #top {
        flex-direction: column;
        align-items: center;
        padding: 1em;
    }
    #top .top-left-group {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5em;
    }
    #top nav {
        width: 100%;
        margin-left: 0;
    }
    #top nav ul {
        flex-direction: column;
        gap: 0.5em;
        width: 100%;
        align-items: center;
    }
}
/* -------------------------------------------------------------- */
.ext_reference {
 font-size: 0.8em;
 font-style: italic;
}
/* -------------------------------------------------------------- */
#tagline {
    padding-top: 0;
    padding-bottom: 0;
    margin: 0 auto;
    color: #4E657A;
    text-align: center;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-content {
    flex: 0.5;
    min-width: 200px;
    text-align: left;
	position:relative;
}

#hero header p {
    margin-bottom: 1em;
    line-height: 1.4;
}

#hero a {
    background-color: #ff0000 ;
    display: inline-block;
    padding: 0.75em 1.5em;
    text-decoration: none;
    border-radius: 0.3125em;
    margin-top: 1.25em;
    font-weight: bold;
    font-size: 1em;
    color: #EBF5FF;
    transition: background-color 0.3s ease;
}

#hero a:hover {
    background-color: #024992 ;
    color: #EBF5FF;
}

.hero-static-image {
    flex: 1;
    max-width: 80%;
    height: auto;
    object-fit: contain;
    border-radius: 0.5em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 300px;
}


@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        text-align: center;
        padding: 2em 1em;
    }
    .hero-content {
        padding-right: 0;
        width: 100%;
        margin-bottom: 1.5em;
        text-align: center;
    }
    #hero header p {
        font-size: 1.6em;
    }
    .hero-static-image {
        max-width: 90%;
        min-width: auto;
    }
}

.hero-slideshow-container {
    flex: 1;
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 0.5em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 300px;
}

.hero-slide {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* -------------------------------------------------------------- */
.texture {
    /*position: relative;*/
}
.texture::before {
    /*content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/texture.png');
    background-repeat: repeat;
    background-position: left top;
    opacity: 0.50;
    pointer-events: none;
    z-index: 0;*/
}
/* -------------------------------------------------------------- */
/* General Section Styling (Same as previous revised version) */
section {
    padding: 3.75em 1.5em;
    margin: 0 auto;
    max-width: 1200px;
    font-size: 1em;
    background-color: #EBF5FF;
    border-bottom: 1px solid #CFE2F4;
    text-align: left;
}
section:last-of-type {
    border-bottom: none;
}

section header {
    text-align: center;
    margin-bottom: 2em;
}

section header p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0.5em auto 0;
    color: #4E657A;
}

section a {

    text-align: center;
    font-size: 1em;
    color: #ff0000 ;
    text-decoration: none;
    transition: color 0.3s ease;
}

section a:hover {
    color: #ff0000 ;
}


#legalstuff,
#services,
#form {
    color: #024992;
    background-color: #EBF5FF;
}
/* -------------------------------------------------------------- */
#legalstuff article {
    font-size: 1em;
    color: #024992;
}
#legalstuff article p {
    padding-left: 2em;
    margin-bottom: 1em;
}
#legalstuff article ul {
    list-style-type: disc;
    padding-left: 3em;
    margin-bottom: 1em;
}
#legalstuff article ul li {
    font-size: 1em;
    color: #024992;
    margin-bottom: 0.5em;
}
/* -------------------------------------------------------------- */
/* About Section (Same as previous revised version) */
#intro ul {
    list-style: none;
    padding: 0;
    margin: 1.25em 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1em;
    gap: 1.5em;
}
#intro ul li {
    line-height: 1.6;
    width: auto;
    min-width: 250px;
    max-width: 350px;
    border: 1px solid #CFE2F4;
    padding: 1.5em;
    border-radius: 0.5em;
    flex-grow: 1;
    font-size: 1em;
    background-color: #E5F0FF;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Responsive adjustment for collapse to flow */
@media (max-width: 768px) {
    #intro ul {
        flex-direction: column;
        align-items: center;
    }
    #intro ul li {
        width: 90%;
        margin: 0.625em 0;
        max-width: none;
    }
}
/* -------------------------------------------------------------- */
#services ul,
#products ul {
    list-style: none;
    padding: 0;
    margin: 1.25em 0;
    display: flow;
    flex-wrap: wrap;
    justify-content: flex-start;
    font-size: 1em;
}
#services ul li,
#products ul li {
	position: relative;
	z-index : 1;
    width: 90%;
    border: 0.0625em solid #3FF4FDFF;
    padding: 0.9375em;
    margin: 0.625em;
    border-radius: 0.3125em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 1em;
	background-color: #EBF5FF;
}
#services ul li .service-group ,
#products ul li .products-group{
    text-align: left;
    flex-grow: 1;
    margin-right: 0.9375em;
    font-size: 1em;
}
#products ul li .products-group h3{
    color: #024992;
}
#services ul li img,
#products ul li img {
    max-width: 25em;
    height: auto;
    margin-left: 0.9375em;
}

@media (max-width: 768px) {
    #services ul,#products ul {
        flex-direction: column;
        align-items: stretch;
    }
    #services ul li, #products ul li {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    #services ul li .service-group, #products ul li .products-group {
        margin-right: 0;
        margin-bottom: 0.625em;
    }
    #services ul li img,#products ul li img {
        max-width: 100%;
        margin-left: 0;
        margin-top: 0.625em;
    }
}
/* -------------------------------------------------------------- */
/* How2Start Section (Same as previous revised version) */
#how2start ol {
    list-style: none;
    padding: 0;
    margin: 1.25em 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1em;
    gap: 1.5em;
}
#how2start ol li{
	position: relative;
	z-index : 1;
    background-color: #EBF5FF;
    line-height: 1.6;
    width: auto;
    min-width: 250px;
    max-width: 350px;
    border: 1px solid #CFE2F4;
    padding: 1.5em;
    border-radius: 0.5em;
    flex-grow: 1;
    font-size: 1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
}
#how2start p {
    padding: 0;
    margin: 1.25em 0;
    text-align: center;
    justify-content: center;
    font-size: 1em;
}
/* Responsive adjustment for collapse to flow */
@media (max-width: 768px) {
    #how2start ol{
        flex-direction: column;
        align-items: center;
    }
    #how2start ol li{
        width: 100%;
        margin: 0.625em 0;
        max-width: none;
    }
}
/* -------------------------------------------------------------- */
/* Service Group (inside Services section) (Same as previous revised version) */
.service-group {
    margin-bottom: 0;
    text-align: left;
    font-size: 1em;
}
.service-group h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: #024992;
}
.service-group p {
    line-height: 1.7;
    margin-bottom: 1em;
    font-size: 1em;
    color: #4E657A;
}
.service-group a {
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 0.3125em;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    color: #EBF5FF;
    background-color: #ff0000 ;
    transition: background-color 0.3s ease;
}
.service-group a:hover {
    background-color: #ff0000 ;
    color: #EBF5FF;
}

/* Form Section (Same as previous revised version) */
#form header p {
    margin-bottom: 1.5em;
    font-size: 1em;
    color: #4E657A;
}
#form {
    margin: 0 auto;
    font-size: 1em;
    background-color: #EBF5FF;
    padding: 3.75em 1.5em;
}
#form form {
	position: relative;
    max-width: 500px;
    margin: 1.875em auto;
    text-align: left;
    padding: 2em;
    border: 1px solid #CFE2F4;
    border-radius: 0.5em;
    font-size: 1em;
    background-color: #E5F0FF;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	z-index: 2;
}

#form label {
    display: contents;
    font-weight: bold;
    margin-bottom: 0.5em;
    font-size: 1em;
    color: #024992;
}
#form input[type="checkbox"] {
    margin-right: 0.3125em;
    vertical-align: middle;
    font-size: 1em;
}
#form input[type="text"],
#form input[type="email"],
#form textarea {
    width: 100%;
    padding: 0.8em;
    margin-bottom: 1.2em;
    border: 1px solid #CFE2F4;
    border-radius: 0.3em;
    font-size: 1em;
    background-color: #EBF5FF;
    color: #024992;
}
#form textarea {
    resize: vertical;
    font-size: 1em;
    min-height: 100px;
}
#form button[type="submit"] {
    padding: 0.8em 1.8em;
    border: none;
    border-radius: 0.3125em;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    background-color: #ff0000 ;
    color:#EBF5FF;
    transition: background-color 0.3s ease;
}
#form button[type="submit"]:hover{
    background-color: #024992 ;
    color: #EBF5FF;
}
/* -------------------------------------------------------------- */
footer {
    padding: 2.5em 1.5em;
    font-size: 0.9em;
    color: #EBF5FF;
    border-top: none;
    text-align: center;
}
footer #bottom {
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5em;
}
#footer .contact-info {
    font-size: 1em;
    color: #EBF5FF;
    text-align: center;
}
.contact-info a{
    color: #EBF5FF;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info a:hover{
    color: #ff0000 ;
}

.social-icons {
    gap: 1em;
}
.social-icons a img {
    object-fit: contain;
    border-radius: 50%;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
}
.footer-links ul li {
    margin: 0;
    font-size: 0.9em;
}

.footer-links ul li a {
    text-decoration: none;
    color: #EBF5FF;
}
.footer-links ul li a:hover {
    color: #ff0000 ;
}
.copyright {
    margin-top: 0.5em;
    color: #EBF5FF;
    font-size: 0.85em;
}
@media (max-width: 768px) {
    footer #bottom {
        gap: 1em;
    }
    .footer-links ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
    }
}