/* ==================================================   Hero Section   ================================================== */
/* Hero Section */

.hero-wrap {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    margin-bottom: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-wrap:hover img {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.88) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 920px;
    padding: 0 20px;
    color: white;
    font-family: "Inter", sans-serif;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* Cyan accent — wraps only the highlighted words in the title */
.hero-title .highlight-text {
    color: #06D7F6;
    text-shadow: 0 0 20px rgba(6, 215, 246, 0.4);
}

.hero-sub {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.8);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #06D7F6, #0055FF);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(6, 215, 246, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 215, 246, 0.4),
                0 0 0 4px rgba(6, 215, 246, 0.15);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ===== HERO DUAL-CTA WRAPPER ===== */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ===== GHOST / OUTLINE SECONDARY BUTTON ===== */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #06D7F6;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #06D7F6;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: #0a0a0c;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(6, 215, 246, 0.35);
}

.btn-secondary:hover::before {
    transform: scaleX(1);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-wrap {
        height: 400px;
        border-radius: 12px;
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-sub {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-actions {
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .hero-wrap {
        height: 320px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-sub {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ==================================================   FEATURED Section   ================================================== */

/* ==================================================
   FEATURED Section (Clean V2 Style) — PERFRIG STYLE
================================================== */

.featured-posts {
    width: 90%;
    max-width: 1400px;
    margin: 80px auto;
}

/* ================= HEADER ================= */

.featured-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding: 20px 0;
}

.featured-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(135deg, #06D7F6, #0055FF);
    border-radius: 2px;
}

.featured-header h2 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(90deg, #06D7F6, #00FF9C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    font-family: 'Exo 2', 'Inter', sans-serif;
    letter-spacing: -0.3px;
    position: relative;
    display: inline-block;
}

.featured-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #06D7F6, #0055FF);
    border-radius: 2px;
    animation: linePulse 3s ease-in-out infinite;
}

.featured-subtitle {
    font-size: 16px;
    color: #9CA3AF;
    max-width: 600px;
    margin: 0 auto;
}

/* ================= GRID ================= */

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1.3fr;
    gap: 25px;
}

/* ================= MAIN CARD ================= */

.featured-main {
    position: relative;
    background: linear-gradient(135deg, #0A0A0C, #14151A);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* top glow line (like .card::before) */
.featured-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #06D7F6, #00FF9C);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* gradient border frame (like .card::after) */
.featured-main::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(6, 215, 246, 0.2),
        rgba(0, 255, 156, 0.2),
        rgba(6, 215, 246, 0.2));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}


.featured-main:hover {
    border-color: rgba(6, 215, 246, 0.3);
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(6, 215, 246, 0.1),
        0 0 25px rgba(6, 215, 246, 0.18);
}

.featured-main:hover::before,
.featured-main:hover::after {
    opacity: 1;
}


.featured-main a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* main image */

.featured-main img {
    width: 100%;
    height: 380px;
    object-fit: fill;
    border-radius: 16px;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.9);
}

.featured-main:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* content */

.featured-main-content {
    padding: 18px;
}

.featured-main-category {
    display: inline-block;
    font-size: 13px;
    color: #06D7F6;
    margin-bottom: 8px;
    background: rgba(6, 215, 246, 0.15);
    border-radius: 20px;
    padding: 4px 12px;
    border: 1px solid rgba(6, 215, 246, 0.2);
}

.featured-main h2 {
    font-size: 30px;
    margin: 10px 0;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.featured-main:hover h2 {
    color: #06D7F6;
}


.featured-main-meta {
    font-size: 14px;
    color: #9CA3AF;
}

/* ================= SIDE GRID ================= */

.featured-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* ================= SMALL CARDS ================= */

.featured-card {
    position: relative;
    background: linear-gradient(135deg, #0A0A0C, #14151A);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* top glow line */
.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #06D7F6, #00FF9C);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* gradient border frame */
.featured-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(6, 215, 246, 0.2),
        rgba(0, 255, 156, 0.2),
        rgba(6, 215, 246, 0.2));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.featured-card:hover {
    border-color: rgba(6, 215, 246, 0.3);
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(6, 215, 246, 0.08),
        0 0 20px rgba(6, 215, 246, 0.16);
}

.featured-card:hover::before,
.featured-card:hover::after {
    opacity: 1;
}

.featured-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.featured-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.9);
}

.featured-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.featured-card-content {
    padding-top: 10px;
}

.featured-card h3 {
    font-size: 17px;
    margin: 0;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.featured-card:hover h3 {
    color: #06D7F6;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-side {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-side {
        grid-template-columns: 1fr;
    }

    .featured-main img {
        height: 280px;
    }

    .featured-main h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .featured-posts {
        width: 95%;
        margin: 60px auto;
    }

    .featured-main img {
        height: 220px;
    }

    .featured-card h3 {
        font-size: 15px;
    }
}

/* same keyframes as latest-articles header line */
@keyframes linePulse {
    0%, 100% { width: 100px; opacity: 1; }
    50% { width: 150px; opacity: 0.8; }
}


/* ==================================================   Categories Section   ================================================== */

.perfrig-categories-wrapper {
    --primary: #06D7F6;
    --secondary: #0EA5E9;
    --dark: #0A0A0C;
    --gray: #9CA3AF;
    --gradient-text: linear-gradient(135deg, #06D7F6, #0EA5E9);
    --gradient-border: linear-gradient(135deg, rgba(6,215,246,.3), rgba(14,165,233,.3), rgba(6,215,246,.3));
    --radius-lg: 22px;
    --shadow-lg: 0 25px 50px rgba(0,0,0,.45);
    --shadow-glow: 0 0 20px rgba(6,215,246,.18);
    --transition: 0.45s cubic-bezier(0.175,0.885,0.32,1.275);
    
    background-color: transparent;
    color: #fff;
    padding: 20px;
    overflow-x: hidden;
    touch-action: pan-y;
    max-width: 100%;
}

.perfrig-categories-wrapper * {
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.category-block-header {
    text-align: center;
    margin: 60px 0 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-block-header h2 {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-block-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.carousel-container {
    position: relative;
    margin-bottom: 90px;
    padding: 0 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-carousel {
    display: flex;
    gap: 28px;
    padding: 20px 10px 30px;
    scrollbar-width: none;
}

.category-carousel::-webkit-scrollbar {
    display: none;
}

.category-card-link {
    text-decoration: none;
    display: block;
    height: 200px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
    position: relative;
}

.category-card {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.category-card-link::after {
    display: none;
}

.category-card-link:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 20px rgba(6,215,246,0.25);
}

.category-card-link:hover .category-card {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(6,215,246,0.25);
}

.category-image {
    position: absolute;
    inset: 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.75);
    transition: transform .8s ease, filter .5s ease;
}

.category-card-link:hover .category-image img {
    transform: scale(1.1);
    filter: brightness(.95);
}

.category-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(10,10,12,.85));
}

.category-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 30px;
    padding-top: 40px;
    transition: transform .4s ease;
}

.card-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: .5px;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    position: relative;
    transition: all .4s ease;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 30px;
}

.card-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--gradient-text);
    margin: 14px auto 0;
    transition: width .4s ease;
}

