/* Performance: content-visibility for index sections */
#about,
#expertise,
#gallery,
#testimonials,
#clients,
#business-network,
#contact {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

/* Index-specific font weights */
.section-title,
.hero-stats .stat h3, .product-card h3, .testimonial-card .author .info h4,
.contact-info h3 {
    font-weight: 700;
}
p, .section-desc, .section-label, .hero-badge, .hero p,
.about-features .feat p, .product-card p, .testimonial-card blockquote,
.testimonial-card .author .info p,
.hero-stats .stat p, .learn-more {
    font-weight: 400;
}

/* ============================================
   HERO TOP — Video Fullscreen + Scroll Trigger
   ============================================ */
.hero-top {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-top.scrolled {
    height: 60vh;
}
.hero-top video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7;
}

/* ============================================
   HERO BOTTOM — Dark Wood Texture
   ============================================ */
.hero-bottom {
    padding: 80px 0 60px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url('../images/Asset/content-bg.webp') center/cover no-repeat;
    color: #fff;
}

/* Hero Intro — Asterisk + Title */
.hero-intro {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 50px;
    max-width: 550px;
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}
.asterisk-wrap {
    flex-shrink: 0;
    margin-top: 4px;
    cursor: pointer;
    transition: transform 0.4s ease;
    display: inline-flex;
}
.asterisk-wrap:hover {
    transform: scale(1.5);
}
.rotating-asterisk {
    font-size: 2.5rem;
    color: #FFE500;
    display: inline-block;
    animation: spin 4s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.hero-intro-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
}
.hero-intro-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* Stat Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    gap: 50px;
    margin-bottom: 50px;
    justify-content: center;
}
.stat-card {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 28px;
    padding: 44px 24px;
    text-align: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.stat-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}
.stat-card .stat-text-title {
    font-size: 1.2rem;
}
.stat-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: #fff;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Stat Card HOVER — Kuning */
.stat-card:hover {
    background: #FFE500;
    border-color: #FFE500;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 229, 0, 0.25);
}
.stat-card:hover h3,
.stat-card:hover .stat-text-title {
    color: #1a1a1a;
}
.stat-card:hover p {
    color: #333;
}
.stat-card:hover .stat-icon {
    border-color: #1a1a1a;
    color: #1a1a1a;
    transform: scale(1.3);
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    background: transparent;
    cursor: pointer;
}
.btn-outline-light:hover {
    background: #fff;
    color: #1a1a1a;
    border-color: #fff;
}
.btn-outline-light i {
    transition: transform 0.3s ease;
}
.btn-outline-light:hover i {
    transform: translateX(4px);
}

/* ============================================
   SECTION LABEL & TITLE (umum)
   ============================================ */
.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #4a4a4a;
    font-weight: 400;
    display: inline-block;
    margin-bottom: 8px;
}
.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
}
.section-title span {
    font-weight: 400;
    color: #4a4a4a;
}
.section-desc {
    color: #4a4a4a;
    max-width: 540px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.text-center {
    text-align: center;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ABOUT — Light Theme + Readmore
   ============================================ */
#about {
    padding: 100px 0;
    background: #e8e8e8;
    color: #1a1a1a;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-image {
    border-radius: 16px;
    overflow: hidden;
    background: #e8e8e8;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-image .placeholder-img {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
}
.about-image .placeholder-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.about-label-top {
    text-align: center;
    font-size: 1.3rem;
    color: black;
    font-weight: 600;
    padding: 16px 0 8px;
}
.about-logo-below {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-logo-svg {
    height: 28px;
    width: auto;
}
.rotating-asterisk-small {
    font-size: 1rem;
    color: #FFE500;
    display: inline-block;
    animation: spin 4s linear infinite;
}
.about-content {
    color: #4a4a4a;
}
.about-content p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Readmore */
.about-text-wrapper {
    max-height: 280px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: max-height;
}
.about-text-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, #e8e8e8);
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.about-text-wrapper.expanded {
    max-height: none;
}
.about-text-wrapper.expanded::after {
    opacity: 0;
}
.btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 50px;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.btn-readmore:hover {
    border-color: #FFE500;
    color: #FFE500;
}
.btn-readmore i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}
.btn-readmore.active i {
    transform: rotate(180deg);
}

/* ============================================
   EXPERTISE / KEUNGGULAN
   ============================================ */
#expertise {
    padding: 60px 0;
    background: #e8e8e8;
    color: #1a1a1a;
}
.expertise-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
}
.expertise-icon-wrap {
    flex-shrink: 0;
}
.expertise-icon-zoom {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #1a1a1a;
    transition: transform 0.4s ease, border-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}
