/* =========================================================
   Ranosys Hire Resources Widget — v3.3
   ┌──────────────────┬──────────────────────────────────┐
   │  Content         │  Feature Cards  (3-col × 2-row) │
   │  eyebrow + line  │  [●icon]  [●icon]  [●icon]       │
   │  heading         │  title    title    title          │
   │  description     │  desc     desc     desc           │
   │  [btn1] [btn2]   │  [●icon]  [●icon]  [●icon]       │
   └──────────────────┴──────────────────────────────────┘
   Icons: FontAwesome or Elementor SVG upload only.
   Icon style: circular #faf9f6 background, #ff3b0a colour.
   ========================================================= */

/* ─── Section wrapper ─── */
.rsc-hr-section {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 5px;
    padding: 48px 40px;
}

/* ── Main 2-column layout: 40 / 60 split ── */
.rsc-hr-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    align-items: center;
}

/* ─────────────────────────────────────────
   LEFT COLUMN — Content
   ───────────────────────────────────────── */
.rsc-hr-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Eyebrow — red text + short red underline */
.rsc-hr-eyebrow-wrap {
    margin-bottom: 14px;
}

.rsc-hr-eyebrow {
    font-family: source-sans-pro, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666666;
    display: inline-block;
    padding-bottom: 7px;
    border-bottom: 2px solid #fe5907;
}

/* Heading */
.rsc-hr-heading {
    font-family: Poppins, sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.25;
    color: #111827;
    margin: 0 0 16px;
}

/* Description */
.rsc-hr-desc {
    font-family: source-sans-pro, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 28px;
}

/* Button row */
.rsc-hr-btn-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Primary (filled red) */
.rsc-hr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #ff3b0a;
    color: #ffffff;
    border: 2px solid #ff3b0a;
    border-radius: 4px;
    text-decoration: none;
    font-family: source-sans-pro, sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.rsc-hr-btn::after { display: none; }

.rsc-hr-btn i {
    font-size: 0.9rem;
    display: flex;
}

.rsc-hr-btn:hover {
    background-color: #d62f05;
    border-color: #d62f05;
    color: #ffffff;
    text-decoration: none;
}

/* Secondary (outline dark) */
.rsc-hr-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: transparent;
    color: #111827;
    border: 2px solid #111827;
    border-radius: 4px;
    text-decoration: none;
    font-family: source-sans-pro, sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.rsc-hr-btn-secondary:hover {
    background-color: #111827;
    color: #ffffff;
    text-decoration: none;
}

/* ─────────────────────────────────────────
   RIGHT COLUMN — Feature Cards (3 × 2 grid)
   Individual bordered cards with rounded corners.
   ───────────────────────────────────────── */
.rsc-hr-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background-color: transparent;
    border: none;
}

.rsc-hr-feature-card {
    background: #ffffff;
    padding: 24px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border: 1px solid #E5E7EB;
    border-radius: 5px;
}

.rsc-hr-feature-card:hover {
    background: #fafafa;
}

/* Icon — circular background, brand colour */
.rsc-hr-card-icon {
    width: 52px;
    height: 52px;
    background-color: #faf9f6;
    border-radius: 50%;
    color: #ff3b0a;
    margin-bottom: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.22s ease, background-color 0.22s ease;
}

/* Icon hover state (triggered by card hover) */
.rsc-hr-feature-card:hover .rsc-hr-card-icon {
    color: #ffffff;
    background-color: #ff3b0a;
}

/* FontAwesome <i> and Elementor icon spans */
.rsc-hr-card-icon i,
.rsc-hr-card-icon span[class*="eicon-"],
.rsc-hr-card-icon [class^="fa"],
.rsc-hr-card-icon [class*=" fa"] {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
    color: inherit;
}

/* SVG from Elementor media-library upload or inline FA SVG */
.rsc-hr-card-icon svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: currentColor;
}

.rsc-hr-card-icon svg path {
    fill: currentColor;
}

.rsc-hr-card-icon img {
    width: 26px;
    height: 26px;
    display: block;
}

/* Card title */
.rsc-hr-card-title {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 6px;
}

/* Card description */
.rsc-hr-card-desc {
    font-family: source-sans-pro, sans-serif;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────────────────────────────
   Responsive
   ───────────────────────────────────────── */
@media (max-width: 1200px) {
    .rsc-hr-section  { padding: 40px 32px; }
    .rsc-hr-layout   { gap: 36px; }
    .rsc-hr-heading  { font-size: 26px; }
}

@media (max-width: 1024px) {
    .rsc-hr-layout {
        grid-template-columns: 1fr 1.4fr;
        gap: 28px;
    }

    .rsc-hr-section  { padding: 32px 24px; }
    .rsc-hr-heading  { font-size: 24px; }
    .rsc-hr-feature-card { padding: 20px 16px; }
}

@media (max-width: 768px) {
    .rsc-hr-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .rsc-hr-section  { padding: 28px 20px; }
    .rsc-hr-features { grid-template-columns: repeat(2, 1fr); }
    .rsc-hr-heading  { font-size: 24px; }
}

@media (max-width: 480px) {
    .rsc-hr-features { grid-template-columns: 1fr; }
    .rsc-hr-section  { padding: 24px 16px; }
    .rsc-hr-heading  { font-size: 22px; }

    .rsc-hr-btn,
    .rsc-hr-btn-secondary {
        padding: 10px 18px;
        font-size: 13px;
    }
}
