/* ================================================================
   MARKETS & APPLICATIONS CSS — PREMIUM LIGHT THEME
   20 Microns CMS | markets.php + market.php
   Theme: Sage Green #7FA69B | Light Backgrounds matching products.php
   ================================================================ */

/* ================================================================
   FIX: Prevent horizontal overflow on market pages
   ================================================================ */
html { overflow-x: hidden; }

/* ================================================================
   SECTION 1 — MARKETS HERO (markets.php)
   Light theme matching products.php hero exactly
   ================================================================ */
.markets-hero-section {
    position: relative;
    height: 90vh;
    min-height: 500px;
    max-height: 680px;
    display: flex;
    align-items: center;
    padding: 90px 0 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8faf9 0%, #e8f0ed 50%, #f0f5f3 100%);
}

/* ---- Background ---- */
.mh-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.mh-gradient-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(127, 166, 155, 0.13) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(127, 166, 155, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 50% 10%, rgba(162, 203, 192, 0.07) 0%, transparent 60%);
}

.mh-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(127, 166, 155, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 166, 155, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}

.mh-glow-orbs {
    position: absolute;
    inset: 0;
}
.mh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.mh-orb.orb-1 {
    width: 420px; height: 420px;
    background: rgba(127, 166, 155, 0.2);
    top: -160px; right: 8%;
    animation: mhOrbFloat 12s ease-in-out infinite;
}
.mh-orb.orb-2 {
    width: 300px; height: 300px;
    background: rgba(92, 110, 106, 0.13);
    bottom: -100px; left: 4%;
    animation: mhOrbFloat 15s ease-in-out infinite 3s;
}
.mh-orb.orb-3 {
    width: 240px; height: 240px;
    background: rgba(127, 166, 155, 0.09);
    top: 25%; right: 32%;
    animation: mhOrbFloat 18s ease-in-out infinite 6s;
}
@keyframes mhOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

/* Floating Hexagons */
.mh-hexagons {
    position: absolute;
    inset: 0;
}
.mh-hex {
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(127, 166, 155, 0.06);
    border: 1px solid rgba(127, 166, 155, 0.12);
}
.mh-hex.hex-1 { width: 60px; height: 60px; top: 20%; left: 4%; animation: hexDrift 20s ease-in-out infinite; }
.mh-hex.hex-2 { width: 40px; height: 40px; top: 65%; left: 7%; animation: hexDrift 16s ease-in-out infinite 2s; }
.mh-hex.hex-3 { width: 80px; height: 80px; top: 12%; right: 22%; animation: hexDrift 24s ease-in-out infinite 4s; }
.mh-hex.hex-4 { width: 50px; height: 50px; bottom: 18%; right: 7%; animation: hexDrift 18s ease-in-out infinite 1s; }
.mh-hex.hex-5 { width: 35px; height: 35px; bottom: 35%; left: 42%; animation: hexDrift 22s ease-in-out infinite 3s; }
@keyframes hexDrift {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(30deg) translateY(-14px); }
}

/* ---- Hero Layout ---- */
.mh-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.mh-content-left {
    padding-right: 20px;
}