.expertise-icon-zoom:hover {
    transform: scale(1.4);
    border-color: #FFE500;
    color: #FFE500;
}
@keyframes scaleZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}
.expertise-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.expertise-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 50px;
    background: transparent;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    color: #1a1a1a;
    cursor: default;
}
.expertise-item:hover {
    border-color: #FFE500;
    background: rgba(255,229,0,0.05);
    transform: translateY(-2px);
}
.expertise-item i {
    font-size: 1rem;
    color: rgba(0,0,0,0.5);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.3s ease;
}
.expertise-item:hover i {
    color: #FFE500;
}
.expertise-item span {
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.3;
}

/* ============================================
   GALLERY
   ============================================ */
#gallery {
    padding: 60px 0;
    background: #1a1a1a;
}
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 19 / 9;
    background: #222;
    position: relative;
    cursor: pointer;
    border: none;
}
.gallery-item .placeholder-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.15);
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    transition: transform 0.5s ease;
}
/* Gallery hover — zoom foto di dalam frame */
.gallery-item:hover .placeholder-bg {
    transform: scale(1.15);
}
.gallery-item .gallery-caption {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0;
    border-radius: 0;
    color: #fff;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.gallery-item .gallery-caption .title {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    letter-spacing: 0.5px;
}
.gallery-item .gallery-caption .sub {
    font-size: 0.85rem;
    opacity: 0.9;
    display: block;
    font-weight: 400;
}
.gallery-item .gallery-caption .detail-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #FFE500;
    color: #000;
    border-radius: 50%;
    font-size: 1.2rem;
    pointer-events: auto;
    transition: 0.3s ease;
    text-decoration: none;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: none;
}
.gallery-item .gallery-caption .detail-arrow:hover {
    transform: translateX(4px) scale(1.05);
    background: #e6b800;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}


/* ============================================
   TESTIMONIALS
   ============================================ */
#testimonials {
    padding: 90px 0;
    background: #fff;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.testimonial-card {
    background: #f7f7f7;
    padding: 32px 28px;
    border-radius: 16px;
    transition: 0.3s ease;
    border: 1px solid transparent;
}
.testimonial-card:hover {
    border-color: #e8e8e8;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.testimonial-card .stars {
    color: #b0b0b0;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.testimonial-card blockquote {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #1a1a1a;
    margin-bottom: 18px;
}
.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial-card .author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #4a4a4a;
    font-size: 0.9rem;
}
.testimonial-card .author .info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.testimonial-card .author .info p {
    font-size: 0.78rem;
    color: #b0b0b0;
    margin: 0;
}

/* ============================================
   CLIENTS LOGO (slide looping)
   ============================================ */
#clients {
    padding: 60px 0;
    background: #f7f7f7;
    overflow: hidden;
    border-top: 1px solid #e8e8e8;
}
.clients-title {
    text-align: center;
    margin-bottom: 40px;
}
.clients-title .section-label {
    color: #4a4a4a;
}
.clients-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}
.clients-title h2 span {
    font-weight: 400;
    color: #4a4a4a;
}
.slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.slider-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: slideLeft 20s linear infinite;
    width: max-content;
    will-change: transform;
}
.slider-track img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s ease;
}
.slider-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes slideLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   BUSINESS NETWORK
   ============================================ */
