/* DATA PKT — additions for SEO pages, FAQs and articles. Red and black brand. */
:root { --dp-red: #bc2c3c; --dp-red-dark: #9e2231; --dp-ink: #111111; --dp-text: #2b2b2b; --dp-muted: #5f5f5f; --dp-line: #e7e3df; --dp-paper: #f7f3f0; }

/* Page headings promoted from h2 to h1 keep their original look */
h1.second-heading, h1.text-red { padding-top: 0; text-align: inherit; }
.container h1.second-heading, .container h1.text-red { padding-top: 0; margin-bottom: 20px; }
h1.second-heading::after, h1.text-red::after { display: none !important; content: none !important; }
h1.second-heading { font-weight: 700; line-height: 1.12; }
h1.dp-hero-h1::after { display: none !important; }

/* Shared wrapper */
.dp-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* FAQ */
.dp-faq { padding: 56px 0 32px; background: #fff; }
.dp-faq h2 { color: var(--dp-ink); font-size: 2rem; font-weight: 700; margin: 0 0 22px; }
.dp-faq h2::before { content: ""; display: block; width: 56px; height: 4px; background: var(--dp-red); margin-bottom: 14px; }
.dp-faq details { border: 1px solid var(--dp-line); border-left: 4px solid var(--dp-red); border-radius: 8px; background: #fff; margin: 0 0 12px; transition: box-shadow .2s; }
.dp-faq details[open] { box-shadow: 0 6px 18px rgba(17,17,17,.06); }
.dp-faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; font-size: 1.05rem; color: var(--dp-ink); list-style: none; position: relative; }
.dp-faq summary::-webkit-details-marker { display: none; }
.dp-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--dp-red); font-size: 1.5rem; line-height: 1; font-weight: 400; }
.dp-faq details[open] summary::after { content: "\2212"; }
.dp-faq summary:focus-visible { outline: 2px solid var(--dp-red); outline-offset: 2px; }
.dp-faq details p { padding: 0 20px 18px; color: var(--dp-text); line-height: 1.65; margin: 0; font-size: 1rem; }

