﻿/* Full-screen hero slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* full screen */
    overflow: hidden;
}

/* Each slide uses background image (set via JS from data-bg) */
.hero-slide {
    position: relative;
    width: 100%;
    height: 100vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Dark gradient overlay for legible text */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.35) 100%);
}

/* Caption container */
.hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: clamp(1rem, 4vw, 4rem);
    max-width: 1100px;
    color: #fff;
}

/* Typography */
.hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    text-wrap: balance;
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 70ch;
    margin: 0;
    opacity: 0.95;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    opacity: 0.9;
    pointer-events: none;
}

/* Owl overrides (nav/dots visible over images) */
.hero-slider .owl-nav,
.hero-slider .owl-dots {
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 3;
}

.hero-slider .owl-nav {
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

    .hero-slider .owl-nav button i {
        color: #fff;
        font-size: 2rem;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
    }

.hero-slider .owl-dots {
    bottom: 10px;
    display: flex !important;
    justify-content: center;
    gap: 6px;
}

.hero-slider .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255,255,255,.6) !important;
}

.hero-slider .owl-dot.active span {
    background: #fff !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .owl-carousel, .owl-carousel * {
        animation: none !important;
        transition: none !important;
    }
}
/* Spacing for section after full-screen hero */
.section-gap-top {
    margin-top: clamp(32px, 7vh, 128px);
}

/* Team section sizing & rhythm */
.the-team {
    padding-block: clamp(48px, 8vh, 128px);
}

/* Big, modern headline */
.team-title {
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.25rem); /* bigger */
    line-height: 1.15;
    letter-spacing: .2px;
    margin: 0 0 clamp(14px, 2vh, 18px);
    color: #111;
    position: relative;
}

    /* Optional underline accent */
    .team-title::after {
        content: "";
        display: block;
        width: 72px;
        height: 4px;
        margin: clamp(10px, 1.5vh, 14px) auto 0;
        border-radius: 999px;
        background: linear-gradient(90deg, #0d6efd, #6f42c1);
        opacity: .9;
    }

/* Professional caption under title */
.team-caption {
    max-width: 980px;
    margin: 0 auto clamp(32px, 5vh, 56px);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem); /* larger body */
    line-height: 1.75;
}

/* Grid area for loaded members (keeps space even before load) */
.team-grid {
    min-height: 140px;
}

/* If hero visually overlaps, ensure stacking order */
.hero-slider {
    position: relative;
    z-index: 1;
}

#TheTeamSection {
    position: relative;
    z-index: 2;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .team-title::after {
        transition: none !important;
    }
}

/* Layout */
.feature-cards {
    padding-block: clamp(24px, 4vh, 48px);
}

    .feature-cards .media-left {
        display: grid;
        grid-template-columns: 160px 1fr; /* give icon real space */
        gap: clamp(18px, 2.4vw, 28px);
        align-items: center;
        text-align: left;
    }

    .feature-cards .card-contrast {
        position: relative;
        border-radius: 16px;
        padding: clamp(18px, 2.5vw, 24px);
        background: linear-gradient(180deg, rgba(15,23,42,0.78), rgba(2,6,23,0.68));
        backdrop-filter: saturate(130%) blur(6px);
        -webkit-backdrop-filter: saturate(130%) blur(6px);
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    }

    /* Icon box: explicit large size */
    .feature-cards .media-left.xl-icons .media-icon {
        width: 160px !important;
        height: 160px !important;
        display: grid !important;
        place-items: center !important;
    }

        /* Nuclear override: make the image fill the box, no circles, no max-width */
        .feature-cards .media-left.xl-icons .media-icon img {
            width: 100% !important;
            height: 100% !important;
            max-width: none !important;
            max-height: none !important;
            object-fit: contain !important;
            border-radius: 12px !important; /* subtle rounding */
            background: rgba(255,255,255,0.06) !important;
            border: 1px solid rgba(255,255,255,0.10) !important;
            padding: 12px !important;
            box-shadow: 0 6px 16px rgba(0,0,0,.28) !important;
        }

    /* If some global rule sets all images to circle or tiny, kill it here */
    .feature-cards .media-left img {
        border-radius: 0 !important;
    }

    .feature-cards .media-left .media-icon img {
        border-radius: 12px !important; /* re-apply our desired rounding */
    }

    /* Text */
    .feature-cards .card-heading {
        color: #fff;
        font-weight: 800;
        font-size: clamp(1.12rem, 2.1vw, 1.45rem);
        margin: 0 0 6px;
    }

    .feature-cards .card-text {
        margin: 0;
        color: rgba(255,255,255,0.92);
        font-size: clamp(0.98rem, 1.6vw, 1.05rem);
        line-height: 1.65;
    }

