
/* =========================================
   VAILON LABS - ABOUT US PAGE
   Reference-matched layout and responsive CSS
========================================= */

/* Common box sizing */
.about-hero,
.about-hero *,
.vailon-about,
.vailon-about *,
.about-container {
    box-sizing: border-box;
}

/* =========================================
   HERO BANNER
========================================= */

.about-hero {
    position: relative;
    width: 100%;
    min-height: 338px;
    display: flex;
    align-items: center;
    padding: 42px 0;
    overflow: hidden;

    background-color: #06253a;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    color: #ffffff;
    text-align: left;
}

.about-hero .about-container {
    width: calc(100% - 140px);
    max-width: 1150px;
    margin: 0 auto;
    padding: 0;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 390px;
    margin: 0;
    text-align: left;
}

/* Eyebrow */
.about-hero-label {
    display: block;
    margin: 0 0 9px;

    color: #08b8ef;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Main heading */
.about-hero h1 {
    max-width: 390px;
    margin: 0 0 10px;
    padding: 0;

    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* Description */
.about-hero p {
    max-width: 390px;
    margin: 0 0 25px;
    padding: 0;

    color: #f1f5f9;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

/* Button */
.about-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 37px;
    padding: 10px 20px;

    background: #087fca;
    border: 1px solid #087fca;
    border-radius: 5px;

    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.about-hero-button:hover,
.about-hero-button:focus {
    background: #0568a8;
    border-color: #0568a8;
    color: #ffffff;
}

/* =========================================
   ABOUT US CONTAINER
========================================= */

.about-container {
    width: calc(100% - 140px);
    max-width: 1150px;
    margin-right: auto;
    margin-left: auto;
}

/* Legacy/common About styles */
.vailon-about {
    color: #243247;
    font-family: inherit;
}

.vailon-about .va-container {
    width: calc(100% - 140px);
    max-width: 1150px;
    margin: 0 auto;
    padding: 0;
}

.vailon-about .va-label {
    display: inline-block;
    margin-bottom: 9px;

    color: #087fca;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.4px;
}

/* =========================================
   LEGACY HERO SELECTORS
========================================= */

.vailon-about .va-hero {
    display: flex;
    align-items: center;
    min-height: 338px;
    padding: 42px 0;

    background-color: #06253a;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: left;
}

.vailon-about .va-hero-content {
    width: 100%;
    max-width: 390px;
    margin: 0;
}

.vailon-about .va-hero h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

.vailon-about .va-hero p {
    max-width: 390px;
    margin: 0 0 22px;
    color: #e5edf4;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================
   SECTION HEADINGS
========================================= */

.vailon-about .va-section-heading {
    max-width: 800px;
    margin: 0 0 16px;
    text-align: left;
}

.vailon-about .va-section-heading h2,
.vailon-about .va-quality-heading h2 {
    margin: 0;
    color: #102d46;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* =========================================
   MISSION / CONTENT SECTIONS
========================================= */

.vailon-about .va-mission-section {
    padding: 34px 0;
    background: #ffffff;
}

.vailon-about .va-mission-content {
    max-width: 900px;
    margin: 0 auto;
}

.vailon-about .va-mission-content p,
.vailon-about .va-quality-content p {
    margin: 0 0 10px;
    color: #485e74;
    font-size: 13px;
    line-height: 1.5;
}

/* Three-column cards */
.vailon-about .va-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-top: 20px;
}

.vailon-about .va-highlight {
    min-width: 0;
    padding: 23px 20px;
    background: #f1f8fd;
    border-radius: 7px;
    text-align: left;
}

.vailon-about .va-highlight h3 {
    margin: 0 0 8px;
    color: #102d46;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.vailon-about .va-highlight p {
    margin: 0;
    color: #485e74;
    font-size: 12px;
    line-height: 1.6;
}

/* =========================================
   QUALITY SECTION
========================================= */

.vailon-about .va-quality-section {
    padding: 34px 0;
    background: #ffffff;
}

.vailon-about .va-quality-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 42px;
}

.vailon-about .va-quality-content {
    min-width: 0;
}

.vailon-about .va-quality-content p:last-child {
    margin-bottom: 0;
}

/* =========================================
   TABLET
========================================= */

@media (min-width: 769px) and (max-width: 1100px) {
    .about-hero .about-container,
    .about-container,
    .vailon-about .va-container {
        width: calc(100% - 80px);
    }

    .about-hero {
        min-height: 338px;
    }

    .about-hero-content {
        max-width: 390px;
    }

    .about-hero h1 {
        font-size: 32px;
    }

    .vailon-about .va-quality-inner {
        gap: 28px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {
    .about-hero {
        min-height: 360px;
        padding: 42px 0;
        background-position: 60% center;
    }

    .about-hero .about-container,
    .about-container,
    .vailon-about .va-container {
        width: calc(100% - 40px);
        padding: 0;
    }

    .about-hero-content {
        max-width: 340px;
    }

    .about-hero-label {
        margin-bottom: 10px;
        font-size: 10px;
    }

    .about-hero h1 {
        max-width: 330px;
        margin-bottom: 12px;
        font-size: clamp(27px, 7vw, 34px);
        line-height: 1.12;
    }

    .about-hero p {
        max-width: 320px;
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 1.6;
    }

    .about-hero-button {
        min-height: 38px;
        padding: 10px 17px;
        font-size: 15px;
    }

    .vailon-about .va-hero {
        min-height: 360px;
        padding: 42px 0;
    }

    .vailon-about .va-hero h1 {
        font-size: clamp(27px, 7vw, 34px);
    }

    .vailon-about .va-hero p {
        font-size: 13px;
    }

    .vailon-about .va-mission-section,
    .vailon-about .va-quality-section {
        padding: 32px 0;
    }

    .vailon-about .va-section-heading h2,
    .vailon-about .va-quality-heading h2 {
        font-size: 24px;
    }

    .vailon-about .va-highlights {
        grid-template-columns: 1fr;
        gap: 13px;
        margin-top: 20px;
    }

    .vailon-about .va-highlight {
        padding: 21px 18px;
    }

    .vailon-about .va-quality-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .vailon-about .va-mission-content p,
    .vailon-about .va-quality-content p {
        font-size: 13px;
        line-height: 1.65;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {
    .about-hero {
        min-height: 350px;
        padding: 35px 0;
        background-position: 63% center;
    }

    .about-hero h1 {
        font-size: 28px;
    }

    .about-hero-content {
        max-width: 300px;
    }

    .about-hero p {
        max-width: 290px;
        font-size: 12px;
    }
}
/* Who We Are Section */

.vailon-who-we-are {
    padding: 80px 0;
    background: #ffffff;
}

.vww-container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.vww-image {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.vww-image img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.vww-content {
    width: 100%;
}

.vww-label {
    display: inline-block;
    margin-bottom: 16px;
    color: #218d85;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.vww-content h2 {
    margin: 0 0 24px;
    color: #172b42;
    font-size: clamp(28px, 3.5vw, 28px);
    line-height: 1.2;
    font-weight: 700;
}

.vww-content p {
    margin: 0 0 18px;
    color: #566273;
    font-size: 17px;
    line-height: 1.8;
}

.vww-content p:last-child {
    margin-bottom: 0;
}

/* Tablet and Mobile */

@media (max-width: 768px) {
    .vailon-who-we-are {
        padding: 50px 0;
    }

    .vww-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .vww-image img {
        height: 300px;
    }

    .vww-content h2 {
        font-size: 32px;
    }

    .vww-content p {
        font-size: 16px;
        line-height: 1.75;
    }
}

@media (max-width: 480px) {
    .vww-image img {
        height: 240px;
    }

    .vww-content h2 {
        font-size: 29px;
    }
}
/* Space between Hero and Who We Are */
.about-hero {
    /*margin-bottom: 40px;*/
}

.who-we-are {
    margin-top: 40px;
}

/* =========================================
   VAILON LABS - ABOUT US CORE VALUES
========================================= */

.vailon-core-values {
    width: 100%;
    margin: 0;
    padding: 34px 0 30px;
    background: #eef7fd;
    box-sizing: border-box;
}

.vailon-core-values *,
.vailon-core-values *::before,
.vailon-core-values *::after {
    box-sizing: border-box;
}

.vcv-container {
    width: calc(100% - 48px);
    max-width: 1140px;
    margin: 0 auto;
}

.vcv-header {
    margin: 0 0 14px;
}

.vcv-label {
    display: block;
    margin: 0 0 4px;
    color: #087bc1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vcv-heading {
    margin: 0;
    color: #102e46;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.vcv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.vcv-card {
    min-width: 0;
    padding: 20px 26px 22px;
    background: #ffffff;
    border: 1px solid rgba(18, 66, 100, 0.025);
    border-radius: 8px;
}

.vcv-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 42px;
    height: 42px;
    margin: 0 0 14px;
    color: #0781ce;
}

.vcv-icon svg {
    display: block;
    width: 38px;
    height: 38px;
}

.vcv-card-title {
    margin: 0 0 8px;
    color: #102e46;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.vcv-card-description {
    margin: 0;
    color: #50657b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}

/* Tablet */
@media (max-width: 900px) {
    .vcv-grid {
        gap: 14px;
    }

    .vcv-card {
        padding: 20px 18px;
    }

    .vcv-heading {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .vailon-core-values {
        padding: 30px 0;
    }

    .vcv-container {
        width: calc(100% - 36px);
    }

    .vcv-header {
        margin-bottom: 18px;
    }

    .vcv-heading {
        font-size: 24px;
        line-height: 1.3;
    }

    .vcv-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .vcv-card {
        padding: 20px;
    }

    .vcv-card-description {
        font-size: 14px;
    }
}

/* =========================================
   ABOUT US - APPROACH TO QUALITY
========================================= */

.vailon-quality-approach {
    width: 100%;
    padding: 30px 0 32px;
    margin: 0;
    background: #ffffff;
}

.vqa-container {
    width: calc(100% - 48px);
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.vqa-content {
    min-width: 0;
}

.vqa-label {
    display: block;
    margin-bottom: 8px;
    color: #087bc1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1px;
}

.vqa-heading {
    margin: 0 0 10px;
    color: #102e46;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.vqa-content p {
    margin: 0 0 10px;
    color: #50657b;
    font-size: 14px;
    line-height: 1.65;
}

.vqa-content p:last-child {
    margin-bottom: 0;
}

.vqa-image {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
}

.vqa-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* Tablet */
@media (max-width: 900px) {
    .vqa-container {
        gap: 28px;
    }

    .vqa-heading {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .vailon-quality-approach {
        padding: 28px 0;
    }

    .vqa-container {
        width: calc(100% - 36px);
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .vqa-heading {
        font-size: 23px;
    }

    .vqa-content p {
        font-size: 14px;
    }

    .vqa-image img {
        aspect-ratio: 16 / 10;
    }
}

/* Quality Approach - Smaller Image */

.vailon-quality-approach .vqa-container {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.vailon-quality-approach .vqa-image {
    width: 100%;
    max-width: 430px;
    height: 320px;
    margin-left: auto;
    overflow: hidden;
    border-radius: 12px;
}

.vailon-quality-approach .vqa-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .vailon-quality-approach .vqa-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .vailon-quality-approach .vqa-image {
        max-width: 100%;
        height: 260px;
        margin-left: 0;
    }
}

/* =========================================
   WHO WE ARE - REDUCE IMAGE SIZE
========================================= */

.vailon-who-we-are .vww-container {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 40px;
    align-items: center;
}

.vailon-who-we-are .vww-image {
    width: 100%;
    max-width: 430px;
    height: 320px;
    margin-left: 0;
    overflow: hidden;
    border-radius: 12px;
}

.vailon-who-we-are .vww-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .vailon-who-we-are .vww-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .vailon-who-we-are .vww-image {
        max-width: 100%;
        height: 260px;
    }
}

/* Quality Approach - Align Text with Image Top */

.vailon-quality-approach .vqa-container {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 40px;
    align-items: start;
}

.vailon-quality-approach .vqa-content {
    align-self: start;
    margin-top: 0;
    padding-top: 0;
}

.vailon-quality-approach .vqa-image {
    align-self: start;
    margin-top: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .vailon-quality-approach .vqa-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   VAILON LABS - ABOUT US
   WHO WE ARE + QUALITY APPROACH
========================================= */

/* Shared Section Layout */
.vailon-who-we-are,
.vailon-quality-approach {
    padding: 65px 0;
    background-color: #ffffff;
}

.vailon-who-we-are .vww-container,
.vailon-quality-approach .vqa-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 40px;
    align-items: start;
}

/* Shared Content */
.vailon-who-we-are .vww-content,
.vailon-quality-approach .vqa-content {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    align-self: start;
}

/* Small Label */
.vailon-who-we-are .vww-label,
.vailon-quality-approach .vqa-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.3px;
    line-height: 1.4;
    text-transform: uppercase;
    margin: 0 0 12px;
}

/* Main Heading */
.vailon-who-we-are .vww-heading,
.vailon-quality-approach .vqa-heading {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0 0 18px;
}

/* Paragraphs */
.vailon-who-we-are .vww-content p,
.vailon-quality-approach .vqa-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 14px;
}

.vailon-who-we-are .vww-content p:last-child,
.vailon-quality-approach .vqa-content p:last-child {
    margin-bottom: 0;
}

/* Images */
.vailon-who-we-are .vww-image,
.vailon-quality-approach .vqa-image {
    width: 100%;
    max-width: 430px;
    height: 320px;
    margin: 0;
    justify-self: end;
    overflow: hidden;
    border-radius: 12px;
}

.vailon-who-we-are .vww-image img,
.vailon-quality-approach .vqa-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .vailon-who-we-are .vww-container,
    .vailon-quality-approach .vqa-container {
        gap: 30px;
    }

    .vailon-who-we-are .vww-heading,
    .vailon-quality-approach .vqa-heading {
        font-size: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .vailon-who-we-are,
    .vailon-quality-approach {
        padding: 45px 0;
    }

    .vailon-who-we-are .vww-container,
    .vailon-quality-approach .vqa-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .vailon-who-we-are .vww-heading,
    .vailon-quality-approach .vqa-heading {
        font-size: 28px;
        line-height: 1.3;
    }

    .vailon-who-we-are .vww-content p,
    .vailon-quality-approach .vqa-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .vailon-who-we-are .vww-image,
    .vailon-quality-approach .vqa-image {
        max-width: 100%;
        height: 260px;
        justify-self: stretch;
    }
}




/* =========================================
   FINAL FIX - SAME SECTION ALIGNMENT
========================================= */

/* All three sections use the same container width */
.vailon-who-we-are .vww-container,
.vailon-core-values .vcv-container,
.vailon-quality-approach .vqa-container {
    width: calc(100% - 48px) !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

/* Keep the Who We Are grid consistent */
.vailon-who-we-are .vww-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* Keep Quality Approach container consistent */
.vailon-quality-approach .vqa-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* Prevent images from affecting container alignment */
.vailon-who-we-are .vww-image,
.vailon-quality-approach .vqa-image {
    width: 100%;
    max-width: 430px;
    margin: 0;
    justify-self: end;
}

/* Core Values container */
.vailon-core-values .vcv-container {
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .vailon-who-we-are .vww-container,
    .vailon-core-values .vcv-container,
    .vailon-quality-approach .vqa-container {
        width: calc(100% - 36px) !important;
    }

    .vailon-who-we-are .vww-container,
    .vailon-quality-approach .vqa-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .vailon-who-we-are .vww-image,
    .vailon-quality-approach .vqa-image {
        max-width: 100%;
    }
}
/* =========================================
   WHO WE ARE - ALIGNMENT FIX
   Image LEFT, Content RIGHT
========================================= */

.vailon-who-we-are {
    width: 100%;
    padding: 55px 0;
    background: #ffffff;
}

.vailon-who-we-are .vww-container {
    width: calc(100% - 48px) !important;
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) !important;
    gap: 40px !important;
    align-items: start !important;
    box-sizing: border-box;
}

/* Left-side image */
.vailon-who-we-are .vww-image {
    width: 100% !important;
    max-width: 430px !important;
    height: 320px !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-self: start !important;
    align-self: start !important;
    overflow: hidden;
    border-radius: 10px;
}

.vailon-who-we-are .vww-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center;
}

/* Right-side text */
.vailon-who-we-are .vww-content {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    align-self: start !important;
}

.vailon-who-we-are .vww-content h2 {
    margin: 0 0 18px;
    color: #102e46;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
}

.vailon-who-we-are .vww-content p {
    margin: 0 0 12px;
    color: #50657b;
    font-size: 14px;
    line-height: 1.65;
}

.vailon-who-we-are .vww-content p:last-child {
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .vailon-who-we-are {
        padding: 40px 0;
    }

    .vailon-who-we-are .vww-container {
        width: calc(100% - 36px) !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }

    .vailon-who-we-are .vww-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .vailon-who-we-are .vww-image img {
        height: auto !important;
        aspect-ratio: 4 / 3;
    }

    .vailon-who-we-are .vww-content h2 {
        font-size: 26px;
    }
}

