/* ===========================================================
   SERVICES PAGE – FINAL INSTANT CLOSE VERSION (v4.0)
   =========================================================== */

/* ==================== ROOT ==================== */
.services-root {
    --navy: #0A2A4D;
    --blue: #104976;
    --teal: #2CBFAE;
    --card-bg: rgba(10, 42, 77, 0.78);
    --card-border: rgba(255,255,255,0.15);

    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0A2A4D 0%, #104976 40%, #2CBFAE 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* ==================== HERO ==================== */
.services-hero {
    position: relative;
    min-height: 100vh;
    padding: 7rem 8% 4rem;
    text-align: center;
    overflow: hidden;
}

.services-hero .hero-cpu-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.services-hero .hero-cpu-bg img {
    width: 680px;
    opacity: 0.35;
    margin-top: -1rem;
    filter: drop-shadow(0 0 15px rgba(44,191,174,0.3));
}

.services-hero .hero-logo {
    width: 220px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(44,191,174,0.7));
}

.services-hero .hero-text {
    margin-top: -50px;
    max-width: 700px;
    margin-inline: auto;
}

.services-hero .hero-text h1 {
    font-size: 35px;
    line-height: 1.2;
}

.services-hero .highlight {
    color: var(--teal);
    position: relative;
}

.services-hero .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background-color: var(--teal);
}

/* ==================== SERVICE GRID ==================== */
.services-cards {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1150px;
    margin-inline: auto;
}

/* ==================== TILE ==================== */
.service-tile {
    background: #0A2A4D;
    border-radius: 18px;
    padding: 2rem 1.8rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    overflow: hidden;
    color: #E8F3FF;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    transition: none !important; /* INSTANT CLOSE */
}

.service-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(44,191,174,0.7);
}

/* ==================== TILE HEADER ==================== */
.tile-header {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.tile-icon {
    width: 100px;
    filter:
        drop-shadow(0 0 4px rgba(44,191,174,1))
        drop-shadow(0 0 16px rgba(44,191,174,0.7));
}

.tile-header h3 {
    margin-top: 1.3rem;
    margin-bottom: 0.4rem;
}

.tile-header p {
    margin: 0 0 1.2rem;
    opacity: 0.9;
}

/* ==================== TOGGLE BUTTON ==================== */
.tile-toggle {
    margin-top: auto;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(44,191,174,0.65);
    background: var(--teal);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

.tile-toggle:hover {
    background-color: #35e0c2;
}

/* ==================== EXPANDED CLEAN VIEW ==================== */

/* The main grid disappears in expanded mode */
.services-cards.hidden {
    display: none !important;
}

/* EXPANDED CARD WRAPPER */
.mock-wrapper {
    max-width: 1200px;
    margin: 4rem auto;
    background: #0A2A4D;
    border-radius: 18px;
    padding: 3rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    display: none;
}

/* HEADER RIGHT COLUMN */
.mock-header {
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin-left: calc(420px + 3rem);
}

.mock-header img {
    width: 100px;
    filter:
        drop-shadow(0 0 4px rgba(44,191,174,1))
        drop-shadow(0 0 16px rgba(44,191,174,0.7));
    margin-bottom: 1rem;
}

.mock-header h2 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 600;
}

.mock-header p {
    margin-top: .3rem;
    opacity: 0.85;
    font-size: 0.95rem;
}

/* DIVIDER */
.mock-divider {
    width: 600px;
    margin-left: calc(420px + 3rem);
    border: none;
    border-top: 1px solid rgba(255,255,255,0.18);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* GRID LAYOUT */
.mock-content {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 3rem;
    align-items: flex-start;
}

/* IMAGE */
.mock-image img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    margin-top: -13rem;
}

/* TEXT */
.mock-text {
    max-width: 650px;
}

.mock-text p {
    margin-bottom: 1.5rem;
    line-height: 1.55;
    opacity: 0.95;
}

/* INCLUDED SERVICES */
.mock-text h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.mock-text ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.mock-text li {
    margin-bottom: .6rem;
    position: relative;
    padding-left: 1.4rem;
}

.mock-text li::before {
    content: "➜";
    position: absolute;
    left: 0;
    top: 0;
    color: #2CBFAE;
    font-weight: 700;
}

/* ===============================
   Trend Micro Partner Badge (TM hero clone)
   =============================== */
.tm-partner-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.8rem;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    background: radial-gradient(circle at top left,
        rgba(230,0,18,0.22), rgba(6,23,41,0.96));
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.18);
}

.tm-logo-wrap {
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px rgba(230, 0, 18, 0.55));
}

.tm-logo-wrap img {
    height: 30px;
    transform: translateY(1px);
}

.tm-badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tm-badge-title {
    font-weight: 600;
    font-size: 0.98rem;
    color: #ffffff !important;
}

.tm-badge-note {
    font-size: 0.85rem;
    color: rgba(233,244,243,0.85);
    text-decoration: none !important;
}

/* One-time fade-in arrow animation */
@keyframes arrowFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-8px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.mock-text li.arrow-animate::before {
    animation: arrowFadeIn 1.2s ease-out forwards;
}


/* CLOSE BUTTON */
.mock-close-btn {
    margin-top: 1rem;
    padding: 0.55rem 1.6rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(44,191,174,0.65);
    border-radius: 999px;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    transition: none !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.mock-cta-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.55rem 1.6rem;
    background: var(--teal) !important;
    border: 1px solid rgba(44,191,174,0.65);
    border-radius: 999px;
    font-size: 0.95rem;
    color: white !important;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.mock-cta-btn:hover {
    background: #35e0c2 !important;
}

.mock-close-btn:hover {
    background: rgba(44,191,174,0.25);
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {

    /* Hide hero logo on mobile only */
    .services-hero .hero-logo {
        display: none !important;
    }

    /* Add space since the logo is gone */
    .services-hero .hero-text {
        margin-top: 2.5rem !important;
    }

    .mock-wrapper {
        padding: 2rem;
    }

    .services-hero {
        padding: 1rem 6% 2rem !important;
    }

    .services-hero .hero-text h1 {
        font-size: 1.7rem !important;
        line-height: 1.25 !important;
    }

    .mock-header,
    .mock-divider {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
    }

    .mock-content {
        grid-template-columns: 1fr;
    }

    .mock-image img {
        margin-top: 0;
        width: 100%;
    }

    .mock-text ul {
        text-align: left;
        display: inline-block;
        margin: 0 auto;
    }

    .service-tile.active {
        transform: none !important;
        box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    }

    /* Center Trend Micro badge on mobile */
    .tm-card-inner {
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .tm-card-logo {
        margin: 0 auto !important;
    }

    .tm-card-text {
        text-align: center !important;
    }
}


    /* MOBILE FIX: Center Trend Micro badge */
    .tm-partner-badge {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }

    /* Center the white logo box */
    .tm-logo-wrap {
        margin: 0 auto !important;
    }

    /* Center the partner text */
    .tm-badge-text {
        text-align: center !important;
    }

