/* ==================== AUTHORITY SECTIONS - FRESH DESIGN ==================== */

.auth-section {
    padding-top: 70px;
    background: var(--white);
}

.auth-section:nth-child(even) {
    background: var(--light-gray);
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 70px;
}

/* Section header - using .section-header from existing CSS */
/* No need to duplicate - .section-header already exists in styles.css */

/* ===== WHAT IS SECTION - SPLIT WITH LOGO ===== */
.whatis-split {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.whatis-split .text {
    flex: 1.2;
}

.whatis-split .text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.whatis-split .logo-wrapper {
    flex: 0.8;
    text-align: center;
}

/* Single unified logo card class */
/* Fixed card size - same for ALL service pages */
.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(16, 81, 130, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Image fills the card completely */
.logo-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Keeps aspect ratio, fits inside */
}

/* THEN scale each image individually to match visual size */
/* API Q1 - image is small, zoom in */
.logo-card img[src*="q1.png"] {
    transform: scale(0.9);
}

/* API Q2 - image is small, zoom in */
.logo-card img[src*="q2.png"] {
    transform: scale(0.9);
}

/* API Monogram - image is large, zoom out or normal */
.logo-card img[src*="mono.png"] {
    transform: scale(0.9);
}

/* IATF - adjust as needed */
.logo-card img[src*="iatf"] {
    transform: scale(0.8);
}

/* ISO 17025 - adjust as needed */
.logo-card img[src*="17025"] {
    transform: scale(0.9);
}

/* ISO Series - adjust as needed */
.logo-card img[src*="iso.webp"] {
    transform: scale(0.8);
}



.logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(16, 81, 130, 0.2);
}

.logo-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}


/* ===== WHO NEEDS SECTION - 2 COLUMN GRID ===== */
.who-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.who-pillar {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 60px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(91, 204, 236, 0.2);
    cursor: pointer;
}

.who-pillar:hover {
    transform: translateX(8px);
    border-color: var(--light-blue);
    box-shadow: 0 8px 20px rgba(16, 81, 130, 0.1);
}

.who-pillar-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 81, 130, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.who-pillar-icon i {
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.who-pillar-text {
    flex: 1;
}

.who-pillar-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
}



/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .whatis-split {
        gap: 40px;
    }
    

}

@media (max-width: 768px) {
    .auth-section {
        padding: 50px 0;
    }
    
    .auth-header h2 {
        font-size: 1.8rem;
    }
    
    .whatis-split {
        flex-direction: column;
    }
    
    .whatis-split .logo-wrapper {
        order: -1;
    }
    

    
    .who-pillars {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .who-pillar {
        padding: 10px 20px;
        border-radius: 50px;
    }
    
    .who-pillar-icon {
        width: 42px;
        height: 42px;
        margin-right: 14px;
    }
    
    .who-pillar-icon i {
        font-size: 1.1rem;
    }
    
    .who-pillar-text h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-header h2 {
        font-size: 1.5rem;
    }
    

    .logo-card {

    width: 190px;
    height: 190px;

}
    .who-pillar {
        padding: 8px 16px;
    }
    
    .who-pillar-icon {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }
    
    .who-pillar-text h4 {
        font-size: 0.8rem;
    }
}


/* ==================== INNER SERVICES SECTION - COMPACT CARDS ==================== */

.inner-services {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(16, 81, 130, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
}



.inner-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.inner-service-card {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.inner-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.inner-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease-out;
}

/* Zoom out effect - smaller image scale */
.inner-card-bg.child-1,
.inner-card-bg.child-2,
.inner-card-bg.child-3,
.inner-card-bg.child-4,
.inner-card-bg.child-5,
.inner-card-bg.child-6 {
    transform: scale(0.65);
}

.inner-service-card:hover .inner-card-bg.child-1,
.inner-service-card:hover .inner-card-bg.child-2,
.inner-service-card:hover .inner-card-bg.child-3,
.inner-service-card:hover .inner-card-bg.child-4,
.inner-service-card:hover .inner-card-bg.child-5,
.inner-service-card:hover .inner-card-bg.child-6 {
    transform: scale(0.68);
}

.inner-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(16, 81, 130, 0.85) 0%, 
        rgba(16, 81, 130, 0.7) 50%,
        rgba(16, 81, 130, 0.9) 100%
    );
    transition: all 0.3s ease;
}

.inner-card-content {
    position: relative;
    z-index: 2;
    padding: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: white;
}

.inner-service-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.inner-service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: white;
}

.inner-card-content p {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.85);
    flex-grow: 1;
}

/* Remove Learn More link */
.inner-service-card .service-link {
    display: none;
}

.inner-services-cta {
    text-align: center;
}

@media (max-width: 1024px) {
    .inner-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .inner-service-card {
        height: 230px;
    }
}

@media (max-width: 768px) {
    .inner-services {
        padding: 40px 0;
    }
    
    .inner-services .section-header {
        margin-bottom: 30px;
    }
    
    .inner-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }
    
    .inner-service-card {
        height: 220px;
    }
    
    .inner-card-content {
        padding: 15px;
    }
    
    .inner-service-card h3 {
        font-size: 0.95rem;
    }
    
    .inner-card-content p {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .inner-services {
        padding: 35px 0;
    }
    
    .inner-service-card {
        height: 150px;
    }

    .inner-card-content {
        padding: 12px;
    }
    
    .inner-service-card h3 {
        font-size: 0.9rem;
    }
    
    .inner-card-content p {
        font-size: 0.65rem;
    }
}