/* ==================== ABOUT PAGE STYLES ==================== */
.about-hero {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 80px 0 60px;
    margin-top: 80px;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 5px;
    color: var(--white);
}

.about-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.about-content {
    padding: 80px 0;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.about-intro h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.leadership-profile-section {
    margin: 60px 0;
}

div.leadership-profile-section {
    margin: 0px 0;
}

.profile-card-container {
    display: flex;
    gap: 40px;
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1a3e6a, #5bccec);
}

.profile-image-wrapper {
    flex: 0 0 320px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.profile-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.profile-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 62, 106, 0.1) 0%, rgba(91, 204, 236, 0.1) 100%);
    mix-blend-mode: soft-light;
}

.profile-content-wrapper {
    flex: 1;
}

.company-mission {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    padding: 20px;
    background-color: #f1f8ff;
    border-left: 4px solid #5bccec;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
}

.leader-name {
    font-size: 1.9rem;
    margin-bottom: 5px;
    color: #1a3e6a;
    font-weight: 700;
}

.leader-title {
    font-weight: 600;
    color: #5bccec;
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.leader-biography p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #4a5568;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.expertise-list li {
    background: linear-gradient(90deg, rgba(91, 204, 236, 0.1) 0%, rgba(91, 204, 236, 0.05) 100%);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    border-left: 3px solid #5bccec;
    transition: all 0.3s ease;
}

.expertise-list li:hover {
    background: linear-gradient(90deg, rgba(91, 204, 236, 0.15) 0%, rgba(91, 204, 236, 0.1) 100%);
    transform: translateX(5px);
}

.expertise-category {
    font-weight: 600;
    color: #1a3e6a;
}

.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.certifications li {
    background-color: rgba(91, 204, 236, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* About Page Responsive Adjustments */
@media (max-width: 992px) {
    .profile-card-container {
        flex-direction: column;
    }
    
    .profile-image-wrapper {
        flex: 0 0 auto;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 80px 0 50px;
    }
    
    section.about-content {
        padding: 40px 0;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .leadership-profile-section {
        margin: 40px 0;
    }
    
    .profile-card-container {
        padding: 30px;
    }
    
    .profile-image-wrapper {
        max-width: 100%;
    }
    
    .leader-name {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .about-hero {
        padding: 50px 0 50px;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-hero p {
        font-size: 1.1rem;
    }
    
    .profile-card-container {
        padding: 20px;
    }
    
    .profile-image-wrapper {
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .expertise-list li {
        padding: 10px 15px;
    }
    
    .certifications {
        grid-template-columns: 1fr;
    }
}

/* Services Page Styles */
.standards-section {
    margin: 0;
}

.standards-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2rem;
    color: #1a3e6a;
}

.standards-section > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.standards-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.standard-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #5bccec;
    width: 100%;
}

.standard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.standard-card.full-width {
    border-left-color: #1a3e6a;
}

.standard-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.standard-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(91, 204, 236, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #1a3e6a;
    font-size: 1.4rem;
}

.standard-card h3 {
    font-size: 1.4rem;
    color: #1a3e6a;
    margin: 0;
}

.standard-content p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.iso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.iso-grid ul {
    list-style: none;
    padding-left: 0;
}

.iso-grid li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.iso-grid li::before {
    content: '•';
    color: #5bccec;
    font-size: 1.4rem;
    position: absolute;
    left: 0;
    top: -3px;
}

.capability-statement {
    background-color: #105182;
    color: white;
    padding: 80px 40px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    
}

.capability-statement h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.6rem;

}

.capability-statement p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 767px) {
    .standards-section {
        margin-top: 0px;
    }
    
    .standards-section h2 {
        font-size: 1.8rem;
    }
    
    .standard-card {
        padding: 20px;
        width: 95%;
        margin: 0 auto;
    }
    
    .standard-card.full-width {
        width: 95%;
        margin: 0 auto;
    }
    
    .iso-grid {
        grid-template-columns: 1fr;
    }
    
    .capability-statement {
        padding: 25px;
    }
    
    .about-content[data-page="services"] {
        padding: 20px 0 20px; 
    }
}

@media (max-width: 480px) {
    .standard-card {
        width: 92%;
        padding: 18px 12px;
    }
    
    .standard-card.full-width {
        width: 92%;
    }
}




/* ==================== IMAGE GALLERY SECTION STYLES ==================== */
.image-gallery-section {
    padding: 40px 0;
    background: #f9f9f9;
    --primary-blue: #1a73e8;
    --dark-gray: #333;
}

.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.image-gallery-section .nav-arrow {
    background: var(--primary-blue) !important;
    color: white !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
    z-index: 10 !important;
}

.image-gallery-section .nav-arrow:hover {
    background: #0a3a61 !important;
    transform: none !important;
}

.image-gallery-section .main-image-container {
    position: relative !important;
    width: 800px !important;
    max-width: 100% !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    background: white !important;
    /* Remove fixed height and use aspect ratio instead */
    aspect-ratio: 16/10 !important;
}

.image-gallery-section .image-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    transform: none !important;
    padding: 0 !important;
}

.image-gallery-section .main-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
}

