@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600&display=swap');

/* Base */
body {
    font-family: 'Kanit', sans-serif;
    background-color: #f9fbff;
    margin: 0;
    padding: 0;
    color: #222;
    line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb-area {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    background-color: #0066cc;
    min-height: 150px; /* กำหนดขั้นต่ำ */
    display: flex;
    align-items: center;
    height: 50vh; /* ความสูงของ breadcrumb */
}

.breadcrumb-content h4 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

/* Main content */
.jointeam-content {
    max-width: 1100px;
    margin: 60px auto 100px;
    padding: 0 20px;
}

.jointeam-mid-title {
    text-align: center;
    margin-bottom: 50px;
}

.jointeam-mid-title h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 800;
    background: linear-gradient(90deg, #00b09b, #96c93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding-left: 40px;
}

.jointeam-mid-title h1 i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #96c93d;
    font-size: 1.8rem;
    opacity: 0.8;
}

/* Service Section */
.service-section {
    margin-bottom: 60px;
}

.service-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #004080;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid #00b09b;
    padding-left: 15px;
    padding-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 176, 155, 0.3);
    border-radius: 6px;
    background-color: #e6f4f1;
    max-width: max-content;
}

.service-section h2 .icon-monitor::before {
    content: "🖥️";
    font-size: 28px;
}

/* Grid layout */
.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* Service Item */
.service-item {
    background: #fff;
    border-radius: 25px;
    box-shadow:
        6px 6px 15px rgba(0, 0, 0, 0.1),
        -6px -6px 15px rgba(255, 255, 255, 0.7);
    padding: 30px 25px 35px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.15),
        -12px -12px 24px rgba(255, 255, 255, 0.9);
    border-color: #00b09b;
    background: linear-gradient(145deg, #d9f0ed, #b3e1d5);
}

.service-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Icon */
.service-item .icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f6f9;
    box-shadow: inset 6px 6px 10px #c4d4e1,
        inset -6px -6px 10px #ffffff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-item:hover .icon {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    box-shadow: 0 4px 15px rgba(0, 176, 155, 0.6);
    transform: scale(1.15);
}

.service-item svg {
    width: 50px;
    height: 50px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.15));
    transition: filter 0.3s ease;
}

.service-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Titles and descriptions */
.service-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #004080;
    margin-bottom: 12px;
}

.service-item p {
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .jointeam-mid-title h1 {
        font-size: 3.5rem;
    }

    .service-section h2 {
        font-size: 2rem;
        gap: 8px;
        border-left-width: 4px;
        padding-left: 12px;
    }

    .service-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .jointeam-mid-title h1 {
        font-size: 2.8rem;
        padding-left: 30px;
    }

    .jointeam-mid-title h1 i {
        font-size: 1.4rem;
    }
}
