/* 
 * devIToffshore Custom Enhancements
 * Added to refine UI/UX according to requirements
 */

/* 1. Global Typography Improvements */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html,
body,
p,
a,
li,
span,
button,
input,
textarea {
    font-family: 'Inter', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-large-text {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* 2. Hero Section Refinements */
.hero-large-text {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

.hero-small-text {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-size: 1.25rem !important;
    font-weight: 400;
}

/* Hero Slideshow — reduce base overlay for brighter images */
/* :after is the dark overlay. Keep it below content (z-index not set = auto) */
.hero-slideshow-wrapper:after {
    background-color: rgba(5, 10, 30, 0.10) !important;
}

/*
 * IMPORTANT: Do NOT set display:flex on .hero-slideshow-wrapper.
 * Backstretch.js injects <img> elements as direct children and sizes
 * them via JS. Flex on the parent breaks their cover-fill behaviour.
 * Content placement is handled via absolute positioning on the container.
 */
.hero-slideshow-wrapper {
    min-height: 400px; /* prevents collapse on mobile before JS runs */
}

/* Backstretch wrapper integrity — keep injected images cover-filling */
.hero-slideshow-wrapper .backstretch {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 0 !important;
}

.hero-slideshow-wrapper .backstretch img {
    position: absolute !important;
    object-fit: cover !important;
    /* Backstretch also sets width/height via JS; this is a safety net */
}

/* Container must stay positioned and above the overlay */
.hero-slideshow-normal .container,
.hero-slideshow-fullscreen .container {
    position: relative !important;
    z-index: 90 !important;
    padding-top: 0 !important;
    padding-bottom: 50px !important;
    width: 100%;
    text-align: center;
}

/* Make sure buttons are always visible (not dependent on loaded class) */
.hero-slideshow-wrapper .hero__content .btn {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Mobile: ensure hero has a sensible height & content is readable */
@media (max-width: 767px) {
    .hero-slideshow-wrapper {
        min-height: 480px !important;
    }

    .hero-slideshow-normal .container,
    .hero-slideshow-fullscreen .container {
        padding-bottom: 40px !important;
        padding-top: 80px !important; /* space below mobile header */
    }

    /* Prevent oversized text on small screens */
    .hero-content-style1 h2 {
        font-size: 28px !important;
        letter-spacing: 1px !important;
        line-height: 1.3 !important;
    }

    .hero-small-text {
        font-size: 0.95rem !important;
    }

    .hero-slideshow-wrapper .hero__content .btn {
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
        margin: 6px 4px !important;
    }
}

/* 3. Button Styling (Modernization) */
.btn {
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0px !important;
    padding: 14px 28px !important;
}

.btn-theme-primary {
    background: #03c4eb;
    border: none;
    box-shadow: 0 4px 6px rgba(3, 196, 235, 0.3);
}

.btn-theme-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(3, 196, 235, 0.4);
}

.btn-secondary-outline {
    border: 2px solid white !important;
    background: transparent !important;
}

.btn-secondary-outline:hover {
    background: white !important;
    color: #333 !important;
    transform: translateY(-2px);
}

/* 4. Service/Feature Card Hover Animations */
.feature-item,
.service-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 20px;
}

.feature-item:hover,
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.feature-media .fa-stack,
.service-item i {
    transition: transform 0.3s ease;
}

.feature-item:hover .fa-stack,
.service-item:hover i {
    transform: scale(1.1);
}

/* 5. Smooth Scrolling globally */
html {
    scroll-behavior: auto;
}

/* 6. Section Spacing and Padding Adjustment */
.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    margin-bottom: 40px;
}

.section-desc {
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #555;
}

/* ============================================================
   CUSTOM: CLIENTS SECTION
   devIToffshore – Logo grid, auto-adapts to any number of logos
   ============================================================ */
.dito-section-clients {
    background: #f9fafb;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dito-section-clients .section-title-area {
    margin-bottom: 48px;
}

.dito-clients-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px 36px;
    padding: 0 20px;
    list-style: none;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.dito-client-item {
    flex: 0 1 160px;
    max-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0f3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 100px;
}

.dito-client-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
    border-color: rgba(3, 196, 235, 0.3);
}

.dito-client-item img {
    max-width: 130px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(60%) opacity(0.75);
    transition: filter 0.3s ease;
    display: block;
}

.dito-client-item:hover img {
    filter: grayscale(0%) opacity(1);
}

.dito-client-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.dito-client-name-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-align: center;
    line-height: 1.3;
    padding: 4px 0;
}

/* Responsive clients */
@media (max-width: 768px) {
    .dito-clients-grid {
        gap: 16px 20px;
    }

    .dito-client-item {
        flex: 0 1 130px;
        max-width: 150px;
        padding: 16px 18px;
        min-height: 80px;
    }

    .dito-client-item img {
        max-width: 110px;
        max-height: 56px;
    }
}

@media (max-width: 480px) {
    .dito-client-item {
        flex: 0 1 110px;
        max-width: 130px;
        padding: 14px 14px;
    }
}