.category-card-link:hover .card-title {
    transform: translateY(-8px) scale(1.05);
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
}

.category-card-link:hover .card-title::after {
    width: 60px;
}

.card-cta {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #06D7F6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: all .3s ease;
    z-index: 3;
    padding: 10px 20px;
    border: 1px solid rgba(6,215,246,0.25);
    border-radius: 30px;
    background: rgba(6,215,246,0.08);
    backdrop-filter: blur(5px);
    box-shadow: none;
}

.category-card-link:hover .card-cta {
    gap: 14px;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(6,215,246,0.4);
    color: #050508;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    display: none;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary);
}

.swipe-instruction {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-top: 15px;
    display: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* ===== Mobile & Tablet (Carousel Mode) ===== */
@media (max-width: 1199px) {
    .category-carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-card-link {
        min-width: calc(100% - 40px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    
    .carousel-dots {
        display: flex;
    }
    
    .swipe-instruction {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .category-card-link {
        min-width: calc(50% - 20px);
        height: 320px;
    }
}

@media (max-width: 767px) {
    .category-card-link { 
        height: 280px;
    }
    .card-title { font-size: 22px; }
    .category-block-header h2 { font-size: 36px; }
    .category-block-header p { font-size: 16px; }
}

@media (max-width: 480px) {
    .category-block-header { margin: 40px 0 30px; }
    .category-block-header h2 { font-size: 28px; }
    .category-carousel { gap: 20px; }
    .category-card-link { height: 250px; }
    .card-cta {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== Desktop (Single Row Grid) ===== */
@media (min-width: 1200px) {
    .category-carousel {
        overflow-x: visible;
        flex-wrap: wrap;
        justify-content: center;
        gap: 28px;
    }
    
    .category-card-link {
        width: calc(25% - 21px);
        min-width: unset;
        height: 280px;
    }
    
    .carousel-dots,
    .swipe-instruction {
        display: none !important;
    }
    
    .card-title {
        margin-bottom: 40px;
    }
}

/* Card entrance animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card-link {
    animation: fadeInUp 0.5s ease forwards;
}

.category-card-link:nth-child(1) { animation-delay: 0.1s; }
.category-card-link:nth-child(2) { animation-delay: 0.2s; }
.category-card-link:nth-child(3) { animation-delay: 0.3s; }
.category-card-link:nth-child(4) { animation-delay: 0.4s; }


/* ==================================================
   FOLLOW / SUBSCRIBE SECTION — 2-col layout
   Left: Social grid (6 cards, 3×2)
   Right: Newsletter (conversion-focused)
================================================== */

.perfrig-follow {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.follow-inner {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.follow-social-col,
.follow-newsletter-col {
    flex: 1;
}

/* ── Social Column (LEFT) — visually matches newsletter box ── */

.follow-social-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 36px 40px;
    box-sizing: border-box;
    background:
        linear-gradient(135deg, rgba(6,215,246,0.08) 0%, rgba(100,70,220,0.06) 100%);
    border: 1px solid rgba(6,215,246,0.2);
    border-radius: 20px;
    box-shadow:
        0 0 50px rgba(6,215,246,0.07),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.follow-col-header h3 {
    font-family: 'Exo 2', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
    background: linear-gradient(90deg, #06D7F6, #00FF9C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.follow-col-header p {
    color: #9CA3AF;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Social grid — always 3 per row (2 rows of 3) */
.social-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.social-card {
    background: #14151A;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover {
    transform: translateY(-4px) scale(1.02);
    color: #fff;
}

/* Per-platform glow on hover */
.social-card.yt:hover  { border-color: #FF0000;              box-shadow: 0 10px 30px rgba(255,0,0,0.35); }
.social-card.x:hover   { border-color: rgba(255,255,255,0.6); box-shadow: 0 10px 30px rgba(255,255,255,0.15); }
.social-card.ig:hover  { border-color: #E1306C;              box-shadow: 0 10px 30px rgba(225,48,108,0.35); }
.social-card.fb:hover  { border-color: #1877F2;              box-shadow: 0 10px 30px rgba(24,119,242,0.35); }
.social-card.tt:hover  { border-color: #69C9D0;              box-shadow: 0 10px 30px rgba(105,201,208,0.35); }
.social-card.pin:hover { border-color: #E60023;              box-shadow: 0 10px 30px rgba(230,0,35,0.35); }

/* ── Newsletter Column (RIGHT) ─────────────────── */

.follow-newsletter-col {
    display: flex;
}

.follow-newsletter-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 36px 40px;
    box-sizing: border-box;
    background:
        linear-gradient(135deg, rgba(6,215,246,0.08) 0%, rgba(100,70,220,0.06) 100%);
    border: 1px solid rgba(6,215,246,0.2);
    border-radius: 20px;
    box-shadow:
        0 0 50px rgba(6,215,246,0.07),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Section header — identical to .featured-header */
.follow-section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding: 20px 0;
}

.follow-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(135deg, #06D7F6, #0055FF);
    border-radius: 2px;
}

.follow-section-header h2 {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Exo 2', 'Inter', sans-serif;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #06D7F6, #00FF9C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.follow-section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #06D7F6, #0055FF);
    border-radius: 2px;
    animation: linePulse 3s ease-in-out infinite;
}

.follow-section-header p {
    color: #9CA3AF;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Internal newsletter box title — gradient style at 24px */
.follow-nl-title {
    font-family: 'Exo 2', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
    background: linear-gradient(90deg, #06D7F6, #00FF9C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.follow-nl-main {
    color: #9CA3AF;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 14px;
}

/* Form — vertical stack, gap mirrors social grid gap */
.follow-nl-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

/* Email — full width, height matches social card */
.follow-newsletter-box .pf-sb-email {
    position: relative;
    top: 18px;
    width: 100%;
    height: 54px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0 16px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.follow-newsletter-box .pf-sb-email:focus {
    border-color: rgba(6,215,246,0.5);
    box-shadow: 0 0 0 3px rgba(6,215,246,0.08);
}

.follow-newsletter-box .pf-sb-email::placeholder {
    color: #6B7280;
}

/* Button — centered, height matches social card */
.follow-newsletter-box .pf-sb-btn {
    position: relative;
    top: 18px;   /* visual-only shift — aligns with row 2 of social grid */
    align-self: center;
    width: auto;
    min-width: 160px;
    height: 54px;
    padding: 0 28px;
    background: linear-gradient(90deg, #06D7F6, #00C4E0);
    border: none;
    border-radius: 10px;
    color: #050508;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.follow-newsletter-box .pf-sb-btn:hover {
    background: linear-gradient(90deg, #00C4E0, #06D7F6);
    box-shadow: 0 0 22px rgba(6,215,246,0.4);
    transform: translateY(-2px);
}

/* Error — below button.
   min-height reserves space so the box does not jump when
   the message appears; overflow:hidden prevents reflow on wrap. */
.follow-newsletter-box .pf-sb-error {
    font-size: 13px;
    color: #f87171;
    min-height: 40px;   /* two lines of 13px text + line-height gap */
    text-align: center;
    line-height: 1.5;
}

/* ── Responsive ────────────────────────────────── */

/* Tablet/Mobile: stack — newsletter first, social below */
@media (max-width: 900px) {
    .follow-inner {
        flex-direction: column;
    }
    .follow-social-col    { order: 2; }
    .follow-newsletter-col { order: 1; }
}

@media (max-width: 480px) {
    .social-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .follow-newsletter-box,
    .follow-social-col {
        padding: 24px 20px;
    }
    .follow-section-header h2 {
        font-size: 24px;
    }
    /* Full-width button on very small screens */
    .follow-newsletter-box .pf-sb-btn {
        width: 100%;
        align-self: stretch;
    }
}


/* ==================================================   performance Section   ================================================== */

.perfrig-performance-latest {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.performance-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #06D7F6, #00FF9C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* ===== GRID BASE ===== */
.performance-grid {
    display: grid;
    gap: 24px;
}

/* ===== DESKTOP: 1 ROW / 4 COLUMNS ===== */
@media (min-width: 1024px) {
    .performance-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== TABLET: 2x2 GRID (BIGGER) ===== */
@media (min-width: 600px) and (max-width: 1023px) {
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE: 2x2 GRID (SMALLER) ===== */
@media (max-width: 599px) {
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== CARD ===== */
.performance-card {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #0A0A0C, #14151A);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* top glow line */
.performance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #06D7F6, #00FF9C);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* gradient border frame */
.performance-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(6, 215, 246, 0.2),
        rgba(0, 255, 156, 0.2),
        rgba(6, 215, 246, 0.2));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.performance-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,.45),
                0 0 0 1px rgba(6, 215, 246, 0.08),
                0 0 20px rgba(6, 215, 246, 0.16);
    border-color: rgba(6, 215, 246, 0.3);
}

.performance-card:hover::before,
.performance-card:hover::after {
    opacity: 1;
}

/* IMAGE */
.performance-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.9);
}

.performance-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* Tablet image height */
@media (max-width: 1023px) {
    .performance-card img {
        height: 160px;
    }
}

/* Mobile image height */
@media (max-width: 599px) {
    .performance-card img {
        height: 130px;
    }
}

/* TITLE */
.performance-card h4 {
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.4;
    color: #e5e7eb;
    font-weight: 600;
    transition: color 0.3s ease;
}

.performance-card:hover h4 {
    color: #06D7F6;
}

/* Mobile text smaller */
@media (max-width: 599px) {
    .performance-card h4 {
        font-size: 14px;
        padding: 12px;
    }
}

/* ==================================================   hardware Section   ================================================== */

.perfrig-hardware-latest {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.hardware-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #06D7F6, #00FF9C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* ===== GRID BASE ===== */
.hardware-grid {
    display: grid;
    gap: 24px;
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .hardware-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== TABLET ===== */
@media (min-width: 600px) and (max-width: 1023px) {
    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 599px) {
    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== CARD ===== */
.hardware-card {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #0A0A0C, #14151A);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* top glow line */
.hardware-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #06D7F6, #00FF9C);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* gradient border frame */
.hardware-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(6, 215, 246, 0.2),
        rgba(0, 255, 156, 0.2),
        rgba(6, 215, 246, 0.2));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hardware-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,.45),
                0 0 0 1px rgba(6, 215, 246, 0.08),
                0 0 20px rgba(6, 215, 246, 0.16);
    border-color: rgba(6, 215, 246, 0.3);
}

.hardware-card:hover::before,
.hardware-card:hover::after {
    opacity: 1;
}

/* IMAGE */
.hardware-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.9);
}

.hardware-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

@media (max-width: 1023px) {
    .hardware-card img {
        height: 160px;
    }
}

@media (max-width: 599px) {
    .hardware-card img {
        height: 130px;
    }
}

/* TITLE */
.hardware-card h4 {
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.4;
    color: #e5e7eb;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hardware-card:hover h4 {
    color: #06D7F6;
}

@media (max-width: 599px) {
    .hardware-card h4 {
        font-size: 14px;
        padding: 12px;
    }
}

/* ==================================================   reviews Section   ================================================== */

.perfrig-reviews-latest {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.reviews-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #06D7F6, #00FF9C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* ===== GRID BASE ===== */
.reviews-grid {
    display: grid;
    gap: 24px;
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== TABLET ===== */
@media (min-width: 600px) and (max-width: 1023px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 599px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== CARD ===== */
.reviews-card {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #0A0A0C, #14151A);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* top glow line */
.reviews-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #06D7F6, #00FF9C);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* gradient border frame */
.reviews-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(6, 215, 246, 0.2),
        rgba(0, 255, 156, 0.2),
        rgba(6, 215, 246, 0.2));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.reviews-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,.45),
                0 0 0 1px rgba(6, 215, 246, 0.08),
                0 0 20px rgba(6, 215, 246, 0.16);
    border-color: rgba(6, 215, 246, 0.3);
}

.reviews-card:hover::before,
.reviews-card:hover::after {
    opacity: 1;
}

/* IMAGE */
.reviews-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.9);
}

.reviews-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

@media (max-width: 1023px) {
    .reviews-card img {
        height: 160px;
    }
}

@media (max-width: 599px) {
    .reviews-card img {
        height: 130px;
    }
}

/* TITLE */
.reviews-card h4 {
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.4;
    color: #e5e7eb;
    font-weight: 600;
    transition: color 0.3s ease;
}

.reviews-card:hover h4 {
    color: #06D7F6;
}

@media (max-width: 599px) {
    .reviews-card h4 {
        font-size: 14px;
        padding: 12px;
    }
}

/* ==================================================   news Section   ================================================== */

.perfrig-news-latest {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.news-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #06D7F6, #00FF9C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* ===== GRID BASE ===== */
.news-grid {
    display: grid;
    gap: 24px;
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== TABLET ===== */
@media (min-width: 600px) and (max-width: 1023px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 599px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== CARD ===== */
.news-card {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #0A0A0C, #14151A);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* top glow line */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #06D7F6, #00FF9C);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* gradient border frame */
.news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(6, 215, 246, 0.2),
        rgba(0, 255, 156, 0.2),
        rgba(6, 215, 246, 0.2));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,.45),
                0 0 0 1px rgba(6, 215, 246, 0.08),
                0 0 20px rgba(6, 215, 246, 0.16);
    border-color: rgba(6, 215, 246, 0.3);
}

.news-card:hover::before,
.news-card:hover::after {
    opacity: 1;
}

/* IMAGE */
.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.9);
}

.news-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

@media (max-width: 1023px) {
    .news-card img {
        height: 160px;
    }
}

@media (max-width: 599px) {
    .news-card img {
        height: 130px;
    }
}

/* TITLE */
.news-card h4 {
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.4;
    color: #e5e7eb;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-card:hover h4 {
    color: #06D7F6;
}

@media (max-width: 599px) {
    .news-card h4 {
        font-size: 14px;
        padding: 12px;
    }
}


/* ==================================================
   GAMING / GUIDES / DISPLAYS / PERIPHERALS sections
   Section wrapper + title: per-category
   Grid, card, image, title: shared via comma selectors
================================================== */

.perfrig-gaming-latest,
.perfrig-guides-latest,
.perfrig-displays-latest,
.perfrig-peripherals-latest {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.gaming-title,
.guides-title,
.displays-title,
.peripherals-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #06D7F6, #00FF9C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* ===== GRID BASE ===== */
.gaming-grid,
.guides-grid,
.displays-grid,
.peripherals-grid {
    display: grid;
    gap: 24px;
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .gaming-grid,
    .guides-grid,
    .displays-grid,
    .peripherals-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== TABLET ===== */
@media (min-width: 600px) and (max-width: 1023px) {
    .gaming-grid,
    .guides-grid,
    .displays-grid,
    .peripherals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 599px) {
    .gaming-grid,
    .guides-grid,
    .displays-grid,
    .peripherals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== CARD ===== */
.gaming-card,
.guides-card,
.displays-card,
.peripherals-card {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #0A0A0C, #14151A);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* top glow line */
.gaming-card::before,
.guides-card::before,
.displays-card::before,
.peripherals-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #06D7F6, #00FF9C);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* gradient border frame */
.gaming-card::after,
.guides-card::after,
.displays-card::after,
.peripherals-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(6, 215, 246, 0.2),
        rgba(0, 255, 156, 0.2),
        rgba(6, 215, 246, 0.2));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gaming-card:hover,
.guides-card:hover,
.displays-card:hover,
.peripherals-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,.45),
                0 0 0 1px rgba(6, 215, 246, 0.08),
                0 0 20px rgba(6, 215, 246, 0.16);
    border-color: rgba(6, 215, 246, 0.3);
}

.gaming-card:hover::before,
.gaming-card:hover::after,
.guides-card:hover::before,
.guides-card:hover::after,
.displays-card:hover::before,
.displays-card:hover::after,
.peripherals-card:hover::before,
.peripherals-card:hover::after {
    opacity: 1;
}

/* IMAGE */
.gaming-card img,
.guides-card img,
.displays-card img,
.peripherals-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.9);
}

.gaming-card:hover img,
.guides-card:hover img,
.displays-card:hover img,
.peripherals-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

@media (max-width: 1023px) {
    .gaming-card img,
    .guides-card img,
    .displays-card img,
    .peripherals-card img {
        height: 160px;
    }
}

@media (max-width: 599px) {
    .gaming-card img,
    .guides-card img,
    .displays-card img,
    .peripherals-card img {
        height: 130px;
    }
}

/* TITLE */
.gaming-card h4,
.guides-card h4,
.displays-card h4,
.peripherals-card h4 {
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.4;
    color: #e5e7eb;
    font-weight: 600;
    transition: color 0.3s ease;
}

.gaming-card:hover h4,
.guides-card:hover h4,
.displays-card:hover h4,
.peripherals-card:hover h4 {
    color: #06D7F6;
}

@media (max-width: 599px) {
    .gaming-card h4,
    .guides-card h4,
    .displays-card h4,
    .peripherals-card h4 {
        font-size: 14px;
        padding: 12px;
    }
}



/* ==================================================   LATEST ARTICLES   ================================================== */

/* ==================================================
   LATEST ARTICLES - PERFRIG DESIGN SYSTEM
================================================== */

:root {
    /* Colors */
    --primary: #06D7F6;
    --secondary: #00FF9C;
    --accent: #0066FF;
    --dark: #0A0A0C;
    --darker: #05080C;
    --card: #14151A;
    --sidebar: #111318;
    --gray: #9CA3AF;
    --light-gray: #6B7280;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #06D7F6, #0055FF);
    --gradient-secondary: linear-gradient(135deg, #00FF9C, #00E5FF);
    --gradient-bg: linear-gradient(135deg, #0A0A0C, #111318);
    --gradient-card: linear-gradient(135deg, #0A0A0C, #14151A);
    --gradient-text: linear-gradient(90deg, #06D7F6, #00FF9C);
    
    /* Typography */
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing - reduced values */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 15px;  /* reduced from 20px */
    --space-lg: 20px;   /* reduced from 30px */
    --space-xl: 30px;   /* reduced from 40px */
    --space-2xl: 50px;  /* reduced from 60px */
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;  /* reduced from 20px */
    
    /* Borders */
    --border-light: 1px solid rgba(255, 255, 255, 0.05);
    --border-glow: 1px solid rgba(6, 215, 246, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.3); /* reduced */
    --shadow-glow: 0 0 25px rgba(6, 215, 246, 0.15); /* reduced */
    
    /* Motion */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==================================================
   LATEST ARTICLES HEADER - MATCHING FEATURED POSTS
================================================== */

.latest-articles-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding: 20px 0;
}

.latest-articles-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.latest-articles-header h2 {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 var(--space-sm);
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.latest-articles-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: linePulse 3s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% { width: 100px; opacity: 1; }
    50% { width: 150px; opacity: 0.8; }
}

.latest-articles-subtitle {
    font-size: 18px;
    color: #9CA3AF;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: var(--font-body);
}

/* ==================================================
   LATEST ARTICLES SECTION
================================================== */

.perfrig-latest-articles {
    width: 100%;        /* span full viewport — override global section 90% */
    max-width: 100%;    /* override global section 1400px cap */
    margin: 60px 0;
    padding: 0;
    box-sizing: border-box;
}

/* Center the header inside the full-width section */
.perfrig-latest-articles .featured-header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Center the card grid wrapper */
.perfrig-latest-articles .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* posts-container fills its parent wrapper — no independent centering needed */
#posts-container {
    width: 100%;
    box-sizing: border-box;
}

/* ==================================================
   WRAPPER & CONTAINER - reduced spacing
================================================== */

.wrapper {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

/* Remove heavy effects */
.wrapper::before {
    display: none;
}

.grid-3 {
    display: grid;
    gap: var(--space-md); /* reduced from var(--space-lg) */
    margin-bottom: var(--space-lg); /* reduced */
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================================
   ARTICLE CARD - reduced height and spacing
================================================== */

.card {
    background: var(--gradient-card);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md); /* reduced */
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    min-height: 350px; /* reduced from 380px */
    position: relative;
    overflow: hidden;
    animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); } /* reduced */
}

.card:hover {
    animation: none;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px; /* reduced from 4px */
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px; /* reduced from 2px */
    background: linear-gradient(135deg, 
        rgba(6, 215, 246, 0.2), 
        rgba(0, 255, 156, 0.2), 
        rgba(6, 215, 246, 0.2));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.card:hover {
    border-color: rgba(6, 215, 246, 0.3);
    transform: translateY(-6px) scale(1.01); /* reduced */
    box-shadow: 
        var(--shadow-lg),
        0 0 0 1px rgba(6, 215, 246, 0.1),
        var(--shadow-glow);
}

.card:hover::before,
.card:hover::after {
    opacity: 1;
}

.card-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-sm); /* reduced from var(--space-md) */
    height: 180px; /* reduced from 200px */
    background: var(--dark);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.9);
}

.card:hover .card-image-wrapper img {
    transform: scale(1.05); /* reduced from 1.08 */
    filter: brightness(1);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 13px;
    background: #0a0a0c;
    backdrop-filter: blur(10px);
    color: #06d7f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    border: 1.3px solid #06d7f6;
    font-family: var(--font-body);
}

/* ==================================================
   CARD CONTENT - reduced inner spacing
================================================== */

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta-inline {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 12px; /* reduced */
    color: #9CA3AF;
    margin-bottom: 8px; /* reduced */
    font-family: var(--font-body);
}

.post-author {
    font-weight: 600;
    color: #1b9292eb;
}

.post-date {
    color: #6B7280;
}

.card h3 {
    font-size: 16px; /* reduced from 18px */
    font-weight: 700;
    margin: 0 0 10px; /* reduced */
    color: #FFFFFF;
    font-family: var(--font-heading);
    line-height: 1.4;
    flex: 1;
    transition: color var(--transition-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* limit to two lines only */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card:hover h3 {
    color: var(--primary);
}

.card-excerpt {
    font-size: 13px; /* reduced */
    color: #9CA3AF;
    line-height: 1.5; /* reduced */
    margin-bottom: var(--space-sm); /* reduced */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* reduced from 3 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-body);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px; /* reduced */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.read-time {
    font-size: 11px; /* reduced */
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px; /* reduced */
    font-family: var(--font-body);
}

.read-time svg {
    width: 14px;
    height: 14px;
}

.read-more {
    font-size: 12px; /* reduced */
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px; /* reduced */
    transition: all var(--transition-normal);
    font-family: var(--font-body);
}

.read-more svg {
    width: 14px;
    height: 14px;
}

.read-more:hover {
    gap: 6px; /* reduced */
}

/* ==================================================
   SKELETON LOADER - improved
================================================== */

#skeleton {
    margin: var(--space-lg) 0;
}

.skeleton-grid {
    display: grid;
    gap: var(--space-md);
}

.skeleton-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    min-height: 350px;
    position: relative;
    overflow: hidden;
    border: var(--border-light);
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skeleton-img {
    height: 180px;
    background: var(--dark);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.skeleton-title {
    height: 14px;
    background: var(--dark);
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-title:nth-child(2) {
    width: 80%;
}

.skeleton-title:nth-child(3) {
    width: 60%;
}

/* ==================================================
   LOAD MORE BUTTON - improved
================================================== */

.load-more-container {
    text-align: center;
    margin: var(--space-xl) 0;
    position: relative;
}

.load-more-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(6, 215, 246, 0.3), 
        transparent);
}

#load-more-btn,
.team-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px; /* reduced */
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px; /* reduced */
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    font-family: var(--font-heading);
}

#load-more-btn::before,
.team-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
}

#load-more-btn:hover,
.team-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-lg),
        0 0 15px rgba(6, 215, 246, 0.3);
    gap: 12px;
}

#load-more-btn:hover::before,
.team-action-btn:hover::before {
    left: 100%;
}

#load-more-btn:active,
.team-action-btn:active {
    transform: translateY(-1px);
}

/* Anchor-specific reset — <a> tags need explicit text-decoration override */
.team-action-btn {
    text-decoration: none !important;
}

#load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#load-more-btn.loading .spinner {
    display: block;
}

/* ==================================================
   NO MORE POSTS MESSAGE - improved
================================================== */

.no-more-posts {
    text-align: center;
    padding: var(--space-lg);
    color: #6B7280;
    font-size: 15px;
    display: none;
    font-family: var(--font-body);
}

.no-more-posts.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.no-more-posts svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    color: var(--primary);
}

/* ==================================================
   RESPONSIVE - improved for large screens
================================================== */

@media (min-width: 1200px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md); /* medium spacing */
    }
    
    .skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
    
    /* Reduce spacing between cards more on desktop */
    .wrapper {
        width: 95%;
    }
}

@media (min-width: 1400px) {
    .grid-3 {
        gap: 15px; /* small fixed spacing */
    }
    
    .wrapper {
        width: 90%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .latest-articles-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .grid-3 {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .wrapper {
        width: 95%;
    }
    
    .latest-articles-header {
        margin: var(--space-lg) 0 var(--space-md);
    }
    
    .latest-articles-header h2 {
        font-size: 32px;
    }
    
    .card {
        min-height: 330px;
    }
    
    .card-image-wrapper {
        height: 170px;
    }
    
    .card h3 {
        font-size: 15px;
    }
    
    #load-more-btn,
    .team-action-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .card {
        min-height: 310px;
    }
    
    .card-image-wrapper {
        height: 160px;
    }
    
    .latest-articles-header h2 {
        font-size: 28px;
    }
    
    .latest-articles-header::before {
        width: 150px;
    }
    
    .card-excerpt {
        -webkit-line-clamp: 2;
    }
}



/* ==================================================   FOLLOW Section   ================================================== */


/* ==================================================   TEAM SECTION   ================================================== */

.team-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.team-card {
    background: #14151A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: #06D7F6;
    box-shadow: 0 10px 30px rgba(6, 215, 246, 0.15);
}

.team-avatar-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 15px;
    padding: 3px;
    background: linear-gradient(135deg, #06D7F6, transparent);
    transition: transform 0.3s ease;
}

.team-card:hover .team-avatar-wrap {
    transform: scale(1.05);
}

.team-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #14151A;
}

.team-name {
    color: #fff;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.team-bottom-cta {
    text-align: center;
    margin-bottom: 60px;
}

/* Responsive 5-column grid */
@media (max-width: 1024px) {
    .team-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid-5 {
        grid-template-columns: 1fr;
    }
}


/* ==================================================   TABBED CATEGORY HUB   ================================================== */

.perfrig-category-tabs-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    width: 100%;
}

/* Scrollable pill nav — hides scrollbar on all browsers */
.category-tabs-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs-nav::-webkit-scrollbar {
    display: none;
}

/* Individual pill buttons */
.category-tabs-nav .tab-btn {
    padding: 10px 20px;
    background: #14151A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    user-select: none;
}

.category-tabs-nav .tab-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.category-tabs-nav .tab-btn.active {
    background: rgba(6, 215, 246, 0.1);
    color: #06D7F6;
    border-color: #06D7F6;
}

@media (max-width: 768px) {
    .category-tabs-nav {
        justify-content: flex-start;
        padding: 0 15px;
    }

    /* Ensures trailing space after the last pill so it isn't clipped */
    .category-tabs-nav::after {
        content: '';
        padding-right: 15px;
        flex-shrink: 0;
    }
}

/* Tab pane visibility — only .active pane is shown */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: tabFadeIn 0.4s ease forwards;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab grids fill the section wrapper — no extra max-width or padding needed
   since .perfrig-category-tabs-section already constrains to 1200px */
.perfrig-category-tabs-section .performance-grid,
.perfrig-category-tabs-section .hardware-grid,
.perfrig-category-tabs-section .reviews-grid,
.perfrig-category-tabs-section .guides-grid,
.perfrig-category-tabs-section .displays-grid,
.perfrig-category-tabs-section .peripherals-grid,
.perfrig-category-tabs-section .news-grid {
    max-width: none;
    margin: 0;
    padding: 0;
}


/* ==================================================   FOR YOU SECTION   ================================================== */

/* ── FOR YOU section wrapper ─────────────────── */

.perfrig-foryou {
    margin: 100px auto;
    padding: 80px 20px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 45, 85, 0.08), transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(180, 0, 60, 0.06), transparent 50%);
}

.foryou-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.foryou-inner > h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #FF2D55, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.foryou-inner > p {
    color: #9CA3AF;
    font-size: 17px;
    max-width: 640px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* ── GX Hero ──────────────────────────────────── */

.gx-hero {
    width: 100%;
    background: #0d0d12;
    border: 1px solid rgba(255, 45, 85, 0.18);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* Red ambient glow behind content */
.gx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(255, 45, 85, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(180, 0, 60, 0.12) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.gx-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

/* ── Left column: heading ─────────────────────── */

.gx-hero-content {
    grid-column: 1;
    grid-row: 1;
    padding: 56px 40px 32px 56px;
    text-align: left;
}

.gx-hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}

.gx-hero-content h2 {
    font-size: 13px;
    font-weight: 700;
    color: #FF2D55;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 20px;
    background: none;
    -webkit-text-fill-color: #FF2D55;
}

.gx-hero-subtitle {
    font-size: 15px;
    color: #9CA3AF;
    line-height: 1.75;
    margin: 0;
}

/* ── Right column: image ──────────────────────── */

.gx-hero-image {
    grid-column: 2;
    grid-row: 1 / 3;
    overflow: hidden;
    min-height: 360px;
}

.gx-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
    transition: transform 0.5s ease;
}

.gx-hero:hover .gx-hero-image img {
    transform: scale(1.03);
}

/* ── Left column: CTA ─────────────────────────── */

.gx-cta {
    grid-column: 1;
    grid-row: 2;
    padding: 0 40px 56px 56px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.gx-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: #FF2D55;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 28px rgba(255, 45, 85, 0.45);
}

.gx-btn:hover {
    background: #e0002a;
    transform: translateY(-2px);
    box-shadow: 0 0 48px rgba(255, 45, 85, 0.65);
    color: #ffffff;
    text-decoration: none;
}

.gx-tagline {
    font-size: 13px;
    color: #6B7280;
    font-style: italic;
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 900px) {
    .gx-hero-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .gx-hero-content {
        grid-column: 1;
        grid-row: 1;
        padding: 40px 28px 24px;
        text-align: center;
    }

    .gx-hero-image {
        grid-column: 1;
        grid-row: 2;
        min-height: 240px;
    }

    .gx-hero-image img {
        object-position: center center;
    }

    .gx-cta {
        grid-column: 1;
        grid-row: 3;
        padding: 24px 28px 40px;
        align-items: center;
    }

    .gx-hero-content h1 {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .foryou-inner > h2 {
        font-size: 28px;
    }

    .gx-hero-content h1 {
        font-size: 28px;
    }

    .gx-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ==================================================
   CHROME-STYLE TABS UI
================================================== */

.perfrig-browser-section {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Window container — visible dark card */
.browser-mockup-window {
    background: #0D0E12;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Top bar — tab track */
.browser-top-bar {
    display: flex;
    align-items: flex-end;
    padding: 15px 15px 0 15px;
    background: #0A0A0E;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tab strip */
.browser-tabs-nav {
    display: flex;
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.browser-tabs-nav::-webkit-scrollbar {
    display: none;
}

/* Inactive tab — clearly visible against the dark track */
.browser-tabs-nav .b-tab {
    flex: 1;
    text-align: center;
    padding: 12px 24px;
    background: #111318;
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
    user-select: none;
}

.browser-tabs-nav .b-tab:hover {
    background: #1C1E24;
    color: #BBB;
}

/* Active tab — merges with content area */
.browser-tabs-nav .b-tab.active {
    background: #151922;
    color: #06D7F6;
    border-top: 2px solid #06D7F6;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    position: relative;
    z-index: 2;
}

/* Paints over the bottom border line so the active tab blends into the content */
.browser-tabs-nav .b-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #151922;
    z-index: 4;
}

/* Content body — same background as active tab */
.browser-content-area {
    background: #151922;
    position: relative;
    z-index: 1;
    margin-top: -1px;
    border-radius: 0 0 12px 12px;
    min-height: 420px;
}

/* Pane system — all panes stay absolute so container height is locked
   to min-height. Active pane fades in with a subtle upward motion.
   Padding lives HERE (not on the container) because position:absolute
   with inset:0 bypasses the parent's padding entirely. */
.b-pane {
    position: absolute;
    inset: 0;
    padding: 24px 20px 20px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    transition-delay: 0.05s;
    will-change: opacity, transform;
}

.b-pane.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* Mobile */
@media (max-width: 768px) {
    .browser-top-bar {
        padding: 12px 10px 0;
        overflow-x: auto;
    }

    .b-pane {
        padding: 16px 12px 16px;
    }

    .browser-tabs-nav .b-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
}

