@import url("../layout/tab.css");
@import url("../components/pagination.css");

/***********************
          인사말
 ***********************/
.ceo-greeting-layout {
    display: flex;
    gap: 80px;
    align-items: stretch;
}

.ceo-text {
    flex: 1.8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #24292F;
    z-index: 1;
    margin-top: 30px;
    font-size: var(--font-lg);
    font-weight: 400;
    text-align: left;
}

.ceo-text p:last-of-type {
    margin-top: 50px;
    font-weight: 600;
}

.ceo-greeting .section-title {
    font-size: 52px;
    font-weight: 500;
    margin-bottom: 80px;
    color: black;
}

.section-paragraph {
    width: 675px;
    font-size: var(--font-lg);
    line-height: 2.0;
    margin-bottom: 24px;
}

.name-highlight {
    margin-left: 8px;
    font-size: 30px;
    color: black;
    font-weight: 700;
}

.ceo-visual {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.ceo-visual-bg {
    position: absolute;
    width: 900px;
    height: 970px;
    top: -60px;
    right: 0px;
    background: url('../../img/bg/bg-ceo-visual.png') no-repeat center/cover;
    z-index: 0;
}

.ceo-img {
    position: relative;
    width: 352px;
    height: auto;
    z-index: 1;
}

.name-highlight {
    font-weight: 700;
    font-size: 30px;
    color: #24292F;
}

.ceo-text br+.name-highlight {
    display: inline-block;
    margin-left: 0;
}

.slogan-section .section-title {
    font-size: 54px;
}

.slogan-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    margin-top: 50px;
}

.slogan-card {
    flex: 1;
    height: 654px;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slogan-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.card-1 .slogan-bg {
    background-image: url('../../img/content/slogan01.png');
}

.card-2 .slogan-bg {
    background-image: url('../../img/content/slogan02.png');
}

.card-3 .slogan-bg {
    background-image: url('../../img/content/slogan03.png');
}

.slogan-text {
    position: relative;
    z-index: 1;
    padding: 55px;
    color: white;
}

.slogan-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 10px;
}

.slogan-desc {
    font-size: 26px;
    line-height: 1.6;
    color: white;
}

.card-2 {
    margin-top: 80px;
}

@media (max-width: 1280px) {
    .ceo-greeting .section-title {
        margin-bottom: 50px;
    }

    .slogan-card {
        height: 550px;
    }

    .slogan-text {
        padding: 40px 35px 55px;
    }

    .slogan-title {
        font-size: 35px;
    }

    .slogan-desc {
        font-size: var(--font-2xl);
    }
}

@media (max-width: 1024px) {

    .ceo-greeting-layout {
        gap: 40px;
    }

    .ceo-greeting .section-title {
        font-size: 45px;
        margin-bottom: 50px;
    }

    .ceo-text {
        font-size: var(--font-xl);
        margin-top: 0 !important;
    }

    .section-paragraph {
        font-size: var(--font-xl);
    }

    .ceo-visual-bg {
        width: 600px;
        height: 640px;
        top: 150px;
    }

    .ceo-img {
        width: 100%;
        height: auto;
    }

    .slogan-section .section-title {
        font-size: 40px;
    }

    .slogan-card {
        height: 400px;
    }

    .slogan-text {
        padding: 30px 30px 50px;
    }

    .slogan-title {
        font-size: 32px;
    }

    .slogan-desc {
        font-size: var(--font-lg);
    }
}

@media (max-width: 768px) {
    .ceo-greeting-layout {
        gap: 50px;
        flex-direction: column;
    }

    .ceo-greeting .section-title {
        font-size: 35px;
    }

    .section-paragraph {
        width: auto;
    }

    .ceo-visual {
        flex-direction: row;
    }

    .ceo-img {
        max-width: 500px;
    }

    .ceo-visual-bg {
        width: 100%;
        height: 800px;
        top: -80px;
    }

    .slogan-wrapper {
        flex-direction: column;
    }

    .slogan-text {
        padding: 40px 30px;
    }

    .card-2 {
        margin-top: 0;
    }

    .slogan-title {
        font-size: 26px;
    }

    .slogan-desc {
        font-size: var(--font-md);
    }
}

