/* ── Downloads & Detailed Download Pages ─────────────── */

/* ── Shared page shell ───────────────────────────────── */
.dl-main {
    background: #fff;
    padding: 0 0 60px;
    margin-top: 0;
}

/* ══════════════════════════════════════════════════════
   HERO — 70 / 30 split
══════════════════════════════════════════════════════ */
.dl-hero {
    display: grid;
    grid-template-columns: 70fr 30fr;
    background: linear-gradient(135deg, #042240 0%, #024f9c 100%);
    min-height: 480px;
    margin-bottom: 60px;
    padding-top: 140px;
}

.dl-hero-left {
    padding: 64px 56px 64px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    color: #fff;
}

.dl-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,204,0,.15);
    color: #ffcc00;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,204,0,.35);
    width: fit-content;
}

.dl-hero-left h1 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #fff;
}

.dl-hero-left p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,.88);
    max-width: 520px;
    margin: 0;
}

.dl-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ── Hero buttons ─── */
.btn-dl-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: #ffcc00;
    color: #042240;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 7px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.btn-dl-hero-primary:hover {
    background: #e6b800;
    transform: none;
    color: #042240;
}

.btn-dl-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 7px;
    border: 2px solid rgba(255,255,255,.45);
    text-decoration: none;
    transition: border-color .2s, background .2s;
}
.btn-dl-hero-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.1);
    color: #fff;
}

/* ── Hero right image panel ─── */
.dl-hero-right {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(0,0,0,.12);
    overflow: hidden;
}
.dl-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: drop-shadow(0 8px 28px rgba(0,0,0,.35));
}

/* ══════════════════════════════════════════════════════
   Section wrapper — constrained + padded
══════════════════════════════════════════════════════ */
.dl-section-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Section header ─── */
.dl-section-header {
    margin-bottom: 30px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e2e8f0;
}
.dl-section-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}
.dl-section-header p {
    font-size: .93rem;
    color: #666;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   SOFTWARE CARDS GRID
══════════════════════════════════════════════════════ */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
    margin-bottom: 60px;
}

.dl-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: box-shadow .22s, transform .22s;
    text-decoration: none;
}
.dl-card:hover {
    box-shadow: 0 8px 32px rgba(0,85,179,.14);
    transform: none;
}