.image-gallery-section .image-counter {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    z-index: 5 !important;
}

.image-gallery-section .image-description {
    text-align: center !important;
    margin-bottom: 25px !important;
    padding: 0 5px !important;
}

.image-gallery-section .image-description p {
    font-size: 1.2rem !important;
    color: var(--dark-gray) !important;
    font-weight: 500 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.image-gallery-section .thumbnail-container {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 5px !important;
}

.image-gallery-section .thumbnail {
    width: 80px !important;
    height: 60px !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
    transition: opacity 0.3s ease, border-color 0.3s ease !important;
    border: 2px solid transparent !important;
    flex-shrink: 0 !important;
    transform: none !important;
}

.image-gallery-section .thumbnail:hover {
    opacity: 1 !important;
    transform: none !important;
}

.image-gallery-section .thumbnail.active {
    opacity: 1 !important;
    border-color: var(--primary-blue) !important;
    transform: none !important;
}

.image-gallery-section .thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
}

/* Auto-play controls */
.image-gallery-section .auto-play-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.image-gallery-section .auto-play-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    color: var(--dark-gray) !important;
}

.image-gallery-section .toggle-switch {
    width: 40px !important;
    height: 20px !important;
    background: #ddd !important;
    border-radius: 20px !important;
    position: relative !important;
    transition: background 0.3s ease !important;
}

.image-gallery-section .toggle-switch::before {
    content: '' !important;
    position: absolute !important;
    width: 16px !important;
    height: 16px !important;
    background: white !important;
    border-radius: 50% !important;
    top: 2px !important;
    left: 2px !important;
    transition: transform 0.3s ease !important;
}

.image-gallery-section .auto-play-toggle.active .toggle-switch {
    background: var(--primary-blue) !important;
}

.image-gallery-section .auto-play-toggle.active .toggle-switch::before {
    transform: translateX(20px) !important;
}