@media (max-width: 480px) {
    .ceo-greeting .section-title {
        font-size: 25px;
        margin-bottom: 30px;
    }

    .section-paragraph {
        font-size: var(--font-base);
        margin-bottom: 20px;
    }

    .slogan-section .section-title {
        font-size: 28px;
    }

    .ceo-img {
        max-width: 280px;
    }

    .ceo-visual-bg {
        width: 450px;
        height: 500px;
    }

    .ceo-text {
        font-size: var(--font-base);
    }

    .name-highlight {
        font-size: var(--font-xl);
    }

    .slogan-section {
        padding: 0 0 50px 0 !important;
    }

    .slogan-text {
        padding: 30px 20px;
    }

    .slogan-title {
        font-size: var(--font-lg);
    }

    .slogan-desc {
        font-size: var(--font-base);
    }
}

/***********************
          연혁
 ***********************/
.history-section .section-title {
    font-weight: 700;
    font-size: 90px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.history-section .section-description {
    color: #424A53;
    font-size: 28px;
}

.history-scroll-wrapper {
    display: flex;
    flex-direction: column;
    gap: 250px;
    margin-top: 150px;
}

.history-scroll-block {
    display: flex;
    gap: 100px;
    align-items: flex-start;
}

.history-scroll-block.reverse {
    flex-direction: row-reverse;
}

.history-img {
    flex: 1;
    position: relative;
}

.history-img img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.history-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 80px;
}

.history-item h3 {
    font-size: 54px;
    font-weight: 600;
    margin-bottom: 5px;
}

.history-detail {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 80px;
    padding-left: 30px;
    margin-top: 20px;
    font-size: 28px;
    line-height: 1.7;
}

.history-detail::before {
    content: '·';
    position: absolute;
    left: 0;
    top: -19px;
    color: #57606A;
    font-size: 45px;
}

@media (max-width: 1280px) {
    .history-section .section-title {
        font-size: 73px;
    }

    .history-section .section-description {
        font-size: 26px;
    }

    .history-scroll-block {
        gap: 80px;
    }

    .history-item h3 {
        font-size: 48px;
    }

    .history-detail {
        font-size: 26px;
    }
}

@media (max-width: 1024px) {
    .history-section .section-title {
        font-size: 55px;
    }

    .history-section .section-description {
        font-size: var(--font-2xl);
    }

    .history-scroll-wrapper {
        margin-top: 90px;
    }

    .history-text {
        margin-top: 0px;
    }

    .history-scroll-block {
        gap: 50px;
    }

    .history-item h3 {
        font-size: 45px;
    }

    .history-detail {
        font-size: var(--font-2xl);
    }
}

@media (max-width: 768px) {
    .history-section .section-title {
        font-size: 43px;
    }

    .history-section .section-description {
        font-size: var(--font-xl);
    }

    .history-scroll-wrapper {
        margin-top: 70px;
        gap: 120px;
    }

    .history-scroll-block,
    .history-scroll-block.reverse {
        flex-direction: column;
    }

    .history-scroll-block {
        gap: 0;
    }

    .history-text {
        margin-top: 50px;
        gap: 60px;
    }

    .history-item h3 {
        font-size: 38px;
    }

    .history-detail {
        font-size: var(--font-xl);
        white-space: wrap;
    }

    .history-detail::before {
        top: -21px;
    }
}

@media (max-width: 480px) {
    .history-section .section-title {
        font-size: 32px;
    }

    .history-section .section-description {
        font-size: var(--font-md);
    }

    .history-scroll-wrapper {
        margin-top: 50px;
        gap: 80px;
    }

    .history-text {
        margin-top: 30px;
        gap: 50px;
    }

    .history-item h3 {
        font-size: 30px;
    }

    .history-detail {
        font-size: var(--font-md);
        padding-left: 20px;
    }

    .history-detail::before {
        top: -25px;
    }
}

