/* ── Appstechy Advanced Tabs Styles ── */

.appstechy-advanced-tabs-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── Section Header Styling ── */
.appstechy-section-header-wrapper {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.appstechy-section-title {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #1a202c;
    display: inline-block;
}

/* Accent letter highlights (e.g. blue first letters) */
.appstechy-section-title .highlight-letter {
    color: var(--first-letter-color, #1d5f7a);
    transition: color 0.3s ease;
}

/* Blue line centered below the first word */
.appstechy-section-title .text-underline {
    position: relative;
    display: inline-block;
}

.appstechy-section-title .text-underline::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 100%;
    height: var(--underline-thickness, 3px);
    background-color: var(--underline-color, #1d5f7a);
    transition: all 0.3s ease;
}

.appstechy-section-description {
    font-size: 16px;
    line-height: 1.65;
    max-width: 800px;
    margin: 15px auto 0 auto;
    color: #4a5568;
    transition: color 0.3s ease;
}

/* ── Tab Buttons Navigation ── */
.appstechy-tabs-nav-wrapper {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    box-sizing: border-box;
}

.appstechy-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

/* Tab button layouts */
.align-left .appstechy-tabs-nav {
    justify-content: flex-start;
}
.align-center .appstechy-tabs-nav {
    justify-content: center;
}
.align-right .appstechy-tabs-nav {
    justify-content: flex-end;
}

.appstechy-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
    background-color: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

/* Tab Button: Hover State */
.appstechy-tab-btn:hover {
    border-color: #1d5f7a;
    color: #1d5f7a;
}

/* Tab Button: Active State */
.appstechy-tab-btn.active {
    background-color: #1d5f7a;
    color: #ffffff;
    border-color: #1d5f7a;
    box-shadow: 0 4px 12px rgba(29, 95, 122, 0.2);
}

/* ── Tab Panels Content ── */
.appstechy-tab-panels {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.appstechy-tab-panel {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.appstechy-tab-panel.active {
    display: block;
}

/* ── Content Items Grid ── */
.appstechy-tab-grid {
    display: grid;
    grid-template-columns: repeat(var(--desktop-cols, 6), 1fr);
    gap: var(--grid-gap-desktop, 40px);
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.appstechy-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

/* Logo Image Container */
.appstechy-tab-item-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--logo-height-desktop, 80px);
    margin-bottom: 12px;
    box-sizing: border-box;
}

.appstechy-tab-item-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Logo Label / Title */
.appstechy-tab-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    transition: color 0.3s ease;
}

/* ── Premium Hover Animations ── */

/* 1. Lift Up Animation */
.hover-anim-lift:hover {
    transform: translateY(-8px);
}

/* 2. Scale Up Animation */
.hover-anim-scale:hover .appstechy-tab-item-logo img {
    transform: scale(1.1);
}

/* 3. Opacity Transition */
.hover-anim-opacity .appstechy-tab-item-logo img {
    opacity: 0.75;
}
.hover-anim-opacity:hover .appstechy-tab-item-logo img {
    opacity: 1;
}

/* 4. Glow / Highlight title on hover */
.appstechy-tab-item:hover .appstechy-tab-item-title {
    color: #1d5f7a;
}

/* ── Responsive Rules ── */
@media (max-width: 1024px) {
    .appstechy-tab-grid {
        grid-template-columns: repeat(var(--tablet-cols, 4), 1fr);
        gap: var(--grid-gap-tablet, 30px);
    }
    
    .appstechy-tab-item-logo {
        height: var(--logo-height-tablet, 70px);
    }
    
    .appstechy-section-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .appstechy-tab-grid {
        grid-template-columns: repeat(var(--mobile-cols, 2), 1fr);
        gap: var(--grid-gap-mobile, 25px);
    }
    
    .appstechy-tab-item-logo {
        height: var(--logo-height-mobile, 60px);
    }
    
    .appstechy-section-title {
        font-size: 28px;
    }
    
    .appstechy-tab-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%; /* stack full width on mobile if desired */
    }
    
    .appstechy-tabs-nav {
        flex-direction: column;
        gap: 10px;
    }
}