/* Breadcrumb */
.mh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.mh-breadcrumb a {
    color: #5C6E6A;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}
.mh-breadcrumb a:hover { color: #7FA69B; }
.mh-breadcrumb .breadcrumb-separator { color: #A8B5B1; font-size: 0.65rem; }
.mh-breadcrumb .current { color: #7FA69B; font-weight: 600; }

/* Badge */
.mh-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(127, 166, 155, 0.12), rgba(127, 166, 155, 0.05));
    border: 1px solid rgba(127, 166, 155, 0.28);
    padding: 10px 22px;
    border-radius: 50px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.mh-badge .badge-icon { color: #7FA69B; font-size: 0.95rem; }
.mh-badge .badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5C6E6A;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.mh-badge .badge-glow {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 166, 155, 0.28), transparent);
    animation: mhBadgeGlow 4s ease-in-out infinite;
}
@keyframes mhBadgeGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Title */
.mh-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    color: #1a2a28;
}
.mh-title .title-line { display: block; }
.mh-title .highlight-line .title-highlight {
    background: linear-gradient(135deg, #7FA69B, #5C6E6A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.mh-title .highlight-line .title-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7FA69B, #5C6E6A);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: mhUnderline 1s ease-out forwards 0.6s;
}
@keyframes mhUnderline { to { transform: scaleX(1); } }

/* Subtitle */
.mh-subtitle {
    font-size: 1.05rem;
    color: #5C6E6A;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 490px;
}

/* Stats Row */
.mh-stats-row {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.mh-stat-item { text-align: center; }
.mh-stat-item .stat-number {
    display: block;
    font-family: 'Exo 2', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: #7FA69B;
    line-height: 1;
}
.mh-stat-item .stat-label {
    display: block;
    font-size: 0.78rem;
    color: #5C6E6A;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}
.mh-stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(127, 166, 155, 0.22);
}

/* ---- Right - Network Visual ---- */
.mh-content-right {
    display: flex;
    justify-content: center;
    align-items: center;
}
.mh-network-visual {
    position: relative;
    width: 420px;
    height: 420px;
}

/* Hub */
.network-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}
.hub-inner {
    width: 88px; height: 88px;
    background: linear-gradient(135deg, #7FA69B, #5C6E6A);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 40px rgba(127, 166, 155, 0.4);
}
.hub-inner i { font-size: 1.5rem; color: white; }
.hub-inner span {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hub-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 88px; height: 88px;
    border-radius: 50%;
    border: 2px solid rgba(127, 166, 155, 0.4);
    opacity: 0;
    animation: mhHubPulse 2.5s ease-out infinite;
}
.hub-pulse.pulse-2 { animation-delay: 1.25s; }
@keyframes mhHubPulse {
    0% { width: 88px; height: 88px; opacity: 0.5; }
    100% { width: 220px; height: 220px; opacity: 0; }
}

/* Orbit rings */
.network-orbit {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(127, 166, 155, 0.2);
}
.network-orbit.orbit-1 {
    width: 270px; height: 270px;
    margin: -135px 0 0 -135px;
    animation: mhOrbitSpin 30s linear infinite;
}
.network-orbit.orbit-2 {
    width: 390px; height: 390px;
    margin: -195px 0 0 -195px;
    animation: mhOrbitSpin 45s linear infinite reverse;
}
@keyframes mhOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Orbit Nodes */
.network-node {
    position: absolute;
    width: 46px; height: 46px;
    background: white;
    border: 1.5px solid rgba(127, 166, 155, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7FA69B;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(127, 166, 155, 0.14);
    cursor: default;
}
.orbit-1 .node-1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.orbit-1 .node-2 { top: 50%; right: 0; transform: translate(50%, -50%); }
.orbit-1 .node-3 { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.orbit-1 .node-4 { top: 50%; left: 0; transform: translate(-50%, -50%); }
.orbit-2 .node-5 { top: 12%; right: 5%; transform: translate(50%, -50%); }
.orbit-2 .node-6 { bottom: 12%; right: 5%; transform: translate(50%, 50%); }
.orbit-2 .node-7 { bottom: 12%; left: 5%; transform: translate(-50%, 50%); }
.orbit-2 .node-8 { top: 12%; left: 5%; transform: translate(-50%, -50%); }
.orbit-1 .network-node { animation: mhOrbitSpin 30s linear infinite reverse; }
.orbit-2 .network-node { animation: mhOrbitSpin 45s linear infinite; }

/* SVG lines */
.network-lines {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}
.conn-line {
    stroke: rgba(127, 166, 155, 0.1);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

/* Floating particles */
.network-particles { position: absolute; inset: 0; pointer-events: none; }
.n-particle {
    position: absolute;
    width: 4px; height: 4px;
    background: #7FA69B;
    border-radius: 50%;
    opacity: 0.35;
    animation: nFloat 8s ease-in-out infinite;
}
.n-particle:nth-child(1) { top: 20%; left: 30%; }
.n-particle:nth-child(2) { top: 70%; left: 15%; animation-delay: 1.5s; }
.n-particle:nth-child(3) { top: 30%; right: 20%; animation-delay: 3s; }
.n-particle:nth-child(4) { bottom: 25%; right: 35%; animation-delay: 4.5s; }
.n-particle:nth-child(5) { top: 50%; left: 60%; animation-delay: 6s; }
@keyframes nFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0.35; }
    50% { transform: translate(10px, -15px); opacity: 0.7; }
}

/* Scroll Indicator */
.mh-scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #7FA69B;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}
.scroll-mouse {
    width: 22px; height: 34px;
    border: 2px solid rgba(127, 166, 155, 0.5);
    border-radius: 11px;
    position: relative;
}
.scroll-wheel {
    width: 3px; height: 8px;
    background: #7FA69B;
    border-radius: 2px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}
@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}


/* ================================================================
   SECTION 2 — MARKETS GRID (markets.php)
   ================================================================ */
.markets-grid-section {
    padding: 100px 0;
    background: #f8faf9;
    position: relative;
}
.markets-grid-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(127, 166, 155, 0.3), transparent);
}

.mgrid-header {
    text-align: center;
    margin-bottom: 52px;
}
.mgrid-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(127, 166, 155, 0.12), rgba(127, 166, 155, 0.05));
    border: 1px solid rgba(127, 166, 155, 0.28);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 16px;
    color: #5C6E6A;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.mgrid-badge i { color: #7FA69B; margin-right: 2px; }