#business-network {
    padding: 80px 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
        url('../images/Asset/asset-07.webp') center/cover no-repeat;
    color: #fff;
}

/* Network Diagram — 5-column flex */
.network-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 60px;
}
.network-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.network-col-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.network-col-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}
.network-box {
    padding: 14px 28px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 17px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    white-space: nowrap;
}
.network-box:hover {
    transform: scale(1.08);
    border-color: #FFE500;
    color: #FFE500;
    box-shadow: 0 0 20px rgba(255,229,0,0.15);
}
.network-arrow {
    width: 80px;
    height: auto;
    opacity: 0.6;
    flex-shrink: 0;
    display: block;
}
.network-arrow-flip {
    transform: scaleX(-1) translateY(-5px) rotate(50deg);
}
.network-arrow-flip-mirror {
    transform: scaleX(-1) scaleY(-1) translateY(-5px) rotate(50deg);
}
.network-arrow-mirror-y {
    transform: scaleY(-1) translateY(-5px) rotate(50deg);
}
.network-arrow-rotate {
    transform: translateY(-5px) rotate(50deg);
}
.network-center:hover {
    transform: scale(1.05);
}
.network-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}
.network-logo-img {
    height: 36px;
    width: auto;
}

/* Network Content */
.network-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.network-text p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
}
.network-text strong {
    color: #fff;
    font-weight: 700;
}
.network-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.4s ease;
}
.network-img-wrap:hover {
    transform: scale(1.05);
}
.network-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.network-img-wrap:hover img {
    transform: scale(1.1);
}



