body {
    background-color: #151525;
    color: white;
    font-family: "Roboto", sans-serif;
    
}

h1 {
        font-size: clamp(1.5rem, 5vw, 3rem);
}
p {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
}
.navbar {
    top: 20px;
    right: 15px;
    position: absolute;
    display: flex;
    gap: 8px;
    z-index: 10;
}


.navbar button {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
}

    .header-picture p{
    font-size: 1.5rem;
}
body h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

body p {
    font-size: clamp(1rem, 3vw, 1.25rem);
}

.header-picture {
    position: relative;
    display: flex;
    justify-content: center;  /* vertical center */
    align-items: center;      /* horizontal center */
    text-align: center;
    min-height: 50vh;         /* make section tall enough */
    overflow: hidden;
}
.header-picture img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.header-picture::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.header-title {
    position: relative;
    z-index: 2; /* above overlay */
    max-width: 90%;
    padding: 1rem;
    color: #F5F9FF;
}

.small-text {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    line-height: 1.4;
}


.header-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-picture::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4)
}
.small-text {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    display: block;
}
.header-title {
    position: absolute;
    top: 30%; /* or use top:50% for center */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}




.email, .phone {
    align-self: center;
}

.LearnWrapper{
    background-color: #8A98C9;
    color: white;
    padding: 9%;
    padding: 1.4rem;


    
}
.SupplySourcing{
    padding: 1.4rem;
    background-color: #abb8e6;
    height: 15rem;
}
.ExpertSupport{
    padding: 40px;
    background-color: #8A98C9;
}
.QualityAssurance{
        padding: 40px;
    background-color: #abb8e6;

}

.contact-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;

}

.center-contact
{
    display: flex;
    text-align: center;
    justify-content: flex-end; /* Push to the right */
    align-self: center;
}

.ContactUs{
    width: 80%;
    text-align: center;    
}

textarea {
    height: 100%;
    width: 100%;
    border-radius: 20px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box
}
.send-message-box{
    padding: 10px;
    
}
.center-picture img{
  padding-top: 20px;
  width: 90%;           /* Make image smaller */
  height: 80%;           /* Keep aspect ratio */
}
.text-input{
    width: 20%;
    height: 25px; /* increase height */
    border-radius: 10px;

}
.Message-box {
    width: 40%;
    height: 120px;
    padding: 10px;
    font-size: 16px;
    resize: none;
    margin-bottom: 20px;
}

.form-wrapper {
    gap: 10px;
    margin-top: 10px;
}
.send-message-box button{
    text-align: center;
    background-color: #66BAF1 ;    
    color: #F5F9FF;
    border: none;
    padding: 6px 12px;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.send-message-box button:hover {
    background-color: #003f88;
}

.center-picture {
    display: block;
}

.language-switch {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.language-switch button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.language-switch button:hover {
    background: white;
}

@media (max-width: 1000px) {

    .header-picture {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding-top: 0.1rem;
}

.header-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text-input{
    width: 80%;
}

    .center-picture {
        display: none;
    }

    .center-contact {
        display: flex;
        flex-direction: center; /* stack vertically */
        text-align: center;
        justify-content: center;
        align-self: center;
    }

    .contact-row {
        flex-direction: column; /* <— stack phone under email */
        align-items: center;
        gap: 5px;
        margin-bottom: 10px;
    }
    .Message-box {
    width: 100%;
    height: 120px;
    padding: 10px;
    font-size: 16px;
    resize: none;
    margin-bottom: 20px;
}

}