.mgrid-title {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #1a2a28;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}
.mgrid-title .text-accent {
    background: linear-gradient(135deg, #7FA69B, #5C6E6A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mgrid-subtitle {
    font-size: 1.05rem;
    color: #5C6E6A;
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.7;
}

.mgrid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 12px 22px;
    background: white;
    border: 1px solid rgba(127, 166, 155, 0.2);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
.mgrid-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 420px;
}
.mgrid-search i { color: #A8B5B1; font-size: 1rem; }
.mgrid-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #1a2a28;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    width: 100%;
}
.mgrid-search input::placeholder { color: #A8B5B1; }
.mgrid-count { color: #5C6E6A; font-size: 0.9rem; font-weight: 500; }
.mgrid-count span { color: #7FA69B; font-weight: 700; font-size: 1.1rem; }

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ---- Market Card ---- */
.market-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 270px;
    text-decoration: none;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(127, 166, 155, 0.12);
}
.market-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease var(--delay), transform 0.6s ease var(--delay), box-shadow 0.4s ease;
}
.market-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 60px rgba(127, 166, 155, 0.2);
    border-color: rgba(127, 166, 155, 0.3);
}
.market-card-bg { position: absolute; inset: 0; z-index: 1; }
.market-card-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.48) saturate(0.6);
}
.market-card:hover .market-card-bg img {
    transform: scale(1.06);
    filter: brightness(0.42) saturate(0.75);
}
.market-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(175deg, rgba(20, 36, 50, 0.15) 0%, rgba(10, 22, 40, 0.9) 100%);
    z-index: 2;
}
.market-card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.market-card-icon {
    width: 48px; height: 48px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; margin-bottom: 14px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.market-card:hover .market-card-icon {
    background: #7FA69B;
    border-color: #7FA69B;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(127, 166, 155, 0.4);
}
.market-card-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.28rem; font-weight: 700;
    color: white; margin-bottom: 7px; line-height: 1.3;
}
.market-card-desc {
    font-size: 0.83rem; color: rgba(255, 255, 255, 0.68);
    line-height: 1.55; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.market-card-meta { margin-bottom: 10px; }
.market-card-meta .meta-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px; padding: 3px 10px; font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.82); backdrop-filter: blur(4px);
}
.market-card-arrow {
    display: flex; align-items: center; gap: 8px;
    color: #bddad4; font-size: 0.83rem; font-weight: 600;
    opacity: 0; transform: translateX(-10px); transition: all 0.3s ease;
}
.market-card:hover .market-card-arrow { opacity: 1; transform: translateX(0); }
.market-card:hover .market-card-arrow i { animation: arrowPulse 0.6s ease forwards; }
@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}
.market-card-glow {
    position: absolute; inset: -1px; border-radius: 18px;
    border: 1px solid transparent; z-index: 4; pointer-events: none;
    transition: border-color 0.4s ease;
}
.market-card:hover .market-card-glow { border-color: rgba(127, 166, 155, 0.45); }