/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 140px);
        gap: 12px;
    }
    .stat-card {
        min-height: 200px;
        padding: 28px 16px;
        border-radius: 20px;
    }
    .stat-card h3 {
        font-size: 1.4rem;
    }
    .stat-card .stat-text-title {
        font-size: 1rem;
    }
    .stat-card p {
        font-size: 0.8rem;
    }
    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .expertise-layout {
        flex-direction: column;
        gap: 24px;
    }
    .expertise-items {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .gallery-item {
        aspect-ratio: 4 / 3;
    }
    .network-diagram {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-rows: auto auto auto;
        justify-content: center;
        justify-items: center;
        align-items: center;
        gap: 14px;
        transform: none;
    }
    /* Row 1: top cards spanning all 3 columns */
    .network-diagram > .network-col:first-child {
        grid-column: 1 / -1;
        grid-row: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 360px;
    }
    /* Row 2 col 1: left arrows */
    .network-diagram > .network-col-arrows:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    /* Row 2 col 2: Hartex center */
    .network-diagram > .network-col-center {
        grid-column: 2;
        grid-row: 2;
    }
    /* Row 2 col 3: right arrows */
    .network-diagram > .network-col-arrows:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
    }
    /* Row 3: bottom cards spanning all 3 columns */
    .network-diagram > .network-col:last-child {
        grid-column: 1 / -1;
        grid-row: 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 360px;
    }
    .network-arrow {
        width: 52px;
    }
    .network-box {
        padding: 12px 14px;
        font-size: 0.78rem;
        text-align: center;
        white-space: normal;
    }
    .network-logo {
        font-size: 1.8rem;
    }
    .network-arrow-mirror-y {
        transform: scaleY(-1) translateY(-5px) translateX(-24px) rotate(280deg);
    }
    .network-arrow-rotate {
        transform: translateY(-5px) translateX(-24px) rotate(280deg);
    }
    .network-arrow-flip-mirror {
        transform: scaleX(-1) scaleY(-1) translateY(-5px) translateX(-24px) rotate(280deg);
    }
    .network-arrow-flip {
        transform: scaleX(-1) translateY(-5px) translateX(-24px) rotate(280deg);
    }
    .network-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .slider-track img {
        height: 40px;
        max-width: 100px;
    }
    .hero-top {
        height: 100vh;
        min-height: 400px;
    }
    .hero-top.scrolled {
        height: 50vh;
    }

}
@media (max-width: 600px) {
    .hero-top {
        height: 100vh;
        min-height: 350px;
    }
    .hero-top.scrolled {
        height: 40vh;
    }
    .hero-top .overlay-text h1 {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
    .hero-bottom {
        padding: 50px 0 40px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 130px);
        gap: 10px;
    }
    .stat-card {
        min-height: 180px;
        padding: 24px 12px;
        border-radius: 18px;
    }
    .stat-card h3 {
        font-size: 1.2rem;
    }
    .stat-card .stat-text-title {
        font-size: 0.9rem;
    }
    .stat-card p {
        font-size: 0.75rem;
    }
    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .hero-intro {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .hero-cta {
        justify-content: center;
        gap: 10px;
    }
    .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.78rem;
        gap: 6px;
    }
    .expertise-items {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .expertise-item {
        padding: 12px 18px;
        font-size: 0.82rem;
    }
    .slider-track {
        gap: 30px;
    }
    .slider-track img {
        height: 30px;
        max-width: 80px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .gallery-item {
        aspect-ratio: 1 / 1;
        border-radius: 10px;
    }
    .gallery-item .gallery-caption {
        top: 8px;
        left: 8px;
    }
    .gallery-item .gallery-caption .title {
        font-size: 0.85rem;
    }
    .gallery-item .gallery-caption .sub {
        font-size: 0.65rem;
    }
    .gallery-item .gallery-caption .detail-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    .network-diagram {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-rows: auto auto auto;
        justify-content: center;
        justify-items: center;
        align-items: center;
        gap: 12px;
        transform: none;
    }
    .network-diagram > .network-col:first-child {
        grid-column: 1 / -1;
        grid-row: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 320px;
    }
    .network-diagram > .network-col-arrows:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    .network-diagram > .network-col-center {
        grid-column: 2;
        grid-row: 2;
    }
    .network-diagram > .network-col-arrows:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
    }
    .network-diagram > .network-col:last-child {
        grid-column: 1 / -1;
        grid-row: 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 320px;
    }
    .network-arrow {
        width: 52px;
    }
    .network-arrow-mirror-y {
        transform: scaleY(-1) translateY(-5px) translateX(-24px) rotate(280deg);
    }
    .network-arrow-rotate {
        transform: translateY(-5px) translateX(-24px) rotate(280deg);
    }
    .network-arrow-flip-mirror {
        transform: scaleX(-1) scaleY(-1) translateY(-5px) translateX(-24px) rotate(280deg);
    }
    .network-arrow-flip {
        transform: scaleX(-1) translateY(-5px) translateX(-24px) rotate(280deg);
    }
    .network-box {
        padding: 12px 10px;
        font-size: 0.75rem;
        text-align: center;
        white-space: normal;
    }
    .network-logo {
        font-size: 1.6rem;
    }
    .network-text p {
        font-size: 0.85rem;
    }
}

/* iPhone SE & very small screens */
@media (max-width: 400px) {
    .network-arrow {
        width: 36px;
    }
    .network-logo {
        font-size: 1.3rem;
    }
    .network-logo-img {
        height: 22px;
    }
    .network-box {
        padding: 10px 8px;
        font-size: 0.68rem;
    }
    .network-col:not(.network-col-arrows):not(.network-col-center) {
        max-width: 280px;
    }
    .network-arrow-mirror-y {
        transform: scaleY(-1) translateY(-5px) translateX(-40px) rotate(280deg);
    }
    .network-arrow-rotate {
        transform: translateY(-5px) translateX(-40px) rotate(280deg);
    }
    .network-arrow-flip-mirror {
        transform: scaleX(-1) scaleY(-1) translateY(-5px) translateX(-40px) rotate(280deg);
    }
    .network-arrow-flip {
        transform: scaleX(-1) translateY(-5px) translateX(-40px) rotate(280deg);
    }
}