/* =====================================
   GENERAL ABOUT PAGE STYLES
===================================== */

.about-page {
    margin: 0;
    padding: 0;

    font-family: 'Poppins', sans-serif;

    background: #ffffff;
    color: #17212b;

    overflow-x: hidden;
}

.about-page main {
    width: 100%;
}

.about-page * {
    box-sizing: border-box;
}


/* =====================================
   ABOUT US BANNER
===================================== */

.ndc-about-banner {
    position: relative;

    width: 100%;
    height: 275px;

    display: flex;
    align-items: center;

    background: #f0f0f2;

    margin: 0;
    padding: 30px;

    overflow: hidden;
}

.ndc-about-banner-container {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;
    margin: 0 auto;
}


/* =====================================
   BREADCRUMB
===================================== */

.ndc-about-breadcrumb {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 15px;

    font-size: 14px;
    font-weight: 400;

    color: #111111;

    animation: aboutSlideLeft 0.8s ease both;
}

.ndc-about-breadcrumb a {
    color: #111111;
    text-decoration: none;

    transition: color 0.3s ease;
}

.ndc-about-breadcrumb a:hover {
    color: #b88a00;
}

.ndc-about-breadcrumb i {
    font-size: 14px;
    color: #111111;
}


/* =====================================
   BANNER TITLE
===================================== */

.ndc-about-title {
    margin: 0;

    font-size: 32px;
    font-weight: 600;

    line-height: 1.4;

    color: #000000;

    text-transform: uppercase;

    animation: aboutSlideRight 0.8s ease both;
}


/* =====================================
   BANNER ANIMATIONS
===================================== */

@keyframes aboutSlideLeft {

    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes aboutSlideRight {

    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* =====================================
   CARD SECTION
===================================== */

.ndc-about-card-section {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 5px;

    background: #ffffff;
}


/* =====================================
   FIRST THREE CARDS GRID
===================================== */

.ndc-about-grid-three {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    width: 100%;

    align-items: stretch;
}


/* =====================================
   SECOND FOUR CARDS GRID
===================================== */

.ndc-about-grid-four {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    width: 100%;

    align-items: stretch;
}


/* =====================================
   CARD COLOUR THEMES
===================================== */

/* ABOUT NDC */

.ndc-theme {
    --card-background: #555555;
    --card-text: #ffffff;
    --button-background: #353535;
}


/* WORKSHOP */

.workshop-theme {
    --card-background: #944800;
    --card-text: #ffffff;
    --button-background: #743900;
}


/* BRANCH OFFICE KANDY */

.kandy-theme {
    --card-background: #c50829;
    --card-text: #ffffff;
    --button-background: #99051f;
}


/* LIBRARY */

.library-theme {
    --card-background: #992b00;
    --card-text: #ffffff;
    --button-background: #762100;
}


/* SHOWROOM */

.showroom-theme {
    --card-background: #50056b;
    --card-text: #ffffff;
    --button-background: #370348;
}


/* CONSULTANCY */

.consultancy-theme {
    --card-background: #555555;
    --card-text: #ffffff;
    --button-background: #707070;
}


/* PRODUCT DEVELOPMENT */

.product-theme {
    --card-background: #b0c640;
    --card-text: #111111;
    --button-background: #536514;
}


/* =====================================
   MAIN CARD
===================================== */

.ndc-about-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    min-width: 0;

    margin: 0;
    padding: 0;

    background: var(--card-background);

    border: none;
    border-radius: 0;

    box-shadow: none;

    overflow: hidden;
}


/* =====================================
   CARD IMAGE CONTAINER
===================================== */

.ndc-about-card-image {
    display: block;

    position: relative;

    width: 100%;

    flex-shrink: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #eeeeee;
}


/* FIRST THREE CARD IMAGE HEIGHT */

.ndc-about-grid-three .ndc-about-card-image {
    aspect-ratio: 1 / 1;
}


/* SECOND FOUR CARD IMAGE HEIGHT */

.ndc-about-grid-four .ndc-about-card-image {
    aspect-ratio: 2 / 3;
}


/* CARD IMAGES */

.ndc-about-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 0;

    transition: transform 0.65s ease;
}


/* IMAGE HOVER ANIMATION */

.ndc-about-card:hover .ndc-about-card-image img {
    transform: scale(1.045);
}


/* =====================================
   CARD CONTENT
===================================== */

.ndc-about-card-content {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    flex: 1;

    width: 100%;

    gap: 8px;

    padding: 32px 12px 20px;

    background: var(--card-background);
    color: var(--card-text);

    text-align: center;
}


/* FIRST ROW CONTENT HEIGHT */

.ndc-about-grid-three .ndc-about-card-content {
    min-height: 270px;
}


/* SECOND ROW CONTENT HEIGHT */

.ndc-about-grid-four .ndc-about-card-content {
    min-height: 330px;
}


/* =====================================
   CARD HEADING
===================================== */

.ndc-about-card-content h2 {
    margin: 0;
    padding: 0;

    font-size: 23px;
    font-weight: 600;

    line-height: 1.4;

    color: var(--card-text);
}


/* =====================================
   CARD DESCRIPTION
===================================== */

.ndc-about-card-content p {
    margin: 0;
    padding: 0;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.8;

    color: var(--card-text);

    white-space: normal;
}


/* =====================================
   DISCOVER MORE BUTTON
===================================== */

.ndc-discover-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 22px;

    padding: 10px 15px;

    min-height: 36px;

    background: var(--button-background);
    color: #ffffff;

    border: none;
    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.4;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* BUTTON HOVER */