/* Related links */
.dp-related { margin-top: 30px; }
.dp-related h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dp-muted); margin: 0 0 12px; font-weight: 700; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dp-chips a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--dp-ink); color: var(--dp-ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .15s, color .15s; }
.dp-chips a:hover, .dp-chips a:focus-visible { background: var(--dp-ink); color: #fff; }

/* Footer links */
.dp-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; padding: 14px 0 4px; clear: both; width: 100%; }
.dp-footer-links a { color: #fff; opacity: .85; text-decoration: none; font-size: .9rem; }
.dp-footer-links a:hover { opacity: 1; text-decoration: underline; }

/* Content pages: About, Insights, articles, utility pages */
.dp-page { background: #fff; color: var(--dp-text); }
.dp-hero { background: var(--dp-ink); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.dp-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border: 3px solid var(--dp-red); transform: rotate(45deg); opacity: .5; }
.dp-hero .dp-kicker { color: #ff5a68; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; margin: 0 0 12px; }
.dp-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; font-weight: 800; margin: 0 0 16px; padding: 0; text-align: left; max-width: 900px; }
.dp-hero h1::after { display: none !important; }
.dp-hero p.dp-lede { color: #e6e6e6; font-size: 1.15rem; line-height: 1.6; max-width: 760px; margin: 0; }
.dp-crumbs { font-size: .85rem; margin: 0 0 18px; color: #bdbdbd; }
.dp-crumbs a { color: #fff; text-decoration: none; }
.dp-crumbs a:hover { text-decoration: underline; }

.dp-body { padding: 48px 0 24px; }
.dp-prose { max-width: 760px; }
.dp-prose h2 { color: var(--dp-ink); font-size: 1.6rem; font-weight: 700; margin: 36px 0 12px; }
.dp-prose h3 { color: var(--dp-ink); font-size: 1.2rem; font-weight: 700; margin: 26px 0 8px; }
.dp-prose p, .dp-prose li { font-size: 1.05rem; line-height: 1.75; color: var(--dp-text); }
.dp-prose p { margin: 0 0 16px; }
.dp-prose ul, .dp-prose ol { list-style: disc; padding-left: 22px; margin: 0 0 18px; }
.dp-prose ol { list-style: decimal; }
.dp-prose li { margin: 0 0 6px; }
.dp-prose a { color: var(--dp-red); font-weight: 600; }
.dp-prose strong { color: var(--dp-ink); }
.dp-prose table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: .98rem; }
.dp-prose th, .dp-prose td { border: 1px solid var(--dp-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.dp-prose th { background: var(--dp-ink); color: #fff; font-weight: 600; }
.dp-summary { border-left: 4px solid var(--dp-red); background: var(--dp-paper); padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 0 0 28px; }
.dp-summary p { margin: 0; }
.dp-meta { color: var(--dp-muted); font-size: .9rem; margin: 0 0 24px; }

.dp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 28px; }
.dp-fact { border: 1px solid var(--dp-line); border-top: 4px solid var(--dp-red); border-radius: 8px; padding: 16px 18px; background: #fff; }
.dp-fact b { display: block; color: var(--dp-ink); font-size: 1.05rem; margin-bottom: 4px; }
.dp-fact span { color: var(--dp-muted); font-size: .95rem; line-height: 1.5; }

.dp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 10px 0 30px; }
.dp-card { border: 1px solid var(--dp-line); border-radius: 10px; padding: 22px; background: #fff; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.dp-card:hover, .dp-card:focus-visible { border-color: var(--dp-ink); transform: translateY(-2px); }
.dp-card .dp-tag { color: var(--dp-red); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.dp-card h2, .dp-card h3 { font-size: 1.2rem; color: var(--dp-ink); margin: 0 0 8px; font-weight: 700; line-height: 1.3; }
.dp-card p { color: var(--dp-muted); margin: 0; line-height: 1.55; font-size: .98rem; }

.dp-cta { background: var(--dp-ink); color: #fff; border-radius: 12px; padding: 28px; margin: 34px 0 10px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.dp-cta p { color: #fff; margin: 0; font-size: 1.1rem; font-weight: 600; }
.dp-btn { display: inline-block; background: var(--dp-red); color: #fff !important; padding: 12px 22px; border-radius: 8px; font-weight: 700; text-decoration: none !important; }
.dp-btn:hover { background: var(--dp-red-dark); }
.dp-btn.ghost { background: transparent; border: 1px solid #fff; }

@media (max-width: 640px) {
  .dp-hero { padding: 44px 0 40px; }
  .dp-faq h2 { font-size: 1.6rem; }
  .dp-prose p, .dp-prose li { font-size: 1rem; }
  .dp-prose table { display: block; overflow-x: auto; white-space: normal; }
}

/* Logo: larger, readable tagline, same on every page */
.logo { background-image: url(/src/images/datapkt-logo-v2.svg) !important; background-size: contain !important; background-position: left center !important; background-repeat: no-repeat !important; width: 220px !important; height: 48px !important; }
@media (max-width: 991px) { .logo { width: 180px !important; height: 39px !important; } }
.logowhite { background: url(/src/images/datapkt-logo-white-v2.svg) no-repeat left center !important; background-size: contain !important; width: 200px !important; height: 44px !important; display: block; }


/* Responsive safety: theme grid columns and images never wider than their container */
.row { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
section img { max-width: 100%; }
section img:not([height]):not([style*="height"]) { height: auto; }

/* WhatsApp click-to-chat button (free wa.me link) */
.dp-wa { position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s; }
.dp-wa:hover, .dp-wa:focus-visible { transform: scale(1.06); }
.dp-wa:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.dp-wa svg { width: 32px; height: 32px; fill: #fff; }
@media (max-width: 640px) { .dp-wa { right: 14px; bottom: 14px; width: 52px; height: 52px; } .dp-wa svg { width: 28px; height: 28px; } }
@media print { .dp-wa { display: none; } }

/* Large monitors: scale the header and home hero text with the screen */
@media (min-width: 1600px) {
  .logo { width: clamp(220px, 12vw, 300px) !important; height: clamp(48px, 2.6vw, 66px) !important; }
  .navbar .nav-item { font-size: clamp(18px, 1vw, 24px) !important; }
  .navbar .nav-link { padding: 9px clamp(20px, 1.2vw, 30px) !important; }
}

/* Client names under the logo strips */
.dp-clients { max-width: 900px; margin: -24px auto 24px; padding: 0 16px; color: #4a4a4a; font-size: .95rem; line-height: 1.6; text-align: center; }

/* Phones: smaller hero text so it sits in the sky, clear of the drone and the bridge */
@media (max-width: 575px) {
  .main-text { padding: 10px 14px !important; }
  .main-text h1.dp-hero-h1 { font-size: 19px !important; line-height: 23px !important; }
  .main-text h1.dp-hero-h1 label { font-size: 1.1rem !important; line-height: 1.45rem !important; }
  .main-text p { display: none !important; }
  .main-text a.redbtn { font-size: 11px !important; padding: 4px 10px !important; margin-top: 6px !important; display: inline-block; }
}

/* Cookie notice: small, bottom-left, clear of the WhatsApp button */
.dp-cookie { position: fixed; left: 20px; bottom: 20px; z-index: 1039; max-width: 420px; background: var(--dp-ink); color: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: .9rem; line-height: 1.5; }
.dp-cookie[hidden] { display: none; }
.dp-cookie p { margin: 0 0 10px; color: #fff; }
.dp-cookie a { color: #fff; text-decoration: underline; }
.dp-cookie-btns { display: flex; gap: 8px; justify-content: flex-end; }
.dp-cookie button { border: 1px solid #fff; background: transparent; color: #fff; border-radius: 6px; padding: 6px 14px; font-weight: 600; cursor: pointer; }
.dp-cookie button.dp-cookie-ok { background: var(--dp-red); border-color: var(--dp-red); }
.dp-cookie button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) { .dp-cookie { left: 12px; right: 80px; bottom: 14px; max-width: none; font-size: .82rem; padding: 10px 12px; } }
@media print { .dp-cookie { display: none; } }

/* Content pages with a photo behind the dark hero (same colours, photo dimmed) */
.dp-hero--img { background: linear-gradient(90deg, rgba(17,17,17,.94) 0%, rgba(17,17,17,.84) 50%, rgba(17,17,17,.62) 100%), var(--dp-hero-img) center / cover no-repeat, var(--dp-ink); padding: 84px 0 76px; }
.dp-hero--img .dp-lede { color: #f0f0f0; }
@media (max-width: 640px) { .dp-hero--img { padding: 52px 0 46px; background: linear-gradient(rgba(17,17,17,.88), rgba(17,17,17,.88)), var(--dp-hero-img) center / cover no-repeat, var(--dp-ink); } }

/* Figures inside articles */
.dp-figure { margin: 10px 0 28px; }
.dp-figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--dp-line); background: var(--dp-paper); }
.dp-figure figcaption { font-size: .9rem; color: var(--dp-muted); margin-top: 8px; line-height: 1.5; }
.dp-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin: 6px 0 12px; }
.dp-figs .dp-figure { margin: 0 0 10px; }
.dp-prose { max-width: 820px; }

/* Cards with a photo on top */
.dp-card--img { padding: 0 0 20px; overflow: hidden; }
.dp-card--img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 16px; }
.dp-card--img .dp-tag, .dp-card--img h2, .dp-card--img p { margin-left: 20px; margin-right: 20px; }

/* GSD calculator */
.dp-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px; margin: 0 0 36px; }
.dp-calc-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 1px solid var(--dp-line); border-top: 4px solid var(--dp-red); border-radius: 10px; padding: 22px; background: #fff; }
.dp-calc-in label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--dp-ink); }
.dp-calc-in .dp-calc-wide { grid-column: 1 / -1; }
.dp-calc-in input, .dp-calc-in select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfc9c4; border-radius: 8px; background: #fff; color: var(--dp-text); width: 100%; min-width: 0; }
.dp-calc-in input:focus, .dp-calc-in select:focus { outline: 2px solid var(--dp-red); outline-offset: 1px; border-color: var(--dp-red); }
.dp-calc-out { background: var(--dp-ink); color: #fff; border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.dp-calc-res { border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 12px; }
.dp-calc-res span { display: block; font-size: .85rem; color: #cfcfcf; text-transform: uppercase; letter-spacing: .08em; }
.dp-calc-res b { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; margin-top: 4px; }
.dp-calc-note { color: #ff8a95; margin: 0; font-size: .95rem; line-height: 1.5; }
.dp-formula { background: var(--dp-paper); border-left: 4px solid var(--dp-red); padding: 14px 18px; border-radius: 0 8px 8px 0; font-weight: 600; color: var(--dp-ink); }
@media (max-width: 480px) { .dp-calc-in { grid-template-columns: 1fr; } .dp-calc-res b { font-size: 1.5rem; } }
.dp-prose .dp-facts { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.dp-cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.dp-card--img img { height: auto !important; }
@media (max-width: 640px) { .dp-facts, .dp-prose .dp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .dp-fact { padding: 12px 12px; } .dp-fact b { font-size: .98rem; } .dp-fact span { font-size: .86rem; } }

/* Simple bar chart (monthly figures) */
.dp-chart { display: flex; align-items: flex-end; gap: 6px; height: 240px; padding: 28px 14px 0; border: 1px solid var(--dp-line); border-radius: 10px; background: #fff; }
.dp-chart-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.dp-chart-bar { display: block; width: 100%; max-width: 38px; background: var(--dp-red); border-radius: 4px 4px 0 0; }
.dp-chart-v { font-size: .72rem; color: var(--dp-muted); margin-bottom: 4px; white-space: nowrap; }
.dp-chart-m { font-size: .8rem; color: var(--dp-ink); font-weight: 600; padding: 6px 0 8px; }
@media (max-width: 640px) { .dp-chart { gap: 3px; padding: 24px 6px 0; height: 200px; } .dp-chart-v { font-size: .58rem; transform: rotate(-60deg); margin-bottom: 10px; } .dp-chart-m { font-size: .68rem; } }

/* client logo grid: logos were collapsing to 0 width; give every logo a fixed tile */
section .row:has(> [class*="col"] .banner-thumb){flex-wrap:wrap!important;max-width:1100px;margin:24px auto 0!important}
section .row > [class*="col"]:has(.banner-thumb){flex:0 0 auto!important;width:auto!important;max-width:none!important;padding:0!important}
.bannerImg_Wrap{width:160px!important;margin:7px!important;flex:0 0 160px}
.banner-thumb{width:100%!important;height:110px!important;margin:0!important;padding:12px}
.banner-thumb img{width:auto!important;max-width:85%!important;height:72px!important;object-fit:contain;flex:0 0 auto}
@media (max-width:480px){.bannerImg_Wrap{width:44vw!important;flex-basis:44vw}}

/* railway authorities on the ESP page */
.dp-authorities{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;max-width:1100px;margin:24px auto 0}
.dp-authority{background:#fff;border:1px solid #e6e1dc;border-top:3px solid #c1272d;border-radius:8px;padding:18px 14px;display:flex;flex-direction:column;gap:4px;justify-content:center;min-height:96px}
.dp-authority b{font-size:17px;color:#111}
.dp-authority span{font-size:13px;color:#666}
.dp-esp-more{padding-top:10px}

/* Drone Pilot Network form */
.dp-pilot-form{background:#f6f3ef;padding:48px 0 56px}
.dp-pilot-h{text-align:center;margin:0 0 20px}
.dp-form-frame{max-width:860px;margin:0 auto;background:#fff;border-radius:12px;border-top:4px solid #c1272d;box-shadow:0 8px 30px rgba(0,0,0,.08);overflow:hidden}
.dp-form-frame iframe{display:block;width:100%;height:2300px;border:0}
.dp-form-alt{text-align:center;margin:14px auto 0;max-width:860px;font-size:14px;color:#555}
@media (max-width:640px){.dp-form-frame iframe{height:2900px}}