/* ============================================================
   CUSTOM: TESTIMONIALS SECTION
   devIToffshore – Premium card layout with quote icon & stars
   ============================================================ */
.dito-section-testimonials {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.dito-section-testimonials .section-title-area {
    margin-bottom: 48px;
}

.dito-testimonials-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

.dito-testimonial-col {
    padding: 0 14px 28px;
}

.dito-testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(3, 196, 235, 0.10);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.dito-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #03c4eb, #0099c8);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dito-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(3, 196, 235, 0.14);
    border-color: rgba(3, 196, 235, 0.3);
}

.dito-testimonial-card:hover::before {
    opacity: 1;
}

/* Quote icon — hard-capped size so theme SVG rules can't override */
.dito-testimonial-quote-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    background: rgba(3, 196, 235, 0.10);
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.dito-testimonial-quote-icon svg,
.dito-testimonial-quote-icon svg path {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    fill: #03c4eb !important;
    display: block;
}

/* Quote text — reset ALL theme blockquote styles */
.dito-testimonial-text,
.dito-section-testimonials blockquote {
    font-size: 0.95rem !important;
    line-height: 1.75 !important;
    color: #444 !important;
    margin: 0 0 18px !important;
    flex-grow: 1;
    font-style: italic;
    border: none !important;
    border-left: none !important;
    padding: 0 !important;
    quotes: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Nuke any theme ::before/::after quote characters */
.dito-testimonial-text::before,
.dito-testimonial-text::after,
.dito-section-testimonials blockquote::before,
.dito-section-testimonials blockquote::after {
    content: none !important;
    display: none !important;
}

/* Star rating */
.dito-testimonial-stars {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1;
}

.dito-star--filled {
    color: #f5a623;
}

.dito-star--empty {
    color: #ddd;
}

/* Author row */
.dito-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #f0f4f8;
    padding-top: 18px;
    margin-top: auto;
}

/* Avatar circle */
.dito-testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(3, 196, 235, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dito-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback initial avatar */
.dito-testimonial-avatar--initials {
    background: linear-gradient(135deg, #03c4eb, #0099c8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dito-testimonial-avatar--initials span {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
    text-transform: uppercase;
}

/* Name + role */
.dito-testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dito-testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

a.dito-testimonial-name:hover {
    color: #03c4eb;
}

.dito-testimonial-role {
    font-size: 0.82rem;
    color: #888;
    font-style: italic;
    line-height: 1.3;
}

/* Responsive testimonials */
@media (max-width: 991px) {
    .dito-testimonial-col {
        padding: 0 10px 24px;
    }

    .dito-testimonial-card {
        padding: 26px 22px 22px;
    }
}

@media (max-width: 767px) {
    .dito-testimonial-col {
        padding: 0 0 20px;
    }

    .dito-testimonial-card {
        padding: 24px 20px 20px;
    }

    .dito-testimonial-text {
        font-size: 0.9rem;
    }
}


/* ============================================================
   CUSTOM: TEAM SECTION
   devIToffshore — Unlimited team members via dito_team CPT
   ============================================================ */

.dito-section-team {
    background: #fff;
}

.dito-section-team .section-title-area {
    margin-bottom: 48px;
}

.dito-team-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -14px;
}

.dito-team-col {
    padding: 0 14px 32px;
}

/* Card */
.dito-team-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 24px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(3, 196, 235, 0.10);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    overflow: hidden;
}

.dito-team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #03c4eb, #0099c8);
    border-radius: 18px 18px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dito-team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(3, 196, 235, 0.15);
    border-color: rgba(3, 196, 235, 0.25);
}

.dito-team-card:hover::before {
    opacity: 1;
}

/* Avatar */
.dito-team-avatar {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 20px;
    flex-shrink: 0;
    border: 3px solid rgba(3, 196, 235, 0.25);
    box-shadow: 0 4px 16px rgba(3, 196, 235, 0.15);
    overflow: visible;
}

.dito-team-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.dito-team-avatar--initials {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #03c4eb, #0099c8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dito-team-avatar--initials span {
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    text-transform: uppercase;
}

/* LinkedIn badge */
.dito-team-linkedin {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    background: #0077b5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 0.75rem;
    text-decoration: none;
    border: 2px solid #fff;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 1;
}

.dito-team-linkedin:hover {
    background: #005582;
    transform: scale(1.15);
}

/* Name & role */
.dito-team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dito-team-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.dito-team-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.dito-team-name a:hover {
    color: #03c4eb;
}

.dito-team-role {
    font-size: 0.82rem;
    color: #03c4eb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.dito-team-bio {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.65;
    margin: 8px 0 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
    .dito-team-col {
        padding: 0 10px 24px;
    }
}

@media (max-width: 767px) {
    .dito-team-col {
        padding: 0 0 20px;
        width: 100%;
    }

    .dito-team-card {
        padding: 28px 20px 24px;
    }
}