@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

#goo-resources-v4 {
    font-family: "Outfit", sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    padding-bottom: 100px;
}

/* Hero Section */
.res-hero {
    background: #262926;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.res-hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(160, 160, 160, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
}

.res-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.res-hero h1 {
    font-size: 64px;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.res-hero p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Resource List Section */
.res-main-container {
    max-width: 1400px;
    margin: -60px auto 0;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.res-section-group {
    margin-bottom: 60px;
}

.res-label {
    display: inline-block;
    background: #262926;
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* The Flex Layout - FORCING 3 columns in a single straight row */
.res-flex-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    gap: 30px !important;
    padding: 20px 0 40px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* Horizontal Card Design - Explicitly stopping any float-induced diagonal effect */
.res-card-h {
    background: #ffffff;
    border-radius: 24px;
    display: flex !important;
    padding: 30px !important;
    border: 1px solid #eef0f2 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    align-items: center;
    flex: 1 1 0 !important;
    /* Forces equal 1/3 width */
    width: 31% !important;
    /* Fallback for older browsers or specific theme overrides */
    box-sizing: border-box !important;
    float: none !important;
    margin: 0 !important;
}

.res-card-h:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: #262926;
}

.res-icon-box {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.res-card-h:hover .res-icon-box {
    background: #262926;
    color: white;
}

.res-content-box {
    flex-grow: 1;
}

.res-content-box h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #0f172a;
    line-height: 1.4;
}

.res-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.res-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #808080 !important;
    text-decoration: none !important;
    transition: all 0.2s;
}

.res-action-btn:hover {
    gap: 12px;
    color: #404040 !important;
}

/* Video Modern Card - Forcing flat row alignment */
.res-video-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f3f5 !important;
    transition: all 0.4s;
    flex: 1 1 0 !important;
    width: 31% !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.res-video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
}

.res-video-thumb {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #f1f3f5;
    /* Lighter fallback instead of black */
}

.res-video-thumb iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block !important;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
    border: 1px solid #ddd !important;
}

.res-video-details {
    padding: 20px;
}

.res-video-details h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

@media (max-width: 991px) {
    .res-hero h1 {
        font-size: 38px;
    }

    .res-flex-row {
        flex-direction: column !important;
        display: flex !important;
        gap: 20px !important;
    }

    .res-card-h,
    .res-video-card {
        width: 100% !important;
        flex: none !important;
        margin-bottom: 20px !important;
    }

    .res-main-container {
        padding: 0 20px;
    }
}