.dl-card-logo {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: #f0f4f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.dl-card-name {
    font-size: .96rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.dl-card-platform {
    font-size: .76rem;
    color: #888;
    margin: -4px 0 0;
    line-height: 1.3;
}

.btn-dl-card {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 0;
    background: #0055b3;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: .875rem;
    transition: background .2s;
    margin-top: auto;
    width: 100%;
    justify-content: center;
}
.btn-dl-card:hover {
    background: #003d80;
    color: #fff;
}

/* ══════════════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════════════ */
.dl-cta {
    padding: 46px 40px;
    background: linear-gradient(135deg, #0055b3, #0080ff);
    border-radius: 14px;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
}
.dl-cta h2 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    color: #fff;
}
.dl-cta p {
    margin: 0 0 26px;
    opacity: .92;
    font-size: 1rem;
}
.btn-dl-cta {
    display: inline-block;
    background: #fff;
    color: #0055b3;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 1rem;
    transition: background .15s, color .15s;
}
.btn-dl-cta:hover {
    background: #f0f4f9;
    color: #003d80;
}

/* ══════════════════════════════════════════════════════
   DETAILED DOWNLOAD PAGE
══════════════════════════════════════════════════════ */

/* ── Detail hero ─── */
.dd-hero {
    background: transparent;
    padding: 140px 60px 52px;
    border-bottom: 1px solid #e2e8f0;
}
.dd-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.dd-hero-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    background: #e8edf4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}
.dd-hero-info {
    flex: 1;
    color: #042240;
}
.dd-hero-info h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #042240;
}
.dd-hero-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.dd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    font-weight: 600;
    background: rgba(4,34,64,.07);
    color: #042240;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(4,34,64,.15);
}
.dd-hero-tagline {
    font-size: .97rem;
    color: #555;
    margin: 8px 0 0;
    max-width: 580px;
}
.dd-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
}
.btn-dd-download {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    background: #ffcc00;
    color: #042240;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s, transform .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-dd-download:hover {
    background: #e6b800;
    transform: none;
    color: #042240;
}
.btn-dd-official {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 26px;
    background: transparent;
    color: #042240;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #042240;
    text-decoration: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.btn-dd-official:hover {
    background: #042240;
    color: #fff;
}

/* ── Detail body ─── */
.dd-body {
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 60px 0;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.dd-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.dd-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 36px;
}
.dd-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #042240;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}
.dd-section h2 i {
    color: #0055b3;
    font-size: 1rem;
}
.dd-section p {
    font-size: .95rem;
    line-height: 1.75;
    color: #444;
    margin: 0;
}
.dd-section ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dd-section ul li {
    font-size: .93rem;
    line-height: 1.6;
    color: #444;
}
.dd-section ol {
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dd-section ol li {
    font-size: .93rem;
    line-height: 1.6;
    color: #444;
}

/* ── Sidebar ─── */
.dd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 120px;
}

.dd-side-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 26px;
}
.dd-side-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dd-side-card h3 i { color: #0055b3; }

.dd-side-row {
    display: flex;
    justify-content: space-between;
    font-size: .84rem;
    padding: 7px 0;
    border-bottom: 1px solid #f0f4f9;
    color: #555;
}
.dd-side-row:last-child { border-bottom: none; }
.dd-side-row span:first-child { color: #888; }
.dd-side-row span:last-child  { font-weight: 600; color: #1a1a2e; }

.btn-dd-side-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 13px 0;
    background: #0055b3;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s;
    margin-top: 4px;
}
.btn-dd-side-dl:hover {
    background: #003d80;
    color: #fff;
}

/* ── Bottom download strip ───────────────────────────── */
.dd-download-strip {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.dd-download-strip strong {
    display: block;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.dd-download-strip span {
    font-size: .85rem;
    color: #666;
}

/* ── Sidebar other-downloads rows ───────────────────── */
.dd-side-other {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dd-side-other a {
    color: #0055b3;
    text-decoration: none;
    font-weight: 600;
    font-size: .84rem;
}
.dd-side-other a:hover { color: #003d80; }

.dd-all-link {
    font-size: .84rem;
    color: #0055b3;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.dd-all-link:hover { color: #003d80; }

.dd-back-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 60px 0;
}

.dd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .87rem;
    color: #0055b3;
    text-decoration: none;
    font-weight: 600;
}
.dd-back-link:hover { color: #003d80; }

/* ══════════════════════════════════════════════════════
   FLOATING SCROLL BUTTONS
══════════════════════════════════════════════════════ */
.scroll-fab {
    position: fixed;
    bottom: 28px;
    right: 22px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.scroll-fab-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #042240;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    box-shadow: 0 4px 18px rgba(4,34,64,.28);
    transition: background .2s, transform .15s, opacity .2s;
    opacity: 0;
    pointer-events: none;
    outline: none;
}
.scroll-fab-btn:hover {
    background: #0055b3;
    transform: none;
}
.scroll-fab-btn:focus-visible {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .dd-body {
        grid-template-columns: 1fr;
        padding: 40px 30px 0;
    }
    .dd-sidebar { position: static; }
    .dd-hero { padding: 120px 30px 44px; }
    .dd-hero-ctas { width: 100%; }
    .dd-back-wrap { padding: 20px 30px 0; }
}

@media (max-width: 820px) {
    .dl-hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
    }
    .dl-hero-right {
        min-height: 200px;
    }
    .dl-hero-right img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 620px) {
    .dl-hero-left {
        padding: 40px 24px;
    }
    .dl-hero { padding-top: 100px; }
    .dl-hero-left h1 { font-size: 1.55rem; }
    .dl-section-wrap { padding: 0 18px; }
    .dl-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .dl-cta { padding: 34px 20px; }
    .dd-section { padding: 24px 20px; }
    .dd-hero { padding: 100px 20px 36px; }
    .dd-back-wrap { padding: 20px 20px 0; }
    .scroll-fab { bottom: 18px; right: 14px; }
    .scroll-fab-btn { width: 38px; height: 38px; font-size: .85rem; }
}