/* ==================== RESPONSIVE STYLES ==================== */
/* For tablets and medium screens */
@media (max-width: 900px) {
    .image-gallery-section .main-image-container {
        width: 95% !important;
        margin: 0 auto !important;
    }
    
    .gallery-container {
        padding: 0 10px !important;
    }
    
    .gallery-main {
        gap: 12px !important;
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    .image-gallery-section {
        padding: 30px 0 !important;
    }
    
    .gallery-container {
        padding: 0 5px !important;
    }
    
    .gallery-main {
        gap: 8px !important;
        margin-bottom: 15px !important;
    }
    
    .image-gallery-section .nav-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    
    .image-gallery-section .main-image-container {
        width: 98% !important;
        border-radius: 8px !important;
        aspect-ratio: 16/9 !important; /* Wider aspect ratio for mobile */
    }
    
    .image-gallery-section .image-wrapper {
        padding: 5px !important;
    }
    div.image-wrapper{
        margin-top: 0px;
        padding: 0px;
    }
    div.about-intro {
        margin-bottom: 20px;
    }
    .image-gallery-section .image-counter {
        bottom: 8px !important;
        right: 8px !important;
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }
    
    .image-gallery-section .image-description {
        margin-bottom: 20px !important;
    }
    
    .image-gallery-section .image-description p {
        font-size: 1.1rem !important;
    }
    
    .image-gallery-section .thumbnail {
        width: 70px !important;
        height: 52px !important;
    }
    
    .image-gallery-section .thumbnail-container {
        gap: 6px !important;
        padding: 0 3px !important;
    }
}

/* For small mobile devices */
@media (max-width: 600px) {
    .image-gallery-section {
        padding: 25px 0 !important;
    }
    
    .gallery-main {
        gap: 6px !important;
    }
    
    .image-gallery-section .nav-arrow {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }
    
    .image-gallery-section .main-image-container {
        aspect-ratio: 4/3 !important; /* Even wider aspect ratio for small devices */
    }
    
    .image-gallery-section .image-description p {
        font-size: 1rem !important;
    }
    
    .image-gallery-section .thumbnail {
        width: 60px !important;
        height: 45px !important;
    }
    
    .image-gallery-section .thumbnail-container {
        gap: 5px !important;
    }
}

/* For extra small mobile devices */
@media (max-width: 480px) {
    .image-gallery-section {
        padding: 20px 0 !important;
    }
    
    .gallery-main {
        gap: 5px !important;
    }
    
    .image-gallery-section .nav-arrow {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
    
    .image-gallery-section .main-image-container {
        border-radius: 6px !important;
        aspect-ratio: 1/1 !important; /* Square aspect ratio for very small screens */
    }
    
    .image-gallery-section .image-counter {
        font-size: 0.75rem !important;
        padding: 2px 6px !important;
    }
    
    .image-gallery-section .image-description p {
        font-size: 0.95rem !important;
    }
    
    .image-gallery-section .thumbnail {
        width: 50px !important;
        height: 38px !important;
    }
    
    .image-gallery-section .thumbnail-container {
        gap: 4px !important;
    }
}


/* ==================== CLIENTS PAGE - FIXED SERVICE HEADER ==================== */
.service-group .service-header {
    display: block !important;
    text-align: center !important;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-blue);
    /* REMOVED: white-space: nowrap - Allow natural wrapping */
}

.service-group .service-header .service-icon {
    display: inline-block !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.service-group .service-header h3 {
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle !important;
    text-align: left !important;
    font-size: 1.8rem;
    color: var(--primary-blue);
    /* Allow heading to wrap naturally */
    white-space: normal;
    word-wrap: break-word;
}

/* Remove any gaps completely */
.service-group .service-header {
    gap: 0 !important;
    justify-content: center !important;
}

/* List Layout Styles */
.list-container {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.3s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background-color: rgba(91, 204, 236, 0.1);
}

.list-info {
    flex-grow: 1;
}

.list-name {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: 600;
}

.list-location {
    color: var(--gray);
    font-size: 0.9rem;
}

.list-service {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    min-width: 180px;
    margin-left: 15px;
}

/* Minimalist Grid Layout */
.minimalist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.minimalist-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-blue);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.minimalist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.minimalist-content {
    flex-grow: 1;
    margin-bottom: 15px;
}

.minimalist-name {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-weight: 600;
}

.minimalist-location {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

.minimalist-service {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    align-self: flex-start;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .clients-hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .clients-hero {
        padding: 120px 0 80px;
    }
    
    .clients-hero h1 {
        font-size: 2.2rem;
    }
    
    .clients-hero p {
        font-size: 1.1rem;
    }
    
    .minimalist-grid {
        grid-template-columns: 1fr;
    }
    
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .list-service {
        margin: 10px 0 0 0;
        text-align: center;
        width: 100%;
    }
    
    /* Mobile optimization for service headers - ALLOW NATURAL WRAPPING */
    .service-group .service-header {
        /* REMOVED: white-space: nowrap and overflow-x: auto */
        white-space: normal; /* Allow natural wrapping */
    }
    
    .service-group .service-header h3 {
        font-size: 1.6rem;
        text-align: center !important;
        white-space: normal; /* Allow heading to wrap */
    }
    
    .service-group .service-header .service-icon {
        font-size: 1.6rem;
        margin-right: 8px;
    }
    
    div.service-group {
        margin-bottom: 10px;
    }
    
    .about-content[data-page="services"] {
        padding: 20px 0 !important;
    }
}

@media (max-width: 576px) {
    .clients-hero {
        padding: 100px 0 60px;
        margin-top: 70px;
    }
    
    .clients-hero h1 {
        font-size: 2rem;
    }
    
    .service-group .service-header h3 {
        font-size: 1.4rem;
    }
    
    .service-group .service-header .service-icon {
        font-size: 1.4rem;
        margin-right: 6px;
    }
    
    /* REMOVED: Forced single line and horizontal scrolling */
    .service-group .service-header {
        white-space: normal; /* Allow natural line breaks */
    }
}