.mgrid-no-results {
    grid-column: 1 / -1; text-align: center; padding: 80px 20px;
}
.mgrid-no-results .no-results-icon {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: rgba(127, 166, 155, 0.08); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #7FA69B;
}
.mgrid-no-results h3 { color: #1a2a28; font-size: 1.3rem; margin-bottom: 8px; }
.mgrid-no-results p { color: #5C6E6A; }


/* ================================================================
   SECTION 3 — MARKET DETAIL HERO (market.php)
   ================================================================ */
.market-detail-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 90px;
    text-align: center;
}
.mdh-background { position: absolute; inset: 0; overflow: hidden; }
.mdh-banner-img { position: absolute; inset: 0; z-index: 1; }
.mdh-banner-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.mdh-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(135deg, rgba(8, 18, 30, 0.84) 0%, rgba(12, 25, 45, 0.78) 100%);
}
.mdh-gradient {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(0deg, rgba(8, 18, 28, 0.55) 0%, transparent 55%);
}
.mdh-grid-pattern {
    position: absolute; inset: 0; z-index: 4;
    background-image:
        linear-gradient(rgba(127, 166, 155, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 166, 155, 0.045) 1px, transparent 1px);
    background-size: 60px 60px;
}
.mdh-particles { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.mdh-particle {
    position: absolute; width: 3px; height: 3px;
    background: rgba(127, 166, 155, 0.55); border-radius: 50%;
    animation: mdParticle 10s ease-in-out infinite;
}
.mdh-particle.p-1 { top: 18%; left: 12%; animation-delay: 0s; }
.mdh-particle.p-2 { top: 42%; left: 32%; animation-delay: 2s; }
.mdh-particle.p-3 { top: 72%; right: 22%; animation-delay: 4s; }
.mdh-particle.p-4 { top: 26%; right: 38%; animation-delay: 6s; }
.mdh-particle.p-5 { bottom: 28%; left: 47%; animation-delay: 8s; }
@keyframes mdParticle {
    0%, 100% { transform: translate(0, 0); opacity: 0.55; }
    50% { transform: translate(14px, -18px); opacity: 1; }
}
.mdh-content {
    position: relative; z-index: 6;
    max-width: 760px; margin: 0 auto; padding: 0 20px;
    display: flex; flex-direction: column; align-items: center;
}
.mdh-breadcrumb {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 26px; font-size: 0.84rem; flex-wrap: wrap;
}
.mdh-breadcrumb a { color: rgba(255,255,255,0.52); text-decoration: none; display: flex; align-items: center; gap: 5px; transition: color 0.3s; }
.mdh-breadcrumb a:hover { color: #7FA69B; }
.mdh-breadcrumb .breadcrumb-separator { color: rgba(255,255,255,0.22); font-size: 0.6rem; }
.mdh-breadcrumb .current { color: #7FA69B; font-weight: 600; }

.mdh-icon-wrap { position: relative; display: inline-flex; margin-bottom: 22px; }
.mdh-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, rgba(127, 166, 155, 0.22), rgba(127, 166, 155, 0.13));
    border: 2px solid rgba(127, 166, 155, 0.45);
    border-radius: 22px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #bddad4; backdrop-filter: blur(14px);
}
.mdh-icon-ring {
    position: absolute; inset: -9px; border-radius: 30px;
    border: 1px solid rgba(127, 166, 155, 0.22);
    animation: mdIconRing 3s ease-in-out infinite;
}
@keyframes mdIconRing {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
.mdh-title {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800;
    color: white; line-height: 1.1; margin-bottom: 16px; text-align: center;
}
.mdh-subtitle {
    font-size: 1.1rem; color: rgba(255,255,255,0.7);
    line-height: 1.7; margin-bottom: 28px;
    max-width: 620px; text-align: center;
}
.mdh-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap;
}
.mdh-stat {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50px; padding: 10px 22px; backdrop-filter: blur(12px);
}
.mdh-stat i { color: #7FA69B; font-size: 1rem; }
.mdh-stat-num { font-size: 1.45rem; font-weight: 800; color: white; font-family: 'Exo 2', sans-serif; line-height: 1; }
.mdh-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-left: 3px; }

.mdh-scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.45); font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 1px; z-index: 6;
}
.mdh-scroll-indicator .scroll-mouse { border-color: rgba(127,166,155,0.4); }
.mdh-scroll-indicator .scroll-wheel { background: #7FA69B; }


/* ================================================================
   SECTION 4 — MARKET PRODUCTS SECTION (market.php)
   ================================================================ */
.market-products-section {
    padding: 80px 0 60px;
    background: #f8faf9;
    position: relative;
}
.market-products-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(127, 166, 155, 0.35), transparent);
}
.market-desc-block {
    display: flex; align-items: flex-start; gap: 22px;
    background: white; border: 1px solid rgba(127, 166, 155, 0.18);
    border-radius: 16px; padding: 28px 32px; margin-bottom: 40px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.04);
}
.market-desc-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(127,166,155,0.12), rgba(127,166,155,0.06));
    border: 1px solid rgba(127,166,155,0.22); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #7FA69B; font-size: 1.35rem;
}
.market-desc-block p { font-size: 1.05rem; color: #3d5552; line-height: 1.7; margin: 0; }

.market-subcats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.subcat-tab {
    padding: 8px 20px; border-radius: 50px;
    border: 1.5px solid rgba(127,166,155,0.25);
    background: white; color: #5C6E6A;
    font-family: 'Exo 2', sans-serif; font-size: 0.88rem; font-weight: 500;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    white-space: nowrap;
}
.subcat-tab:hover { border-color: #7FA69B; color: #7FA69B; background: rgba(127,166,155,0.04); }
.subcat-tab.active {
    background: linear-gradient(135deg, #7FA69B, #5C6E6A);
    border-color: transparent; color: white;
    box-shadow: 0 4px 16px rgba(127,166,155,0.32);
}

.market-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 32px; padding: 12px 22px;
    background: white; border: 1px solid rgba(127,166,155,0.18);
    border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.toolbar-left .results-info { display: flex; align-items: center; gap: 10px; }
.toolbar-left .results-icon { color: #7FA69B; font-size: 1rem; }
.toolbar-left .results-count { font-size: 0.92rem; color: #5C6E6A; }
.toolbar-left .results-count strong { color: #7FA69B; font-weight: 700; }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 36px; height: 36px;
    border: 1px solid rgba(127,166,155,0.22); border-radius: 8px;
    background: transparent; color: #A8B5B1;
    cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.view-btn.active { background: #7FA69B; border-color: #7FA69B; color: white; }
.view-btn:hover:not(.active) { border-color: #7FA69B; color: #7FA69B; }

.market-products-grid {
    margin-bottom: 56px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.market-products-grid .product-card-premium { min-width: 0; }
.market-no-products {
    grid-column: 1 / -1; text-align: center; padding: 80px 20px;
    background: white; border-radius: 18px;
    border: 1.5px dashed rgba(127,166,155,0.28);
}
.no-products-icon {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: rgba(127,166,155,0.08); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #7FA69B;
}
.market-no-products h3 { color: #1a2a28; font-size: 1.3rem; margin-bottom: 8px; }
.market-no-products p { color: #5C6E6A; }
.market-no-products a { color: #7FA69B; }

.mdh-description {
    max-width: 640px;
    margin: -6px auto 24px;
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.75;
}
.mdh-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.mdh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 210px;
    padding: 14px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.mdh-btn:hover {
    transform: translateY(-2px);
}
.mdh-btn-primary {
    background: linear-gradient(135deg, #7FA69B, #5C6E6A);
    color: #fff;
    box-shadow: 0 10px 30px rgba(127,166,155,0.28);
}
.mdh-btn-primary:hover { color: #fff; box-shadow: 0 16px 38px rgba(127,166,155,0.34); }
.mdh-btn-secondary {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(12px);
}
.mdh-btn-secondary:hover { color: #fff; border-color: rgba(127,166,155,0.45); box-shadow: 0 12px 26px rgba(8,18,30,0.22); }

.market-intro-section,
.market-benefits-section,
.market-applications-section {
    position: relative;
    background: #f8faf9;
}
.market-intro-section { padding: 78px 0 30px; }
.market-benefits-section { padding: 28px 0 30px; }
.market-applications-section { padding: 26px 0 18px; }
.market-section-header {
    margin-bottom: 28px;
}
.market-section-header.center {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}
.market-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(127,166,155,0.22);
    background: linear-gradient(135deg, rgba(127,166,155,0.12), rgba(127,166,155,0.04));
    color: #5C6E6A;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.market-section-header h2,
.market-intro-heading h2,
.market-support-copy h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
    color: #1a2a28;
    margin: 0 0 12px;
}
.market-section-header p,
.market-intro-copy p,
.market-support-copy p {
    margin: 0;
    color: #5C6E6A;
    font-size: 1rem;
    line-height: 1.8;
}
.market-intro-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: start;
    padding: 34px 38px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7f5 100%);
    border: 1px solid rgba(127,166,155,0.18);
    box-shadow: 0 22px 60px rgba(127,166,155,0.08);
}
.market-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.market-benefit-card {
    position: relative;
    padding: 24px 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(127,166,155,0.14);
    box-shadow: 0 16px 44px rgba(26,42,40,0.06);
    overflow: hidden;
}
.market-benefit-card::before,
.market-application-card::before,
.market-support-section::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #7FA69B, #A7C5BC);
}
.market-benefit-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(127,166,155,0.16), rgba(127,166,155,0.05));
    color: #6B9186;
    font-size: 1.25rem;
    margin-bottom: 18px;
}
.market-benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2a28;
    margin: 0 0 10px;
}
.market-benefit-card p {
    color: #5C6E6A;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}
.market-applications-section {
    position: relative;
    padding: 42px 0 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(127,166,155,0.12), transparent 30%),
        radial-gradient(circle at 85% 22%, rgba(127,166,155,0.08), transparent 26%),
        linear-gradient(180deg, #f8fbfa 0%, #eef4f1 100%);
}
.market-apps-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.apps-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.65;
}
.apps-orb.orb-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -70px;
    background: radial-gradient(circle, rgba(127,166,155,0.16), transparent 70%);
}
.apps-orb.orb-2 {
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(92,110,106,0.14), transparent 72%);
}
.apps-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(127,166,155,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127,166,155,0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.4), transparent 75%);
}
.market-application-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.market-application-card {
    position: relative;
    min-height: 290px;
    border: 0;
    border-radius: 30px;
    padding: 24px;
    background:
        linear-gradient(160deg, rgba(20,39,48,0.98) 0%, rgba(22,52,60,0.98) 55%, rgba(28,66,70,0.98) 100%);
    color: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 22px 48px rgba(8,18,30,0.16),
        inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-radius 0.45s ease;
}
.market-application-card::before {
    height: 1px;
    background: linear-gradient(90deg, rgba(181,220,209,0.92), rgba(181,220,209,0.3), transparent);
}
.market-application-card::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: -80px;
    right: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127,166,155,0.2), transparent 68%);
    opacity: 0.8;
    z-index: -1;
    transition: transform 0.45s ease, opacity 0.45s ease;
}
.market-application-card:hover {
    transform: translateY(-8px);
    border-radius: 34px;
    box-shadow:
        0 30px 60px rgba(8,18,30,0.2),
        inset 0 1px 0 rgba(255,255,255,0.08);
}
.market-application-card:hover::after {
    transform: scale(1.14);
    opacity: 1;
}
.market-application-card-no {
    position: absolute;
    top: 22px;
    right: 24px;
    font-family: 'Exo 2', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(199,221,215,0.08);
    letter-spacing: -0.04em;
    pointer-events: none;
}
.market-app-card-halo {
    position: absolute;
    inset: auto -30px -30px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127,166,155,0.16), transparent 72%);
    z-index: -1;
    transition: transform 0.45s ease;
}
.market-application-card:hover .market-app-card-halo {
    transform: scale(1.14);
}
.market-application-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(199,221,215,0.16);
    color: #d7ebe5;
    font-size: 1.3rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    margin-bottom: 26px;
}
.market-application-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.market-application-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(127,166,155,0.12);
    border: 1px solid rgba(127,166,155,0.18);
    color: #bddad4;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.market-application-title {
    display: block;
    max-width: 86%;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.28;
    color: #f7fbfa;
}
.market-application-copy {
    display: block;
    max-width: 92%;
    color: rgba(223,236,232,0.72);
    font-size: 0.94rem;
    line-height: 1.68;
}
.market-application-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(199,221,215,0.12);
}
.market-application-cta {
    color: #cfe5df;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.market-application-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(127,166,155,0.16), rgba(127,166,155,0.06));
    border: 1px solid rgba(127,166,155,0.2);
    color: #d7ebe5;
    font-size: 1rem;
    transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.market-application-card:hover .market-application-arrow {
    transform: translateY(2px);
    background: linear-gradient(160deg, rgba(127,166,155,0.3), rgba(127,166,155,0.1));
    border-color: rgba(181,220,209,0.28);
}
.market-industries-section {
    position: relative;
    padding: 48px 0 28px;
}
.market-industries-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.market-industry-card {
    position: relative;
    min-height: 238px;
    padding: 26px 26px 24px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(244,249,247,0.96) 100%);
    border: 1px solid rgba(127,166,155,0.16);
    box-shadow:
        0 22px 46px rgba(26,42,40,0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.market-industry-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #7FA69B, #B5DCD1 60%, transparent 100%);
}
.market-industry-card::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: -90px;
    right: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127,166,155,0.14), transparent 72%);
    z-index: -1;
    transition: transform 0.45s ease;
}
.market-industry-card:hover {
    transform: translateY(-8px);
    border-color: rgba(127,166,155,0.24);
    box-shadow:
        0 30px 60px rgba(26,42,40,0.09),
        inset 0 1px 0 rgba(255,255,255,0.9);
}
.market-industry-card:hover::after {
    transform: scale(1.14);
}
.market-industry-card-no {
    position: absolute;
    top: 20px;
    right: 24px;
    color: rgba(92,110,106,0.14);
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}
.market-industry-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.26), transparent 35%, transparent 65%, rgba(127,166,155,0.06) 100%);
    pointer-events: none;
}
.market-industry-icon-wrap {
    margin-bottom: 22px;
}
.market-industry-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(127,166,155,0.12), rgba(127,166,155,0.03));
    color: #6f9489;
    border: 1px solid rgba(127,166,155,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    font-size: 1.45rem;
}
.market-industry-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.market-industry-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(127,166,155,0.08);
    color: #6B9186;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.market-industry-card h3 {
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.3;
    color: #213231;
    margin: 0;
    max-width: 82%;
}
.market-industry-card p {
    margin: 0;
    max-width: 90%;
    color: #647671;
    font-size: 0.95rem;
    line-height: 1.68;
}
.market-support-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
    gap: 28px;
    margin: 24px 0 10px;
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff 0%, #edf3f1 100%);
    border: 1px solid rgba(127,166,155,0.16);
    box-shadow: 0 18px 52px rgba(127,166,155,0.08);
}
.market-support-list {
    display: grid;
    gap: 14px;
}
.market-support-point {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(127,166,155,0.08);
    color: #1a2a28;
    font-weight: 600;
}
.market-support-check {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7FA69B, #5C6E6A);
    color: #fff;
    flex-shrink: 0;
}

