/**
 * Top Company Overview Component Styles
 *
 * Displays homepage company overview with CEO message and company office profile.
 *
 * @package RIKAI_Marketing
 * @since 1.0.0
 */

/* ==================================================
   Component Description
   ================================================== */

.top-company-overview__description {
    font-size: 16px;
    color: #666;
    margin-bottom: 48px;
}

/* ==================================================
   Section 1: Representative Director
   ================================================== */

.top-company-overview__section1 {
    margin-bottom: 80px;
}

.top-company-overview__ceo-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.top-company-overview__ceo-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 16px;
}

.top-company-overview__ceo-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.top-company-overview__ceo-icon {
    vertical-align: middle;
    flex-shrink: 0;
}

.top-company-overview__ceo-label {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5.6px;
}

.top-company-overview__ceo-name {
    font-size: 16px;
    font-weight: 700;
}

.top-company-overview__divider {
    border-color: var(--primary-color, #3390d6);
    opacity: 1;
    margin: 12px 0 20px;
}

.top-company-overview__ceo-message {
    border-top: 1px solid var(--primary-color);
    padding-top: 20px;
    font-size: 15px;
    line-height: 1.8;
    margin: 20px 0px;
}

/* ==================================================
   Section 2: Company Office
   ================================================== */

.top-company-overview__section2 {
    margin-top: 32px;
}

/* --- Scrolling images --- */

.top-company-overview__images-viewport {
    overflow: hidden;
    height: 320px;
    border-radius: 4px;
}

.top-company-overview__images-track {
    display: flex;
    flex-direction: column;
    animation: tco-scroll-up 30s linear infinite;
}

.top-company-overview__images-track:hover {
    animation-play-state: paused;
}

.top-company-overview__office-img {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.top-company-overview__office-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

@keyframes tco-scroll-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* --- Company info table --- */

.top-company-overview__info-row {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 16px 0;
}

.top-company-overview__info-label {
    font-weight: 700;
    flex: 0 0 5em;
}

.top-company-overview__info-content {
    line-height: 1.7;
    flex: 1;
}

.top-company-overview__location {
    margin-bottom: 4px;
}

.top-company-overview__location:last-child {
    margin-bottom: 0;
}

.top-company-overview__location-prefix {
    font-weight: 600;
    margin-right: 5.6px;
}

/* ==================================================
   Responsive Design
   ================================================== */

/* Tablet */
@media (max-width: 992px) {
    .top-company-overview__section1 {
        margin-bottom: 48px;
    }

    .top-company-overview__images-viewport {
        height: 320px;
    }

    .top-company-overview__ceo-title {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .top-company-overview__section1 {
        margin-bottom: 40px;
    }

    .top-company-overview__ceo-image {
        margin-bottom: 24px;
    }

    .top-company-overview__images-viewport {
        height: 260px;
        margin-bottom: 24px;
    }

    .top-company-overview__info-row {
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
    }

    .top-company-overview__info-label {
        flex: none;
    }

    .top-company-overview__ceo-title {
        font-size: 16px;
    }

    .top-company-overview__ceo-message {
        font-size: 14.4px;
    }
}
