/* ==============================
   CATEGORY HERO (FULL WIDTH)
   ============================== */

.perfrig-category-hero-full {
    position: relative !important;
    width: 100% !important;
    height: 360px !important;
    min-height: 360px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-bottom: 1px solid #0f0f0f;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Gradient overlay via pseudo-element — keeps .cat-hero-content
   as the only flex item so justify-content: flex-end works */
.perfrig-category-hero-full::before {
    content: '';
    position: absolute !important;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.88) 75%
    );
    z-index: 1;
    pointer-events: none;
}

.cat-hero-content {
    position: relative !important;
    z-index: 2 !important;
    padding: 40px !important;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.cat-hero-content h1 {
    margin: 0;
    text-shadow: 0 0 40px rgba(6, 215, 246, 0.45), 0 2px 14px rgba(255, 255, 255, 0.05);
}

.cat-hero-content p {
    margin-top: 10px;
    font-size: 21px;
    color: #EAEAEA;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

@media (max-width: 768px) {
    .perfrig-category-hero-full {
        height: 280px !important;
        min-height: 280px !important;
    }

    .cat-hero-content {
        padding: 20px !important;
    }

    .cat-hero-content h1 {
        font-size: 32px;
    }

    .cat-hero-content p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .perfrig-category-hero-full {
        height: 240px !important;
        min-height: 240px !important;
    }

    .cat-hero-content {
        padding: 15px !important;
    }

    .cat-hero-content h1 {
        font-size: 26px;
    }

    .cat-hero-content p {
        font-size: 14px;
        margin-top: 6px;
    }
}

/* ==============================
   GRID + SIDEBAR LAYOUT
   ============================== */

.perfrig-category-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1500px;
    margin: 40px auto;
    padding: 0 20px;
}

/* GRID */
.perfrig-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

/* ==============================
   CARD
   ============================== */
/* ==============================
   CARD PREMIUM STYLE
============================== */

.perfrig-card {

    background: linear-gradient(
        145deg,
        #1C1F26,
        #14161B
    );

    padding: 20px;
    border-radius: 16px;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 
        0 8px 25px rgba(0,0,0,0.45);

    transition: all .35s ease;

    position: relative;
    overflow: hidden;
}

.perfrig-card::before {
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:2px;
    background:linear-gradient(90deg,#06D7F6,#00FF9C);
    opacity:0;
    transition:.3s;
}

.perfrig-card:hover::before {
    opacity:1;
}

.perfrig-card:hover {

    transform: translateY(-6px);

    border-color: #06D7F6;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.6),
        0 0 25px rgba(6,215,246,0.15);
}


.perfrig-card:hover {

    transform: translateY(-6px);

    border-color: #06D7F6;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.6),
        0 0 25px rgba(6,215,246,0.15);

}

.perfrig-card .perfrig-title a {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 700;
    margin-top: 12px;
    display: block;
    text-decoration: none;
}

.perfrig-card:hover .perfrig-title a {
    color: #06D7F6;
}

.perfrig-card .perfrig-excerpt {
    color: #9CA3AF;
    font-size: 15px;
    line-height: 1.6;
}

.perfrig-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width:1200px){
    .perfrig-category-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:768px){
    .perfrig-category-grid {
        grid-template-columns:1fr;
    }
}
/* ==============================
   SIDEBAR BANNER (Desktop Only)
   ============================== */

.perfrig-side-banner {
    width: 300px;
    height: 600px;
    position: sticky;
    top: 100px;
}

.perfrig-side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide on Tablet + Mobile */
@media (max-width: 1024px) {
    .perfrig-category-layout {
        grid-template-columns: 1fr;
    }

    .perfrig-side-banner {
        display: none;
    }
}

/* ==============================
   BOTTOM FULL-WIDTH BANNER
   ============================== */

.perfrig-bottom-banner {
    width: 100%;
    text-align: center;
    margin: 50px 0 30px 0;
}

.perfrig-bottom-banner img {
    max-width: 100%;
    height: auto;
}

.perfrig-title a{
    font-size:20px;
    line-height:1.4;
    display:block;
    margin-top:14px;
}