/* Market Navigation */
.market-nav-section {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 16px; align-items: center;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(127,166,155,0.15);
    margin-top: 10px;
}
.market-nav-link {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 24px; border-radius: 14px;
    background: white; border: 1px solid rgba(127,166,155,0.18);
    text-decoration: none; color: #1a2a28;
    transition: all 0.3s ease;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}
.market-nav-link:hover { border-color: #7FA69B; box-shadow: 0 8px 30px rgba(127,166,155,0.14); transform: translateY(-2px); color: #1a2a28; }
.market-nav-link i { color: #7FA69B; font-size: 1.1rem; flex-shrink: 0; }
.market-nav-link.next { justify-content: flex-end; }
.nav-text { display: flex; flex-direction: column; gap: 2px; }
.market-nav-link.next .nav-text { text-align: right; }
.nav-label { font-size: 0.73rem; color: #7FA69B; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.nav-name { font-size: 0.94rem; font-weight: 600; color: #1a2a28; }
.market-nav-center {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 24px; border-radius: 14px;
    background: linear-gradient(135deg, #7FA69B, #5C6E6A);
    color: white; text-decoration: none; font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 6px 24px rgba(127,166,155,0.32);
    transition: all 0.3s ease; white-space: nowrap;
}
.market-nav-center:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(127,166,155,0.45); color: white; }
.market-nav-center i { font-size: 1.1rem; }


/* ================================================================
   SECTION 5 — CONNECT BANNER (both pages)
   Matches globalreach.php gr-connect exactly
   ================================================================ */
.gr-connect {
    padding: 28px 0 0;
    margin-bottom: 0;
    background: linear-gradient(145deg, #08121c 0%, #0f1923 55%, #142030 100%);
    position: relative;
    overflow: hidden;
}
.gr-connect::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(127,166,155,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127,166,155,0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    animation: grConnectGrid 28s linear infinite;
    pointer-events: none;
}
@keyframes grConnectGrid {
    0%   { background-position: 0 0; }
    100% { background-position: -52px -52px; }
}
.gr-connect-glow {
    position: absolute;
    width: 600px; height: 400px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(127,166,155,0.10), transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}
.gr-connect .container { position: relative; z-index: 2; }
.gr-connect-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: center;
    padding: 28px 0 32px;
}
.gr-connect-headline {
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    font-weight: 300;
    color: rgba(255,255,255,0.78);
    line-height: 1.4;
}
.gr-connect-headline strong { font-weight: 700; color: #fff; }
.gr-connect-headline .accent { color: #7FA69B; font-weight: 700; }
.gr-connect-copy {
    margin: 16px 0 0;
    max-width: 440px;
    color: rgba(255,255,255,0.58);
    font-size: 0.95rem;
    line-height: 1.7;
}
.gr-connect-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.gr-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.gr-connect-btn:hover { transform: translateY(-2px); }
.gr-connect-btn.primary {
    background: linear-gradient(135deg, #7FA69B, #5C6E6A);
    color: #fff;
    box-shadow: 0 10px 26px rgba(127,166,155,0.26);
}
.gr-connect-btn.secondary {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
    color: #fff;
}
.gr-connect-btn.ghost {
    background: transparent;
    border-color: rgba(127,166,155,0.3);
    color: #C7DDD7;
}
.gr-connect-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    background: rgba(127,166,155,0.08);
    border: 1px solid rgba(127,166,155,0.20);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}
.gr-connect-center i {
    font-size: 1.7rem;
    background: linear-gradient(135deg, #7FA69B, #C2DDD7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gr-connect-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.gr-connect-email {
    font-size: 12px;
    color: rgba(255,255,255,0.44);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.gr-connect-email:hover { color: #7FA69B; }
.gr-connect-social-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.gr-connect-social-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.22);
}
.gr-connect-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.gr-connect-social a {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.40);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.32s;
}
.gr-connect-social a:hover {
    background: rgba(127,166,155,0.22);
    border-color: rgba(127,166,155,0.45);
    color: #7FA69B;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(127,166,155,0.22);
}
.gr-connect ~ .footer-premium .footer-wave-divider { background: #0f1923 !important; }


/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */
@media (max-width: 1100px) {
    .mh-split-layout { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .mh-content-right { display: none; }
    .mh-content-left { padding-right: 0; }
    .mh-subtitle { max-width: none; }
    .mh-stats-row { justify-content: center; }
    .mh-breadcrumb { justify-content: center; }
    .mh-badge { justify-content: center; }
    .market-benefits-grid,
    .market-industries-grid,
    .market-application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-support-section,
    .market-intro-grid { grid-template-columns: 1fr; }
    .market-application-card,
    .market-industry-card { min-height: 0; }
    .market-application-title,
    .market-application-copy,
    .market-industry-card h3,
    .market-industry-card p { max-width: 100%; }
    .market-nav-section { grid-template-columns: 1fr; gap: 12px; }
    .market-nav-center { order: -1; }
    .market-nav-link.next { justify-content: flex-start; }
    .gr-connect-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
    .gr-connect-headline { font-size: 1rem; }
}
@media (max-width: 768px) {
    .markets-hero-section { max-height: none; height: auto; min-height: 72vh; padding: 80px 0 40px; }
    .mh-title { font-size: 2rem; }
    .mh-stats-row { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .markets-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
    .market-card { height: 230px; }
    .market-detail-hero { min-height: 72vh; padding-top: 80px; }
    .mdh-title { font-size: 2.2rem; }
    .mdh-subtitle { font-size: 1rem; }
    .mdh-description { font-size: 0.95rem; }
    .mdh-actions { gap: 10px; }
    .mdh-btn { min-width: 0; width: 100%; }
    .market-intro-section { padding-top: 60px; }
    .market-benefits-grid,
    .market-industries-grid,
    .market-application-grid { grid-template-columns: 1fr; }
    .market-intro-grid,
    .market-support-section { padding: 24px; }
    .market-applications-section { padding-top: 34px; }
    .market-application-card { padding: 22px; min-height: 260px; }
    .market-application-icon { width: 62px; height: 62px; margin-bottom: 22px; }
    .market-application-title { font-size: 1.16rem; }
    .market-application-copy { font-size: 0.9rem; }
    .market-application-footer { padding-top: 18px; }
    .market-industries-section { padding-top: 38px; }
    .market-industry-card { padding: 24px 22px; min-height: 0; }
    .market-industry-icon { width: 66px; height: 66px; border-radius: 22px; }
    .market-industry-card h3 { font-size: 1.1rem; }
    .market-industry-card p { font-size: 0.92rem; }
    .market-products-section { padding: 60px 0 40px; }
    .market-desc-block { flex-direction: column; gap: 16px; }
    .market-desc-block p { font-size: 0.98rem; }
    .market-subcats { gap: 8px; }
    .subcat-tab { padding: 6px 14px; font-size: 0.82rem; }
    .market-toolbar { flex-direction: column; gap: 12px; align-items: flex-start; }
    .gr-connect-inner { grid-template-columns: 1fr; text-align: center; gap: 18px; }
    .gr-connect-social-wrap { align-items: center; }
    .gr-connect-copy { margin-left: auto; margin-right: auto; }
    .gr-connect-buttons { justify-content: center; }
}
@media (max-width: 480px) {
    .markets-grid { grid-template-columns: 1fr; }
    .mh-stat-divider { display: none; }
    .mh-stats-row { gap: 10px; }
    .market-nav-link { padding: 12px 16px; }
    .nav-name { font-size: 0.85rem; }
    .mdh-stats { flex-direction: column; gap: 10px; }
    .market-benefit-card,
    .market-industry-card,
    .market-application-card,
    .market-support-section,
    .market-intro-grid { padding: 20px; }
    .market-application-card-no { font-size: 2.3rem; top: 18px; right: 18px; }
    .market-application-icon { width: 58px; height: 58px; border-radius: 20px; }
    .market-application-tag,
    .market-industry-tag { font-size: 0.68rem; letter-spacing: 0.1em; }
    .market-application-title { font-size: 1.05rem; }
    .market-application-copy,
    .market-industry-card p { font-size: 0.88rem; }
    .market-application-arrow { width: 44px; height: 44px; border-radius: 16px; }
    .market-industry-card-no { top: 18px; right: 18px; font-size: 2.1rem; }
    .market-industry-icon { width: 60px; height: 60px; border-radius: 20px; font-size: 1.25rem; }
    .market-industry-card h3 { font-size: 1rem; }
    .gr-connect-center { padding: 12px 18px; }
}

/* ================================================================
   MARKET PRODUCTS — Premium Card V2 Overlay
   ================================================================ */

/* Override: v2 cards don't need the old icon placeholder */
.mp-card-icon-placeholder {
    display: none;
}

/* Card v2 modifier — subtle border refinement */
.mp-card-v2 {
    border: 1px solid rgba(127, 166, 155, 0.1);
}
.mp-card-v2:hover {
    border-color: rgba(127, 166, 155, 0.2);
}

/* Overlay v2 — sage green theme instead of dark navy */
.mp-overlay-v2 {
    background: linear-gradient(160deg, #f0f5f3 0%, #e4ece9 30%, #d5e0db 60%, #c8d6d0 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    inset: 0;
}

/* Background decorations */
.mp-ov2-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.mp-ov2-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(127,166,155,0.08) 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(127,166,155,0.06) 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(127,166,155,0.05) 1px, transparent 1px);
    background-size: 30px 30px, 45px 45px, 60px 60px;
}
.mp-ov2-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127,166,155,0.15), transparent 70%);
    filter: blur(30px);
    animation: mp-ov2-pulse 3.5s ease-in-out infinite;
}
@keyframes mp-ov2-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Center icon with animated rings */
.mp-ov2-icon {
    position: relative;
    width: 90px; height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-bottom: 20px;
}
.mp-ov2-icon i {
    position: relative;
    z-index: 3;
    font-size: 2rem;
    color: #4a7c6f;
    transition: transform 0.4s ease, color 0.3s;
}
.mp-card-v2:hover .mp-ov2-icon i {
    transform: scale(1.12);
    color: #3a6b5f;
}

.mp-ov2-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(127,166,155,0.25);
    animation: mp-ov2-spin 14s linear infinite;
}
.mp-ov2-ring-2 {
    inset: -14px;
    border-color: rgba(127,166,155,0.12);
    border-style: dotted;
    animation-duration: 22s;
    animation-direction: reverse;
}
@keyframes mp-ov2-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bottom text */
.mp-ov2-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 18px 20px;
    background: linear-gradient(to top, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.85) 60%, transparent 100%);
    text-align: center;
    z-index: 2;
}
.mp-ov2-bottom h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2a28;
    margin: 0 0 6px;
    line-height: 1.3;
}
.mp-ov2-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #7FA69B;
    transition: gap 0.3s ease, color 0.3s;
}
.mp-ov2-cta i {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}
.mp-card-v2:hover .mp-ov2-cta {
    color: #5c8a7d;
}
.mp-card-v2:hover .mp-ov2-cta i {
    transform: translateX(3px);
}

/* Responsive: smaller icon on mobile */
@media (max-width: 768px) {
    .mp-ov2-icon { width: 70px; height: 70px; }
    .mp-ov2-icon i { font-size: 1.6rem; }
    .mp-ov2-ring-2 { inset: -10px; }
    .mp-ov2-bottom { padding: 14px 16px; }
    .mp-ov2-bottom h4 { font-size: 0.85rem; }
}