/***********************
          조직도
 ***********************/

.organization-image {
    margin-top: 150px;
    text-align: center;
}

.organization-image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .organization-image {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .organization-image {
        margin-top: 40px;
    }
}

/***********************
          인증서
 ***********************/
.tabs.en {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
}

.certificate-section .section-title {
    margin-bottom: 150px;
}

.certificate-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 80px;
}

.certificate-card {
    margin-bottom: 80px;
}

.certificate-card-inner {
    padding: 50px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #F6F8FA;
    border-radius: 30px;
}

.certificate-card-inner img {
    max-width: 226px;
    max-height: 320px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card-title {
    margin-top: 20px;
    font-size: var(--font-xl);
}

.card-desc {
    margin-top: 5px;
    padding-right: 50px;
    color: #6E7781;
    font-size: var(--font-md);
}

.empty-box {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.empty-message {
    font-size: var(--font-md);
    color: #888;
    text-align: center;
}

@media (max-width: 1024px) {
    .certificate-section .section-title {
        margin-bottom: 70px;
    }

    .certificate-list {
        margin-top: 50px;
        grid-template-columns: repeat(3, 1fr);
    }

    .certificate-card {
        margin-bottom: 40px;
    }

    .card-title {
        font-size: var(--font-lg);
    }

    .tabs.en {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        border-radius: 20px;
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {
    .certificate-section .section-title {
        margin-bottom: 20px;
    }

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

    .certificate-card-inner {
        height: auto;
        padding: 40px;
    }

    .certificate-card-inner img {
        width: auto;
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    .certificate-section .section-title {
        margin-bottom: 20px;
    }

    .certificate-list {
        gap: 15px;
    }

    .certificate-card {
        margin-bottom: 15px;
    }

    .certificate-card-inner {
        padding: 20px;
        border-radius: 20px;
    }

    .certificate-card-inner img {
        max-width: 100%;
        max-height: 170px;
    }

    .card-title {
        margin-top: 10px;
        font-size: var(--font-base);
    }

    .card-desc {
        font-size: var(--font-sm);
        padding-right: 0;
    }

    .tabs.en {
        gap: 8px;
    }

    .tabs {
        border-radius: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        scroll-snap-align: start;
    }
}

/***********************
        오시는길
 ***********************/
.location-wrap {
    display: flex;
    gap: 30px;
    margin-top: 80px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.location-map {
    flex: 1.2;
}

.location-map iframe {
    width: 100%;
    height: 680px;
    border-radius: 32px;
    border: none;
}

.location-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 40px;
    background-color: rgba(246, 248, 250, 0.6);
    border-radius: 30px;
    border: 1px solid #EAEEF2;
}

.info-item img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.info-label {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
}

.info-value {
    font-size: 24px;
    color: #424A53;
    line-height: 1.6;
}

@media (max-width: 1024px) {

    .location-map iframe {
        height: 500px;
        border-radius: 20px;
    }

    .info-item {
        padding: 30px;
    }

    .info-label {
        font-size: var(--font-2xl);
    }

    .info-value {
        font-size: var(--font-xl);
    }
}

@media (max-width: 768px) {
    .location-wrap {
        margin-top: 50px;
        flex-direction: column;
    }

    .location-map,
    .location-info {
        width: 100%;
    }

    .location-map iframe {
        height: 380px;
        border-radius: 20px;
    }

    .location-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .info-item {
        padding: 20px;
        border-radius: 20px;
    }

    .info-label {
        font-size: var(--font-lg);
        margin-bottom: 15px;
    }

    .info-value {
        font-size: var(--font-md);
    }
}

@media (max-width: 480px) {
    .location-info {
        grid-template-columns: repeat(1, 1fr);
    }

    .location-map iframe {
        height: 300px;
    }

    .info-label {
        font-size: var(--font-md);
    }

    .info-value {
        font-size: var(--font-base);
    }

    .info-item {
        flex-direction: row;
        padding: 20px;
        gap: 10px;
    }
}