.ndc-discover-btn:hover {
    background: #efbd32;
    color: #17212b;

    transform: translateY(-3px);

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);

    text-decoration: none;
}


/* BUTTON CLICK */

.ndc-discover-btn:active {
    transform: scale(0.96);
}


/* KEYBOARD ACCESSIBILITY */

.ndc-discover-btn:focus-visible,
.ndc-about-card-image:focus-visible {
    outline: 3px solid #efbd32;
    outline-offset: -3px;
}


/* =====================================
   SCROLL REVEAL ANIMATION
===================================== */

.reveal-card.animate-ready {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal-card.animate-ready.visible {
    opacity: 1;

    transform: translateY(0);
}

.reveal-card:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal-card:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal-card:nth-child(4) {
    transition-delay: 0.24s;
}


/* =====================================
   CONNECT WITH US SECTION
===================================== */

.ndc-about-connect {
    width: 100%;

    margin: 0;
    padding: 15px 10px;

    background: #f0f0f2;
}

.ndc-about-connect-container {
    display: grid;

    grid-template-columns: 70% 30%;

    align-items: center;

    width: 100%;
    min-height: 36px;

    margin: 0 auto;
}

.ndc-about-connect-container p {
    margin: 0;
    padding: 0;

    color: #171717;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.6;
}


/* CONNECT BUTTON */

.ndc-about-connect-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;
    justify-self: start;

    padding: 10px 15px;

    background: #000000;
    color: #ffffff;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.ndc-about-connect-btn:hover {
    background: #efbd32;
    color: #17212b;

    transform: translateY(-2px);

    text-decoration: none;
}

.ndc-about-connect-btn:focus-visible {
    outline: 3px solid #a77b00;
    outline-offset: 3px;
}


/* =====================================
   LAPTOP RESPONSIVE
===================================== */

@media (max-width: 1200px) {

    .ndc-about-banner {
        height: 250px;
    }

    .ndc-about-card-content {
        padding: 25px 12px 20px;
    }

    .ndc-about-card-content h2 {
        font-size: 21px;
    }

    .ndc-about-card-content p {
        font-size: 15px;
    }

    .ndc-about-grid-four .ndc-about-card-content {
        min-height: 320px;
    }

}


/* =====================================
   TABLET RESPONSIVE
===================================== */

@media (max-width: 991px) {

    .ndc-about-banner {
        height: 220px;
        padding: 25px;
    }

    .ndc-about-title {
        font-size: 28px;
    }

    .ndc-about-grid-three,
    .ndc-about-grid-four {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .ndc-about-grid-four .ndc-about-card-image {
        aspect-ratio: 1 / 1;
    }

    .ndc-about-grid-three .ndc-about-card-content,
    .ndc-about-grid-four .ndc-about-card-content {
        min-height: 250px;
    }

}


/* =====================================
   CONNECT SECTION MOBILE
===================================== */

@media (max-width: 768px) {

    .ndc-about-connect {
        padding: 20px 15px;
    }

    .ndc-about-connect-container {
        grid-template-columns: 1fr;

        gap: 15px;

        text-align: center;
    }

    .ndc-about-connect-container p {
        font-size: 14px;
    }

    .ndc-about-connect-btn {
        justify-self: center;
    }

}


/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 600px) {

    .ndc-about-banner {
        height: 180px;

        padding: 20px;
    }

    .ndc-about-banner-container {
        flex-direction: column;

        align-items: flex-start;
        justify-content: center;

        gap: 15px;
    }

    .ndc-about-breadcrumb {
        font-size: 12px;
        gap: 10px;
    }

    .ndc-about-title {
        font-size: 26px;
    }

    .ndc-about-grid-three,
    .ndc-about-grid-four {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .ndc-about-grid-three .ndc-about-card-image,
    .ndc-about-grid-four .ndc-about-card-image {
        aspect-ratio: 4 / 3;
    }

    .ndc-about-grid-three .ndc-about-card-content,
    .ndc-about-grid-four .ndc-about-card-content {
        min-height: auto;
    }

    .ndc-about-card-content {
        padding: 22px 15px;

        gap: 8px;
    }

    .ndc-about-card-content h2 {
        font-size: 22px;
    }

    .ndc-about-card-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .ndc-discover-btn {
        margin-top: 15px;
    }

}


/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {

    .ndc-about-title,
    .ndc-about-breadcrumb {
        animation: none;
    }

    .reveal-card.animate-ready {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ndc-about-card-image img,
    .ndc-discover-btn,
    .ndc-about-connect-btn {
        transition: none;
    }

    .ndc-about-card:hover .ndc-about-card-image img,
    .ndc-discover-btn:hover,
    .ndc-about-connect-btn:hover {
        transform: none;
    }

}

/* =====================================
   REMOVE WHITE SPACE BELOW HEADER
===================================== */

.about-page {
    margin: 0 !important;
    padding: 0 !important;
}

.about-page #mainHeader {
    position: fixed !important;
    top: 12px !important;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 40px);
    max-width: 1600px;

    margin: 0 !important;
    z-index: 1050;
}

.about-page main {
    margin: 0 !important;
    padding: 0 !important;
}

.about-page .ndc-about-banner {
    margin-top: 0 !important;
    padding-top: 100px;
    background: #f0f0f2;
}

/* TABLET RESPONSIVE */

@media (max-width: 991px) {
    .about-page #mainHeader {
        top: 10px !important;
        width: calc(100% - 30px);
    }
}

/* MOBILE RESPONSIVE */

@media (max-width: 768px) {
    .about-page #mainHeader {
        top: 8px !important;
        width: calc(100% - 20px);
    }

    .about-page .ndc-about-banner {
        padding-top: 90px;
    }
}