﻿.music-label-logos {
    display: none;
}

@media (min-width: 1200px) {
    .music-label-logos {
        display: block;
    }
}

.music-label-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;

    opacity: 0;
    transition: all .4s ease;
}

/* ขนาดวงกลม */
.logo-item {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-1 { top: 0%; left: 12%; }
.logo-2 { top: -8%; left: 22.5%; }
.logo-3 { top: -11%; left: 33%; }
.logo-4 { top: -10%; left: 67%; transform: rotate(11deg); }
.logo-5 { top: -5%; left: 77.5%; transform: rotate(11deg); }
.logo-6 { top: 8%; left: 87.5%; transform: rotate(11deg); }

/* เมื่อ hover ที่ Music Label */
#music-label:hover ~ .music-label-logos {
    opacity: 1;
    transform: translateY(0);
}
.music-label-logos.active {
    opacity: 1;
    transform: translateY(0);
}


.element {
    position: relative;
}

/* tooltip ซ่อนก่อน */
.element[data-tooltip]::after {
    content: attr(data-tooltip);

    position: absolute;
    bottom: 120%;
    left: 50%;

    width: 240px;
    background: rgba(0,0,0,0.9);
    color: #fff;

    padding: 8px 10px;
    border-radius: 6px;

    font-size: 12px;   /* ✅ fix ตัวใหญ่ */
    line-height: 1.4;

    opacity: 0;        /* ✅ สำคัญ */
    visibility: hidden;/* ✅ สำคัญ */

    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 9999;
    transform: translateX(-50%) translateY(10px) rotate(15deg);
}

/* ลูกศร */
.element[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);

    border-width: 5px;
    border-style: solid;
    border-color: rgba(0,0,0,0.9) transparent transparent transparent;

    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

/* hover เท่านั้นถึงโชว์ */
.element[data-tooltip]:hover::after,
.element[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.element[data-tooltip]:hover::after {
    transform: translateX(-50%) translateY(0) rotate(15deg);
}

/* ลูกศรด้วย */
.element[data-tooltip]::before {
    transform: translateX(-50%) rotate(15deg);
}

.our-business-section {
    position: relative;
    z-index: 0;
}

.text-header {
    position: relative;
    z-index: 10;
}

.element {
    position: relative;
    z-index: 20;
}

.business-mobile-list {
    display: none;
}

@media (max-width: 767.98px) {
    .our-business-section {
        min-height: auto;
        padding: 0 20px 56px;
    }

    .our-business-section > .text-header {
        font-size: clamp(42px, 12vw, 56px);
        line-height: 1;
        padding: 0;
        margin-bottom: 16px;
    }

    .our-business-section > .main-title {
        position: static;
        transform: none;
        width: auto;
        text-align: left;
        font-size: clamp(34px, 9vw, 44px);
        line-height: 1.05;
        margin: 0 0 28px;
    }

    .oval-wrapper {
        display: none !important;
    }

    .business-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 8px;
    }

    .business-mobile-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 64px;
        padding: 16px 0;
        border-bottom: 1px solid rgba(38, 36, 36, 0.16);
        color: var(--text-color);
        text-decoration: none;
        font-size: 24px;
        font-weight: 900;
        line-height: 1.1;
    }

    .business-mobile-list a > span:first-child {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
    }

    .business-mobile-list img {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .business-mobile-arrow {
        color: var(--text-grey-color);
        font-size: 28px;
        line-height: 1;
        flex: 0 0 auto;
    }
}

.our-business-section {
    position: relative;
}

/* วง */
.oval-container {
    position: absolute;
    z-index: 1;
    transform: rotate(-15deg);
}

/* text */
.main-title {
    position: absolute;

    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%); /* 👉 กลางจริง */

    z-index: 10;
    text-align: center;
    width: 100%;
}

/* icon */
.element {
    position: relative;
    z-index: 20;
}
