/* Expertise Hero Section Styles */

.expertise-main-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

.expertise-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 120px 5% 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    overflow: visible !important;
    max-height: none !important;
}

.expertise-hero-content {
    position: relative;
    z-index: 10001;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: visible !important;
    max-height: none !important;
}

.expertise-hero-heading {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.expertise-highlight {
    color: var(--primary-color);
}

.expertise-hero-content h2 {
    font-size: 2rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.expertise-hero-content > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.expertise-cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(51, 72, 151, 0.2);
}

.expertise-cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(51, 72, 151, 0.3);
}

.expertise-hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 100%;
    background: url('assets/image copy.png') no-repeat right top/contain;
    z-index: 0;
    opacity: 0.85;
    pointer-events: none;
}

.expertise-hero-hexagon {
    position: absolute;
    top: 50%;
    right: 180px;
    transform: translateY(-50%);
    width: 500px;
    height: auto;
    z-index: 10000;
    pointer-events: none;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .expertise-hero {
        padding: 100px 5% 40px;
    }
    .expertise-hero-content {
        max-width: 100%;
        padding-right: 0;
    }
    .expertise-hero-hexagon {
        display: none;
    }
}

@media (max-width: 900px) {
    .expertise-hero-heading {
        font-size: 2.8rem;
    }
    
    .expertise-hero-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .expertise-main-flex {
        align-items: stretch;
    }
    .expertise-hero {
        padding: 140px 5% 40px;
    }
    .expertise-hero-content {
        align-items: center;
        text-align: center;
    }
    .expertise-hero-heading {
        font-size: 2.2rem;
    }
    
    .expertise-hero-content h2 {
        font-size: 1.4rem;
    }
    
    .expertise-hero-content > p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .expertise-hero {
        padding: 120px 5% 30px;
    }
    
    .expertise-hero-heading {
        font-size: 1.8rem;
    }
    
    .expertise-hero-content h2 {
        font-size: 1.2rem;
    }
    
    .expertise-cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    .processing-tab-btn[data-tab="chemicals"],
    .processing-tab-btn[data-tab="powder"] {
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        word-break: break-word;
        padding-left: 6px;
        padding-right: 6px;
    }
    .processing-tab-panel {
        padding: 18px 0;
    }
    .processing-card-list {
        padding: 0 8px;
        margin: 0 auto;
        align-items: stretch;
    }
    .processing-card {
        max-width: 100%;
        width: 100%;
        margin: 0 0 18px 0;
        border-radius: 18px;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 2px 12px rgba(44, 72, 151, 0.08);
        padding: 18px 12px;
    }
    .processing-card-image {
        width: 90px;
        height: 90px;
        min-width: 90px;
        min-height: 90px;
        border-radius: 12px;
        margin: 0 auto 14px auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .processing-card-details {
        padding-left: 0;
        text-align: center;
        width: 100%;
    }
    .processing-card-details h3 {
        font-size: 0.98rem;
        margin-bottom: 0.5rem;
    }
    .processing-card-details p,
    .processing-card-details ul,
    .processing-card-details li {
        font-size: 0.92rem;
        margin-bottom: 1.1rem;
    }
    .processing-card-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: stretch;
        margin-top: 10px;
    }
    .processing-btn {
        width: 100%;
        min-width: 0;
        font-size: 1rem;
        padding: 13px 0;
        border-radius: 999px;
    }
    .processing-tabs-nav {
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .processing-tabs-nav::-webkit-scrollbar {
        display: none;
    }
    .processing-tab-btn {
        flex: 0 0 50%;
        min-width: 50vw;
        max-width: 50vw;
        box-sizing: border-box;
    }
    .processing-card-details h3 {
        font-size: 0.98rem;
    }
    .processing-card-details p,
    .processing-card-details ul,
    .processing-card-details li {
        font-size: 0.92rem;
    }
    .processing-tabs-section h2 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .expertise-hero {
        padding: 100px 4% 20px;
    }
    
    .expertise-hero-heading {
        font-size: 1.5rem;
    }
    
    .expertise-hero-content h2 {
        font-size: 1.1rem;
    }
    
    .expertise-hero-content > p {
        font-size: 0.95rem;
    }
}

/* Processing Tabs Section */
.processing-tabs-section {
    margin-top: 2.5rem;
    width: 100%;
    max-width: 900px;
    z-index: 2;
    position: relative;
}

.processing-tabs-nav {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    border-bottom: 2.5px solid #d1d5db;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    gap: 0;
    margin-bottom: 32px;
    overflow-x: auto;
}
.processing-tab-btn {
    flex: 1 1 0%;
    min-width: 0;
    border: none;
    border-bottom: 2.5px solid transparent;
    background: none;
    color: #222;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 18px 0 14px 0;
    margin: 0;
    border-radius: 0;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    text-align: center;
    outline: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}
.processing-tab-btn::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #334897;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1), left 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 2;
}
.processing-tab-btn:last-child {
    border-right: none;
}
.processing-tab-btn.active,
.processing-tab-btn:hover {
    color: #334897;
    background: none !important;
}
.processing-tab-btn.active::after,
.processing-tab-btn:hover::after {
    width: 100%;
    left: 0;
}

.processing-tabs-content {
    background: transparent !important;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 72, 151, 0.10);
    overflow: hidden;
    transition: all 0.4s;
}

