/* Google Font Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
}

:root{
    /* ===== Colors ===== */
    --body-color: #f8f9fb;

    /* ====== Transition ====== */
    --tran-03: all 0.2s ease;
}

body {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-color);
}

/* Style the logo*/
.logo-container {
    margin-left: 15px;
    padding: 1%;
}

.logo-image {
    display: block;
    height: 48px;
}

a { text-decoration: none; color: inherit; }

/* ---- Top Navbar section -----*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-menu a{
    font-weight: 500;
    color: #444;
    margin: 0 10px;
    padding: 0.4em 1em;
    border-radius: 0.2em;
}

.navbar a:hover{
    background-color: rgb(231, 237, 253);
    color: black;
}

.navbar a.active{
    background-color: rgb(231, 237, 253);
    color: black;
}

.navLowMargin {
    margin-top: 10%;
}

.bar {
    width: 20px;
    height: 3px;
    background-color: black;
    margin: 4px auto;
}

.menu-icon {
    display: none;
}

/* ---------- Style the Navbar for mobile view ---------- */
/* Style the nav bar on mobile view*/
@media only screen and (max-width: 750px) {
    .navbar {
        flex-direction: column;
    }

    .logo-container {
        width: 100%;
    }

    .mylogin {
        position: absolute;
        margin-top: 10px;
        margin-left: 20%;
    }

    .nav-menu {
        display: none;
        margin-top: 10px;
        width: 90%;
        background-color: #E5E5E5;
        border-radius: 5px;
    }

    .menu-item {
        display: block;
        width: 90%;
        padding: 5px 0;
        text-align: end;
    }
    
    .menu-icon {
        display: block;
        position: absolute;
        top: 20px;
        right: 5%;
    }

    .menu-icon:hover .bar {
        background-color: darkcyan;
    }
    
    .active {
        display: block;
    }
}

/* Style the nav bar logo on small mobile view*/
@media only screen and (max-width: 500px){
    .logo-image {
    width: 30%;
    }
}


/* ---------- Banner Section ---------- */
.bannerContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.bannerItem {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bannerText {
    max-width: 550px;
}

.textLeft {
    text-align: left;
}

.bannerText h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.bannerText h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.bannerText p {
    font-size: 18px;
    color: #555;
}

.colorHighlight {
    color: royalblue;
    font-weight: 500;
}

.bannerImage {
    width: 450px;
    height: 350px;
    border-radius: 20px;
}

/* Default order (Desktop) */
.itemA {
    order: 1;
}
.itemB {
    order: 2;
}

/* Style the Register button */
.registerbtn {
    color: whitesmoke;
    background-color: royalblue;
    font-weight: 600;
    padding: 0.8em 1.2em;
    border: none;
    border-radius: 0.5em;
    margin-right: 20px;
    margin-left: 10px;
    cursor: pointer;
}

.registerbtn:hover {
    background-color: rgb(190, 204, 246);
    color: black;
    border: none;
}


/* ---------- Zalp features section ---------- */
.productContainer, .productContainer2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 30px;
    width: 80%;
    margin: auto;
}

.headngItem {
    width: 90%;
    font-size: 26px;
    font-weight: 600;
    text-align: left;
}

.fourItem {
    width: calc((100% - 90px) / 4);
    max-width: 315px;
    min-width: 242px;
    box-sizing: border-box;
    padding: 20px;
    background: white;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.fourItem h4 {
    color: rgb(6, 6, 134);
    margin-bottom: 3%;
}
  
.fourItem p {
    font-size: 0.9rem;
}
  
.uspImg{
    width: 25%;
    height: 30%;
}

/* ---- Arrow Buttons ------ */
.nav-buttons {
    display: flex;
    gap: 10px;
}

.arrow-btn {
  width: 40px;
  height: 40px;
  background: #4a4cff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.arrow-btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.arrow-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

/* ------ Snap Scroll Slider ------ */
.training-container {
    width: 80%;
    margin: auto;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

/* Hide scrollbar */
.training-container::-webkit-scrollbar { 
    display: none;
 }

.training-container { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.training-card {
    scroll-snap-align: start;
    width: 270px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.training-img {
    width: 100%;      /* or fixed width like 200px */
    height: auto; /* keeps aspect ratio */
    max-height: 150px;
    object-fit: cover; /* or contain depending on need */
    flex-shrink: 0;  /* prevents shrinking if needed */
    border-radius: 5px;
}

.training-text {
    color: royalblue;
    text-align: left;
    padding: 5px;
    font-weight: 500;
}


/* ---------- Style the Login form ------------ */
.formContainer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.loginForm {
    width: 40%;
    margin: 0 auto;
    margin-top: 4%;
    background: white;
    padding: 2%;
    border-radius: 10px;
}

.formHeading{
    text-align: left;
    border-bottom: 1px solid gray;
    padding-bottom: 5px;
}

.loginForm input[type="radio"]{
  margin: 0 10px 0 10px;
}

.formItem {
    width: 52%;
    box-sizing: border-box;
    align-items: center;
    text-align: left;
}

.textBox {
    width: 100%;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 1px solid lightgray;
    border-radius: 5px;
}

.loginbtn {
    color: white;
    background: linear-gradient(to right,#00a2ed, blue);
    border: none;
    font-weight: 600;
    padding: 0.6em 1.8em;
    border-radius: 3em;
    cursor: pointer;
}

/* Style forget password*/
.forgetpwd {
    margin-top: 2%;
}

.forgetpwd a {
    font-size: 0.9rem;
    text-decoration: none;
    color: blue;
}

/* style the password reset response */
.resetResponse {
    display: none;
}


/* ---------- Style the Registration form ------------ */
.inputForm {
    margin: 0 auto;
    width: 70%;
    background: white;
    padding: 2%;
    border-radius: 10px;
}

.formHeading{
    text-align: left;
    border-bottom: 1px solid gray;
    padding-bottom: 5px;
}

.formItem {
    width: 40%;
    box-sizing: border-box;
    align-items: center;
    text-align: left;
}

.textBox {
    width: 100%;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 1px solid lightgray;
    border-radius: 5px;
}

.message {
        font-size: 13px;
        margin-top: 5px;
}

.success {
    color: green;
}

.error {
    color: red;
}

/* Style the spinner*/
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ---------- Footer Section ---------- */
footer {
    margin-top: 50px;
    padding: 40px 60px;
    background: #222;
    color: #aaa;
    text-align: center;
}

.footerIcon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 1%;
}
  
.footerImg {
    font-size: 30px;
}

.info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1%;
    gap: 35px;
}

.infoItem {
    font-size: 1rem;
}


/* Design for the mobile view */
@media only screen and (max-width: 750px) {
    .bannerItem {
        width: 100%;
        flex-direction: column;
        margin-top: 5%;
    }
    .bannerText {
        width: 90%;
    }
    .bannerText h1 {
        font-size: 2.5rem;
    }
    .bannerImage {
        width: 90%;
    }
    .itemA {
        order: 2;
    }
    .itemB {
        order: 1;
    }
    .productContainer {
        width: 90%;
    }
    .productContainer2 {
        justify-content: center;
        width: 90%;
    }
    .headngItem {
        width: 72%;
        font-size: 1.2rem;
        text-align: center;
    }
    .fourItem {
        width: 100%;
    }
    .training-container {
        width: 90%;
    }
    .footer {
        width: 90%;
    }
    .loginForm {
        width: 90%;
        margin-top: 15%;
    }
    .formItem {
        width: 90%;
    }
    .inputForm {
        width: 90%;
        margin-top: 15%;
    }
}