﻿/* =========================
   GLOBAL LAYOUT
   ========================= */

.home-section {
    padding: 3.5rem 0;
}

@media (max-width: 768px) {
    .home-section {
        padding: 2.5rem 0;
    }
}

.home-services {
    background: #f8fafc;
}

.home-team {
    background: #f9fafb;
}

.home-tips {
    background: #ffffff;
}

/* tighten spacing between tips row and blog row a little */
.home-blog {
    padding-top: 2.5rem; /* was 3.5rem via .home-section */
}

    /* make blog container feel centered & not too wide on huge screens */
    .home-blog .container {
        max-width: 1160px;
    }

.home-blog {
    background: #020617;
    color: #e5e7eb;
}

/* Reusable dynamic HTML container (About, blog details, etc.) */
.dynamic-description * {
    all: revert;
    box-sizing: border-box;
}

.dynamic-description img {
    max-width: 100%;
    height: auto;
}

.dynamic-description ul,
.dynamic-description ol {
    margin-left: 1.5rem;
}

.dynamic-description table {
    width: 100%;
    border-collapse: collapse;
}

.dynamic-description th,
.dynamic-description td {
    border: 1px solid #ccc;
    padding: 0.5rem;
}

/* =========================
   HERO SLIDER
   ========================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* full screen */
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.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%);
}

.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;
}

.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;
}

.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 */
.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;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .owl-carousel,
    .owl-carousel * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================
   TEAM
   ========================= */

.team-title {
    font-weight: 800;
    font-size: clamp(1.8rem, 2.4vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: .2px;
    margin: 0 0 clamp(12px, 2vh, 18px);
    color: #111827;
    position: relative;
    text-align: center;
}

    .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;
    }

.team-caption {
    max-width: 720px;
    margin: 0 auto clamp(24px, 4vh, 40px);
    font-size: .98rem;
    line-height: 1.65;
    color: #4b5563;
}

.team-grid {
    min-height: 140px;
}

/* =========================
   SERVICES CARDS
   ========================= */

.service-card {
    padding: 22px 20px 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .16s ease-out, box-shadow .16s ease-out, border-color .16s ease-out;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
        border-color: rgba(56, 189, 248, 0.60);
    }

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: radial-gradient(circle at 30% 20%, #38bdf8, #0ea5e9 45%, #0369a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}

    .service-card-icon img {
        width: 56%;
        height: 56%;
        object-fit: contain;
        filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.35));
    }

.service-card-title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.service-card-text {
    margin: 0;
    font-size: .92rem;
    color: #475569;
    line-height: 1.55;
}

/* keep your old .services .box.v2 tweaks for other pages if needed */
.services .box.v2 .box-title .img {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    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;
        max-width: 100% !important;
        object-fit: contain !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

.services .box.v2 {
    padding: 18px 16px !important;
}

/* =========================
   FEATURE CARDS (TIPS)
   ========================= */
/* =========================
   FEATURE CARDS (TIPS SECTION)
   ========================= */

/* Dark band between white sections so it blends into blog area */
.home-tips {
    background: #020617; /* almost black, same family as blog */
}

    /* Keep layout inside a nice width (Bootstrap container already helps) */

    /* Card base (scoped to this section so it doesn't break old .box use) */
    .home-tips .box {
        border-radius: 22px;
        padding: 18px 18px;
        background: radial-gradient(circle at 0% 0%, #1e293b 0, #020617 60%);
        border: 1px solid rgba(148,163,184,.35);
        box-shadow: 0 18px 40px rgba(15,23,42,.55);
        display: grid;
        grid-template-columns: minmax(80px, 96px) 1fr;
        gap: 16px;
        align-items: center;
        color: #e5e7eb;
        position: relative;
        overflow: hidden;
    }

        /* Soft glow on hover */
        .home-tips .box::before {
            content: "";
            position: absolute;
            inset: -40%;
            opacity: 0;
            background: radial-gradient(circle at 0% 0%, rgba(56,189,248,.22), transparent 60%);
            transition: opacity .18s ease-out;
        }

        .home-tips .box:hover::before {
            opacity: 1;
        }

        .home-tips .box:hover {
            transform: translateY(-4px);
            box-shadow: 0 26px 60px rgba(15,23,42,.75);
        }

    /* Icon area – smaller and flat, no double frame */
    .home-tips .media-icon {
        width: 90px;
        height: 90px;
        border-radius: 18px;
        background: rgba(15,23,42,.95);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 26px rgba(0,0,0,.65);
    }

        .home-tips .media-icon img {
            width: 70%;
            height: 70%;
            object-fit: contain;
            border-radius: 0; /* kill circular look */
            background: none;
            border: 0;
            padding: 0;
        }

    /* Text side */
    .home-tips .media-copy {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .home-tips .card-heading {
        color: #fff;
        font-weight: 800;
        font-size: 1.05rem;
        margin: 0;
        letter-spacing: .02em;
    }

    .home-tips .card-text {
        margin: 0;
        font-size: .92rem;
        color: #cbd5f5;
        line-height: 1.55;
    }

    /* Make sure old theme rules can’t shrink or circle images here */
    .home-tips img {
        border-radius: 0 !important;
    }

/* Responsive layout */
@media (max-width: 992px) {
    .home-tips .box {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 18px 20px;
    }

    .home-tips .media-icon {
        margin: 0 auto 8px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .feature-cards .media-left {
        grid-template-columns: 1fr;
        text-align: center;
    }

        .feature-cards .media-left .media-icon {
            margin: 0 auto;
            width: clamp(140px, 28vw, 180px);
            height: clamp(140px, 28vw, 180px);
        }
}

/* =========================
   BLOG FEED
   ========================= */

:root {
    --feed-ink: #0b1020;
    --feed-bg: #0f172a;
    --feed-card: #0b1224;
    --feed-muted: #9aa4b2;
    --feed-white: #fff;
    --feed-grad-a: #0ea5e9;
    --feed-grad-b: #8b5cf6;
    --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;
    }

.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);
}

.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 */
.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 */
.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;
    }
}