.processing-tab-panel {
    display: none;
    padding: 36px 32px;
    animation: fadeInUp 0.5s;
    background: rgba(255, 255, 255, 0.70) !important;
}
.processing-tab-panel.active {
    display: block;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.processing-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(44, 72, 151, 0.08);
    padding: 28px 24px;
    transition: box-shadow 0.3s, transform 0.3s;
}
.processing-card:hover {
    box-shadow: 0 8px 25px rgba(44, 72, 151, 0.10);
    transform: scale(1.03);
}
.processing-card-image {
    width: 160px;
    height: 120px;
    background: #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.processing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.processing-card-details {
    flex: 1;
}
.processing-card-details h3 {
    font-size: 1.35rem;
    color: #243268;
    margin-bottom: 0.7rem;
    font-weight: 700;
}
.processing-card-details p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}
.processing-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.processing-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(44, 72, 151, 0.08);
    min-width: 0;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    overflow: visible;
    text-overflow: initial;
    border-radius: 999px;
}
.processing-btn.primary {
    background: #334897;
    color: #fff;
}
.processing-btn.primary:hover {
    background: #243268;
    transform: scale(1.07);
}
.processing-btn.secondary {
    background: #f5f5f5;
    color: #334897;
    border: 1px solid #d1d5db;
}
.processing-btn.secondary:hover {
    background: #e9ecef;
    color: #243268;
    transform: scale(1.07);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .processing-tabs-section {
        max-width: 100%;
    }
    .processing-card {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .processing-card-image {
        width: 100%;
        height: 180px;
        margin-bottom: 10px;
    }
}
@media (max-width: 700px) {
    .processing-tabs-section {
        margin-top: 1.2rem;
    }
    .processing-tabs-nav {
        gap: 6px;
        padding: 6px;
        border-radius: 10px;
        margin-bottom: 18px;
    }
    .processing-tab-btn {
        min-width: 170px;
        font-size: 0.98rem;
        padding: 10px 12px;
    }
    .processing-tabs-content {
        border-radius: 12px;
    }
    .processing-tab-panel {
        padding: 18px 8px;
    }
    .processing-card {
        padding: 16px 8px;
        border-radius: 10px;
    }
    .processing-card-image {
        height: 120px;
    }
    .processing-card-details h3 {
        font-size: 1.1rem;
    }
    .processing-btn {
        font-size: 0.95rem;
        min-width: 90px;
        padding: 10px 12px;
    }
    .processing-card-details {
        padding: 0 1.1rem 1rem 1.1rem;
    }
}
@media (max-width: 480px) {
    .processing-tabs-section {
        margin-top: 0.7rem;
    }
    .processing-tabs-nav {
        gap: 4px;
        padding: 3px;
        border-radius: 7px;
        margin-bottom: 10px;
    }
    .processing-tab-btn { 
        min-width: 140px;
        font-size: 0.93rem;
        padding: 7px 6px;
        border-radius: 5px;
    }
    .processing-tabs-content {
        border-radius: 7px;
    }
    .processing-tab-panel {
        padding: 10px 2px;
    }
    .processing-card {
        padding: 7px 2px;
        border-radius: 6px;
    }
    .processing-card-image {
        height: 80px;
        border-radius: 5px;
    }
    .processing-card-details h3 {
        font-size: 1rem;
    }
    .processing-btn {
        font-size: 0.9rem;
        min-width: 70px;
        padding: 7px 6px;
        border-radius: 4px;
    }
    .processing-card-details {
        padding: 0 0.7rem 0.7rem 0.7rem;
    }
}

/* Wider content area for desktop */
@media (min-width: 1200px) {
    .expertise-hero-content,
    .processing-tabs-section {
        max-width: 1200px;
    }
}

/* Buttons: width by content, not fixed */
.processing-btn {
    min-width: 0;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    overflow: visible;
    text-overflow: initial;
    border-radius: 999px;
}

html, body, .expertise-main-flex, .expertise-hero, .expertise-hero-content {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.processing-card-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}

.processing-drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 62, 80, 0.25);
    z-index: 9998;
    display: block;
    transition: opacity 0.3s;
}
.processing-drawer {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    top: 80px;
    z-index: 9999;
    background: #fff;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 -8px 32px rgba(44, 72, 151, 0.18);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 18px 18px 18px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
    display: block;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.processing-drawer.open {
    transform: translateY(0);
    opacity: 1;
}
.processing-drawer-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #334897;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    padding: 18px 18px 10px 18px;
    transition: color 0.2s;
}
.processing-drawer-close:hover {
    color: #243268;
}
.drawer-card {
    margin-top: 56px;
}
@media (max-width: 700px) {
    .processing-drawer {
        max-width: 100vw;
        padding: 0 4vw 10px 4vw;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        top: 80px;
        max-height: calc(100vh - 80px);
    }
    .processing-drawer-close {
        padding: 14px 10px 8px 10px;
        font-size: 2rem;
    }
    .drawer-card {
        margin-top: 44px;
        padding: 1.1rem !important;
    }
}
@media (min-width: 900px) {
    .processing-drawer {
        max-width: 1100px;
    }
    .processing-card .processing-card-image {
        width: 240px;
        height: 200px;
        min-width: 240px;
        min-height: 200px;
    }
}

.processing-card.drawer-card ul,
.processing-card.drawer-card li {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 0;
}

.processing-card.drawer-card .processing-card-actions {
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .processing-tabs-section h2 {
    font-size: 1rem;
  }
}
