/* ==========================================================================
 * Company Profile Page
 * ========================================================================== */

.cp-page {
    max-width: 100%;
    overflow-x: hidden;
}

.cp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- Section Title --- */
.cp-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 24px;
    line-height: 1.3;
    text-align: center;
}

/* ==========================================================================
 * Video Section
 * ========================================================================== */
.cp-video {
    padding: 40px 0 30px;
}

.cp-video__embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 24px;
    background: #000;
}

.cp-video__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cp-video__text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.cp-video__text a {
    color: inherit;
    text-decoration: none;
}

.cp-video__text a:hover {
    text-decoration: underline;
}

.cp-video__about {
    margin-top: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.cp-video__about p {
    margin: 0 0 18px;
}

.cp-video__about p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
 * Download Section
 * ========================================================================== */
.cp-download {
    padding: 20px 0 30px;
}

.cp-download__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cp-download__btn {
    display: inline-block;
    padding: 12px 24px;
    background: #333;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    transition: background 0.2s;
}

.cp-download__btn:hover {
    background: #0066cc;
    color: #fff;
}

/* ==========================================================================
 * Welcome Section
 * ========================================================================== */
.cp-welcome {
    padding: 30px 0;
}

.cp-welcome__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.cp-welcome__text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.cp-welcome__text p {
    margin: 0;
}

.cp-welcome__img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
 * Company Advantage
 * ========================================================================== */
.cp-advantage {
    padding: 30px 0;
}

.cp-advantage__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.cp-advantage__item {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.cp-advantage__item:nth-child(odd) {
    border-right: 1px solid #eee;
}

.cp-advantage__heading {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
    text-decoration: underline;
}

.cp-advantage__heading em {
    font-style: italic;
}

.cp-advantage__item p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* ==========================================================================
 * R&D Team
 * ========================================================================== */
.cp-team {
    padding: 30px 0;
}

.cp-team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cp-team__item {
    margin: 0;
    text-align: center;
}

.cp-team__item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.cp-team__item figcaption {
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    background: #f9f9f9;
}

/* ==========================================================================
 * Product Testing
 * ========================================================================== */
.cp-testing {
    padding: 30px 0;
}

.cp-testing__intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 5px;
}

.cp-testing__intro-img img {
    width: 100%;
    height: auto;
    display: block;
}

.cp-testing__intro-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.cp-testing__intro-text p {
    margin: 0;
}

.cp-testing__row {
    display: grid;
    gap: 5px;
    margin-bottom: 5px;
}

.cp-testing__row--2 {
    grid-template-columns: repeat(2, 1fr);
}

.cp-testing__row--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cp-testing__item {
    margin: 0;
    overflow: hidden;
}

.cp-testing__item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
 * Production Process
 * ========================================================================== */
.cp-production {
    padding: 30px 0;
}

.cp-production__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.cp-production__item {
    margin: 0;
    overflow: hidden;
}

.cp-production__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
 * Post Grid (shared by Case Study + Related Blogs)
 * ========================================================================== */
.cp-cases,
.cp-blogs {
    padding: 30px 0;
}

.cp-posts__grid {
    display: grid;
    gap: 20px;
}

.cp-posts__grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.cp-posts__card {
    display: flex;
    flex-direction: column;
}

.cp-posts__thumb {
    display: block;
    overflow: hidden;
}

.cp-posts__thumb img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.3s;
}

.cp-posts__thumb:hover img {
    transform: scale(1.05);
}

.cp-posts__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 10px 0 0;
}

.cp-posts__title a {
    color: #333;
    text-decoration: none;
}

.cp-posts__title a:hover {
    color: #0066cc;
}

/* ==========================================================================
 * Responsive
 * ========================================================================== */
@media (max-width: 960px) {
    .cp-welcome__row {
        grid-template-columns: 1fr;
    }

    .cp-testing__intro {
        grid-template-columns: 1fr;
    }

    .cp-posts__grid--4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cp-container {
        padding: 0 20px;
    }

    .cp-section-title {
        font-size: 20px;
    }

    .cp-advantage__grid {
        grid-template-columns: 1fr;
    }

    .cp-advantage__item:nth-child(odd) {
        border-right: none;
    }

    .cp-team__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-testing__row--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-production__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-posts__grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cp-download__buttons {
        flex-direction: column;
    }

    .cp-team__grid {
        grid-template-columns: 1fr;
    }

    .cp-testing__row--2,
    .cp-testing__row--3 {
        grid-template-columns: 1fr;
    }

    .cp-production__grid {
        grid-template-columns: 1fr;
    }

    .cp-posts__grid--4 {
        grid-template-columns: 1fr;
    }
}
