/* ── CleanNation Services Tabs – Front-end Styles ── */

.cn-services-tabs {
    font-family: inherit;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Subtitle */
.cn-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Tab buttons row */
.cn-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.cn-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: #f5f7fa;
    color: #6b7280;
    border: 1.5px solid #d1d8e4;
    border-radius: 0;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    outline: none;
    line-height: 1;
}

.cn-tab:first-child {
    border-right: none;
}

.cn-tab:last-child {
}

.cn-tab--active,
.cn-tab:hover {
    background: #ffffff;
    color: #1a2e4a;
    border-color: #b0bdd0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* Panels */
.cn-panel {
    display: none;
    animation: cnFadeIn 0.22s ease;
}

.cn-panel--active {
    display: block;
}

@keyframes cnFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* Tab description (shown below tabs, switches with active tab) */
.cn-tab-description {
    display: none !important;
    font-size: 15px;
    font-weight: 400;
    color: #5b6577;
    line-height: 1.6;
    text-align: center;
    max-width: 70%;
    margin: 16px auto;
}

.cn-tab-description--active {
    display: block !important;
    animation: cnFadeIn 0.22s ease;
}

.cn-tab-description p {
    margin: 0 0 8px;
}

.cn-tab-description p:last-child {
    margin-bottom: 0;
}

/* Service card grid */
.cn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Individual card */
.cn-card {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 6px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1.5px solid #d1d8e4;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.cn-card-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    width: 100% !important;
    order: 1;
}

.cn-card:hover {
    border-color: #1a2e4a;
    box-shadow: 0 2px 10px rgba(26, 46, 74, 0.09);
    transform: translateY(-1px);
}

.cn-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cn-card i,
.cn-card svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #1a2e4a;
    flex-shrink: 0;
}

.cn-card-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a2e4a;
    line-height: 1.3;
}

.cn-card-description {
    order: 2;
    display: block !important;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.5;
    width: 100% !important;
    box-sizing: border-box;
}

.cn-card-description p {
    margin: 0 0 6px;
}

.cn-card-description p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .cn-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .cn-grid             { grid-template-columns: repeat(2, 1fr); }
    .cn-tab              { padding: 12px 20px; font-size: 14px;  }
    .cn-card-description { font-size: 12.5px; }
}

@media (max-width: 480px) {
    .cn-grid             { grid-template-columns: 1fr; }
    .cn-tab              { padding: 10px 14px; font-size: 13px;  }
    .cn-card-description { font-size: 12px; }
}
