/* /industries: a sector's documents (brochure, sales presentation, pamphlet) as cards in their own block below the
   posts. Markup: resources/views/frontend/partials/industry-docs.blade.php */
.ind-docs { margin: 14px 0 18px; padding: 18px 18px 20px; border-radius: 12px; border: 1px solid #e1e9f3;
    background: linear-gradient(180deg, #f2f6fb 0%, #fbfcfe 100%); }
.ind-docs__head { display: flex; align-items: center; gap: 14px; margin: -18px -18px 18px; padding: 14px 18px; border-radius: 12px 12px 0 0;
    background: #15416e; border-bottom: 3px solid #f07f22; }
.ind-docs__icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: rgba(240, 127, 34, .18); color: #ffb37a; font-size: 18px; }
.ind-docs__headtext { flex: 1; min-width: 0; }
.ind-docs__kicker { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffb37a; }
.ind-docs__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; color: #fff; text-transform: none; }
.ind-docs__sub { margin: 3px 0 0; font-size: 13px; color: #c3d2e6; }
.ind-docs__count { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 12.5px; font-weight: 600; }
.ind-docs__count i { color: #ffb37a; }

.ind-docs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ind-docs__card { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid #dfe7f1;
    color: inherit !important; text-decoration: none !important; box-shadow: 0 8px 22px -18px rgba(15, 42, 74, .55);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, border-color .35s ease; }
.ind-docs__card:hover { transform: translateY(-4px); border-color: #c9d6e6; box-shadow: 0 22px 38px -24px rgba(15, 42, 74, .6); }

.ind-docs__img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #15416e; }
.ind-docs__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.ind-docs__img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 37, 71, 0) 45%, rgba(11, 37, 71, .75) 100%); }
.ind-docs__card:hover .ind-docs__img img { transform: scale(1.06); }
.ind-docs__chip { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 6px; background: #fff; color: #15416e; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); }
.ind-docs__chip .fa-file-pdf-o { color: #d64545; }
.ind-docs__chip .fa-file-powerpoint-o { color: #e0661b; }

.ind-docs__body { display: flex; flex-direction: column; gap: 6px; padding: 13px 15px 15px; }
.ind-docs__name { font-size: 15.5px; font-weight: 700; line-height: 1.3; color: #15416e; }
.ind-docs__cta { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #f07f22; }
.ind-docs__cta i { font-size: 11.5px; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.ind-docs__card:hover .ind-docs__cta i { transform: translateX(4px); }
.ind-docs__card:focus-visible { outline: 2px solid #f07f22; outline-offset: 3px; }

/* inside the desktop panel: line up with the post cards (24px in from the panel edge), so the rounded corners
   aren't clipped by the scroll area */
.resc-main-scroll .ind-docs { margin: 14px 24px 22px; }

@media (max-width: 991px) {
    .ind-docs { margin: 14px 0 6px; padding: 14px 12px 14px; }
    .ind-docs__grid { grid-template-columns: 1fr; gap: 10px; }
    /* phones: compact rows, photo on the left */
    .ind-docs__card { flex-direction: row; align-items: stretch; }
    .ind-docs__img { flex: 0 0 120px; aspect-ratio: auto; min-height: 92px; }
    .ind-docs__chip { left: 8px; bottom: 8px; padding: 3px 7px; font-size: 10px; }
    .ind-docs__body { justify-content: center; padding: 10px 14px; }
    .ind-docs__name { font-size: 15px; }
    .ind-docs__head { margin: -14px -12px 14px; padding: 12px; flex-wrap: wrap; }
    .ind-docs__sub { font-size: 12.5px; }
    .ind-docs__count { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
    .ind-docs__card, .ind-docs__img img, .ind-docs__cta i { transition: none; }
}