@media screen and (max-width: 768px) {
    /* Shorter hero on mobile */
    .hero-slider, .hero-slider .hero-slide, .hero-slide, .hero-slider .owl-stage-outer, .hero-slider .owl-stage, .hero-slider .owl-item {
        height: 78vh !important; /* try 70-80 until you like it */
    }

    /* Make sure the picture is framed nicely */
    .hero-slide {
        background-position: center 25% !important;
        background-size: cover !important;
    }

    /* Caption placement and size */
    .hero-caption {
        justify-content: flex-end !important;
        align-items: flex-start !important;
        padding: 0 1.25rem calc(3.5rem + env(safe-area-inset-bottom)) !important;
        max-width: 100% !important;
    }

    .hero-title {
        font-size: 2.1rem !important;
        line-height: 1.25 !important;
    }

    .hero-text {
        font-size: 1.05rem !important;
        max-width: 100% !important;
    }

    /* Dots a bit higher */
    .hero-slider .owl-dots {
        bottom: 18px !important;
    }
}

.service-card:hover,
.home-tips .box:hover {
    cursor: pointer;
}
/* Layout for the feature cards */
.feature-cards .box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Text container in the card */
.feature-cards .media-copy {
    margin-top: 1.5rem;
    max-width: 100%;
    overflow: visible;
}

/* Fix broken headings like "Microserv Architectu" */
.feature-cards .card-heading {
    white-space: normal;
    word-break: normal; /* IMPORTANT: undo break-all / break-word */
    overflow-wrap: normal;
    max-width: 100%;
}

/* Optional: description text */
.feature-cards .card-text {
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}
/* Default icon size (desktop) */
.feature-cards .media-icon img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

/* ICON BLOCK – shared (desktop + mobile) */
.home-section.home-tips.feature-cards .media-icon {
    width: 300px; /* outer rounded square */
    height: 300px;
    padding: 0; /* kill inner padding that shrinks the img */
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    /* Force the IMG to actually fill that square */
    .home-section.home-tips.feature-cards .media-icon img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        display: block;
    }
@media (max-width: 576px) {
    .home-section.home-tips.feature-cards .media-icon {
        width: 300px;
        height: 300px;
        margin: 0 auto 1rem auto; /* center and add space below */
    }

    .home-section.home-tips.feature-cards .card-heading,
    .home-section.home-tips.feature-cards .card-text {
        text-align: center;
    }
}
/* Mobile vertical space between cards in this section */
@media (max-width: 767.98px) {
    .home-section .col-12.col-md-6.col-lg-4 {
        margin-bottom: 1.5rem !important;
    }
}

