/* =======================================
   EXHIBITOR DOWNLOADS — RESOURCE CARDS
   Card component mirrors the .pa-card family
   (exhibitor-profile.css) so it reads as the
   same "card" language as the rest of the site,
   just laid out vertically for an icon + copy +
   download-button stack instead of icon + label.
   ======================================= */

.downloads-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 2.75rem;
}

/* Wider than the .downloads-header block above so "Download the Exhibitor
   Kit" fits on one line at the full clamp(--h2-size) desktop size — the
   description paragraph stays narrower (640px) for readable line length. */
.downloads-header h2 {
    text-align: center;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
}

.downloads-header p {
    max-width: 640px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    width: 100%;
    margin-bottom: 8px;
}

.download-card {
    background: #ffffff;
    border: 1.5px solid #edf0f6;
    border-radius: var(--radius-md);
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Same top accent-bar-on-hover treatment .pa-card uses on its left edge,
   rotated to the top since these cards are vertical, not horizontal. */
.download-card::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), 0 20px 44px rgba(0, 0, 0, 0.09);
    border-color: rgba(20, 83, 188, 0.18);
}

.download-card:hover::before { transform: scaleX(1); }

.download-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.download-card:hover .download-card-icon { transform: scale(1.08); }

.download-card-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Same blue/purple/red cycle as .pa-card-icon--* */
.download-card-icon--blue   { background: rgba(20, 83, 188, 0.09); }
.download-card-icon--purple { background: rgba(130, 41, 102, 0.09); }
.download-card-icon--red    { background: rgba(213, 16, 36, 0.09); }

.download-card-icon--blue   svg { stroke: var(--brand-blue); }
.download-card-icon--purple svg { stroke: var(--brand-purple); }
.download-card-icon--red    svg { stroke: var(--brand-red); }

.download-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin: 0 0 8px;
    text-align: left;
}

.download-card-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-gray);
    text-align: left;
    margin: 0 0 24px;
    flex-grow: 1;
}

/* Pushes the button to the bottom edge of the card even when a
   neighbouring card's description wraps to a different number of lines.
   No forced width — the compact (non --block) button sizes to its own
   "Download" label instead of stretching edge-to-edge. */
.download-card-btn { margin-top: auto; }

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

@media (max-width: 600px) {
    .download-grid       { grid-template-columns: 1fr; gap: 16px; }
    .download-card        { padding: 26px 22px; }
    .download-card-icon   { width: 48px; height: 48px; margin-bottom: 14px; }
    .download-card-icon svg { width: 22px; height: 22px; }
    .download-card-title  { font-size: 1rem; }
    .downloads-header     { margin-bottom: 2rem; }
    .downloads-header h2  { white-space: normal; }}