/* Mobile: keep icons big but centered */
@media (max-width: 576px) {
    .feature-cards .media-left {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

        .feature-cards .media-left.xl-icons .media-icon {
            width: 140px !important;
            height: 140px !important;
            margin: 0 auto !important;
        }
}

/* =========================
   1) FEATURE CARDS: MAKE BIG
   ========================= */
.feature-cards .media-left {
    display: grid !important;
    grid-template-columns: clamp(180px, 18vw, 260px) 1fr !important; /* bigger icon column */
    gap: clamp(18px, 2.4vw, 28px) !important;
    align-items: center !important;
    text-align: left !important;
}

    .feature-cards .media-left .media-icon {
        width: clamp(180px, 18vw, 260px) !important;
        height: clamp(180px, 18vw, 260px) !important;
        display: grid !important;
        place-items: center !important;
    }

        .feature-cards .media-left .media-icon img {
            display: block !important;
            width: 100% !important;
            height: 100% !important;
            max-width: none !important;
            max-height: none !important;
            object-fit: contain !important;
            /* presentation (keep if you like the badge look) */
            border-radius: 14px !important;
            background: rgba(255,255,255,0.06) !important;
            border: 1px solid rgba(255,255,255,0.10) !important;
            padding: clamp(10px, 1.2vw, 18px) !important;
            box-shadow: 0 6px 16px rgba(0,0,0,.28) !important;
        }

/* Make headings a touch larger to match the bigger icons */
.feature-cards .card-heading {
    font-size: clamp(1.2rem, 2.4vw, 1.6rem) !important;
}

/* Kill any circular/tiny img rules inside this section */
.feature-cards img {
    border-radius: 0 !important;
}

.feature-cards .media-icon img {
    border-radius: 14px !important;
}

/* Mobile: keep icons big & centered */
@media (max-width: 576px) {
    .feature-cards .media-left {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

        .feature-cards .media-left .media-icon {
            margin: 0 auto !important;
            width: clamp(140px, 28vw, 180px) !important;
            height: clamp(140px, 28vw, 180px) !important;
        }
}


/* =========================
   2) SERVICES: MAKE SMALLER
   ========================= */
.services .box.v2 .box-title .img {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    /* optional: set a fixed area so img-fluid can't overgrow */
    min-height: 0 !important;
}

    .services .box.v2 .box-title .img img,
    .services .box.v2 .img-fluid {
        width: auto !important;
        height: auto !important;
        max-height: 84px !important; /* <= adjust smaller/larger here */
        max-width: 100% !important;
        object-fit: contain !important;
        border-radius: 0 !important; /* avoid circular look */
        box-shadow: none !important;
        padding: 0 !important;
    }

/* (optional) tighten services cards a bit */
.services .box.v2 {
    padding: 18px 16px !important;
}

/* ===== BLOG FEED (scoped) ===== */
:root {
    --feed-ink: #0b1020; /* dark ink */
    --feed-bg: #0f172a; /* slate-900-ish */
    --feed-card: #0b1224; /* card bg */
    --feed-muted: #9aa4b2;
    --feed-white: #fff;
    --feed-grad-a: #0ea5e9; /* brand accent 1 */
    --feed-grad-b: #8b5cf6; /* brand accent 2 */
    --feed-border: rgba(255,255,255,.08);
}

.blog-feed .feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(14px,2vw,18px) clamp(16px,3vw,22px);
    border-radius: 14px;
    color: var(--feed-white);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.68));
    box-shadow: 0 16px 28px rgba(2,6,23,.25);
    margin-bottom: clamp(16px,2.2vw,24px);
}

.blog-feed .feed-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: .2px;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.blog-feed .btn-feed {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--feed-white);
    border: 1px solid rgba(255,255,255,.7);
    text-decoration: none;
    font-weight: 600;
    transition: .2s ease;
}

    .blog-feed .btn-feed:hover {
        background: rgba(255,255,255,.12);
    }

/* === Card === */
.blog-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid var(--feed-border);
    box-shadow: 0 12px 24px rgba(2,6,23,.22);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .blog-card .stretched-link {
        position: absolute;
        inset: 0;
        z-index: 2;
    }

/* Media with aspect ratio */
.blog-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--feed-bg);
    overflow: hidden;
}

    .blog-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.02);
        transition: transform .5s ease;
    }

.blog-card:hover .blog-card-media img {
    transform: scale(1.06);
}

/* subtle gradient for text legibility */
.blog-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.0) 40%, rgba(0,0,0,.35) 100%);
}

/* Date badge on image */
.media-badge {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 1;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.18);
}

/* Body */
.blog-card-body {
    padding: clamp(12px, 1.8vw, 16px) clamp(12px, 2vw, 18px) clamp(14px, 2.2vw, 18px);
    color: var(--feed-white);
}

.blog-card-title {
    margin: 0 0 6px;
    font-weight: 800;
    letter-spacing: .2px;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.blog-card-text {
    margin: 0 0 10px;
    color: var(--feed-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-cta {
    font-weight: 700;
    color: var(--feed-white);
    opacity: .9;
}

/* Skeleton state while loading */
.blog-card.is-skeleton {
    background: var(--feed-card);
}

    .blog-card.is-skeleton .blog-card-media {
        background: linear-gradient(90deg,#131b2e 25%,#1a2440 37%,#131b2e 63%);
        background-size: 400% 100%;
        animation: shimmer 1.6s infinite linear;
    }

    .blog-card.is-skeleton .blog-card-body {
        padding: 14px 16px 16px;
    }

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin: 8px 0;
    background: linear-gradient(90deg,#1b2744 25%,#223054 37%,#1b2744 63%);
    background-size: 400% 100%;
    animation: shimmer 1.6s infinite linear;
}

    .skeleton-line.w-70 {
        width: 70%;
    }

    .skeleton-line.w-100 {
        width: 100%;
    }

    .skeleton-line.w-60 {
        width: 60%;
    }

@keyframes shimmer {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .blog-feed .feed-header {
        padding: 12px 14px;
    }
}
